Ok, just tried that.
I placed the code below on a page.
Quote:
<?
chdir("/home/sites/home/web/gathering");
require('global.php');
if ($bbuserinfo[userid]==0) {
// show_nopermission();
} else {
// ok
}
chdir("/home/sites/home/web/gathering/pw_calendar");
?>
|
When I am logged in, no problems.
When I am not logged in, I get the following error:
Quote:
Warning: Cannot add header information - headers already sent by (output started at /home/sites/home/web/gathering/pw_calendar/pw_event_rate.php:9) in /home/sites/home/web/gathering/admin/functions.php on line 1459
|