$_SERVER['PHP_SELF'] = secureString($_SERVER['PHP_SELF']);
// Split it up into path and filename
-$SELF_DIR = dirname($_SERVER['PHP_SELF']);
-$SELF_FILE = basename($_SERVER['PHP_SELF']);
+$phpSelfDirectory = dirname($_SERVER['PHP_SELF']);
+$phpSelfFile = basename($_SERVER['PHP_SELF']);
-// Check for a .php inside the $SELF_DIR...
-while (ereg('.php', $SELF_DIR)) {
+// Check for a .php inside the $phpSelfDirectory...
+while (ereg('.php', $phpSelfDirectory)) {
// Correct the dirname
- $SELF_DIR = substr($SELF_DIR, 0, (strpos($SELF_DIR, '.php') + 4));
+ $phpSelfDirectory = substr($phpSelfDirectory, 0, (strpos($phpSelfDirectory, '.php') + 4));
// Rewrite filename...
- $SELF_FILE = basename($SELF_DIR);
+ $phpSelfFile = basename($phpSelfDirectory);
// ... and dirname
- $SELF_DIR = dirname($SELF_DIR);
+ $phpSelfDirectory = dirname($phpSelfDirectory);
} // END - while
// Put both together again and let's pray it is secured now...
-$_SERVER['PHP_SELF'] = $SELF_DIR . '/' . $SELF_FILE;
+$_SERVER['PHP_SELF'] = $phpSelfDirectory . '/' . $phpSelfFile;
// Remove uneccessary variables
-unset($SELF_DIR);
-unset($SELF_FILE);
+unset($phpSelfDirectory);
+unset($phpSelfFile);
// Security system loaded...
-define('__SECURITY', '1');
+define('__SECURITY', 1);
// [EOF]
?>