RE: [PHP-DB] http_referer question for DB access

2006-01-11 Thread Bastien Koert
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

[PHP-DB] http_referer question for DB access

2006-01-11 Thread Chris Payne
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