$detail['url'] = '/pages/';
}
if($detail['url'] && isHeaderHttp($detail['url'])){//外链
$detail['url'] = $detail['url'];
}else{//站内链接
if($detail['url'] && !preg_match('/^\//',$detail['url'])){
$detail['url'] = '/'.$detail['url'];
}
$pidInfo = Db::name(self::dbTable())->where(['id'=>$detail['pid']])->field('id,title,url')->find();
if(!$pidInfo){
$pidInfo = $detail;
}
$pid = $pidInfo['id'];
if ( $curUrl==$pidInfo['url'] && !in_array($curUrl,self::specUrlArr())){
if($pid==0 && $detail['url']!='/pages/'){
$detail['url'] = $detail['url'];
USER | www |
HOME | /home/www |
HTTP_ACCEPT_ENCODING | gzip |
HTTP_ACCEPT | */* |
HTTP_HOST | www.scsunland.com |
HTTP_USER_AGENT | Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com) |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | www.scsunland.com |
SERVER_PORT | 443 |
SERVER_ADDR | 172.28.23.201 |
REMOTE_PORT | 40220 |
REMOTE_ADDR | 23.231.76.202 |
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/www.scsunland.com/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | //zb/9/about.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=/zb/9/about.html |
SCRIPT_FILENAME | /www/wwwroot/www.scsunland.com/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1730223175.6842 |
REQUEST_TIME | 1730223175 |
TEMP_HTML_PATH | ./html/ |