1
0
Fork 0

front page

This commit is contained in:
Mike Macgirvin 2010-08-03 18:17:42 -07:00
commit 8f7e81a8b3
5 changed files with 21 additions and 91 deletions

View file

@ -8,13 +8,13 @@ function ping_init(&$a) {
xml_status(0);
$r = q("SELECT COUNT(*) AS `total` FROM `item`
WHERE `unseen` = 1 AND `uid` = %d",
WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d",
intval($_SESSION['uid'])
);
$network = $r[0]['total'];
$r = q("SELECT COUNT(*) AS `total` FROM `item`
WHERE `unseen` = 1 AND `uid` = %d AND `type` != 'remote' ",
WHERE `unseen` = 1 AND `visible` = 1 AND `deleted` = 0 AND `uid` = %d AND `type` != 'remote' ",
intval($_SESSION['uid'])
);
$home = $r[0]['total'];