forked from snobalfyte/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatest.php
155 lines (134 loc) · 4.37 KB
/
latest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php
/*
Copyright 2019 UUP dump authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
require_once 'api/listid.php';
require_once 'shared/style.php';
styleUpper('downloads', 'Fetch latest build');
$builds = array(
'15063.0',
'15063.674',
'16251.0',
'16299.0',
'16299.15',
'16299.19',
'17025.1000',
'17134.1',
);
$ids = uupListIds();
if(isset($ids['error'])) {
$ids['builds'] = array();
}
$ids = $ids['builds'];
foreach($ids as $val) {
$builds[] = $val['build'];
}
$builds = array_unique($builds);
sort($builds);
?>
<div class="ui basic modal">
<div class="ui icon header">
<i class="exclamation triangle icon"></i>
Testing purposes only
</div>
<div class="content">
<p><b>This page is provided for testing purposes only.</b>
Builds retrieved by this page that were not processed by the backend
server will be provided using fallback packs, which may provide
incomplete results. If you want to download an already known build,
for the best experience please use the known builds page instead.</p>
<p>Would you like to continue by browsing the list of known builds?</p>
</div>
<div class="actions">
<div class="ui red ok inverted button">
<i class="close icon icon"></i>
No
</div>
<a class="ui green inverted button" href="./known.php">
<i class="checkmark icon"></i>
Yes (recommended)
</a>
</div>
</div>
<div class="ui horizontal divider">
<h3><i class="options icon"></i>Choose options</h3>
</div>
<div class="ui top attached segment">
<form class="ui form" action="./fetchupd.php" method="get" id="optionsForm">
<div class="field">
<label>Architecture</label>
<select class="ui dropdown" name="arch">
<option value="amd64">x64</option>
<option value="x86">x86</option>
<option value="arm64">arm64</option>
</select>
</div>
<div class="field">
<label>Ring</label>
<select class="ui dropdown" name="ring" onchange="checkRing()">
<option value="wif">Insider Fast</option>
<option value="wis">Insider Slow</option>
<option value="rp">Release Preview</option>
<option value="retail">Retail</option>
</select>
</div>
<div class="field">
<label>Build number of pretended Windows Update client</label>
<select class="ui search dropdown" name="build">
<?php
foreach($builds as $val) {
if($val == '16299.15') {
echo '<option value="'.$val.'" selected>'.$val."</option>\n";
} else {
echo '<option value="'.$val.'">'.$val."</option>\n";
}
}
?>
</select>
</div>
<div class="field">
<label>Skip ahead flight</label>
<div class="ui checkbox">
<input type="checkbox" name="flight" value="skip">
<label>Use skip ahead flighting (Insider Fast only)</label>
</div>
</div>
<button class="ui fluid right labeled icon red button" type="submit">
<i class="right arrow icon"></i>
Fetch updates
</button>
</form>
</div>
<div class="ui bottom attached warning message">
<i class="warning icon"></i>
Click <i>Fetch updates</i> button to send your request to Windows Update servers.
</div>
<script>
$('.ui.checkbox').checkbox();
$('select.dropdown').dropdown();
$('.ui.basic.modal')
.modal('setting', 'closable', false)
.modal('show')
;
function checkRing() {
form = document.getElementById('optionsForm');
if(form.ring.value == 'wif') {
form.flight.disabled = false;
} else {
form.flight.disabled = true;
}
}
checkRing();
</script>
<?php
styleLower();
?>