I would suspect that you had a default template if there is no referer
if (!empty($_SERVER['HTTP_REFERER'] )) $template = $_SERVER['HTTP_REFERER']
;
?>
bastien
From: "Chris Payne" <[EMAIL PROTECTED]>
To:
Subject: [PHP-DB] http_referer question
Hi there everyone,
I have a system which dynamically creates a template based website which can
be turned on or off by a switch, to access it a user would do
http://www.websitename/templatename and then it would produce a 404 (NOT
look for a dir as this allows me to use a DB switch to enable th