OSDN Git Service

FIX: super-admin disallowed from uploading files if not on any teamlists.
[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-2009 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-2009 The Nucleus Group
15  * @version $Id$
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('Super-admin(最高管理者)のみがアップグレードを実行できます。');
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 include('upgrade3.4.php');
43 include('upgrade3.5.php');
44
45 $from = intGetVar('from');
46
47 upgrade_start();
48
49 switch($from) {
50     case 95:
51         upgrade_do95();
52         upgrade_do96();
53     case 96:
54         upgrade_do100();
55     case 10:
56         upgrade_do110();
57     case 11:
58         upgrade_do150();
59     case 15:
60         upgrade_do200();
61     case 20:
62         upgrade_do250();
63     case 25:
64         upgrade_do300();
65     case 30:
66         upgrade_do310();
67     case 31:
68         upgrade_do320();
69 //              break;
70     case 32:
71         upgrade_do330();
72 //              break;
73     case 33:
74         upgrade_do331();
75 //              break;
76     case 331:
77         upgrade_do340();
78         break;
79     case 340:
80         upgrade_do350();
81         break;
82     default:
83         echo "<li>エラー! 実行すべきアップデートはありません</li>";
84         break;
85 }
86
87
88
89 upgrade_end("アップグレード成功");
90
91 ?>