diff --git a/src/lib.php b/src/lib.php index 805c780..c94785f 100644 --- a/src/lib.php +++ b/src/lib.php @@ -2,9 +2,10 @@ require_once __DIR__ . '/database.php'; -define('VERSION', '1.2.3'); +define('VERSION', '1.2.5'); define('BUILD', 'Reawaken'); define('START', microtime(true)); +define('DEBUG', true); /** * Open or get SQLite database connection. @@ -211,7 +212,8 @@ function display($content, $title, $topnav=true, $leftnav=true, $rightnav=true, "totaltime" => round(getmicrotime() - START, 4), "numqueries" => db()->count, "version" => VERSION, - "build" => BUILD + "build" => BUILD, + "querylog" => DEBUG ? '
'.print_r(db()->log, true).'
' : '' ]); echo "\n" . $page; diff --git a/templates/primary.php b/templates/primary.php index f9dfad1..67e6fb2 100644 --- a/templates/primary.php +++ b/templates/primary.php @@ -38,6 +38,8 @@ $template = <<{{totaltime}} Seconds, {{numqueries}} Queries
Version {{version}} {{build}}
+ + {{querylog}}