From f05b84128aaf6c1c10a0d24befb6efe99b56cd5c Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 10 Jul 2009 21:00:43 +0000 Subject: [PATCH] remove pointless ereg stuff git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@682 a1433add-5e2c-0410-b055-b7f2511e0802 --- variables.inc.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/variables.inc.php b/variables.inc.php index 2ae72ef4..c80c3368 100644 --- a/variables.inc.php +++ b/variables.inc.php @@ -17,11 +17,6 @@ * * XXX Probably a hack to save having to declare variables before using them in pages. */ -if (ereg ("variables.inc.php", $_SERVER['PHP_SELF'])) -{ - header ("Location: login.php"); - exit; -} $error = ""; $escaped_string = ""; @@ -101,4 +96,3 @@ $pPassword_password_current_text = " "; $pPassword_password_text = " "; /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */ -?>