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.ytdmtj.cn |
REDIRECT_STATUS | 200 |
PATH_INFO | |
HTTP_HOST | www.ytdmtj.cn |
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.ytdmtj.cn/ |
memes | ?road=www.ytdmtj.cn/&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 |