Gazelle/sections/ajax/stats.php

8 lines
268 B
PHP
Raw Normal View History

2011-03-28 14:21:28 +00:00
<?
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);
}
?>