note 18413 deleted from function.preg-match by irc-html
| From: | irc-html@php.net | Date: | Tue, 22 Jan 2002 02:47:18 +0000 |
| Subject: | note 18413 deleted from function.preg-match by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25672@lists.php.net to get a copy of this message | ||
Keep out of www.url.com/admin, or www.url.com/submit.php, without first logging in:
////////////////////////////
// check authorization
///////////////////////////
if (preg_match("/(admin|submit)/i","$PHP_SELF") &&
!$authenticated_user_id) {
header("Location: "www.url.com/login.phtml");
exit();
}