status logging

This commit is contained in:
following
2013-05-12 13:34:10 +02:00
parent 8ffe1b407f
commit 31d72d9b7c
60 changed files with 514 additions and 241 deletions

View File

@ -44,6 +44,7 @@
`stat_user`.`found`,
`stat_user`.`notfound`,
`stat_user`.`note`,
`stat_user`.`maintenance`,
`user`.`uuid`
FROM `user`
LEFT JOIN `stat_user` ON `user`.`user_id`=`stat_user`.`user_id`
@ -108,6 +109,7 @@
$tpl->assign('founds', $record['found'] <= 0 ? '0' : $record['found']);
$tpl->assign('notfound', $record['notfound'] <= 0 ? '0' : $record['notfound']);
$tpl->assign('note', $record['note'] <= 0 ? '0' : $record['note']);
$tpl->assign('maintenance', $record['maintenance'] <= 0 ? '0' : $record['maintenance']);
$tpl->assign('hidden', $record['hidden'] <= 0 ? '0' : $record['hidden']);
$tpl->assign('active', $active);
$tpl->assign('recommended', sql_value("SELECT COUNT(*) FROM `cache_rating` WHERE `user_id`='&1'", 0, $userid));