OSDN Git Service

Subversion由来のタグを削除
[nucleus-jp/nucleus-jp-ancient.git] / nucleus / upgrades / upgrade3.6.php
1 <?php\r
2 /*\r
3  * Nucleus: PHP/MySQL Weblog CMS (http://nucleuscms.org/)\r
4  * Copyright (C) 2002-2009 The Nucleus Group\r
5  *\r
6  * This program is free software; you can redistribute it and/or\r
7  * modify it under the terms of the GNU General Public License\r
8  * as published by the Free Software Foundation; either version 2\r
9  * of the License, or (at your option) any later version.\r
10  * (see nucleus/documentation/index.html#license for more info)\r
11  */\r
12 \r
13 function upgrade_do360() {\r
14 \r
15         if (upgrade_checkinstall(360))\r
16                 return 'インストール済みです';\r
17         \r
18         // Give user warning if they are running old version of PHP\r
19         if (phpversion() < '5') {\r
20                 echo '警告:サーバで稼動しているPHPのバージョンが、NucleusCMSの動作保障外の古いバージョンのようです。PHP5以上にアップグレードしてください!';\r
21         }\r
22         \r
23         // changing the blog table to lengthen bnotify field \r
24         $query = "      ALTER TABLE `" . sql_table('blog') . "`\r
25                                         MODIFY `bnotify` varchar(128) default NULL ;";\r
26         \r
27         upgrade_query('Altering ' . sql_table('blog') . ' table', $query);\r
28         \r
29         // 3.5 -> 3.6\r
30         // update database version\r
31         update_version('360');\r
32         \r
33         // Remind user to re-install NP_Ping \r
34         // Remind user to re-install NP_Ping \r
35         echo '<p>注意: バージョン3.50よりNP_Pingに変更があるので、使用中の方は管理画面より再インストールしてください。</p>';\r
36 }\r
37 ?>\r