array($scrambleString), __FILE__, __LINE__);
// Also remember it in config
array($scrambleString), __FILE__, __LINE__);
// Also remember it in config
$masterSalt = scrambleString(substr(sha1(GEN_PASS(mt_rand(128, 256))), 0, -40));
// ... and store it there for future usage
$masterSalt = scrambleString(substr(sha1(GEN_PASS(mt_rand(128, 256))), 0, -40));
// ... and store it there for future usage
array($masterSalt), __FILE__, __LINE__);
// Also remember it in config
array($masterSalt), __FILE__, __LINE__);
// Also remember it in config
unset($masterSalt);
} // END - if
if (getConfig('file_hash') == "") {
// Create filename from hashed random string
$file_hash = sha1(GEN_PASS(mt_rand(128, 256)));
unset($masterSalt);
} // END - if
if (getConfig('file_hash') == "") {
// Create filename from hashed random string
$file_hash = sha1(GEN_PASS(mt_rand(128, 256)));
//* DEBUG: */ die("Secret-Key: ".$secretKey."<br />Cookie: ".get_session('u_hash')."<br />Test: ".$test);
// Write $file_hash to database
//* DEBUG: */ die("Secret-Key: ".$secretKey."<br />Cookie: ".get_session('u_hash')."<br />Test: ".$test);
// Write $file_hash to database
array($file_hash), __FILE__, __LINE__);
// Generate FQFN for .htaccess file
array($file_hash), __FILE__, __LINE__);
// Generate FQFN for .htaccess file
- $_CONFIG['secret_key'] = $secretKey; unset($secretKey);
- $_CONFIG['file_hash'] = $file_hash; unset($file_hash);
+ setConfigEntry('secret_key', $secretKey);
+ setConfigEntry('file_hash' , $file_hash);
+
+ // Remove variables
+ unset($secretKey);
+ unset($file_hash);