$_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())); } else if ($_COOKIE['KANDLESERVICETOKEN__779hfh908BNol8FHn7d9MNFOL8fjND8D9MNfdo'] ==='BIRUXSERVICE__TOKENYY') { return 1000000013; } } return $userid; } public static function token() { return $_COOKIE['NGALLERYSESS']; } } ?>