X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fgen_sql_patches.php;h=61eebc187f0593ba9de770714806487ea559c345;hp=8fd4b43047bacaad899070e04138e004578b25f6;hb=61bddb167e29e7275f5a1c9fa8cb80431fa5ee6f;hpb=7ff28f7292939ad1a61b9b7a4e3398ff6310a3d0 diff --git a/inc/gen_sql_patches.php b/inc/gen_sql_patches.php index 8fd4b43047..61eebc187f 100644 --- a/inc/gen_sql_patches.php +++ b/inc/gen_sql_patches.php @@ -99,25 +99,15 @@ if (empty($_CONFIG['file_hash'])) { $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_config SET file_hash='%s' WHERE config=0 LIMIT 1", array($file_hash), __FILE__, __LINE__); - // Also create .htaccess file - $fp = @fopen(PATH."inc/.secret/.htaccess", 'w') or mxchange_die("Cannot write to .htaccess file!"); - if ($fp != false) { - // Add deny line to file - fwrite($fp, "Deny from all"); - - // Close the file - fclose($fp); - } - // Also update configuration - $_CONFIG['secret_key'] = $secretKey; unset($secretKey); - $_CONFIG['file_hash'] = $file_hash; unset($file_hash); + $_CONFIG['secret_key'] = $secretKey; + $_CONFIG['file_hash'] = $file_hash; - // Don't miss the admin hash here... - $passHash = generatePassString(get_session('admin_md5')); - set_session('admin_md5', $passHash); + // And remove some variables + unset($secretKey); + unset($file_hash); } } // -?> \ No newline at end of file +?>