summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorSimon Rettberg2018-02-09 12:12:31 +0100
committerSimon Rettberg2018-02-09 12:12:31 +0100
commitd57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4 (patch)
treec1030efbdb837f53651272e015a3ab5562f145c8 /index.php
parent[systemstatus] lang-descriptions for permissions (diff)
parent[inc/User] Add locationid 0 to allowed locations in fallback mode (diff)
downloadslx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.tar.gz
slx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.tar.xz
slx-admin-d57ee1cfdd99fb4e44f5ce6d92d6712c30ff0aa4.zip
Merge branch 'master' into permission-manager
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 3322d150..d7018e17 100644
--- a/index.php
+++ b/index.php
@@ -12,6 +12,8 @@ if (CONFIG_SQL_PASS === '%MYSQL_OPENSLX_PASS%') {
require_once('inc/user.inc.php');
+$global_start = microtime(true);
+
/**
* Page class which all module's pages must be extending from
*/
@@ -213,6 +215,13 @@ if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) {
if (defined('CONFIG_FOOTER')) {
Render::addTemplate('footer', array('text' => CONFIG_FOOTER), 'main');
}
+if (CONFIG_DEBUG) {
+ $duration = microtime(true) - $global_start;
+ Render::addTemplate('footer', array('text' =>
+ round($duration, 3) . 's, '
+ . Database::getQueryCount() . ' queries, '
+ . round(Database::getQueryTime(), 3) . 's query time total'), 'main');
+}
Render::addTemplate('tm-callback-trigger', array(), 'main');