mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-05 04:14:22 +00:00
fix: installation will not be allowed if old data are still in DB
This commit is contained in:
@@ -12,6 +12,12 @@
|
||||
|
||||
include("database.php");
|
||||
|
||||
// check if we don't already have world data
|
||||
$data_exist = $database->query_return("SELECT * FROM " . TB_PREFIX . "wdata LIMIT 1");
|
||||
if (count($data_exist)) {
|
||||
header("Location: ../index.php?s=3&err=1");
|
||||
exit;
|
||||
}
|
||||
|
||||
$xyas=(1+(2*WORLD_MAX));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user