]> git.mxchange.org Git - mailer.git/blobdiff - inc/gen_sql_patches.php
All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / gen_sql_patches.php
index efa794120113073c89f18c3ce3ff78c718046348..0c9afaab5c6131cac397fb96c565a5354e42e06c 100644 (file)
@@ -72,7 +72,10 @@ if (getConfig('master_salt') == "") {
 if (getConfig('file_hash') == "") {
        // Create filename from hashed random string
        $file_hash = sha1(GEN_PASS(mt_rand(128, 256)));
-       $file = PATH."inc/.secret/.".$file_hash;
+       $file = sprintf("%sinc/.secret/.%s",
+               constant('PATH'),
+               $file_hash
+       );
 
        // Count of chars to be taken from back of the string
        $nums = mt_rand(40, 45);
@@ -95,7 +98,9 @@ if (getConfig('file_hash') == "") {
                        array($file_hash), __FILE__, __LINE__);
 
                // Generate FQFN for .htaccess file
-               $FQFN = PATH."inc/.secret/.htaccess";
+               $FQFN = sprintf("%sinc/.secret/.htaccess",
+                       constant('PATH')
+               );
 
                // Is the .htaccess file there?
                if (!FILE_READABLE($FQFN)) {