• R/O
  • HTTP
  • SSH
  • HTTPS

nucleus-plugins: Commit

Nucleus CMS日本語版用プラグインのうち、日本語版開発者がサポートしているもの


Commit MetaInfo

Revisionc9ab9f9e705377533b6a611a0d2a2974ff747a41 (tree)
Time2008-06-09 19:33:40
Authorhsur <hsur@1ca2...>
Commiterhsur

Log Message

v1.3.1

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@628 1ca29b6e-896d-4ea0-84a5-967f57386b96

Change Summary

Incremental Difference

--- a/trunk/NP_Blacklist/NP_Blacklist.php
+++ b/trunk/NP_Blacklist/NP_Blacklist.php
@@ -1,9 +1,9 @@
11 <?php
22
33 /**
4- * NP_Blacklist(JP) ($Revision: 1.13 $)
4+ * NP_Blacklist(JP) ($Revision: 1.14 $)
55 * by hsur ( http://blog.cles.jp/np_cles )
6- * $Id: NP_Blacklist.php,v 1.13 2008-05-04 00:41:54 hsur Exp $
6+ * $Id: NP_Blacklist.php,v 1.14 2008-06-09 10:33:40 hsur Exp $
77 *
88 * Based on NP_Blacklist 0.98
99 * by xiffy
@@ -41,10 +41,10 @@ class NP_Blacklist extends NucleusPlugin {
4141 return 'http://blog.cles.jp/np_cles/category/31/subcatid/11';
4242 }
4343 function getVersion() {
44- return '1.3';
44+ return '1.3.1';
4545 }
4646 function getDescription() {
47- return '[$Revision: 1.13 $]<br />'.NP_BLACKLIST_description;
47+ return '[$Revision: 1.14 $]<br />'.NP_BLACKLIST_description;
4848 }
4949 function supportsFeature($what) {
5050 switch ($what) {
--- a/trunk/NP_Blacklist/blacklist/blacklist_lib.php
+++ b/trunk/NP_Blacklist/blacklist/blacklist_lib.php
@@ -19,7 +19,7 @@
1919 //
2020 // Modified by hsur
2121 // http://blog.cles.jp
22-// $Id: blacklist_lib.php,v 1.12 2008-05-04 00:41:54 hsur Exp $
22+// $Id: blacklist_lib.php,v 1.13 2008-06-09 10:33:40 hsur Exp $
2323
2424 define('__WEBLOG_ROOT', dirname(dirname(realpath(__FILE__))));
2525 define('__EXT', '/blacklist');
@@ -358,7 +358,7 @@ function check_for_iprbl() {
358358 list ($a, $b, $c, $d) = explode('.', $spammer_ip);
359359
360360 foreach ($iprbl as $rbl) {
361- if (strpos(gethostbyname("$d.$c.$b.$a.$rbl"), '127.') === 0) {
361+ if ( gethostbynamel("$d.$c.$b.$a.$rbl") !== false ) {
362362 return array ($rbl, $spammer_ip);
363363 }
364364 }
@@ -380,7 +380,7 @@ function check_for_domainrbl($comment_text) {
380380 foreach ($domainrbl as $rbl) {
381381 if (strlen($domain_to_test) > 3) {
382382 //pbl_log('DNSBL Lookup: ' . $domain_to_test.'.'.$rbl);
383- if (strpos(gethostbyname($domain_to_test.'.'.$rbl), '127.') === 0) {
383+ if ( gethostbynamel("$domain_to_test.$rbl") !== false ) {
384384 return array ($rbl, $domain_to_test);
385385 }
386386 }
--- a/trunk/NP_Blacklist/blacklist/help.html
+++ b/trunk/NP_Blacklist/blacklist/help.html
@@ -4,6 +4,7 @@
44 <li> [Added] ログ消去時などに確認ダイアログが出るようにした。</li>
55 <li> [Added] 動作確認フォームを追加。</li>
66 <li> [Fixed] bulkfeedsが消滅したので関連機能を全て削除した。</li>
7+ <li> [Fixed] 127.で始まるIPを誤判定をする問題に対応(2008/06/09)</li>
78 </ul>
89
910 <ul>
Show on old repository browser