Gazelle/sections/ajax/stats.php
2011-03-28 15:21:28 +01:00

8 lines
268 B
PHP

<?
if(in_array($_GET['stat'], array('inbox', 'uploads', 'bookmarks', 'notifications', 'subscriptions', 'comments', 'friends'))) {
$Cache->begin_transaction('stats_links');
$Cache->update_row(false, array($_GET['stat'] => '+1'));
$Cache->commit_transaction(0);
}
?>