forked from piero-la-lune/Bumpy-Booby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupgrade.php
More file actions
33 lines (25 loc) · 698 Bytes
/
Copy pathupgrade.php
File metadata and controls
33 lines (25 loc) · 698 Bytes
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
<?php
if (!isset($config)) {
exit;
}
function strict_lower($a, $b) {
$ea = explode('.', $a);
$eb = explode('.', $b);
for ($i=0; $i < count($ea); $i++) {
if (!isset($eb[$i])) { $eb[$i] = 0; }
$na = intval($ea[$i]);
$nb = intval($eb[$i]);
if ($na > $nb) { return false; }
if ($na < $nb) { return true; }
}
return false;
}
if (strict_lower($config['version'], '0.3')) {
$config['nb_last_activity_rss'] = 20;
}
$settings = new Settings();
if ($config['url_rewriting']) { $settings->url_rewriting(); }
$settings->save();
header('Content-Type: text/html; charset=utf-8');
die('Mise à jour effectuée avec succès ! Raffraichissez cette page pour accéder à Bumpy Boopby.');
?>