Example #1
0
 private function setSetting()
 {
     ini_set('display_errors', $this->currentMode->phpSettings->display_errors);
     ini_set('log_errors ', 1);
     if ($this->currentMode->phpSettings->display_errors) {
         ini_set("error_reporting", E_ALL ^ E_NOTICE);
     }
     define("DB_USER", $this->currentMode->db->username);
     define("DB_HOST", $this->currentMode->db->host);
     define("DB_PASS", $this->currentMode->db->password);
     define("DB_SCHEMA", $this->currentMode->db->schema);
     define("DISPLAY_EXCEPTIONS", $this->currentMode->frontController->displayExceptions);
     define("DISPLAY_MYSQL_ERRORS", $this->currentMode->db->mysqlError);
     self::$fb_app_id = $this->currentMode->fb->app_id;
 }