- //* DEBUG: */ removeFile($FQFN);
- //* DEBUG: */ $test = hexdec(getSession('u_hash')) / hexdec($secretKey);
- //* DEBUG: */ $test = generateHash(str_replace('.', '', $test));
- //* DEBUG: */ die("Secret-Key: ".$secretKey."<br />Cookie: ".getSession('u_hash')."<br />Test: ".$test);
-
- // Write $fileHash to database
- updateConfiguration('file_hash', $fileHash);
-
- // Generate FQFN for .htaccess file
- $FQFN = sprintf("%sinc/.secret/.htaccess",
- getConfig('PATH')
- );
-
- // Is the .htaccess file there?
- if (!isFileReadable($FQFN)) {
- // Also create .htaccess file
- writeToFile($FQFN, "Deny from all\n");
- } // END - if
-