mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 17:59:22 +02:00
* new configurable: footer_show_load_time
This commit is contained in:
parent
fc3bd432ef
commit
14cb37725e
@ -262,6 +262,7 @@ $config = array(
|
|||||||
'experiencetable_columns' => 5, // how many columns to display in experience table page. * experiencetable_rows, 5 = 500 (will show up to 500 level)
|
'experiencetable_columns' => 5, // how many columns to display in experience table page. * experiencetable_rows, 5 = 500 (will show up to 500 level)
|
||||||
'experiencetable_rows' => 100, // till how many levels in one column
|
'experiencetable_rows' => 100, // till how many levels in one column
|
||||||
'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
|
'date_timezone' => 'Europe/Berlin', // more info at http://php.net/manual/en/timezones.php
|
||||||
|
'footer_show_load_time' => true, // display load time of the page in the footer
|
||||||
|
|
||||||
'monsters' => array(),
|
'monsters' => array(),
|
||||||
'npc' => array()
|
'npc' => array()
|
||||||
|
@ -514,8 +514,9 @@ function template_footer()
|
|||||||
if($config['views_counter'])
|
if($config['views_counter'])
|
||||||
$ret .= '<br/>Page has been viewed ' . $views_counter . ' times.';
|
$ret .= '<br/>Page has been viewed ' . $views_counter . ' times.';
|
||||||
|
|
||||||
if(admin())
|
if(config('footer_show_load_time')) {
|
||||||
$ret .= '<br/>Load time: ' . round(microtime(true) - START_TIME, 4) . ' seconds.';
|
$ret .= '<br/>Load time: ' . round(microtime(true) - START_TIME, 4) . ' seconds.';
|
||||||
|
}
|
||||||
|
|
||||||
if(isset($config['footer'][0]))
|
if(isset($config['footer'][0]))
|
||||||
$ret .= '<br/>' . $config['footer'];
|
$ret .= '<br/>' . $config['footer'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user