mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Set init time at earliest time possible
This commit is contained in:
parent
4be9a62120
commit
2b511094d2
@ -3,6 +3,7 @@ require_once './inc/init.php';
|
|||||||
|
|
||||||
class Page {
|
class Page {
|
||||||
public function __construct($name, $header = true, $connect = true) {
|
public function __construct($name, $header = true, $connect = true) {
|
||||||
|
$this->time = microtime(true);
|
||||||
ini_set('default_charset', 'utf-8');
|
ini_set('default_charset', 'utf-8');
|
||||||
require_once './inc/settings.php';
|
require_once './inc/settings.php';
|
||||||
if (class_exists("EnvSettings")) {
|
if (class_exists("EnvSettings")) {
|
||||||
@ -23,7 +24,6 @@ class Page {
|
|||||||
$this->lang = $this->defaultlang;
|
$this->lang = $this->defaultlang;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->time = microtime(true);
|
|
||||||
if ($header) {
|
if ($header) {
|
||||||
require_once './inc/header.php';
|
require_once './inc/header.php';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user