mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-14 15:21:01 +00:00
fix: old version cannot save config data anymore
This commit is contained in:
@@ -14,6 +14,15 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|||||||
include_once("../../Database.php");
|
include_once("../../Database.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|||||||
include_once("../../Database.php");
|
include_once("../../Database.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|||||||
include_once("../../Database.php");
|
include_once("../../Database.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|||||||
include_once("../../Database.php");
|
include_once("../../Database.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,15 @@ include_once("../../Database.php");
|
|||||||
include_once("../../config.php");
|
include_once("../../config.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,15 @@ if($_SESSION['access'] < 9) die(ACCESS_DENIED_ADMIN);
|
|||||||
include_once("../../Database.php");
|
include_once("../../Database.php");
|
||||||
$id = (int) $_POST['id'];
|
$id = (int) $_POST['id'];
|
||||||
|
|
||||||
|
if (file_exists('constant_format.tpl')) {
|
||||||
|
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> ' .
|
||||||
|
'directory - otherwise saving configuration won\'t work.<br /><br />' .
|
||||||
|
'The constant_format.tpl file can be downloaded at ' .
|
||||||
|
'<strong>https://raw.githubusercontent.com/Shadowss/TravianZ/master/install/data/constant_format.tpl</strong>');
|
||||||
|
}
|
||||||
|
|
||||||
$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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user