Ejemplo n.º 1
0
 function __construct()
 {
     global $FCCore, $Directory;
     parent::__construct();
     $CachePath = $Directory . DIRECTORY_SEPARATOR . 'Cache' . DIRECTORY_SEPARATOR;
     $CorePath = $Directory . DIRECTORY_SEPARATOR . 'Core' . DIRECTORY_SEPARATOR;
     $ExtPath = $Directory . DIRECTORY_SEPARATOR . 'Extensions' . DIRECTORY_SEPARATOR;
     $this->cache_dir = $CachePath . 'FreedomCore' . DIRECTORY_SEPARATOR;
     $this->languages_dir = $CorePath . 'Languages' . DIRECTORY_SEPARATOR;
     $this->config_dir = $CorePath . 'Configuration' . DIRECTORY_SEPARATOR;
     $this->extensions_dir = $ExtPath;
     $this->load_config = 'Default';
     $this->set_timezone = $FCCore['TimeZone'];
 }
Ejemplo n.º 2
0
 /**
  * Load Configuration FIle
  * Including Configuration file or Returning Debugger Error
  */
 public function loadConfig()
 {
     if (!isset($_ENV['installation_in_progress'])) {
         $Configuration = FreedomCore::getConfigDir() . 'Configuration.php';
         if (file_exists($Configuration)) {
             require_once $Configuration;
         } else {
             System\Debugger::ReportError(1, 2, 'Configuration File');
         }
     }
 }