forked from uup-dump/api
Add config reader helper
This commit is contained in:
parent
79730cdd24
commit
1cc48ae9d8
@ -183,3 +183,12 @@ function uupApiWriteJson($path, $data) {
|
|||||||
function uupApiPacksExist($updateId) {
|
function uupApiPacksExist($updateId) {
|
||||||
return file_exists('packs/'.$updateId.'.json.gz');
|
return file_exists('packs/'.$updateId.'.json.gz');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function uupApiConfigIsTrue($config) {
|
||||||
|
$data = uupDumpApiGetConfig();
|
||||||
|
|
||||||
|
if(!isset($data[$config]))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return $data[$config] == true;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user