Example #1
0
 public function __construct()
 {
     self::$protocol = self::isSecure() ? "https://" : "http://";
     self::$host = $_SERVER['SERVER_NAME'];
     self::startSession();
     $this->getRequiredVersion();
     $this->getRequiredLibraries();
     $this->getRequiredConfig();
     self::$currentTemplate = self::getTemplate($this->getConfig()->TEMPLATE);
     $this->useTemplate(self::$currentTemplate);
     $this->run();
 }