Changeset 1258674
- Timestamp:
- 10/03/2015 08:12:21 AM (11 years ago)
- Location:
- botnet-blocker/trunk
- Files:
-
- 3 edited
-
botnet-blocker.php (modified) (2 diffs)
-
class.bnblocker-config.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
botnet-blocker/trunk/botnet-blocker.php
r1256638 r1258674 5 5 Description: Free botnet IP blocker according to public DNSBL bases. Based on public DNSBL class. 6 6 Author: Dennis Wallace 7 Version: 1.2. 17 Version: 1.2.2 8 8 License: GPLv2 or later 9 9 */ … … 59 59 */ 60 60 public static function uninstall() { 61 } 62 61 } 63 62 /** 64 63 * Things that run during the WP init action -
botnet-blocker/trunk/class.bnblocker-config.php
r1256638 r1258674 135 135 public function preplist( $list, $ip = true ) { 136 136 $a = $list; 137 $a = str_replace( array("\r", "\n","\t"," "), ";", $a );137 $a = str_replace( array("\r", "\n"), "\n", $a ); 138 138 if ( $ip ) { 139 $a = preg_replace( '/[^.0-9\/]+/', " ;", $list );139 $a = preg_replace( '/[^.0-9\/]+/', "\n", $list ); 140 140 } else { 141 141 $a = strtolower( $a ); 142 142 } 143 143 $a = trim( $a ); 144 $a = trim( $a, ';' ); 145 $a = explode( ';', $a ); 144 $a = explode( "\n", $a ); 146 145 $b = array(); 147 146 foreach ( $a as $i ) { 148 147 if ( ! empty ( $i ) ) { 148 $n = strpos( $i, "#" ); 149 if ( $n !== false ) { 150 $i = substr( $i, 0, $n - 1 ); 151 } 149 152 $b[$i] = true; 150 153 } … … 163 166 // Get the checked options 164 167 $this->skipself = $this->get_option( 'bnblocker_skipself', 'bnblocker_core', 'on' ); 165 $this->onload = $this->get_option( 'bnblocker_onload', 'bnblocker_ onload', '' );168 $this->onload = $this->get_option( 'bnblocker_onload', 'bnblocker_core', '' ); 166 169 167 170 // Get the skip list -
botnet-blocker/trunk/readme.txt
r1256638 r1258674 4 4 Requires at least: 4.0.0 5 5 Tested up to: 4.3.1 6 Stable tag: 1.2. 16 Stable tag: 1.2.3 7 7 License: GPLv2 8 8 … … 39 39 == Upgrade Notice == 40 40 41 = 1.2.2 = 42 Added commenting in lists, now respects the Block on Page Load setting 43 41 44 = 1.2.1 = 42 45 Fixed preg_match errors in DNS matching … … 54 57 == Changelog == 55 58 59 = 1.2.2 = 60 * Block on Page Load setting now retrieved properly 61 * All lists support commenting via # (hash) 56 62 57 63 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.