예제 #1
0
 /**
  * default constructor
  * initializes the page search dir, page name and GET & POST variables
  * must be called explicitely by the inheriting classes
  */
 function __construct()
 {
     $this->start_time = microtime();
     $this->pageSearchDir = "{$this->home}/Pages";
     SALog::open();
     SAUrl::setApplicationObject($this);
     SAPageHandler::setApplicationObject($this);
     SARequest::setApplicationObject($this);
     SARequest::init();
     SARequest::detectPageName();
     SARequest::detectGETParameters();
     $this->gp = $_GET + $_POST;
     session_name(SAE_SESSION_NAME);
     session_start();
     SALog::log("application initialized successfully", SA_LOG_NOTICE);
 }
예제 #2
0
 /**
  * default constructor
  * initializes the page search dir, page name and GET & POST variables
  * must be called explicitely by the inheriting classes
  */
 function __construct()
 {
     ob_start();
     $this->start_time = microtime();
     $this->pageSearchDir = "{$this->home}/Pages";
     SALog::open();
     SAUrl::setApplicationObject($this);
     SAPageHandler::setApplicationObject($this);
     SARequest::setApplicationObject($this);
     SARequest::init();
     SARequest::detectPageName();
     SARequest::detectGETParameters();
     $this->gp = $_GET + $_POST;
     session_name(SA_SESSION_NAME);
     session_start();
     try {
         SARequest::checkValidity();
     } catch (URLManipulationException $e) {
         SALog::log($e->getMessage(), SA_LOG_ERROR);
         $this->forward($this->errorPageName);
     } catch (Exception $e) {
         $this->resign($e->getMessage(), 1);
     }
     SALog::log("application initialized successfully", SA_LOG_NOTICE);
 }