Gazelle/sections/userhistory/catchup_collages.php
2011-10-30 08:00:11 +00:00

14 lines
401 B
PHP

<?
authorize();
if ($_REQUEST['collageid'] && is_number($_REQUEST['collageid'])) {
$Where = ' AND CollageID = '.$_REQUEST['collageid'];
} else {
$Where = '';
}
$DB->query("UPDATE users_collage_subs SET LastVisit = NOW() WHERE UserID = ".$LoggedUser['ID'].$Where);
$Cache->delete_value('collage_subs_user_new_'.$LoggedUser['ID']);
header('Location: userhistory.php?action=subscribed_collages');
?>