codes****@googl*****
codes****@googl*****
2009年 4月 1日 (水) 21:41:50 JST
Author: mystralkk Date: Wed Apr 1 04:03:10 2009 New Revision: 1380 Added: trunk/plugins/sitemap/admin/sql-1.1.4_1.1.5.php (contents, props changed) Modified: trunk/plugins/sitemap/admin/index.php trunk/plugins/sitemap/admin/install.html trunk/plugins/sitemap/admin/install_ja.html trunk/plugins/sitemap/admin/sql.php trunk/plugins/sitemap/config.php trunk/plugins/sitemap/functions.inc Log: sitemapプラグインをバージョン1.1.5に更新しました。 Modified: trunk/plugins/sitemap/admin/index.php ============================================================================== --- trunk/plugins/sitemap/admin/index.php (original) +++ trunk/plugins/sitemap/admin/index.php Wed Apr 1 04:03:10 2009 @@ -5,7 +5,7 @@ // +---------------------------------------------------------------------------+ // | public_html/admin/plugins/sitemap/index.php | // +---------------------------------------------------------------------------+ -// | Copyright (C) 2007-2008 mystral-kk - geeklog AT mystral-k DOT net | +// | Copyright (C) 2007-2009 mystral-kk - geeklog AT mystral-k DOT net | // | | // | Constructed with the Universal Plugin | // | Copyright (C) 2002 by the following authors: | Modified: trunk/plugins/sitemap/admin/install.html ============================================================================== --- trunk/plugins/sitemap/admin/install.html (original) +++ trunk/plugins/sitemap/admin/install.html Wed Apr 1 04:03:10 2009 @@ -37,7 +37,7 @@ <body> <h1>Install/Uninstall instruction for the Geeklog sitemap plugin</h1> - <h2>Sitemap plugin [ver. 1.1.4: 2008-12-26]</h2> + <h2>Sitemap plugin [ver. 1.1.5: 2009-04-01]</h2> <p>In the following descriptions</p> <ul> <li><span class="geeklog"><geeklog_dir></span> is the directory where the system config.php file resides</li> @@ -80,18 +80,25 @@ </ul> <h2>HISTORY</h2> - <table border="1"> + <table border="1" summary="History of Geeklog Sitemap plugin"> <tr> <th>Version</th> <th>Date</th> <th>Description</th> </tr> <tr> + <td align="right">1.1.5</td> + <td>2009-04-01</td> + <td> + <span class="fix">Fixed</span> Fixed to hold a longer string in configuration. + </td> + </tr> + <tr> <td align="right">1.1.4</td> <td>2008-12-26</td> <td> <span class="fix">Fixed</span> Fixed to properly output entries of static pages into Google sitemap.<br> - <span class="new">New</span> Now you can configure settings for static pages from admin GUI menu.<br> + <span class="new">New</span> Now you can configure settings for static pages from admin GUI menu. </td> </tr> <tr> Modified: trunk/plugins/sitemap/admin/install_ja.html ============================================================================== --- trunk/plugins/sitemap/admin/install_ja.html (original) +++ trunk/plugins/sitemap/admin/install_ja.html Wed Apr 1 04:03:10 2009 @@ -40,7 +40,7 @@ <body> <h1>Geeklog sitemapプラグインのインストール/アンインストール</h1> - <h2>Sitemapプラグイン[ver. 1.1.4: 2008-12-26]の概要</h2> + <h2>Sitemapプラグイン[ver. 1.1.5: 2009-04-01]の概要</h2> <p>制作者:mystral-kk - geeklog AT mystral-kk DOT net</p> <p>GeeklogサイトのサイトマップとGoogleサイトマップを作成します。Google sitemap generatorをインストールされていた方は,事前に削除しておいてくださ い。</p> @@ -87,18 +87,24 @@ </ul> <h2>改訂歴</h2> - <table border="1"> + <table border="1" summary="サイトマッププラグインの更新履歴"> <tr> <th>バージョン</th> <th>公開日</th> <th>内容</th> </tr> <tr> + <td align="right">1.1.5</td> + <td>2009-04-01</td> + <td> + <span class="fix">Fixed</span> 設定値でより長い文字列を保存できるように 修正しました。 + </td> + <tr> <td align="right">1.1.4</td> <td>2008-12-26</td> <td> <span class="fix">Fixed</span> Googleサイトマップで静的ページが出力され ていなかったバグを修正しました。<br> - <span class="new">New</span> 静的ページの設定を管理者メニューから設定で きるようにしました。<br> + <span class="new">New</span> 静的ページの設定を管理者メニューから設定で きるようにしました。 </td> </tr> <tr> Added: trunk/plugins/sitemap/admin/sql-1.1.4_1.1.5.php ============================================================================== --- (empty file) +++ trunk/plugins/sitemap/admin/sql-1.1.4_1.1.5.php Wed Apr 1 04:03:10 2009 @@ -0,0 +1,43 @@ +<?php + +// +---------------------------------------------------------------------------+ +// | Sitemap Plugin for Geeklog - The Ultimate Weblog | +// +---------------------------------------------------------------------------+ +// | public_html/admin/plugins/sitemap/sql-1.0.1_1.1.4.php | +// +---------------------------------------------------------------------------+ +// | Copyright (C) 2007-2009 mystral-kk - geeklog AT mystral-k DOT net | +// | | +// | Constructed with the Universal Plugin | +// | Copyright (C) 2002 by the following authors: | +// | Tom Willett - twill****@users***** | +// | Blaine Lang - langm****@sympa***** | +// | The Universal Plugin is based on prior work by: | +// | Tony Bibbs - tony****@tonyb***** | +// +---------------------------------------------------------------------------+ +// | | +// | This program is free software; you can redistribute it and/or | +// | modify it under the terms of the GNU General Public License | +// | as published by the Free Software Foundation; either version 2 | +// | of the License, or (at your option) any later version. | +// | | +// | This program is distributed in the hope that it will be useful, | +// | but WITHOUT ANY WARRANTY; without even the implied warranty of | +// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | +// | GNU General Public License for more details. | +// | | +// | You should have received a copy of the GNU General Public License | +// | along with this program; if not, write to the Free Software Foundation, | +// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | +// | | +// +---------------------------------------------------------------------------+ + +require_once $_CONF['path'] . 'plugins/sitemap/config.php'; + +if (strpos(strtolower($_SERVER['PHP_SELF']), 'sql-1.1.4_1.1.5.php') !== FALSE) { + die('This file cannot be used on its own.'); +} + +// Default data +$DATA_114_TO_115 = array( + "ALTER TABLE {$_TABLES['smap_config']} CHANGE value value VARCHAR(255) NULL DEFAULT NULL", +); Modified: trunk/plugins/sitemap/admin/sql.php ============================================================================== --- trunk/plugins/sitemap/admin/sql.php (original) +++ trunk/plugins/sitemap/admin/sql.php Wed Apr 1 04:03:10 2009 @@ -5,7 +5,7 @@ // +---------------------------------------------------------------------------+ // | public_html/admin/plugins/sitemap/sql.php | // +---------------------------------------------------------------------------+ -// | Copyright (C) 2007-2008 mystral-kk - geeklog AT mystral-k DOT net | +// | Copyright (C) 2007-2009 mystral-kk - geeklog AT mystral-k DOT net | // | | // | Constructed with the Universal Plugin | // | Copyright (C) 2002 by the following authors: | @@ -42,7 +42,7 @@ $NEWTABLE = array(); $NEWTABLE['smap_config'] = "CREATE TABLE {$_TABLES['smap_config']} (" . "name VARCHAR(30) NOT NULL default ''," - . "value VARCHAR(50)," + . "value VARCHAR(255)," . "PRIMARY KEY name(name)" . ")"; Modified: trunk/plugins/sitemap/config.php ============================================================================== --- trunk/plugins/sitemap/config.php (original) +++ trunk/plugins/sitemap/config.php Wed Apr 1 04:03:10 2009 @@ -5,7 +5,7 @@ // +---------------------------------------------------------------------------+ // | geeklog/plugins/sitemap/config.php | // +---------------------------------------------------------------------------+ -// | Copyright (C) 2007-2008 mystral-kk - geeklog AT mystral-k DOT net | +// | Copyright (C) 2007-2009 mystral-kk - geeklog AT mystral-k DOT net | // | | // | Constructed with the Universal Plugin | // | Copyright (C) 2002 by the following authors: | @@ -49,6 +49,6 @@ // Plugin info -$_SMAP_CONF['pi_version'] = '1.1.4'; // Plugin Version +$_SMAP_CONF['pi_version'] = '1.1.5'; // Plugin Version $_SMAP_CONF['gl_version'] = '1.4.0'; // GL Version plugin for $_SMAP_CONF['pi_url'] = 'http://mystral-kk.net/'; // Plugin Homepage Modified: trunk/plugins/sitemap/functions.inc ============================================================================== --- trunk/plugins/sitemap/functions.inc (original) +++ trunk/plugins/sitemap/functions.inc Wed Apr 1 04:03:10 2009 @@ -5,7 +5,7 @@ // +---------------------------------------------------------------------------+ // | geeklog/plugins/sitemap/functions.inc | // +---------------------------------------------------------------------------+ -// | Copyright (C) 2007-2008 mystral-kk - geeklog AT mystral-k DOT net | +// | Copyright (C) 2007-2009 mystral-kk - geeklog AT mystral-k DOT net | // | | // | Constructed with the Universal Plugin | // | Copyright (C) 2002 by the following authors: | @@ -157,7 +157,7 @@ case '1.0': require_once $_CONF['path_html'] . 'admin/plugins/sitemap/sql-1.0_1.0.1.php'; foreach ($VALUES_100_TO_101 as $table => $sqls) { - COM_errorLog("Inserting default data into $table table", 1); + COM_errorLog("Sitemap: inserting default data into $table table", 1); foreach ($sqls as $sql) { DB_query($sql, 1); } @@ -172,9 +172,18 @@ case '1.1.2': case '1.1.3': // This version doesn't exist require_once $_CONF['path_html'] . 'admin/plugins/sitemap/sql-1.0.1_1.1.4.php'; - COM_errorLog("Inserting default data into table", 1); + COM_errorLog("Sitemap: inserting default data into table", 1); foreach ($DATA_101_TO_114 as $sql) { + DB_query($sql, 1); + } + break; + + case '1.1.4': + require_once $_CONF['path_html'] . 'admin/plugins/sitemap/sql-1.1.4_1.1.5.php'; + COM_errorLog("Sitemap: altering table structure", 1); + + foreach ($DATA_114_TO_115 as $sql) { DB_query($sql, 1); } break;