Update editLogSet.php

This commit is contained in:
sempoi
2014-03-08 16:15:55 +08:00
parent 9c4ffbf024
commit 541853b7dd
+3 -2
View File
@@ -17,7 +17,7 @@ $id = $_POST['id'];
$myFile = "../../config.php"; $myFile = "../../config.php";
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\config.php"); $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\config.php");
$ERRORREPORT=ERROR_REPORT;
$T4=(T4_COMING==false)? "false":"true"; $T4=(T4_COMING==false)? "false":"true";
$GP_ENABLE=(GP_ENABLE==false)? "false":"true"; $GP_ENABLE=(GP_ENABLE==false)? "false":"true";
$QUEST=(QUEST==false)? "false":"true"; $QUEST=(QUEST==false)? "false":"true";
@@ -34,7 +34,8 @@ $fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\con
$INCLUDE_ADMIN=(INCLUDE_ADMIN==false)? "false":"true"; $INCLUDE_ADMIN=(INCLUDE_ADMIN==false)? "false":"true";
$text = file_get_contents("constant_format.tpl"); $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("'%SERVERNAME%'", SERVER_NAME, $text);
$text = preg_replace("'%STIMEZONE%'", TIMEZONE, $text); $text = preg_replace("'%STIMEZONE%'", TIMEZONE, $text);
$text = preg_replace("'%STARTTIME%'", COMMENCE, $text); $text = preg_replace("'%STARTTIME%'", COMMENCE, $text);