コード例 #1
0
 public function __construct()
 {
     // check that site was enabled.
     if (!\Model_Sites::isSiteEnabled()) {
         $request = \Request::forge('error/403')->execute();
         $response = new \Response($request, 403);
         $response->set_status(403);
         $response->send(true);
         unset($request, $response);
         exit;
     }
     // fix changed current language but autoload not reload
     \Lang::load('fslang');
     // call web cron to run tasks (including purge old login history)
     \Library\WebCron::forge()->init();
     // set default theme name
     // @todo [fuelstart][theme] for theme management. you should get default theme setting from db here.
     \Config::load('theme', true);
     $theme_active = \Config::get('theme.active');
     $this->theme_system_name = $theme_active;
     unset($theme_active);
 }