LicenseValidator.php 530 B

1234567891011121314151617181920
  1. <?php
  2. namespace ModulesGarden\Servers\ProxmoxCloudVps\App\Helpers;
  3. trait LicenseValidator
  4. {
  5. public function isLicensePayingFullAnnuallyPrice($force = false){
  6. if(!function_exists('ProxmoxCloudVps_GetLicenseData')){
  7. return true;
  8. }
  9. $licenseData = ProxmoxCloudVps_GetLicenseData($force);
  10. if(is_array($licenseData) && isset($licenseData['isPayingFullAnnuallyPrice']) && $licenseData['isPayingFullAnnuallyPrice'] !=1){
  11. return false;
  12. }
  13. return true;
  14. }
  15. }