add diagnostics to admin.php
authorKonrad Rosenbaum <Konrad.Rosenbaum@peergroup.com>
Thu, 10 Mar 2016 20:48:07 +0000 (21:48 +0100)
committerKonrad Rosenbaum <Konrad.Rosenbaum@peergroup.com>
Thu, 10 Mar 2016 20:48:07 +0000 (21:48 +0100)
pack
www/admin.php

diff --git a/pack b/pack
index 25d6ab9..3bd32ee 160000 (submodule)
--- a/pack
+++ b/pack
@@ -1 +1 @@
-Subproject commit 25d6ab9bec2a94792a63a097dc86911484d1db7c
+Subproject commit 3bd32ee1471e362af22682c72f562a1bfa761581
index 40dbc37..923588c 100644 (file)
@@ -55,7 +55,9 @@ Database exists and is usable.<p>
 
 <?php
 }else{
-       //print("cud ".($db->canUseDb(false)?"t":"f")." ht ".($db->hasTable("config")?"yo":"na")." v ".$db->getConfig(WobSchema::configVersionRow())."<p>\n");
+       print("Current Status:<p><ul><li>Connected to DB: ".($db->isConnected()?"yes":"no")." <li>can use/upgrade current DB Schema: ".($db->canUseDb(false)?"yes":"no"));
+       print(" <li>Config Table exists: ".($db->hasTable("config")?"yes":"no")." <li>DB Schema version=".$db->getConfig(WobSchema::configVersionRow()));
+       print(" <li>DB name: ".$db->dbName()." <li>config table Name: ".$db->tableName("config")."</ul><p>\n");
        $cversion=$db->getConfig(WobSchema::configVersionRow());
        $xversion=$db->needVersion();
        if($db->canUseDb(false) && substr($cversion,0,3)=="01."){