codes****@googl*****
codes****@googl*****
2008年 9月 26日 (金) 23:13:48 JST
Author: mystralkk Date: Fri Sep 26 07:13:35 2008 New Revision: 749 Modified: trunk/plugins/autotags/README_ja.txt trunk/plugins/autotags/config.php trunk/plugins/autotags/functions.inc Log: インクルードファイルの直接呼び出し防止策を追加しました。 Modified: trunk/plugins/autotags/README_ja.txt ============================================================================== --- trunk/plugins/autotags/README_ja.txt (original) +++ trunk/plugins/autotags/README_ja.txt Fri Sep 26 07:13:35 2008 @@ -1,5 +1,6 @@ このautotagsプラグインは,本家の1.01に対して,日本語言語ファイルと,タグ管 理画面のテンプレート(タイトルセルにnowrapを追加)を変更したものを追加・差し 替えて配布しています。 日本語作成 by Ivy -2008.1.15 日本語修正 by dengenさん - +2008-01-15 1.01 日本語修正 by dengenさん +2008-09-12 1.01jp1 CSRF対策追加 by mystral-kk +2008-09-26 1.01jp2 インクルードファイル直接呼び出し防止策追加 by mystral-kk Modified: trunk/plugins/autotags/config.php ============================================================================== --- trunk/plugins/autotags/config.php (original) +++ trunk/plugins/autotags/config.php Fri Sep 26 07:13:35 2008 @@ -36,9 +36,13 @@ // +---------------------------------------------------------------------------+ // +if (strpos(strtolower($_SERVER['PHP_SELF']), 'config.php') !== false) { + die('This file can not be used on its own.'); +} + $_AUTO_CONF = Array(); -$_AUTO_CONF['version'] = '1.01'; +$_AUTO_CONF['version'] = '1.01jp2'; /* * Adds a link to top menu for access to the autotag link in Modified: trunk/plugins/autotags/functions.inc ============================================================================== --- trunk/plugins/autotags/functions.inc (original) +++ trunk/plugins/autotags/functions.inc Fri Sep 26 07:13:35 2008 @@ -36,6 +36,10 @@ // +---------------------------------------------------------------------------+ // +if (strpos(strtolower($_SERVER['PHP_SELF']), 'functions.inc') !== false) { + die('This file can not be used on its own.'); +} + if (!defined('XHTML')) { define('XHTML', ''); }