Skip to content

Commit

Permalink
Small fix to calcualted/servertime (#548)
Browse files Browse the repository at this point in the history
* Calcuated & server time

* Update plus1.php

* Update rules.php

* Update menu.tpl

* Update maintenance.php

* Update version.php

* Update dorf3.php

* Update karte.php

* Update berichte.php

* Update dorf2.php

* Update plus.php

* Update warsim.php

* Update support.php

* Update statistiken.php

* Update nachrichten.php

* Update spieler.php

* Update crop_finder.php

* Update winner.php

* Update a2b2.php
  • Loading branch information
phaze1G authored Jun 13, 2018
1 parent 5bc1633 commit a799afd
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 56 deletions.
10 changes: 5 additions & 5 deletions Templates/menu.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ div.c1 {text-align: center}
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
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>
<?php echo CALCULATED_IN;?> <b><?php
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
?></b> ms
<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
6 changes: 4 additions & 2 deletions a2b2.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000); ?></b> ms
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions berichte.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>

<div id="ce"></div>
</body>
</html>
</html>
12 changes: 3 additions & 9 deletions crop_finder.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,17 +226,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php

echo round(($generator->pageLoadTimeEnd() - $start_timer) * 1000);

<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions dorf2.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions dorf3.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions karte.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
<div id="ce"></div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions logout.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
<div id="ce"></div>
</body>
</html>
</html>
7 changes: 5 additions & 2 deletions maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,11 @@ function mysqli_result($res, $row, $field = 0) {
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
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>
<?php echo CALCULATED_IN;?> <b><?php
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
?></b> ms

<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions nachrichten.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
<div id="ce"></div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>

<div id="ce"></div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions plus1.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>

<div id="ce"></div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
<div id="ce"></div>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions spieler.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ function med_showDescription(coords, desc_string){
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions statistiken.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
echo round(($generator->pageLoadTimeEnd()-$__start)*1000);
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions support.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ function chkFormular () {
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions warsim.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
Calculated in <b><?php
<?php echo 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 /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down
7 changes: 5 additions & 2 deletions winner.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,11 @@ function mysqli_result($res, $row, $field = 0) {
<div id="stime">
<div id="ltime">
<div id="ltimeWrap">
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>
<?php echo CALCULATED_IN;?> <b><?php
echo round(($generator->pageLoadTimeEnd()-$start_timer)*1000);
?></b> ms

<br /><?php echo SEVER_TIME;?> <span id="tp1" class="b"><?php echo date('H:i:s'); ?></span>
</div>
</div>
</div>
Expand Down

0 comments on commit a799afd

Please sign in to comment.