Пример #1
0
 /**
  * Execute request
  *
  */
 public function execute()
 {
     // send headers
     foreach ($this->headers as $name => $value) {
         $header = $name . ':' . $value;
         header($header, true);
     }
     if ($this->page_config->PageExists()) {
         echo SJB_System::getPage($this->page_config);
     } else {
         if (SJB_System::doesParentUserPageExist($this->uri)) {
             $uri = SJB_System::getUserPageParentURI($this->uri);
             $_REQUEST['passed_parameters_via_uri'] = substr($this->uri, strlen($uri));
         } else {
             // the 404 error case!
             header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
             // no such page in configuration
             $uri = '/404/';
         }
         $this->page_config = SJB_PageConfig::getPageConfig($uri);
         echo SJB_System::getPage($this->page_config);
     }
 }