...
|
...
|
@@ -71,7 +71,7 @@ class Mobile |
|
|
//
|
|
|
// $continueList = array('www', 'list', 'search');
|
|
|
// $hostSplit = explode('.', $host);
|
|
|
return 'm.yohobuy.com';
|
|
|
return 'm.yohobuy.com' . $uri;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -112,10 +112,9 @@ class Mobile |
|
|
public static function isGoMobile()
|
|
|
{
|
|
|
if (empty($_COOKIE['m2w']) && self::isMobile()) {
|
|
|
$newUrl = self::getNewUrl();
|
|
|
Header("HTTP/1.1 301 Moved Permanently");
|
|
|
header('Location:http://'.$newUrl);
|
|
|
exit;
|
|
|
header("HTTP/1.1 301 Moved Permanently");
|
|
|
header('Location:http://'.self::getNewUrl());
|
|
|
exit();
|
|
|
}
|
|
|
return true;
|
|
|
}
|
...
|
...
|
|