1 Star 0 Fork 871

salyfan / PSI

forked from CRM8000 / PSI 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
index.php 758 Bytes
Copy Edit Raw Blame History
<?php
require "Mobile_Detect.php";
$_isCGI = (0 === strpos(PHP_SAPI, 'cgi') || false !== strpos(PHP_SAPI, 'fcgi')) ? 1 : 0;
if ($_isCGI) {
// CGI/FASTCGI模式下
$_temp = explode('.php', $_SERVER['PHP_SELF']);
$_phpFile = rtrim(str_replace($_SERVER['HTTP_HOST'], '', $_temp[0] . '.php'), '/');
} else {
$_phpFile = rtrim($_SERVER['SCRIPT_NAME'], '/');
}
$_root = rtrim(dirname($_phpFile), '/');
$_root = ($_root == '/' || $_root == '\\') ? '' : $_root;
// 2018.1.1 屏蔽掉移动端自动跳转到H5页面
// $detect = new Mobile_Detect();
// if ($detect->isMobile()) {
// header('Location: ' . $_root . '/web/Mobile');
// } else {
// header('Location: ' . $_root . '/web/');
// }
header('Location: ' . $_root . '/web/');
PHP
1
https://gitee.com/saly/PSI.git
git@gitee.com:saly/PSI.git
saly
PSI
PSI
master

Search