Example #1
0
 /**
  * Проверка номера версии в репозитории Github
  * @return integer
  */
 public static function check_version()
 {
     $respoonse = self::request('https://raw.githubusercontent.com/:rep/:branch/cms/application/bootstrap.php');
     preg_match('/define\\(\'CMS_VERSION\'\\,[\\t\\ ]*\'([0-9\\.]+)\'\\)\\;/i', $respoonse, $matches);
     self::$_remove_version = $matches[1];
     return version_compare(CMS_VERSION, self::$_remove_version);
 }