2 Star 12 Fork 9

耀盟同城分类信息系统/耀盟同城分类信息Beta V3.0 uniapp+web端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.php 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
耀盟同城分类信息系统 提交于 2023-09-25 12:40 . 23-09-25
<?php
/**
* YmCms 优盟多元化内容管理系统 v1 [ YMPHP framework ]
*
* @copyright Copyright (c) 2021 - 2023, You Meng, Inc.
* @License This is NOT a freeware, use is subject to license terms
* @link https://www.youmengcms.com
* @Author Xiao Yao <790213952@qq.com>
*/
define('APPTYPEID', 0);
define('CURSCRIPT', '');
global $cfg_visitState;
global $cfg_sitePageGray;
require './system/common.php';
//域名检测
$httpHost = $_SERVER['HTTP_HOST']; //来访域名
//获取访问详情 兼容win
$reqUri = $_SERVER["HTTP_X_REWRITE_URL"];
if($reqUri == null){
$reqUri = $_SERVER["HTTP_X_ORIGINAL_URL"];
if($reqUri == null){
$reqUri = $_SERVER["REQUEST_URI"];
}
}
$isMobile = isMobile();
if ($_GET['m'] == ''){
$module = 'tongcheng';
}
$mod = $module ? $module : $_GET['m'];
//微信端隐藏域名
if(C::isWeixin()) {
echo '<div style="position: fixed; left: 0; top: 0; right: 0; z-index: -1; height: 2rem; background-image: -webkit-linear-gradient( -90deg, rgb(255,255,255) 25%, rgba(255,255,255,0) 100%);"></div>';
}
if($cfg_sitePageGray == 1){
$pageGrayCss = '<style media="screen">html{filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: grayscale(100%); -o-filter: grayscale(100%); filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); -webkit-filter: grayscale(1);}</style>';
echo $pageGrayCss;
}
//关闭PC端
if($cfg_visitState == 0){
include template("common/mobile");
}else{
include template("tongcheng/index");
// require YMCMS_ROOT.'system/module/base.php';
// require YMCMS_ROOT.'system/module/'.$mod.'/base.php';
}
?>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/youmengcms/ymtc.git
git@gitee.com:youmengcms/ymtc.git
youmengcms
ymtc
耀盟同城分类信息Beta V3.0 uniapp+web端
main

搜索帮助