Exemple #1
0
 public static function getBgManagerId()
 {
     if (!isset(self::$_cuId)) {
         $cuId = JFactory::getSession()->get('vmAdminID', null);
         //echo $cuId;
         if ($cuId) {
             if (!class_exists('vmCrypt')) {
                 require VMPATH_ADMIN . DS . 'helpers' . DS . 'vmcrypt.php';
             }
             $cuId = vmCrypt::decrypt($cuId);
             if (empty($cuId)) {
                 $cuId = null;
             }
         }
         self::$_cuId = $cuId;
     }
     return self::$_cuId;
 }