forked from snobalfyte/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
latest.php
152 lines (134 loc) · 4.53 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
<?php
/*
Copyright 2019 whatever127
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', $s['latestFetchLatest']);
$builds = array(
'15063.0',
'15063.674',
'16251.0',
'16299.0',
'16299.15',
'16299.19',
'17025.1000',
'17134.1',
'17763.1',
'18362.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);
?>
<h3 class="ui centered header">
<div class="content">
<i class="fitted options icon"></i>
<?php echo $s['chooseOptions']; ?>
</div>
</h3>
<div class="ui basic modal">
<div class="ui icon header">
<i class="exclamation triangle icon"></i>
<?php echo $s['latestTestingOnly']; ?>
</div>
<div class="content">
<p><?php echo $s['latestTestingOnlyWarn']; ?></p>
<p><?php echo $s['latestDoYouWantKnown']; ?></p>
</div>
<div class="actions">
<div class="ui red ok inverted button">
<i class="close icon icon"></i>
<?php echo $s['no']; ?>
</div>
<a class="ui green inverted button" href="./known.php">
<i class="checkmark icon"></i>
<?php echo $s['yesRecommended']; ?>
</a>
</div>
</div>
<div class="ui top attached segment">
<form class="ui form" action="./fetchupd.php" method="get" id="optionsForm">
<div class="field">
<label><?php echo $s['arch']; ?></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><?php echo $s['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><?php echo $s['buildOfPretendedClient']; ?></label>
<select class="ui search dropdown" name="build">
<?php
foreach($builds as $val) {
if($val === '18362.1') {
echo '<option value="'.$val.'" selected>'.$val."</option>\n";
} else {
echo '<option value="'.$val.'">'.$val."</option>\n";
}
}
?>
</select>
</div>
<div class="field">
<label><?php echo $s['editionOfPretendedClient']; ?></label>
<select class="ui dropdown" name="sku">
<option value="101">Windows 10 Home</option>
<option value="48" selected>Windows 10 Pro</option>
<option value="121">Windows 10 Education</option>
<option value="4">Windows 10 Enterprise</option>
<option value="72">Windows 10 Enterprise Evaluation</option>
<option value="125">Windows 10 Enterprise LTSC</option>
<option value="129">Windows 10 Enterprise LTSC Evaluation</option>
<option value="119">Windows 10 Team</option>
<option value="7">Windows Server Standard</option>
<option value="8">Windows Server Datacenter</option>
</select>
</div>
<button class="ui fluid right labeled icon red button" type="submit">
<i class="right arrow icon"></i>
<?php echo $s['fetchUpdates']; ?>
</button>
</form>
</div>
<div class="ui bottom attached warning message">
<i class="warning icon"></i>
<?php echo $s['fetchUpdatesInfo']; ?>
</div>
<script>
$('.ui.checkbox').checkbox();
$('select.dropdown').dropdown();
$('.ui.basic.modal')
.modal('setting', 'closable', false)
.modal('show')
;
</script>
<?php
styleLower();
?>