mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 20:34:21 +00:00
This commit is contained in:
@@ -21,7 +21,9 @@ include_once("../../Database.php");
|
||||
include_once("../../config.php");
|
||||
$id = (int) $_POST['id'];
|
||||
|
||||
if (!file_exists('constant_format.tpl')) {
|
||||
require_once(__DIR__ . '/config_template.php');
|
||||
|
||||
if (!admin_config_template_available()) {
|
||||
die(
|
||||
'You seem to be running a new version of TravianZ which was installed using an old installer.<br />' .
|
||||
'Please download <strong>constant_format.tpl</strong> file and copy it into the <strong>GameEngine/Admin/Mods</strong> ' .
|
||||
@@ -33,7 +35,7 @@ if (!file_exists('constant_format.tpl')) {
|
||||
$myFile = "../../config.php";
|
||||
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: GameEngine\config.php");
|
||||
|
||||
$text = file_get_contents("constant_format.tpl");
|
||||
$text = admin_config_template_contents();
|
||||
|
||||
$SUPPORT_MSGS_IN_ADMIN = (ADMIN_RECEIVE_SUPPORT_MESSAGES == false ? 'false' : 'true');
|
||||
$ADMINS_RAIDABLE = (ADMIN_ALLOW_INCOMING_RAIDS == false ? 'false' : 'true');
|
||||
|
||||
Reference in New Issue
Block a user