diff options
author | Thomas Willingham <founder@kakste.com> | 2013-02-02 03:36:25 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-02-02 03:36:25 +0000 |
commit | 21b04c45822546a61b93d37f78b5d0cab21b0341 (patch) | |
tree | 579726dc3a3312e4238dbedfa386527197f10e94 /mod/admin.php | |
parent | 344b8593a818c9ea1d07a365b8a2496d699b1620 (diff) | |
download | volse-hubzilla-21b04c45822546a61b93d37f78b5d0cab21b0341.tar.gz volse-hubzilla-21b04c45822546a61b93d37f78b5d0cab21b0341.tar.bz2 volse-hubzilla-21b04c45822546a61b93d37f78b5d0cab21b0341.zip |
Fix admin summary.
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/mod/admin.php b/mod/admin.php index 13ecf7eef..93f003bf0 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -166,18 +166,22 @@ function admin_page_summary(&$a) { // list total user accounts, expirations etc. + $r = q("SELECT COUNT(account_id) as total FROM `account`"); + $users = $r[0]['total']; + $r = q("SELECT COUNT(id) as `count` FROM `register`"); $pending = $r[0]['count']; - - $r = q("select count(*) as total from deliverq where 1"); - $deliverq = (($r) ? $r[0]['total'] : 0); - $r = q("select count(*) as total from queue where 1"); +// We don't seem to do anything like this anymore. Comment out just in case. +// $r = q("select count(*) as total from deliverq where 1"); +// $deliverq = (($r) ? $r[0]['total'] : 0); + + $r = q("select count(*) as total from outq"); $queue = (($r) ? $r[0]['total'] : 0); // We can do better, but this is a quick queue status - - $queues = array( 'label' => t('Message queues'), 'deliverq' => $deliverq, 'queue' => $queue ); + + $queues = array( 'label' => t('Message queues'), 'queue' => $queue ); $t = get_markup_template("admin_summary.tpl"); |