public static function hasDemoLicense() { if (self::$hasDemoLicense !== null) { return self::$hasDemoLicense; } if (!(ModuleManager::isModuleInstalled('bitrix24') && Loader::includeModule('bitrix24')) && method_exists('CBitrix24', 'IsDemoLicense')) { return self::$hasDemoLicense = false; } return self::$hasDemoLicense = \CBitrix24::IsDemoLicense(); }
public static function IsDemo() { if (!CModule::IncludeModule('bitrix24')) { return false; } if (CBitrix24::IsDemoLicense()) { return true; } return false; }