public static function getCookie() { $cookieLID = isset($_COOKIE['leapID']) ? $_COOKIE['leapID'] : 0; if ($cookieLID > 0) { $token = base64_decode($_COOKIE['leapTk']); $encypass = base64_decode($_COOKIE['leapPass']); $exp = explode("8bCL9xx78A", $encypass); $username = $_COOKIE['leapName']; $password = $exp[0]; $rememberme = 1; //mobile $isMobile = Mobile::getCookie(); Mobile::setMobile($isMobile); //lang $lang = Lang::getCookie(); Lang::setLang($lang); //dbchooser $dbchooser = DbChooser::getCookie(); DbChooser::setDBChooser($dbchooser); $row = array("admin_email" => $username, "admin_password" => $password, "rememberme" => $rememberme); return $row; } return array(); }