class EmptyController extends Common{
protected $dao,$fields;
public function initialize()
{
parent::initialize();
}
public function index(){
$catId = intval(input('catId'));
if(!$catId){
throw new \think\exception\HttpException(404);
}
$this->assign('catInfo',db('category')->where('id',$catId)->find());
if(ISPAGE==1){
$info = Db::name(DBNAME)->where('id',$catId)->find();
$this->assign('info',$info);
if($info['template']){
$template = $info['template'];
}else{
$info['template'] = Db::name('category')->where('id',$info['id'])->value('template_show');
USER | www |
HOME | /home/www |
HTTP_CACHE_CONTROL | public, max-age=86400 |
HTTP_HOST | www.scfzw.net |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected]) |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | keep-alive |
HTTP_ACCEPT_ENCODING | gzip, br |
PHP_ADMIN_VALUE | open_basedir=/data/wwwroot/www.scfz.org/public/:/tmp/:/proc/:/data/wwwroot |
REDIRECT_STATUS | 200 |
SERVER_NAME | scfzw.net |
SERVER_PORT | 80 |
SERVER_ADDR | 192.168.0.34 |
REMOTE_PORT | 34016 |
REMOTE_ADDR | 172.104.58.196 |
SERVER_SOFTWARE | nginx/1.16.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /data/wwwroot/www.scfz.org/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /keti/index.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//keti/index.html |
SCRIPT_FILENAME | /data/wwwroot/www.scfz.org/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1729530412.0618 |
REQUEST_TIME | 1729530412 |
MAX_MENU_LENGTH | 3 |
MAX_SUB_MENU_LENGTH | 5 |
MODULE_NAME | keti |
ACTION_NAME | index |
DBNAME | article |
ISPAGE | 1 |