// 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') == "") {
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