From 8e9672d63555599eac13b504df20877d58ce574b Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 29 Apr 2019 04:50:57 +0900 Subject: [PATCH] Update mobileswitcher.php --- route/mobileswitcher.php | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/route/mobileswitcher.php b/route/mobileswitcher.php index 6e66106..5eeeaed 100644 --- a/route/mobileswitcher.php +++ b/route/mobileswitcher.php @@ -32,34 +32,7 @@ $data = array( "dm" => $dm, ), false), )), + "ua" => get_hashed_text($_SERVER['HTTP_USER_AGENT'], "base64"), ); -/* note: mobileswitcher client example */ -/* -// mobileswitcher -if($_GET['action'] == "mobileswitcher") { - if($_GET['do'] == "logout") { - session_unset(); - session_destroy(); - set_cookie("ck_mb_id", "", 0); - set_cookie("ck_auto", "", 0); - - // go to redirect url - if(!empty($_GET['redirect_url'])) { - header("location: " . $_GET['redirect_url']); - } else { - header("location: /"); - } - } - - // get session value - $_SESSION['dm'] = $_GET['dm']; -} - -// detect mobile -if(!array_key_exists("dm", $_SESSION)) { - header("location: /payman/?route=mobileswitcher&redirect_url=" . urlencode("http://" . $_SERVER['HTTP_HOST'])); -} -*/ - renderView("view_mobileswitcher", $data);