]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/security_functions.php
Conflict solved between ext-profile and ext-update
[mailer.git] / inc / libs / security_functions.php
index 3922624fb74e17b664c87d5b6a37a311a4f80a0a..ba081bd00fe80d1cd1251977a691b76e3bf38ec8 100644 (file)
@@ -162,25 +162,25 @@ if (phpversion() >= '4.0.4pl1' && (strstr(getenv('HTTP_USER_AGENT'),'compatible'
 $_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');