//获得栏目模板信息
$articleCate= DB::name('DataArticleCate')->where(["id" => $id])->find(); //分类信息
$this->assign('catInfo',$articleCate); //当前分类信息
if(empty($articleCate['link_name'])){
$articleCate['link_name'] = "List";
}
$this->assign('linkName',$articleCate['link_name']); //当前分类的静态名称
if($articleCate['parent_id'] == 0 && empty($articleCate['content_template_id'])){
//如果是顶级栏目
$catIds = Db::name('DataArticleCate')->where(['parent_id'=>$id])->column('id');
if(empty($catIds[0])){
dump("此分未设置内容模板或下级分类!");die();
}
$childCate= DB::name('DataArticleCate')->where(["id" => $catIds[0]])->find(); //第一个分类信息
//获得指定栏目所在的所有同级栏目
$this->assign('catTreeList',$GLOBALS['function']->getCatList($catIds[0]));
_wtsexp | 1728225228 |
_wtscpk | 5644145150 |
_wtsuid | ee392bcb-ae71-4bbf-911b-7363eda8930b |
_wtspurl | /5.php |
ssid | 3c49cf4df966656e8155ddf6e61de6bb |
lang | zh-cn |
lang | cn |
USER | jinlin |
HOME | /home/wwwroot/jinlin |
SCRIPT_NAME | /index.php |
REQUEST_URI | /site-List-20.html |
QUERY_STRING | s=/site-List-20.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | s=/site-List-20.html |
REDIRECT_URL | /site-List-20.html |
REMOTE_PORT | 45346 |
SCRIPT_FILENAME | /home/wwwroot/jinlin/wwwroot/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/jinlin/wwwroot |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /home/wwwroot/jinlin/wwwroot |
REMOTE_ADDR | 107.158.249.130 |
SERVER_PORT | 80 |
SERVER_ADDR | 127.0.0.1 |
SERVER_NAME | www.ling-jiang.com |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_COOKIE | _wtsexp=1728225228; _wtscpk=5644145150; _wtsuid=ee392bcb-ae71-4bbf-911b-7363eda8930b; _wtspurl=/5.php; ssid=3c49cf4df966656e8155ddf6e61de6bb; lang=zh-cn |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | CCBot/2.0 (https://commoncrawl.org/faq/) |
HTTP_CONNECTION | close |
HTTP_HOST | www.ling-jiang.com |
HTTP_X_REAL_IP | 107.158.249.130 |
HTTP_X_FORWARDED_FOR | 107.158.249.130 |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1728748990.6657 |
REQUEST_TIME | 1728748990 |