Changeset 497064
- Timestamp:
- 01/29/2012 09:46:24 PM (14 years ago)
- Location:
- no-soup
- Files:
-
- 2 edited
- 3 copied
-
tags/0.3 (copied) (copied from no-soup/trunk)
-
tags/0.3/no-soup.php (copied) (copied from no-soup/trunk/no-soup.php) (5 diffs)
-
tags/0.3/readme.txt (copied) (copied from no-soup/trunk/readme.txt) (1 diff)
-
trunk/no-soup.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
no-soup/tags/0.3/no-soup.php
r496824 r497064 4 4 Plugin URI: http://jonasnordstrom.se/plugins/no-soup/ 5 5 Description: Blocks user from IP-ranges that you specify and sends them to another page 6 Version: 0. 26 Version: 0.3 7 7 Author: Jonas Nordstrom 8 8 Author URI: http://jonasnordstrom.se/ … … 39 39 public function NoSoup() { 40 40 $this->bad_ip_ranges = get_option('_no_soup_bad_ip_ranges', ''); 41 $this->eat_that = get_option('_no_soup_eat_that', ' http://jonasnordstrom.se/');41 $this->eat_that = get_option('_no_soup_eat_that', ''); 42 42 } 43 43 public function init_admin() { … … 56 56 <div class="updated"><p><strong><?php _e('Settings saved.', 'nosoup' ); ?></strong></p></div> 57 57 <?php 58 59 58 } 60 59 61 // The form, with all names and a checkbox in front62 60 ?> 63 61 <div class="wrap"> … … 112 110 foreach ( $networks as $range ) : 113 111 if ( false === strpos($range, '-')) : 114 if ( $this->in_cidr( $range, $ip ) ) :115 return true;112 if ( 3 <= substr_count( $range, '.' ) && $this->in_cidr( $range, $ip ) ) : 113 return true; 116 114 endif; 117 115 else : … … 161 159 } 162 160 163 add_action( 'admin_menu', array(&$nosoup, 'init_admin' ) );161 add_action( 'admin_menu', array(&$nosoup, 'init_admin') ); 164 162 add_action( 'init', array(&$nosoup, 'check_ip') ); -
no-soup/tags/0.3/readme.txt
r496827 r497064 18 18 19 19 == Changelog == 20 21 = 0.3 = 22 Fixed activation error, empty settings will now be ignored. 20 23 21 24 = 0.2 = -
no-soup/trunk/no-soup.php
r496824 r497064 4 4 Plugin URI: http://jonasnordstrom.se/plugins/no-soup/ 5 5 Description: Blocks user from IP-ranges that you specify and sends them to another page 6 Version: 0. 26 Version: 0.3 7 7 Author: Jonas Nordstrom 8 8 Author URI: http://jonasnordstrom.se/ … … 39 39 public function NoSoup() { 40 40 $this->bad_ip_ranges = get_option('_no_soup_bad_ip_ranges', ''); 41 $this->eat_that = get_option('_no_soup_eat_that', ' http://jonasnordstrom.se/');41 $this->eat_that = get_option('_no_soup_eat_that', ''); 42 42 } 43 43 public function init_admin() { … … 56 56 <div class="updated"><p><strong><?php _e('Settings saved.', 'nosoup' ); ?></strong></p></div> 57 57 <?php 58 59 58 } 60 59 61 // The form, with all names and a checkbox in front62 60 ?> 63 61 <div class="wrap"> … … 112 110 foreach ( $networks as $range ) : 113 111 if ( false === strpos($range, '-')) : 114 if ( $this->in_cidr( $range, $ip ) ) :115 return true;112 if ( 3 <= substr_count( $range, '.' ) && $this->in_cidr( $range, $ip ) ) : 113 return true; 116 114 endif; 117 115 else : … … 161 159 } 162 160 163 add_action( 'admin_menu', array(&$nosoup, 'init_admin' ) );161 add_action( 'admin_menu', array(&$nosoup, 'init_admin') ); 164 162 add_action( 'init', array(&$nosoup, 'check_ip') ); -
no-soup/trunk/readme.txt
r496827 r497064 18 18 19 19 == Changelog == 20 21 = 0.3 = 22 Fixed activation error, empty settings will now be ignored. 20 23 21 24 = 0.2 =
Note: See TracChangeset
for help on using the changeset viewer.