* @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_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_HOST | www.sincomedlaser.com |
PATH_INFO | |
REDIRECT_STATUS | 200 |
SERVER_NAME | sincoheren.org |
SERVER_PORT | 443 |
SERVER_ADDR | 172.31.95.151 |
REMOTE_PORT | 46510 |
REMOTE_ADDR | 3.88.254.50 |
SERVER_SOFTWARE | nginx/1.22.0 |
GATEWAY_INTERFACE | CGI/1.1 |
HTTPS | on |
REQUEST_SCHEME | https |
SERVER_PROTOCOL | HTTP/2.0 |
DOCUMENT_ROOT | /mnt/wwwroot/sincoheren.org/public |
DOCUMENT_URI | /index.php |
REQUEST_URI | /product/40.html |
SCRIPT_NAME | /index.php |
CONTENT_LENGTH | |
CONTENT_TYPE | |
REQUEST_METHOD | GET |
QUERY_STRING | s=//product/40.html |
SCRIPT_FILENAME | /mnt/wwwroot/sincoheren.org/public/index.php |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711644559.0927 |
REQUEST_TIME | 1711644559 |