Score
0
Watch 604 Star 1.6K Fork 697

CRM8000 / PSIPHPGPL-3.0

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
开源ERP PSI 是一款基于SaaS模式(Software as a Service软件即服务)的企业管理软件。 spread retract

https://psi.butterfly.mopaasapp.com/

  • PHP 74.3%
  • JavaScript 14.8%
  • HTML 10.3%
  • CSS 0.5%
  • Smarty 0.1%
Clone or download
index.php 752 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;
$detect = new Mobile_Detect();
if ($detect->isMobile()) {
if (file_exists("m.html")) {
// 调用React生成的H5页面
echo file_get_contents("m.html");
} else {
echo "PSI移动端没有正确安装";
}
} else {
header('Location: ' . $_root . '/web/');
}
PHP
1
https://gitee.com/crm8000/PSI.git
git@gitee.com:crm8000/PSI.git
crm8000
PSI
PSI
master

Help Search

191139_cd20d5fd_5186603 191143_ebef6f8d_5186603