// | Author: liu21st
// +----------------------------------------------------------------------
$lang = getLang();//当前语言
//pc端与移动端跳转
$ism = '';
$url = request()->url(true);
$siteLang = cache('siteLang')[$lang];
if($siteLang['tpl'] != $siteLang['mtpl']){
if(request()->isMobile() && request()->isGet()){
$ism = '-m';
if(request()->url() == '/'){
header('Location:'.$url.'index-m.html');
die();
}elseif(!preg_match('/-m.html/',$url)){
$go = str_replace('.html','-m.html',$url);
header('Location:'.$go);
| s | /jyln-langja.html | 
| PHPSESSID | ech14tf9ts1kkbfk29rdgrhncb | 
| lang | def | 
| USER | www | 
| HOME | /home/www | 
| HTTP_COOKIE | PHPSESSID=ech14tf9ts1kkbfk29rdgrhncb; lang=def | 
| HTTP_ACCEPT_ENCODING | gzip | 
| HTTP_ACCEPT | */* | 
| HTTP_HOST | www.sctpcb.net | 
| HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) | 
| PATH_INFO | |
| REDIRECT_STATUS | 200 | 
| SERVER_NAME | www.sctpcb.net | 
| SERVER_PORT | 443 | 
| SERVER_ADDR | 10.1.24.8 | 
| REMOTE_PORT | 51822 | 
| REMOTE_ADDR | 209.73.153.10 | 
| SERVER_SOFTWARE | nginx/1.24.0 | 
| GATEWAY_INTERFACE | CGI/1.1 | 
| HTTPS | on | 
| REQUEST_SCHEME | https | 
| SERVER_PROTOCOL | HTTP/1.1 | 
| DOCUMENT_ROOT | /www/wwwroot/www.sctpcb.net | 
| DOCUMENT_URI | /index.php | 
| REQUEST_URI | /jyln-langja.html | 
| SCRIPT_NAME | /index.php | 
| CONTENT_LENGTH | |
| CONTENT_TYPE | |
| REQUEST_METHOD | GET | 
| QUERY_STRING | s=/jyln-langja.html | 
| SCRIPT_FILENAME | /www/wwwroot/www.sctpcb.net/index.php | 
| FCGI_ROLE | RESPONDER | 
| PHP_SELF | /index.php | 
| REQUEST_TIME_FLOAT | 1761852603.8997 | 
| REQUEST_TIME | 1761852603 |