Exemplo n.º 1
0
 public static function Initialize()
 {
     Autoloader::InitialCheck();
     Autoloader::LoadConfig();
     Autoloader::LoadComponents();
     if (Autoloader::$IsDebugEnabled) {
         Autoloader::$PageLoadTime = Utilities::PageLoadTime(true);
     }
 }
 public static function Initialize($WithConfig = true)
 {
     if ($WithConfig) {
         Autoloader::LoadConfig();
     }
     Autoloader::LoadComponents();
     if (Autoloader::$IsDebugEnabled) {
         Autoloader::$PageLoadTime = Utilities::PageLoadTime(true);
     }
 }
Exemplo n.º 3
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);
     }
     Smarty::Display($template . ".tpl");
 }
Exemplo n.º 4
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");
     }
 }