}
//指定栏目信息以及二级与三级栏目
public function getCate($id,$page=1){
if(!empty(config('app.cateJump')[$id])){$id=config('app.cateJump')[$id];}
$cate=Db::table($this->prefix.'_category')->where('status','>',0)->find($id);
if(empty($cate)){$this->error(config('app.lang')['empty'],'',0);}
//考虑应用中可能同时要列表与内容所以只要有body_id都取BODY内容
if(!empty($cate['body_id'])){
$body=Db::table($this->prefix.'_body')->find($cate['body_id']);
$cate['body']=htmlspecialchars_decode($body['body']);
}else{
$cate['body']='';
}
if(!empty($cate['description'])){
$cate['description']=preg_replace('/\r\n|\\n/', '<br/>', $cate['description']);
}
if(!empty($cate['confs_id'])){$cate['confs']=$this->getConfsById($cate['confs_id']);}
$cate['cate']=$this->getCateData('getTop',$id);
if(empty($cate['litpic'])){
en/hope-63_html |
USER | www |
HOME | /home/www |
SCRIPT_NAME | /index.php |
REQUEST_URI | /en/hope-63.html |
QUERY_STRING | en/hope-63.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | en/hope-63.html |
REDIRECT_URL | /en/hope-63.html |
REMOTE_PORT | 50864 |
SCRIPT_FILENAME | /www/wwwroot/bestcarrier/public/index.php |
SERVER_ADMIN | webmaster@example.com |
CONTEXT_DOCUMENT_ROOT | /www/wwwroot/bestcarrier/public |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /www/wwwroot/bestcarrier/public |
REMOTE_ADDR | 196.63.148.2 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.137.82 |
SERVER_NAME | www.15006719999.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | <address>Apache Server at www.15006719999.com Port 80</address> |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_X_MICROSOFTAJAX | Delta=true |
HTTP_USER_AGENT | Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0) |
CONTENT_TYPE | application/x-www-form-urlencoded; charset=utf-8 |
HTTP_CACHE_CONTROL | no-cache |
HTTP_ACCEPT_LANGUAGE | en-US,en;q=0.5 |
HTTP_ACCEPT_ENCODING | gzip, deflate |
HTTP_ACCEPT | text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
HTTP_X_APPLE_STORE_FRONT | 143444,12 |
HTTP_X_APPLE_TZ | 0 |
HTTP_REFERER | https://www.baidu.com/search/spider.htm |
HTTP_HOST | www.15006719999.com |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1733301561.3125 |
REQUEST_TIME | 1733301561 |