Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function is_on($id, $debug=false)
- {
- $now=time();
- $user=$this->get_user($id);
- if ($debug==true) {return $id;} else {
- $lastseen=$user['lastseen'];
- $como=$now-$lastseen;
- if ($como<=300) {return TRUE;} else {return FALSE;}}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement