X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=0.2.1%2Finc%2Fgen_sql_patches.php;h=9a77b2d3cf7ad508c238a884fb18978cbedfe44d;hp=3b9e6b95aee12dcc1138689e6489adda8210534a;hb=7bc25dd08431c94ce9edca131d56c1a36b13c28a;hpb=157ee010917df5ca07e6d31b42f67417b2516d74
diff --git a/0.2.1/inc/gen_sql_patches.php b/0.2.1/inc/gen_sql_patches.php
index 3b9e6b95ae..9a77b2d3cf 100644
--- a/0.2.1/inc/gen_sql_patches.php
+++ b/0.2.1/inc/gen_sql_patches.php
@@ -1,125 +1,125 @@
-Cookie: ".$_COOKIE['u_hash']."
Test: ".$test);
-
- // Write $file_hash to database
- $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);
- }
-}
-
-//
+Cookie: ".$_COOKIE['u_hash']."
Test: ".$test);
+
+ // Write $file_hash to database
+ $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);
+ }
+}
+
+//
?>
\ No newline at end of file