forked from uup-dump/api
get.php: Adjust for the new fileinfo database
This commit is contained in:
parent
9e3c1c574b
commit
76092ff092
5
get.php
5
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
|
||||
@ -46,7 +47,7 @@ function uupGetFiles(
|
||||
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'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user