forked from uup-dump/api
Change fetchupd update information output, fix some minor bugs
This commit is contained in:
parent
48cd2c20f2
commit
9b861d4492
12
fetchupd.php
12
fetchupd.php
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright 2017 UUP dump API authors
|
||||
Copyright 2018 UUP dump API authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -64,7 +64,7 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
|
||||
$out = sendWuPostRequest('https://fe3.delivery.mp.microsoft.com/ClientWebService/client.asmx', $postData);
|
||||
|
||||
$out = html_entity_decode($out);
|
||||
consoleLogger('Information was successfully fetched.');
|
||||
consoleLogger('Information has been successfully fetched.');
|
||||
|
||||
consoleLogger('Checking build information...');
|
||||
preg_match_all('/<UpdateInfo>.*?<\/UpdateInfo>/', $out, $updateInfos);
|
||||
@ -128,13 +128,19 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
|
||||
$updateRev = preg_replace('/RevisionNumber="|"$/', '', $updateRev[0]);
|
||||
|
||||
consoleLogger('Successfully checked build information.');
|
||||
consoleLogger('BUILD: '.$updateTitle.' '.$arch);
|
||||
|
||||
$updateString = $updateId;
|
||||
if($updateRev != 1) {
|
||||
$updateString = $updateId.'_rev.'.$updateRev;
|
||||
}
|
||||
|
||||
consoleLogger("--- UPDATE INFORMATION ---");
|
||||
consoleLogger("Title: ".$updateTitle);
|
||||
consoleLogger("Architecture: ".$arch);
|
||||
consoleLogger("Build number: ".$foundBuild);
|
||||
consoleLogger("Update ID: ".$updateString);
|
||||
consoleLogger("--- UPDATE INFORMATION ---");
|
||||
|
||||
$fileWrite = 'NO_SAVE';
|
||||
if(!file_exists('fileinfo/'.$updateString.'.json')) {
|
||||
consoleLogger('WARNING: This build is NOT in the database. It will be saved now.');
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.10.2';
|
||||
return '1.10.3';
|
||||
}
|
||||
|
||||
function uupApiPrintBrand() {
|
||||
|
@ -59,6 +59,7 @@ function uupGetPacks($build = 15063) {
|
||||
|
||||
$allEditions = array(
|
||||
'ANALOGONECORE',
|
||||
'ANDROMEDA',
|
||||
'CLOUD',
|
||||
'CLOUDN',
|
||||
'CORE',
|
||||
@ -84,6 +85,7 @@ function uupGetPacks($build = 15063) {
|
||||
'ENTERPRISESNEVAL',
|
||||
'IOTUAP',
|
||||
'MOBILECORE',
|
||||
'ONECOREUPDATEOS',
|
||||
'PPIPRO',
|
||||
'PROFESSIONAL',
|
||||
'PROFESSIONALCOUNTRYSPECIFIC',
|
||||
@ -146,12 +148,12 @@ function uupGetPacks($build = 15063) {
|
||||
|
||||
if($build < 17063) {
|
||||
require dirname(__FILE__).'/packs/legacy.php';
|
||||
} elseif ($build >= 17063 && $build < 17093) {
|
||||
require dirname(__FILE__).'/packs/17063.php';
|
||||
} elseif ($build >= 17093 && $build < 17623) {
|
||||
require dirname(__FILE__).'/packs/17093.php';
|
||||
} elseif ($build >= 17623) {
|
||||
require dirname(__FILE__).'/packs/17623.php';
|
||||
} elseif ($build >= 17093) {
|
||||
require dirname(__FILE__).'/packs/17093.php';
|
||||
} elseif ($build >= 17063) {
|
||||
require dirname(__FILE__).'/packs/17063.php';
|
||||
}
|
||||
|
||||
return array(
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright 2017 UUP dump API authors
|
||||
Copyright 2018 UUP dump API authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -177,10 +177,10 @@ $editionPacks = array(
|
||||
);
|
||||
|
||||
$fancyEditionNames = array(
|
||||
'CORE' => 'Windows 10 Home / Home Single Language',
|
||||
'CORE' => 'Windows 10 Home',
|
||||
'CORECOUNTRYSPECIFIC' => 'Windows 10 Home China',
|
||||
'COREN' => 'Windows 10 Home N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro / Enterprise / Education / S',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N / Enterprise N / Education N / S N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N',
|
||||
);
|
||||
?>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright 2017 UUP dump API authors
|
||||
Copyright 2018 UUP dump API authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
@ -178,10 +178,10 @@ $editionPacks = array(
|
||||
);
|
||||
|
||||
$fancyEditionNames = array(
|
||||
'CORE' => 'Windows 10 Home / Home Single Language',
|
||||
'CORE' => 'Windows 10 Home',
|
||||
'CORECOUNTRYSPECIFIC' => 'Windows 10 Home China',
|
||||
'COREN' => 'Windows 10 Home N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro / Enterprise / Education',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N / Enterprise N / Education N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N',
|
||||
);
|
||||
?>
|
||||
|
@ -27,6 +27,7 @@ $packs = array(
|
||||
'Microsoft-Windows-ContactSupport-Package',
|
||||
'Microsoft-Windows-Not-Supported-On-LTSB-Package',
|
||||
'Microsoft-Windows-Not-Supported-On-LTSB-WOW64-Package',
|
||||
'Microsoft-Windows-Not-Supported-On-LTSB-arm64arm-Package',
|
||||
'Microsoft-Windows-RegulatedPackages-Package',
|
||||
'Microsoft-Windows-RegulatedPackages-WOW64-Package',
|
||||
'Microsoft-Windows-RegulatedPackages-arm64arm-Package',
|
||||
@ -181,10 +182,10 @@ $editionPacks = array(
|
||||
);
|
||||
|
||||
$fancyEditionNames = array(
|
||||
'CORE' => 'Windows 10 Home / Home Single Language',
|
||||
'CORE' => 'Windows 10 Home',
|
||||
'CORECOUNTRYSPECIFIC' => 'Windows 10 Home China',
|
||||
'COREN' => 'Windows 10 Home N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro / Enterprise / Education',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N / Enterprise N / Education N',
|
||||
'PROFESSIONAL' => 'Windows 10 Pro',
|
||||
'PROFESSIONALN' => 'Windows 10 Pro N',
|
||||
);
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user