Fix backwards compatibility, update readme, update internal packs

This commit is contained in:
mkuba50 2019-04-23 02:53:42 +02:00
parent a90dc04636
commit a62526211a
61 changed files with 44 additions and 18 deletions

View File

@ -30,11 +30,11 @@ function uupListEditions($lang = 'en-us', $updateId = 0) {
$build = explode('.', $info['build']); $build = explode('.', $info['build']);
$build = $build[0]; $build = $build[0];
} else { } else {
$build = 9841; $build = 15063;
} }
if(!isset($info['arch'])) { if(!isset($info['arch'])) {
$arch = null; $info['arch'] = null;
} }
$genPack = uupGetGenPacks($build, $info['arch'], $updateId); $genPack = uupGetGenPacks($build, $info['arch'], $updateId);

View File

@ -30,11 +30,11 @@ function uupListLangs($updateId = 0) {
$build = explode('.', $info['build']); $build = explode('.', $info['build']);
$build = $build[0]; $build = $build[0];
} else { } else {
$build = 9841; $build = 15063;
} }
if(!isset($info['arch'])) { if(!isset($info['arch'])) {
$arch = null; $info['arch'] = null;
} }
$genPack = uupGetGenPacks($build, $info['arch'], $updateId); $genPack = uupGetGenPacks($build, $info['arch'], $updateId);

View File

@ -2,7 +2,7 @@ UUP dump API
------------ ------------
### Functions ### Functions
#### fetchupd.php: `uupFetchUpd($arch, $ring, $flight, $build, $minor);` #### fetchupd.php: `uupFetchUpd($arch, $ring, $flight, $build, $minor, $sku, $cacheRequests);`
Fetches latest update information from Windows Update servers. Fetches latest update information from Windows Update servers.
Parameters: Parameters:
@ -10,19 +10,25 @@ Parameters:
- **Supported values:** `amd64`, `arm64`, `x86` - **Supported values:** `amd64`, `arm64`, `x86`
- `ring` - Ring to use when fetching information - `ring` - Ring to use when fetching information
- **Supported values:** `WIF`, `WIS`, `RP` - **Supported values:** `WIF`, `WIS`, `RP`, `RETAIL`
- `flight` - Flight to use when fetching information - `flight` - Flight to use when fetching information
- **Supported values:** `Active`, `Skip`, `Current` - **Supported values:** `Active`, `Skip`, `Current`
- **NOTE:** `Skip` is for `WIF` ring only. `Current` is for `RP` ring only. - **NOTE:** `Skip` is for `WIF` ring only. `Current` is for `RP` ring only.
- `build` - Build number to use when fetching information - `build` - Build number to use when fetching information
- **Supported values:** >= 15063 and <= 65536 - **Supported values:** >= 9841 and <= PHP_INT_MAX-1
- `minor` - Build minor to use when fetching information - `minor` - Build minor to use when fetching information
- **Supported values:** >= 0 and <= 65536 - **Supported values:** >= 0 and <= PHP_INT_MAX-1
#### get.php: `uupGetFiles($updateId, $usePack, $desiredEdition);` - `sku` - SKU number to use when fetching information
- **Supported values:** Any integer
- `cacheRequests` - Should request responses be cached? (optional)
- **Supported values:** 0 = Disable (default), 1 = Enable
#### get.php: `uupGetFiles($updateId, $usePack, $desiredEdition, $requestType);`
Fetches files from `updateId` update and parses to array. Fetches files from `updateId` update and parses to array.
Parameters: Parameters:
@ -36,24 +42,40 @@ Parameters:
- **Supported values:** any update UUID - **Supported values:** any update UUID
- **NOTE:** You need to specify `usePack` to get successful request - **NOTE:** You need to specify `usePack` to get successful request
#### listeditions.php: `uupListEditions($lang);` - `$requestType` - Type of request to the API (optional)
Outputs list of supported editions for selected language. - **Supported values:**
- 0 = uncached request (default)
- 1 = use cache if available
- 2 = offline information retrieval
#### listeditions.php: `uupListEditions($lang, $updateId);`
Outputs list of supported editions for selected language and Update ID.
Parameters: Parameters:
- `lang` - Generate list for selected language - `lang` - Generate list for selected language
- **Supported values:** language name in xx-xx format - **Supported values:** language name in xx-xx format
#### listid.php: `uupListIds();` - `updateId` - Update identifier (optional)
- **Supported values:** any update UUID
#### listid.php: `uupListIds($search, $sortByDate);`
Outputs list of updates in fileinfo database. Outputs list of updates in fileinfo database.
Parameters: Parameters:
- None - `search` - Search query (optional)
- **Supported values:** any text
#### listlangs.php: `uupListLangs();` - `sortByDate` - Sort results by creation date (optional)
Outputs list of languages supported by project. - **Supported values:** 0 = Disable, 1 = Enable
#### listlangs.php: `uupListLangs($updateId);`
Outputs list of languages supported for specified Update ID.
Parameters: Parameters:
- None - `updateId` - Update identifier (optional)
- **Supported values:** any update UUID
#### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo);` #### updateinfo.php: `uupUpdateInfo($updateId, $onlyInfo);`
Outputs specified information of specified `updateId`. Outputs specified information of specified `updateId`.
@ -88,12 +110,16 @@ Parameters:
- UNSUPPORTED_EDITION - UNSUPPORTED_EDITION
- UNSUPPORTED_COMBINATION - UNSUPPORTED_COMBINATION
- EMPTY_FILELIST - EMPTY_FILELIST
- MISSING_FILES
- NO_FILES
- XML_PARSE_ERROR
**listeditions.php** **listeditions.php**
- UNSUPPORTED_LANG - UNSUPPORTED_LANG
**listid.php** **listid.php**
- NO_FILEINFO_DIR - NO_FILEINFO_DIR
- SEARCH_NO_RESULTS
**updateinfo.php** **updateinfo.php**
- UPDATE_INFORMATION_NOT_EXISTS - UPDATE_INFORMATION_NOT_EXISTS

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.21.2'; return '1.21.3';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';

File diff suppressed because one or more lines are too long