OSDN Git Service

merged from v3.31sp1
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / nucleus / upgrades / upgrade.php
1 <?php
2 /*
3  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)
4  * Copyright (C) 2002-2007 The Nucleus Group
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  * (see nucleus/documentation/index.html#license for more info)
11  */
12 /**
13  * @license http://nucleuscms.org/license.txt GNU General Public License
14  * @copyright Copyright (C) 2002-2007 The Nucleus Group
15  * @version $Id: upgrade.php,v 1.8 2008-02-08 09:31:23 kimitake Exp $
16  * $NucleusJP: upgrade.php,v 1.7 2007/04/26 06:20:19 kimitake Exp $
17  */
18
19 include('upgrade.functions.php');
20
21 // check if logged in etc
22 if (!$member->isLoggedIn()) {
23         upgrade_showLogin('upgrade.php?from=' . intGetVar('from'));
24 }
25
26 if (!$member->isAdmin()) {
27         upgrade_error('Only Super-Admins are allowed to perform upgrades');
28 }
29
30 include('upgrade0.95.php');
31 include('upgrade0.96.php');
32 include('upgrade1.0.php');
33 include('upgrade1.1.php');
34 include('upgrade1.5.php');
35 include('upgrade2.0.php');
36 include('upgrade2.5.php');
37 include('upgrade3.0.php');
38 include('upgrade3.1.php');
39 include('upgrade3.2.php');
40 include('upgrade3.3.php');
41 include('upgrade3.31.php');
42
43 $from = intGetVar('from');
44
45 upgrade_start();
46
47 switch($from) {
48         case 95:
49                 upgrade_do95();
50                 upgrade_do96();
51         case 96:
52                 upgrade_do10();
53         case 10:
54                 upgrade_do11();
55         case 11:
56                 upgrade_do15();
57         case 15:
58                 upgrade_do20();
59         case 20:
60                 upgrade_do25();
61         case 25:
62                 upgrade_do30();
63         case 30:
64                 upgrade_do31();
65         case 31:
66                 upgrade_do32();
67                 break;
68         case 32:
69                 upgrade_do33();
70                 break;
71         case 33:
72                 upgrade_do331();
73                 break;
74         default:
75                 echo "<li>エラー! 実行すべきアップデートはありません</li>";
76                 break;
77 }
78
79
80
81 upgrade_end("アップグレード成功");
82
83 ?>