Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $latestSessionOnlineTime=(int)$this->getSessionVar("lastseen");
- if((time()-$latestSessionOnlineTime)>20)
- {
- for($i=0;$i<4;$i++)
- {
- if($joinedRooms[$i]==1)
- $this->joinRoom($i,0);
- }
- $this->setSessionVar("lastseen",time());
- }
Add Comment
Please, Sign In to add comment