From 541853b7dd517b90bbc5fcc2f69b8f737aeb83fc Mon Sep 17 00:00:00 2001 From: sempoi Date: Sat, 8 Mar 2014 16:15:55 +0800 Subject: [PATCH] Update editLogSet.php --- GameEngine/Admin/Mods/editLogSet.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/GameEngine/Admin/Mods/editLogSet.php b/GameEngine/Admin/Mods/editLogSet.php index 0bc98f6b..87ae8ce5 100644 --- a/GameEngine/Admin/Mods/editLogSet.php +++ b/GameEngine/Admin/Mods/editLogSet.php @@ -17,7 +17,7 @@ $id = $_POST['id']; $myFile = "../../config.php"; $fh = fopen($myFile, 'w') or die("


Can't open file: GameEngine\config.php"); - + $ERRORREPORT=ERROR_REPORT; $T4=(T4_COMING==false)? "false":"true"; $GP_ENABLE=(GP_ENABLE==false)? "false":"true"; $QUEST=(QUEST==false)? "false":"true"; @@ -34,7 +34,8 @@ $fh = fopen($myFile, 'w') or die("


Can't open file: GameEngine\con $INCLUDE_ADMIN=(INCLUDE_ADMIN==false)? "false":"true"; $text = file_get_contents("constant_format.tpl"); - $text = preg_replace("'%ERROR%'", $_POST['error'], $text); + $text = preg_replace("'%ERRORREPORT%'", $ERRORREPORT, $text); + $text = preg_replace("'%ERROR%'", $ERRORREPORT, $text); $text = preg_replace("'%SERVERNAME%'", SERVER_NAME, $text); $text = preg_replace("'%STIMEZONE%'", TIMEZONE, $text); $text = preg_replace("'%STARTTIME%'", COMMENCE, $text); @@ -106,4 +107,4 @@ $database->query("Insert into ".TB_PREFIX."admin_log values (0,".$id.",'Changed header("Location: ../../../Admin/admin.php?p=config"); -?> \ No newline at end of file +?>