Esempio n. 1
0
 /**
  * Returns the singleton CoreNavigator
  *
  * @return Core_ModuleManager
  */
 public static function getInstance()
 {
     if (self::$instance == null) {
         $c = __CLASS__;
         self::$instance = new $c();
     }
     return self::$instance;
 }
Esempio n. 2
0
 public function render()
 {
     try {
         $this->currentModule = Core_Helper::getModule();
         //$this->userLogin = Core_Helper::getCurrentUserLogin();
         $this->url = Core_Url::getCurrentUrl();
         //$this->token_auth = Core_Core::getCurrentUserTokenAuth();
         //$this->userHasSomeAdminAccess = Core_Core::isUserHasSomeAdminAccess();
         //$this->userIsSuperUser = Core_Core::isUserIsSuperUser();
         //$this->Core_version = Core_Version::VERSION;
         //$this->latest_version_available = UpdateCheck::isNewestVersionAvailable();
         //$this->loginModule = Zend_Registry::get('auth')->getName();
         // global value accessible to all templates: the
         // Core base URL for the current request
         $this->Core_Url = Core_Url::getCurrentUrlWithoutFileName();
         /* The navigation menu */
         $this->Core_NavigationMenu = Core_Navigator::getInstance()->getMenu();
         $this->InternetIsConnected = Zend_Registry::get('config')->General->internet_is_connected == 1;
         $this->MapData = Zend_Registry::get('config')->General->map_data;
     } catch (Exception $e) {
         // can fail, for example at installation (no plugin loaded yet)
     }
     //$this->totalTimeGeneration = Zend_Registry::get('timer')->getTime();
     /*
     		try {
     			$this->totalNumberOfQueries = Core_Common::getQueryCount();
     		}
     		catch(Exception $e){
     			$this->totalNumberOfQueries = 0;
     		}*/
     @header('Content-Type: text/html; charset=utf-8');
     @header("Pragma: ");
     @header("Cache-Control: no-store, must-revalidate");
     return $this->smarty->fetch($this->template);
 }