Example #1
0
 /**
  * Returns true if composite mode is allowed by checking update system parameters.
  *
  * @return boolean
  */
 public static function isLicenseExpired()
 {
     $finishDate = Option::get("main", "~support_finish_date", "");
     $composite = Option::get("main", "~PARAM_COMPOSITE", "N");
     if ($composite == "Y" || $finishDate == "") {
         return false;
     }
     $finishDate = new \Bitrix\Main\Type\Date($finishDate, "Y-m-d");
     return $finishDate->getTimestamp() < time();
 }