From c848e87fb7ea6752482af0fb4e3b4155682a3915 Mon Sep 17 00:00:00 2001 From: Shadow Date: Mon, 10 Mar 2014 08:36:48 +0200 Subject: [PATCH] update --- Admin/Templates/config.tpl | 8 ++++++++ GameEngine/Admin/Mods/editServerSet.php | 1 + 2 files changed, 9 insertions(+) diff --git a/Admin/Templates/config.tpl b/Admin/Templates/config.tpl index 4851e7b4..b21d69e8 100644 --- a/Admin/Templates/config.tpl +++ b/Admin/Templates/config.tpl @@ -153,6 +153,14 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN); Graphic Pack Enabled"; } else { echo "Disabled"; } ?> + + Error Reporting + + + + diff --git a/GameEngine/Admin/Mods/editServerSet.php b/GameEngine/Admin/Mods/editServerSet.php index c5cd6869..eb7f2c58 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);