if (GET_EXT_VERSION("sql_patches") < "0.3.6") return false;
// Check if there is no scrambling string
-if (empty($_CONFIG['pass_scramble'])) {
+if (getConfig('pass_scramble') == "") {
// Generate 40 chars long scramble string
$scrambleString = genScrambleString(40);
} // END - if
// Check if there is no master salt string
-if (empty($_CONFIG['master_salt'])) {
+if (getConfig('master_salt') == "") {
// Generate the master salt which is the first chars minus 40 chars of this random hash
// We do an extra scrambling here...
$masterSalt = scrambleString(substr(generateHash(GEN_PASS(mt_rand(128, 256))), 0, -40));
unset($masterSalt);
} // END - if
-if (empty($_CONFIG['file_hash'])) {
+if (getConfig('file_hash') == "") {
// Create filename from hashed random string
$file_hash = generateHash(sha1(GEN_PASS(mt_rand(128, 256))));
$file = PATH."inc/.secret/.".$file_hash;