Update mobileswitcher.php
This commit is contained in:
parent
531343afc4
commit
8e9672d635
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user