예제 #1
0
 public static function getJabbexInstance()
 {
     if (!self::$_jabbex_instance) {
         try {
             require_once "jabbex_api/Jabbex.php";
             self::$_jabbex_instance = new Jabbex(session_hash());
         } catch (Exception $e) {
             $GLOBALS['Response']->addFeedback('error', 'Jabbex require_once error:' . $e->getMessage());
             return null;
         }
     }
     return self::$_jabbex_instance;
 }