Files
archived-web-master/fetch/stats.php
Hannes Magnusson a4d7dc0c06 - Nuke few include_ones() and magic include_paths
- Use db_connect() rather then connect+select database 'manually'
- Add header titles
2009-04-24 06:58:26 +00:00

14 lines
431 B
PHP

<?php
// $Id$
include_once '../include/functions.inc';
require_token();
if (db_connect(FALSE)) {
echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.note"), "\n";
echo db_get_one("SELECT COUNT(*) FROM phphosts.hosts"), "\n";
echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.bugdb"), "\n";
echo db_get_one("SELECT COUNT(*) FROM phpmasterdb.bugdb WHERE status IN ('Open', 'Assigned', 'Analyzed', 'Critical')"), "\n";
}