$_COOKIE['NGALLERYSESS'])); if ($userInfo && count($userInfo) > 0) { $userid = $userInfo[0]['user_id']; //DB::query('UPDATE users SET online=:timed WHERE id=:id', array(':id'=>$userid, ':timed'=>time())); } } return (int)$userid; } public static function token() { return $_COOKIE['NGALLERYSESS']; } } ?>