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>
|
||||
</div>
|
||||
</div>
|
||||
<?php include './includes/footer.php'; ?>
|
||||
<?php $page->print_footer(); ?>
|
||||
</div>
|
||||
|
@ -9,6 +9,7 @@ class Page {
|
||||
$this->conn = $settings->conn;
|
||||
$this->settings = $settings;
|
||||
$this->uuid_name_cache = array();
|
||||
$this->time = microtime(true);
|
||||
}
|
||||
|
||||
function get_query($table) {
|
||||
@ -105,6 +106,12 @@ class Page {
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
<?php include './includes/footer.php'; ?>
|
||||
<?php $page->print_footer(); ?>
|
||||
</div>
|
||||
|
@ -40,5 +40,5 @@ $page = new Page();
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<?php include './includes/footer.php'; ?>
|
||||
<?php $page->print_footer(); ?>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user