Example #1
0
 function translate($TranslationFile)
 {
     global $FreedomCore;
     $Language = str_replace('.language', '', $FreedomCore->loadLanguage());
     try {
         Smarty::configLoad($Language . DS . $TranslationFile . '.language');
     } catch (Exception $e) {
         Debugger::ReportError(3, 2, $TranslationFile . '.language in ' . $Language . ' language folder');
         die;
     }
 }
Example #2
0
 function display($template = NULL, $cache_id = NULL, $compile_id = NULL, $parent = NULL)
 {
     global $FCCore;
     if ($FCCore['debug']) {
         $this->assign('PageLoadTime', Utilities::PageLoadTime());
         $this->assign('MemoryUsage', Utilities::GetMemoryUsage());
         $this->assign('Debug', true);
     } else {
         $this->assign('Debug', false);
     }
     try {
         Smarty::Display($template . ".tpl");
     } catch (Exception $e) {
         Debugger::ReportError(3, 1, $template . ".tpl");
     }
 }
 /**
  * Load COnfiguration FIle
  *
  * @return 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 {
             Debugger::ReportError(1, 2, 'Configuration File');
         }
     }
 }
 /**
  * Load COnfiguration FIle
  *
  * @return Including Configuration file or Returning Debugger Error
  */
 public function loadConfig()
 {
     $Configuration = FreedomCore::getConfigDir() . 'Configuration.php';
     if (file_exists($Configuration)) {
         require_once $Configuration;
     } else {
         Debugger::ReportError(1, 2, 'Configuration File');
     }
 }