/**
* 得到当前位置数组
* @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 | en.unism.org.cn |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | en.unism.org.cn |
SERVER_PORT | 80 |
SERVER_ADDR | 172.28.35.203 |
REMOTE_PORT | 48502 |
REMOTE_ADDR | 54.198.45.0 |
SERVER_SOFTWARE | nginx/1.22.1 |
GATEWAY_INTERFACE | CGI/1.1 |
REQUEST_SCHEME | http |
SERVER_PROTOCOL | HTTP/1.1 |
DOCUMENT_ROOT | /www/wwwroot/en.unism.org.cn/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /cooperation/35.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//cooperation/35.html |
SCRIPT_FILENAME | /www/wwwroot/en.unism.org.cn/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711642422.5601 |
REQUEST_TIME | 1711642422 |
APP_DEBUG | 1 |
DATABASE_TYPE | mysql |
DATABASE_HOSTNAME | 127.0.0.1 |
DATABASE_DATABASE | en_unism_org_cn |
DATABASE_USERNAME | en_unism_org_cn |
DATABASE_PASSWORD | X5PCth4teHZyX7TM |
DATABASE_HOSTPORT | 3306 |
DATABASE_CHARSET | utf8 |
DATABASE_DEBUG | 1 |
DATABASE_PREFIX | xxl_ |
LANG_DEFAULT_LANG | zh-cn |
QINIU_FUNCTIONS_VERSION | 7.2.10 |