OSDN Git Service

TYPOの修正
[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  * @license http://nucleuscms.org/license.txt GNU General Public License\r
14  * @copyright Copyright (C) 2002-2009 The Nucleus Group\r
15  * @version $Id: upgrade3.5.php 1416 2009-09-24 15:58:08Z ftruscot $\r
16  */\r
17 \r
18 function upgrade_do360() {\r
19 \r
20         if (upgrade_checkinstall(360))\r
21                 return 'インストール済みです';\r
22         \r
23         // Give user warning if they are running old version of PHP\r
24         if (phpversion() < '5') {\r
25                 echo '警告:サーバで稼動しているPHPのバージョンが、NucleusCMSの動作保障外の古いバージョンのようです。PHP5以上にアップグレードしてください!';\r
26         }\r
27         \r
28         // changing the blog table to lengthen bnotify field \r
29         $query = "      ALTER TABLE `" . sql_table('blog') . "`\r
30                                         MODIFY `bnotify` varchar(128) default NULL ;";\r
31         \r
32         upgrade_query('Altering ' . sql_table('blog') . ' table', $query);\r
33         \r
34         // 3.5 -> 3.6\r
35         // update database version\r
36         update_version('360');\r
37         \r
38         // Remind user to re-install NP_Ping \r
39         // Remind user to re-install NP_Ping \r
40         echo '<p>注意: バージョン3.50よりNP_Pingに変更があるので、使用中の方は管理画面より再インストールしてください。</p>';\r
41 }\r
42 ?>\r