includes/pageprocess.php
changeset 329 0437a7cf1acc
parent 328 dc838fd61a06
child 335 67bd3121a12e
equal deleted inserted replaced
328:dc838fd61a06 329:0437a7cf1acc
   167       $this->err_access_denied();
   167       $this->err_access_denied();
   168       return false;
   168       return false;
   169     }
   169     }
   170     $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id;
   170     $pathskey = $paths->nslist[ $this->namespace ] . $this->page_id;
   171     $strict_no_headers = false;
   171     $strict_no_headers = false;
       
   172     if ( $this->namespace == 'Admin' && strstr($this->page_id, '/') )
       
   173     {
       
   174       $this->page_id = substr($this->page_id, 0, strpos($this->page_id, '/'));
       
   175       $funcname = "page_{$this->namespace}_{$this->page_id}";
       
   176       if ( function_exists($funcname) )
       
   177       {
       
   178         $this->page_exists = true;
       
   179       }
       
   180     }
   172     if ( isset($paths->pages[$pathskey]) )
   181     if ( isset($paths->pages[$pathskey]) )
   173     {
   182     {
   174       if ( $paths->pages[$pathskey]['special'] == 1 )
   183       if ( $paths->pages[$pathskey]['special'] == 1 )
   175       {
   184       {
   176         $this->send_headers = false;
   185         $this->send_headers = false;