forked from JoomlaLABS/Joomla_Downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
joomla_downloader.php
253 lines (245 loc) · 22.6 KB
/
joomla_downloader.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!doctype html>
<?php
$thisRelease = 'v1.1.0';
?>
<html lang="en" class="h-100" data-bs-theme="dark">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Joomla! Downloader</title>
<meta name="description" content="">
<meta name="author" content="Joomla!LABS">
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAACMuAAAjLgAAAAAAAAAAAADNkFBLzZFR5c2QUPLNkVGWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA0QO+CNUDv8TVA7+s1QPBfzZFR+s2QUP/MkFD/zZFR/8yQUJnNkFGB0pQxRwAAAAAAAAAALDXuUTVA8IQ1QO+KND/v/zVA7/81QO//NUDv/82RUf/NkVH/z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AAAAAAAAAABqb9RcZn/VEGZ/1Vhqg9v8Zn/X/GaD2/xmf9fdCwXszQsF61kLBeuxCwXp+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAZn/VsGaD16hmg9d8Zn/VEj/EAAAPAAAABgAAAgAEAAMwzAADIEwAAwYMAAOPHAADDhwAAwAMAAMwzAADMMwAAgAAAAAGAAAAP8AAAn/kAAA==" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/solid.min.css" integrity="sha512-yDUXOUWwbHH4ggxueDnC5vJv4tmfySpVdIcN1LksGZi8W8EVZv4uKGrQc0pVf66zS7LDhFJM7Zdeow1sw1/8Jw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/brands.min.css" integrity="sha512-9YHSK59/rjvhtDcY/b+4rdnl0V4LPDWdkKceBl8ZLF5TB6745ml1AfluEU6dFWqwDw9lPvnauxFgpKvJqp7jiQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/fontawesome.min.css" integrity="sha512-SgaqKKxJDQ/tAUAAXzvxZz33rmn7leYDYfBP+YoMRSENhf3zJyx3SBASt/OfeQwBHA1nxMis7mM3EV/oYT6Fdw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/svg-with-js.min.css" integrity="sha512-FTnGkh+EGoZdexd/sIZYeqkXFlcV3VSscCTBwzwXv1IEN5W7/zRLf6aUBVf2Ahdgx3h/h22HNzaoeBnYT6vDlA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body class="d-flex flex-column h-100">
<header class="py-5">
<div class="container d-flex flex-column flex-md-row align-items-center justify-content-center">
<img alt="Joomla! Logo" aria-hidden="true" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcMAAAClCAYAAAAgXJYtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHXdJREFUeNrsnT1vI1l2hm/PDrDJAs3JDQz1C5qCf0BT6NxNAs7WQJPRhBLTTSQmGzghFW6yZAN2ZkBs5wOWfsBCnGRT1QDOhwtMYiy87Xuoc1tX1VXF+iSL5PMABUlUse5nnfee+/kbAwAAcOL8hiwAAADEEAAAADEEAABADAEAABBDAAAAxBAAAAAxBAAAQAwBAAAQQwAAAMQQAAAAMQQAAEAMAQAAEEMAAADEEAAAADEEAABADAEAABBDAAAAxBAAAAAxBAAAQAwBAAAQQwAAAMQQAAAAMQQAAEAMAQAAEEMAAADEEAAAADEEAABADAEAABBDAAAAxBAAAAAxBAAAQAwBAAAQQwAAAMQQAAAAMQQAAEAMAQAAjppXhxrxP9y/a9sfbe+j1R/f/rg+hkL53/+86NgfLf1z/dvfL1dUVQAAxNAXwEt79SJC+EUQ7XVrRXF+gALY9dIWx0LSZoUxoNoCAJyoGFohvFGxaGW4PbTX0Ipi44XDiqCkZ5YignGiOLSiuKb6AgCckBhaIRSxGBT46rDJXqJ2h94leLnbxL5P9ykAwImIYQkhdPStIC4a6hE+FBBCXxDP8RABAMrzTcOFsFdSCIWZfU6rgcmblBBCo9+dUYUBAI5cDFUwyiJCeNUwr7BTgcgLPX0WAAAcoxhab65T0nPyuWxY8i4b+iwAgJPk2wbHrVfhs1pWXLvmaZwtKrDrP779sdKJKDoe+JXH5i2L6FYYXJdqDABQjsZOoLHitdyxoReh+mSveZHF+1YARbzfa5zTPNpVnFCWwYrsK6oyAAB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cnbvYMCiezg2Pka6VZxnso4InmtphpEWoZvif6H3d737z6MvjE5375vnBcBdTzTnvsHQrre5Z6SM3jf0fp9G/t/3nr+OeCpj8zxBRRh594ZeuG6dpL/o2aXHTaVf65qrsXmeNdvV31MnF0TS1vIM8FifGcdUw2p5ItGP7pYSebbrtowzfq58VwmeSJAS/5E+a+Gl28V/VCSdWk+GGrabyj/VerWIiWeQFEfNE/e9thfuyC23SIhbVpFIyrekOK2i9VHrnR+/wItPENM9OTYvu6FbXjqGMYIfzQeXxpZXl3wPL4h6errUw32/E3kH+8doDNmODaCheLvh7HOyB8BJgGcIAACIIVkAAACIIQAAAAAAAJw2vyELAAAAMQQAAEAMAQAAEEMAAADEEAAAADEEAABADAEAABBDAAAAxBAAAAAxBAAAQAwBAAAQQwAAAMQQAAAAMQQAAEAMAQAAEEMAAADEEAAAADEEAABADAEAABBDAAAAxBAAAAAxBAAAQAwBAAAQQwAAAMQQAAAAMQQAAEAMAQAAEEMAAADEEAAAADEEAABADAEAABBDAACAo+f/BRgAsY3gdSFknlQAAAAASUVORK5CYII=" />
<h1 class="display-1"><span class="visually-hidden">Joomla! </span>Downloader</h1>
</div>
</header>
<?php
if( !isset($_GET['pkg']) && !isset($_GET['clear']) ) {
?>
<main class="flex-shrink-0">
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4 py-4 m-0">
<?php
//Joomla! Core update servers types
$updateServers = array('j5', 'j4', 'test', 'nightly-major', 'nightly-minor', 'nightly-patch');
$pkgs = array();
foreach ($updateServers as $server) {
$pkg = lastPkg($server);
$color;
$icon;
switch ($pkg['server']) {
case 'j5':
$color = 'text-success';
$icon = '<i class="fa-solid fa-box fa-fw fa-4x"></i>';
break;
case 'j4':
$color = 'text-success';
$icon = '<i class="fa-solid fa-box-archive fa-fw fa-4x"></i>';
break;
case 'test':
$color = 'text-info';
$icon = '<i class="fa-solid fa-vial fa-fw fa-4x"></i>';
break;
case 'nightly-major':
$color = 'text-warning';
$icon = '<span class="fa-layers fa-fw"><i class="fa-solid fa-moon fa-4x"></i><span class="bg-danger fa-4x fa-layers-counter fa-layers-bottom-left" style="--fa-bottom: -4rem;">major</span></span>';
break;
case 'nightly-minor':
$color = 'text-warning';
$icon = '<span class="fa-layers fa-fw"><i class="fa-solid fa-moon fa-4x"></i><span class="bg-danger fa-4x fa-layers-counter fa-layers-bottom-left" style="--fa-bottom: -4rem;">minor</span></span>';
break;
case 'nightly-patch':
$color = 'text-warning';
$icon = '<span class="fa-layers fa-fw"><i class="fa-solid fa-moon fa-4x"></i><span class="bg-danger fa-4x fa-layers-counter fa-layers-bottom-left" style="--fa-bottom: -4rem;">patch</span></span>';
break;
default:
$color = 'text-secondary';
$icon = '<i class="fa-solid fa-question fa-4x"></i>';
break;
}
?>
<div class="col">
<div id="<?php echo $pkg['server']; ?>_<?php echo $pkg['version']; ?>" class="card mb-4 h-100">
<div class="row g-0">
<div class="col-md-3 <?php echo $color; ?> text-center align-self-center py-4">
<?php echo $icon."\n"; ?>
</div>
<div class="col-md-9">
<div class="card-body">
<h5 class="card-title"><?php echo $pkg['name']; ?></h5>
<p class="card-text"><?php echo $pkg['description']; ?></p>
<ul class="card-text list-inline text-muted">
<li class="list-inline-item"><i class="fa-brands fa-joomla"></i> <?php echo $pkg['version']; ?></li>
<li class="list-inline-item"><i class="fa-brands fa-php"></i> <?php echo $pkg['php']; ?></li>
<li class="list-inline-item"><i class="fa-solid fa-code-branch"></i> <?php echo $pkg['server']; ?></li>
</ul>
<p class="card-text"><small class="text-muted"><i class="fa-solid fa-download"></i> <?php echo $pkg['url'] ?></small></p>
<a href="joomla_downloader.php?pkg=<?php echo $server; ?>" class="btn btn-primary stretched-link"><i class="fa-solid fa-caret-right"></i> Install</a>
</div>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</main>
<?php
} elseif ( isset($_GET['pkg']) && !isset($_GET['clear']) ) {
$pkg = $_GET['pkg'];
$pkgUrl = lastPkg($pkg)['url'];
?>
<main class="flex-shrink-0">
<div class="container">
<p class="lead">
<?php echo "Downloading <code>$pkgUrl</code> . . ."; ?>
</p>
<?php
$pkg = getcwd().DIRECTORY_SEPARATOR.basename($pkgUrl);
file_put_contents($pkg, file_get_contents($pkgUrl));
?>
<p class="lead">
<?php echo "Unzipping <code>$pkg</code> . . ."; ?>
</p>
<?php
$zip = new ZipArchive;
$res = $zip->open($pkg);
if ($res === TRUE) {
$zip->extractTo(getcwd().DIRECTORY_SEPARATOR); // extract the zip file
$zip->close();
}
?>
<p class="lead">
<?php echo "Deleting <code>$pkg</code> . . ."; ?>
</p>
<?php
unlink($pkg); // delete zip file
?>
<div class="alert alert-success" role="alert">
All done!
</div>
<div class="d-grid gap-2 col-6 mx-auto pt-5">
<a class="btn btn-primary btn-lg" href="joomla_downloader.php?clear" role="button">Delete this script</a>
</div>
</div>
</main>
<?php
} elseif ( !isset($_GET['pkg']) && isset($_GET['clear']) ) {
?>
<main class="flex-shrink-0">
<div class="container">
<p class="lead">
Script removing ...
</p>
<?php
unlink($_SERVER["SCRIPT_FILENAME"]); // delete script file
?>
<div class="alert alert-success" role="alert">
All done!
</div>
<div class="d-grid gap-2 col-6 mx-auto pt-5">
<a class="btn btn-success btn-lg" href="<?php echo str_replace(basename($_SERVER["SCRIPT_NAME"]), "", $_SERVER["SCRIPT_URI"]) ?>" role="button">Install Joomla!</a>
</div>
</div>
</main>
<?php
}
?>
<footer class="footer mt-auto py-3 bg-body-tertiary">
<div class="container-fluid">
<div class="row">
<div class='col col-12 col-md-2 text-center align-self-center py-2'>
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.github.com/repos/JoomlaLABS/Joomla_Downloader/releases/latest');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Joomla!LABS User Agent');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
$lastRelease = curl_exec($ch);
if (curl_errno($ch)) {
$error_msg = curl_error($ch);
}
curl_close($ch);
if ($lastRelease == false) {
?>
<p class="text-muted mb-0"><?php echo $thisRelease; ?></p>
<p><?php echo $error_msg; ?></p>
<?php
} else {
$lastRelease = json_decode($lastRelease)->tag_name;
switch (version_compare ($thisRelease , $lastRelease)) {
case 0:
?>
<p class="text-muted mb-0"><?php echo $thisRelease; ?></p>
<p class="text-muted mb-0">the latest</p>
<?php
break;
case -1:
?>
<p class="text-muted mb-0"><?php echo $thisRelease; ?></p>
<p><a class="text-danger mb-0" href="https://github.com/JoomlaLABS/Joomla_Downloader/releases/latest" target="_blank"><?php echo $lastRelease; ?> aviable</a></p>
<?php
break;
case 1:
?>
<p class="text-warning mb-0"><?php echo $thisRelease; ?></p>
<p class="text-muted mb-0"><?php echo $lastRelease; ?> is the latest</p>
<?php
break;
default:
// code...
break;
}
}
?>
</div>
<div class='col col-12 col-md-10 align-self-center'>
<p class="text-muted mb-0">Joomla!LABS and this file is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this file are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.</p>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</body>
</html>
<?php
function lastPkg(string $server) : array {
//Joomla! Core update servers
$updateUrls = array(
'stable' => 'https://update.joomla.org/core/sts/extension_sts.xml',
'maintenance' => 'https://update.joomla.org/core/extension.xml',
'j4' => 'https://update.joomla.org/core/j4/default.xml',
'j5' => 'https://update.joomla.org/core/j5/default.xml',
'test' => 'https://update.joomla.org/core/test/extension_test.xml',
'nightly-major' => 'https://update.joomla.org/core/nightlies/next_major_extension.xml',
'nightly-minor' => 'https://update.joomla.org/core/nightlies/next_minor_extension.xml',
'nightly-patch' => 'https://update.joomla.org/core/nightlies/next_patch_extension.xml'
);
$context = stream_context_create(array('http' => array('header' => 'Accept: application/xml')));
$xml = file_get_contents($updateUrls[$server], false, $context);
$xml = simplexml_load_string($xml);
$pkgsUpd = array();
foreach($xml->update as $update) {
$pkgsUpd[(string)$update->version]['name'] = $update->name;
$pkgsUpd[(string)$update->version]['version'] = $update->version;
$pkgsUpd[(string)$update->version]['server'] = $server;
$pkgsUpd[(string)$update->version]['description'] = $update->description;
$pkgsUpd[(string)$update->version]['php'] = $update->php_minimum;
$pkgsUpd[(string)$update->version]['url'] = str_replace('Update_Package.zip', 'Full_Package.zip', $update->downloads->downloadurl);
}
usort($pkgsUpd, function($a,$b) {
return -1 * version_compare ( $a['version'] , $b['version'] );
});
return $pkgsUpd[0];
}