X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=inc%2Feventz%2Faccesslist.inc;h=d02236b034904c0a710cdc9c67061c8dfae95bf8;hb=673e23209e2e3b9782c037e70156a1a20154a5b9;hp=fce4b7ada3e9279629ab7757889cbd509638e236;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/eventz/accesslist.inc b/inc/eventz/accesslist.inc index fce4b7a..d02236b 100644 --- a/inc/eventz/accesslist.inc +++ b/inc/eventz/accesslist.inc @@ -1,28 +1,21 @@ query("update node_access set node_permission='' where node_id=$node_id and node_permission='access'"); + $db->query("update node_access set last_visit=NOW(),node_permission='' where node_id=$node_id and node_permission='access'"); foreach ($access as $acc) { $set=$db->query("select user_id from users where login='$acc'"); $set->next(); if ($set->getString('user_id')) { - $q="update node_access set node_permission='access' where node_id=$node_id and user_id='".$set->getString('user_id')."'"; + $q="update node_access set last_visit='',node_permission='access' where node_id=$node_id and user_id='".$set->getString('user_id')."'"; echo $q; $changed=$db->update($q); if (!$changed) { @@ -34,4 +27,8 @@ else { $error .= "$acc does not exist..."; } } } -?> \ No newline at end of file +?> + + + +