root/dev/common/admin/admin_status.php @ 398

Revision 398, 0.9 KB (checked in by kovell, 13 years ago)

Upgrades now force admin page to be run. Admin menu has an option to list settings for error reporting.

Line 
1<?php
2require_once('common/admin/admin_menu.php');
3
4$page = new Page('Administration - Troubleshooting');
5$page->setAdmin();
6$qry = new DBQuery(true);
7$qry->execute("SELECT cfg_key, cfg_value FROM kb3_config WHERE cfg_site = '".
8        KB_SITE."' AND cfg_key NOT LIKE 'API_%' AND cfg_key NOT LIKE '%password%'");
9$html = "<h2>Config Settings</h2>";
10$html .= "<table>";
11while($row = $qry->getRow())
12{
13        $html .= "<tr><td>".implode($row, '</td><td>')."</td></tr>";
14}
15$html .= "</table>";
16
17$qry->execute('SHOW TABLES');
18$qry2 = new DBQuery(true);
19//$html .= '<form><textarea class="indexing" name="indexing" cols="60" rows="30" readonly="readonly">';
20$html .= "<h2>Index Settings</h2>";
21        $html .= "<table>";
22while($row = $qry->getRow())
23{
24        $qry2->execute('SHOW INDEXES FROM '.implode($row));
25        while($row2 = $qry2->getRow())
26        {
27                $html .= "<tr><td>".implode($row2, '</td><td>')."</td></tr>";
28        }
29}
30        $html .= "</table>";
31
32$page->setContent($html);
33$page->generate();
34?>
Note: See TracBrowser for help on using the browser.