예제 #1
0
 public static function isPaidLicense()
 {
     if (self::$isLicensePaid !== null) {
         return self::$isLicensePaid;
     }
     if (!(ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24')) && method_exists('CBitrix24', 'IsLicensePaid')) {
         return self::$isLicensePaid = false;
     }
     return self::$isLicensePaid = \CBitrix24::IsLicensePaid();
 }
예제 #2
0
 public static function IsPro()
 {
     if (!CModule::IncludeModule('bitrix24')) {
         return true;
     }
     if (CBitrix24::IsLicensePaid()) {
         return true;
     }
     if (CBitrix24::IsNfrLicense()) {
         return true;
     }
     if (CBitrix24::IsDemoLicense()) {
         return true;
     }
     return false;
 }