]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_sql_patches.php
Menu system moved to external extension 'ext-menu'
[mailer.git] / inc / gen_sql_patches.php
index b6e3ec33e16785524ea0390fc1bc4f3352d4890b..ba56d1388191b5b8f34b04b107010b63e60faeff 100644 (file)
 
 // Some security stuff...
 if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
 // Check for version of sql_patches
-if (GET_EXT_VERSION("sql_patches") < "0.3.6") return false;
+if (GET_EXT_VERSION('sql_patches') < '0.3.6') return false;
 
 // Check if there is no scrambling string
 if (getConfig('pass_scramble') == "") {
@@ -95,7 +95,7 @@ if (getConfig('file_hash') == "") {
        if (FILE_READABLE($FQFN)) {
                //* DEBUG: */ unlink($FQFN);
                //* DEBUG: */ $test = hexdec(get_session('u_hash')) / hexdec($secretKey);
-               //* DEBUG: */ $test = generateHash(str_replace('.', "", $test));
+               //* DEBUG: */ $test = generateHash(str_replace('.', '', $test));
                //* DEBUG: */ die("Secret-Key: ".$secretKey."<br />Cookie: ".get_session('u_hash')."<br />Test: ".$test);
 
                // Write $fileHash to database