Exemplo n.º 1
0
 /**
  * Start
  * 
  * Singleton shortcut to run the constructor without returning an object
  * 
  */
 public static function Start()
 {
     OnePanelDebug::Info('Starting up OnePanel');
     if (!is_object(self::$instance)) {
         // Check for the existence of the OnePanelTheme object
         if (class_exists('OnePanelTheme')) {
             if (is_object(OnePanelTheme::GetInstance())) {
                 OnePanelDebug::Error('OnePanelTheme instance detected. Possible Hack!');
                 return false;
             }
         } else {
             self::$instance = new OnePanel();
         }
     }
 }