mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-16 08:11:00 +00:00
fix: admin DB prefixes to try and find the unfindable database
This commit is contained in:
@@ -24,15 +24,25 @@ if (!function_exists('mysqli_result')) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($gameinstall) && $gameinstall == 1){
|
// go max 5 levels up - we don't have folders that go deeper than that
|
||||||
include_once("../../GameEngine/config.php");
|
$autoprefix = '';
|
||||||
include_once("../../GameEngine/Data/buidata.php");
|
for ($i = 0; $i < 5; $i++) {
|
||||||
}else{
|
$autoprefix = str_repeat('../', $i);
|
||||||
include_once("../GameEngine/Data/unitdata.php");
|
if (file_exists($autoprefix.'autoloader.php')) {
|
||||||
include_once("../GameEngine/Technology.php");
|
// we have our path, let's leave
|
||||||
include_once("../GameEngine/Data/buidata.php");
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
include_once("../GameEngine/Database.php");
|
|
||||||
|
if(isset($gameinstall) && $gameinstall == 1){
|
||||||
|
include_once($autoprefix."GameEngine/config.php");
|
||||||
|
include_once($autoprefix."GameEngine/Data/buidata.php");
|
||||||
|
}else{
|
||||||
|
include_once($autoprefix."GameEngine/Data/unitdata.php");
|
||||||
|
include_once($autoprefix."GameEngine/Technology.php");
|
||||||
|
include_once($autoprefix."GameEngine/Data/buidata.php");
|
||||||
|
}
|
||||||
|
include_once($autoprefix."GameEngine/Database.php");
|
||||||
class adm_DB {
|
class adm_DB {
|
||||||
|
|
||||||
var $connection;
|
var $connection;
|
||||||
|
|||||||
Reference in New Issue
Block a user