Hi all, i have created a privacy page using this code, but if i try to see that page logged out, the browser report:
Code:
Unable to add cookies, header already sent.
File: /home/download/public_html/vb/tos.php
Line: 1
the php page is:
Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'tos'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'Tos',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
$navbits = array();
$navbits[$parent] = 'Privacy e Tos';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('Tos') . '");');
?>
There's a solution? i'm using vb 3.8.7 and php 5.3.16
Thanks
@@@@@@@@@@@@@@@@@@@@@@@@@@
Solved, there'was a white space before <?php