}
//指定栏目信息以及二级与三级栏目
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/', '
', $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 |
PHPSESSID | 0c0adcb90e18a63ca119adc552f167b3 |
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 | 42758 |
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 | 170.130.200.174 |
SERVER_PORT | 80 |
SERVER_ADDR | 172.19.137.82 |
SERVER_NAME | best-carrier.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | Apache Server at best-carrier.com Port 80 |
LD_LIBRARY_PATH | /www/server/apache/lib |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin |
HTTP_COOKIE | PHPSESSID=0c0adcb90e18a63ca119adc552f167b3 |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | best-carrier.com |
HTTP_USER_AGENT | Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html) |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1734784760.644 |
REQUEST_TIME | 1734784760 |