From 76092ff092b7d1c966dca876d45d4dde0db25c4f Mon Sep 17 00:00:00 2001 From: eraseyourknees <112027564+eraseyourknees@users.noreply.github.com> Date: Tue, 13 Sep 2022 23:41:50 +0200 Subject: [PATCH] get.php: Adjust for the new fileinfo database --- get.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/get.php b/get.php index 596de3d..1dea2c5 100644 --- a/get.php +++ b/get.php @@ -19,6 +19,7 @@ require_once dirname(__FILE__).'/shared/main.php'; require_once dirname(__FILE__).'/shared/requests.php'; require_once dirname(__FILE__).'/shared/packs.php'; require_once dirname(__FILE__).'/shared/cache.php'; +require_once dirname(__FILE__).'/shared/fileinfo.php'; /* $updateId = Update Identifier @@ -43,10 +44,10 @@ function uupGetFiles( } if(!uupApiCheckUpdateId($updateId)) { - return array('error' => 'INCORRECT_ID'); + return array('error' => 'INCORRECT_ID'); } - $info = @file_get_contents('fileinfo/'.$updateId.'.json'); + $info = uupApiReadFileinfo($updateId); if(empty($info)) { $info = array( 'ring' => 'WIF', @@ -56,8 +57,6 @@ function uupGetFiles( 'sku' => '48', 'files' => array(), ); - } else { - $info = json_decode($info, true); } if(isset($info['build'])) {