mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-31 23:57:13 +00:00
General building
+Starting a building would be nonsense, if the server has already been finished
This commit is contained in:
+1
-2
@@ -23,7 +23,7 @@ $start_timer = $generator->pageLoadTimeStart();
|
|||||||
use App\Utils\AccessLogger;
|
use App\Utils\AccessLogger;
|
||||||
|
|
||||||
if (!function_exists('mysqli_result')) {
|
if (!function_exists('mysqli_result')) {
|
||||||
function mysqli_result($res, $row, $field=0) {
|
function mysqli_result($res, $row, $field = 0) {
|
||||||
$res->data_seek($row);
|
$res->data_seek($row);
|
||||||
$datarow = $res->fetch_array();
|
$datarow = $res->fetch_array();
|
||||||
return $datarow[$field];
|
return $datarow[$field];
|
||||||
@@ -38,7 +38,6 @@ if(isset($_GET['newdid'])) {
|
|||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else $building->procBuild($_GET);
|
|
||||||
|
|
||||||
$sql = mysqli_query($database->dblink,"SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'");
|
$sql = mysqli_query($database->dblink,"SELECT vref FROM ".TB_PREFIX."fdata WHERE f99 = '100' and f99t = '40'");
|
||||||
$winner = mysqli_num_rows($sql);
|
$winner = mysqli_num_rows($sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user