Update mobileswitcher.php
This commit is contained in:
parent
4626549730
commit
5c9d505728
|
@ -1,6 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* @file mobileswitcher.php
|
||||||
|
* @date 2019-04-29
|
||||||
|
* @author Go Namhyeon <gnh1201@gmail.com>
|
||||||
|
* @brief mobile device switcher
|
||||||
|
*/
|
||||||
|
|
||||||
loadHelper("mobiletool");
|
loadHelper("mobiletool");
|
||||||
|
|
||||||
|
$do = get_requested_value("do");
|
||||||
$from = get_requested_value("from");
|
$from = get_requested_value("from");
|
||||||
$redirect_url = get_requested_value("redirect_url");
|
$redirect_url = get_requested_value("redirect_url");
|
||||||
$dm = detect_mobile();
|
$dm = detect_mobile();
|
||||||
|
@ -12,11 +20,17 @@ if($from == "pc") {
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = array(
|
$data = array(
|
||||||
|
"action" => $action,
|
||||||
"from" => $from,
|
"from" => $from,
|
||||||
"dm" => $dm,
|
"dm" => $dm,
|
||||||
"redirect_url" => get_final_link($redirect_url, array(
|
"redirect_url" => get_final_link($redirect_url, array(
|
||||||
"action" => "mobileswitcher",
|
"action" => "mobileswitcher",
|
||||||
"dm" => $dm,
|
"dm" => $dm,
|
||||||
|
"do" => $do,
|
||||||
|
"redirect_url" => get_final_link($redirect_url, array(
|
||||||
|
"action" => "mobileswitcher",
|
||||||
|
"dm" => $dm,
|
||||||
|
), false),
|
||||||
)),
|
)),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user