mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Print page generation time
This commit is contained in:
parent
598dc950a9
commit
2d7176a06a
2
bans.php
2
bans.php
@ -39,5 +39,5 @@ $page = new Page();
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php include './includes/footer.php'; ?>
|
<?php $page->print_footer(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,6 +9,7 @@ class Page {
|
|||||||
$this->conn = $settings->conn;
|
$this->conn = $settings->conn;
|
||||||
$this->settings = $settings;
|
$this->settings = $settings;
|
||||||
$this->uuid_name_cache = array();
|
$this->uuid_name_cache = array();
|
||||||
|
$this->time = microtime(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_query($table) {
|
function get_query($table) {
|
||||||
@ -105,6 +106,12 @@ class Page {
|
|||||||
</div>
|
</div>
|
||||||
');
|
');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function print_footer() {
|
||||||
|
include './includes/footer.php';
|
||||||
|
$time = microtime(true) - $this->time;
|
||||||
|
echo "<!-- Page generated in $time seconds. -->";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -38,5 +38,5 @@ $page = new Page();
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php include './includes/footer.php'; ?>
|
<?php $page->print_footer(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -40,5 +40,5 @@ $page = new Page();
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php include './includes/footer.php'; ?>
|
<?php $page->print_footer(); ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user