Код |
---|
AddEventHandler("main", "OnBeforeProlog", "MyUserOnline"); function MyUserOnline() { if($GLOBALS["USER"]->IsAuthorized()) CUser::SetLastActivityDate($GLOBALS["USER"]->GetID()); } |
Код |
---|
//online status $db = CUser::GetList($by, $order, array("LAST_ACTIVITY"=>120)); while($dba = $db->Fetch()) echo $dba['ID']."<br>"; |