From 0626ef20d5fe4c6f1034885807778a54a51c2a8a Mon Sep 17 00:00:00 2001 From: sempoi Date: Sat, 8 Mar 2014 16:17:15 +0800 Subject: [PATCH] Update editServerSet.php --- GameEngine/Admin/Mods/editServerSet.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GameEngine/Admin/Mods/editServerSet.php b/GameEngine/Admin/Mods/editServerSet.php index c5cd6869..233351de 100644 --- a/GameEngine/Admin/Mods/editServerSet.php +++ b/GameEngine/Admin/Mods/editServerSet.php @@ -34,6 +34,7 @@ $fh = fopen($myFile, 'w') or die("


Can't open file: GameEngine\con $text = file_get_contents("constant_format.tpl"); + $text = preg_replace("'%ERRORREPORT%'", $_POST['error'], $text); $text = preg_replace("'%ERROR%'", $_POST['error'], $text); $text = preg_replace("'%SERVERNAME%'", $_POST['servername'], $text); $text = preg_replace("'%STIMEZONE%'", $_POST['tzone'], $text); @@ -104,4 +105,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 +?>