mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-28 06:07:14 +00:00
fix: Calculated In time sometimes invalid due to $start variable reuse
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ div.c1 {text-align: center}
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
<br>
|
<br>
|
||||||
Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
if(isset($_GET['w'])) {
|
if(isset($_GET['w'])) {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ include("GameEngine/Village.php");
|
|||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$amount = $_SESSION['amount'];
|
$amount = $_SESSION['amount'];
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -362,7 +362,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="stime">
|
<div id="stime">
|
||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start)*1000); ?></b> ms
|
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000); ?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ include ("GameEngine/Village.php");
|
|||||||
include ("GameEngine/Chat.php");
|
include ("GameEngine/Chat.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$alliance->procAlliance($_GET);
|
$alliance->procAlliance($_GET);
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if($session->access == BANNED){
|
if($session->access == BANNED){
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
@@ -83,7 +83,7 @@ include("Templates/res.tpl")
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
<?php echo CALCULATED_IN;?> <b><?php
|
<?php echo CALCULATED_IN;?> <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$message->noticeType($_GET);
|
$message->noticeType($_GET);
|
||||||
$message->procNotice($_POST);
|
$message->procNotice($_POST);
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
@@ -154,7 +154,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -45,7 +45,7 @@ AccessLogger::logRequest();
|
|||||||
die("Access Denied: You are not Admin!");
|
die("Access Denied: You are not Admin!");
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
@@ -555,7 +555,7 @@ include("Templates/res.tpl")
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
<?php echo CALCULATED_IN;?> <b><?php
|
<?php echo CALCULATED_IN;?> <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['ok'])){
|
if(isset($_GET['ok'])){
|
||||||
$database->updateUserField($session->uid,'ok','0','1'); $_SESSION['ok'] = '0';
|
$database->updateUserField($session->uid,'ok','0','1'); $_SESSION['ok'] = '0';
|
||||||
}
|
}
|
||||||
@@ -106,7 +106,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
<?php echo CALCULATED_IN;?> <b><?php
|
<?php echo CALCULATED_IN;?> <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
$database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid);
|
$database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid);
|
||||||
@@ -94,7 +94,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
$database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid);
|
$database->query("UPDATE ".TB_PREFIX."users SET village_select=".$database->escape((int) $_GET['newdid'])." WHERE id=".$session->uid);
|
||||||
@@ -113,7 +113,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ if(isset($_GET['z']) && !is_numeric($_GET['z'])) die('Hacking Attempt');
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
if(isset($_GET['d']) && isset($_GET['c'])){
|
if(isset($_GET['d']) && isset($_GET['c'])){
|
||||||
@@ -111,7 +111,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Account.php");
|
include("GameEngine/Account.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
<html>
|
<html>
|
||||||
@@ -83,7 +83,7 @@ include("Templates/footer.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$message->procMessage($_POST);
|
$message->procMessage($_POST);
|
||||||
if(isset($_GET['t']) && $_GET['t'] == 1){
|
if(isset($_GET['t']) && $_GET['t'] == 1){
|
||||||
$automation->isWinner();
|
$automation->isWinner();
|
||||||
@@ -169,7 +169,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -14,7 +14,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$id = $_GET['id'];
|
$id = $_GET['id'];
|
||||||
if($session->access != BANNED){
|
if($session->access != BANNED){
|
||||||
?>
|
?>
|
||||||
@@ -101,7 +101,7 @@ include("Templates/res.tpl")
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
<?php echo CALCULATED_IN;?> <b><?php
|
<?php echo CALCULATED_IN;?> <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -174,7 +174,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -97,7 +97,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -88,7 +88,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@ ob_start();
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$profile->procProfile($_POST);
|
$profile->procProfile($_POST);
|
||||||
$profile->procSpecial($_GET);
|
$profile->procSpecial($_GET);
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
@@ -186,7 +186,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -15,7 +15,7 @@ include("GameEngine/Village.php");
|
|||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$amount = $_SESSION['amount'];
|
$amount = $_SESSION['amount'];
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -164,7 +164,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -17,7 +17,7 @@ include("GameEngine/Village.php");
|
|||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$amount = $_SESSION['amount'];
|
$amount = $_SESSION['amount'];
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -125,7 +125,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -16,7 +16,7 @@ use App\Utils\AccessLogger;
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
$battle->procSim($_POST);
|
$battle->procSim($_POST);
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
@@ -192,7 +192,7 @@ include("Templates/res.tpl");
|
|||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php
|
Calculated in <b><?php
|
||||||
echo round(($generator->pageLoadTimeEnd()-$start)*1000);
|
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
|
||||||
?></b> ms
|
?></b> ms
|
||||||
|
|
||||||
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br />Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
|
|||||||
+2
-2
@@ -31,7 +31,7 @@ if (!function_exists('mysqli_result')) {
|
|||||||
include("GameEngine/Village.php");
|
include("GameEngine/Village.php");
|
||||||
AccessLogger::logRequest();
|
AccessLogger::logRequest();
|
||||||
|
|
||||||
$start = $generator->pageLoadTimeStart();
|
$start_timer = $generator->pageLoadTimeStart();
|
||||||
if(isset($_GET['newdid'])) {
|
if(isset($_GET['newdid'])) {
|
||||||
$_SESSION['wid'] = $_GET['newdid'];
|
$_SESSION['wid'] = $_GET['newdid'];
|
||||||
header("Location: ".$_SERVER['PHP_SELF']);
|
header("Location: ".$_SERVER['PHP_SELF']);
|
||||||
@@ -256,7 +256,7 @@ $q = "
|
|||||||
<div id="stime">
|
<div id="stime">
|
||||||
<div id="ltime">
|
<div id="ltime">
|
||||||
<div id="ltimeWrap">
|
<div id="ltimeWrap">
|
||||||
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start)*1000);?></b> ms
|
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);?></b> ms
|
||||||
<br/>Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
<br/>Server time: <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user