$cateid=input('param.cateid',0);
$id=input('param.id',0);
if(!$cateid){
$cateid = CategoryModel::getCateidByUrl($cateurl);
}
if(!$cateid){$this->redirect('/');}
$findCate = CategoryModel::getCategoryById($cateid);
$pid=CategoryModel::getTopPid($findCate['id']);//获取顶级分类
if($findCate['pid']){
$parentCate = CategoryModel::getCategoryById($findCate['pid']);
}
if($findCate['type']==1){//单页内容
$findCate = $this->hasChild($findCate);
$lists = Db::name($this->db_page)->where(array('status'=>1,'cate_id'=>$findCate['id']))->orderRaw('CAST(sort as SIGNED) asc,create_time asc')->find();
if($lists) $lists = NewsModel::dealLang($lists);
$table = $this->db_page;
PHPSESSID | j74noi7h1r97cfsge376gjjplf |
acw_tc | 2760820617262510056111748e145ede10dd575a47cc01285a822196b2a43b |
USER | www |
HOME | /home/www |
HTTP_X5_UUID | be0647b1a15f61e652f403bdfd87340a |
HTTP_X_SINFO | on |
HTTP_X_FORWARDED_PROTO | https |
HTTP_WL_PROXY_CLIENT_IP | 170.130.206.2 |
HTTP_WEB_SERVER_TYPE | nginx |
HTTP_X_CLIENT_IP | 170.130.206.2 |
HTTP_X_TRUE_IP | 170.130.206.2 |
HTTP_X_REAL_IP | 170.130.206.2 |
HTTP_EAGLEEYE_RPCID | 0.1 |
HTTP_COOKIE | PHPSESSID=j74noi7h1r97cfsge376gjjplf; acw_tc=2760820617262510056111748e145ede10dd575a47cc01285a822196b2a43b |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_EAGLEEYE_TRACEID | 2760820117262520258743152e2d30 |
HTTP_X_FORWARDED_CLUSTER | waf, |
HTTP_X_FORWARDED_FOR | 170.130.206.2 |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
HTTP_HOST | www.befar.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.befar.com |
SERVER_PORT | 443 |
SERVER_ADDR | 192.168.254.2 |
REMOTE_PORT | 56682 |
REMOTE_ADDR | 39.96.130.1 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/472.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/news/472.html |
SCRIPT_FILENAME | /www/wwwroot/cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1726252025.9055 |
REQUEST_TIME | 1726252025 |
TEMP_HTML_PATH | ./html/ |