I made a special template that has the navbar and a static page.
I want to call this template from a php file
This is the code I have thus far:
PHP Code:
<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style>
<?php
// GO TO FORUM DIR
chdir('./');
// STANDARD VBULLETIN STUFF
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'script_name');
require_once('./global.php');
// GENERIC_SHELL VARS
$pagetitle = "Title of Page";
$HTML = ""; // PIECED TOGETHER IN SCRIPT
eval('$navbar = "' . fetch_template('navbarscene') . '";');
eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
?>
It works as long as the user is logged in.
But when a guest navigates to this php page it says
Quote:
Unable to add cookies, header already sent.
File: /home/.darla/lolsucom/lolsu.com/forums/barscene.php
Line: 1
|
How do I fix it so guests can view it also?