/**
* 得到当前位置数组
* @param int
* @return array
*/
public function get_pos($myid, $pid=0){
$this->arrt = null;
$this->recur_n($this->arr, $myid, $pid);
return array_reverse($this->arrt);
}
private function recur_n($arr, $tid, $pid) {
foreach ($arr as $v) {
if ($v['id'] == $tid) {
$this->arrt[] = $v;
if ($v['pid'] != $pid) $this->recur_n($arr, $v['pid'], $pid);
}
}
USER | www |
HOME | /home/www |
HTTP_HOST | xiangxiangli.com.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | xiangxiangli.com.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.28.35.203 |
REMOTE_PORT | 49976 |
REMOTE_ADDR | 3.237.51.235 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/xiangxiangli.com.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /news/66.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//news/66.html |
SCRIPT_FILENAME | /www/wwwroot/xiangxiangli.com.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711616659.0142 |
REQUEST_TIME | 1711616659 |