mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-12 14:21:03 +00:00
refactor: page generation time considers real time
Because in environments with $_SERVER["REQUEST_TIME_FLOAT"] unavailable the time actually only started after Village.php got loaded (which was AFTER Automation.php kicked in and everything was already DB-loaded), the start timer was moved more towards the top of each template.
This commit is contained in:
+2
-2
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
include_once("GameEngine/Generator.php");
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
@@ -45,8 +47,6 @@ AccessLogger::logRequest();
|
||||
die("Access Denied: You are not Admin!");
|
||||
}else{
|
||||
|
||||
$start_timer = $generator->pageLoadTimeStart();
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user