예제 #1
0
 /**
  * This Method Is Used To Initiate Loading Order Of Specified Components
  */
 private static function LoadComponents()
 {
     $Components = ['Classes'];
     foreach ($Components as $Component) {
         Bootstrap::LoadOrder($Component);
     }
 }
예제 #2
0
파일: Core.php 프로젝트: darki73/FreedomNet
<?php

require_once 'Core/Classes/Bootstrap.Class.php';
use Core\Classes\Bootstrap;
use Core\Classes\ErrorHandler;
use Core\Libraries\FreedomCore\System\Manager;
use Core\Libraries\FreedomCore\System\Session;
use Core\Extensions\User;
use Core\Extensions\Account;
if (isset($_ENV['installation_in_progress'])) {
    Bootstrap::Initialize(false);
} else {
    Bootstrap::Initialize();
    $Session = new Session();
    Manager::LoadExtension('DatabaseManager');
    $User = Manager::LoadExtension('User', $Smarty, true);
    $Account = Manager::LoadExtension('Account', $Smarty, true);
    $Website = Manager::LoadExtension('Website', $Smarty, true);
}
new ErrorHandler($Smarty);