예제 #1
0
 public static function GetUpdateData()
 {
     $DBData = Updater::GetDatabaseVersion();
     $UpdateURL = "https://project.freedomcore.ru/freedomcore.php?action=%s&current_hash=%s";
     $UpdateData = Manager::GetUrlData(sprintf($UpdateURL, 'update', $DBData['database_version']));
     return json_decode($UpdateData, true);
 }
 public static function GetUpdateData()
 {
     $DBData = Updater::GetDatabaseVersion();
     $UpdateURL = "https://project.freedomcore.ru/freedomcore.php?action=%s&current_hash=%s";
     $UpdateData = Manager::GetUrlData(sprintf($UpdateURL, 'update', $DBData['database_version']));
     $Data = json_decode($UpdateData, true);
     $Data['downloaded'] = Updater::CheckForPull($Data['updating_to']['sha']);
     return $Data;
 }