Page 5 of 13 FirstFirst ... 34567 ... LastLast
Results 41 to 50 of 124
  1. #41
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    OK, change /MY_ADMIN/ip_blocker.php (around line 70) to read:
    Code:
    } else {
      $ip_list = $db->Execute('SELECT * FROM ' . TABLE_IP_BLOCKER . ' WHERE ib_id=1');
      $enabled = (int)$ip_list->fields['ib_power'];
      $lockout_count = $ip_list->fields['ib_lockout_count'];
      $pwd = $ip_list->fields['ib_password'];
      $blocklist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_blocklist']));
      $blocklist = (is_array ($blocklist)) ? implode ("\r\n", $blocklist) : '';
      $passlist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_passlist']));
      $passlist = (is_array ($passlist) ? implode ("\r\n", $passlist) : '';
      
    }
    That should correct the issue. I'll get a v2.1.1 staged on github.

  2. #42
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by lat9 View Post
    Arggh. That because the previous version didn't encode an empty string properly (I'm guessing that your previous "Allowed IP Address" list was blank). Patch forthcoming ...
    In a word...yep

  3. #43
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by lat9 View Post
    OK, change /MY_ADMIN/ip_blocker.php (around line 70) to read:
    Code:
    } else {
      $ip_list = $db->Execute('SELECT * FROM ' . TABLE_IP_BLOCKER . ' WHERE ib_id=1');
      $enabled = (int)$ip_list->fields['ib_power'];
      $lockout_count = $ip_list->fields['ib_lockout_count'];
      $pwd = $ip_list->fields['ib_password'];
      $blocklist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_blocklist']));
      $blocklist = (is_array ($blocklist)) ? implode ("\r\n", $blocklist) : '';
      $passlist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_passlist']));
      $passlist = (is_array ($passlist) ? implode ("\r\n", $passlist) : '';
      
    }
    That should correct the issue. I'll get a v2.1.1 staged on github.
    Unexpected ';' on line 72

  4. #44
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    It's just not my day:
    Code:
    } else {
      $ip_list = $db->Execute('SELECT * FROM ' . TABLE_IP_BLOCKER . ' WHERE ib_id=1');
      $enabled = (int)$ip_list->fields['ib_power'];
      $lockout_count = $ip_list->fields['ib_lockout_count'];
      $pwd = $ip_list->fields['ib_password'];
      $blocklist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_blocklist']));
      $blocklist = (is_array ($blocklist)) ? implode ("\r\n", $blocklist) : '';
      $passlist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_passlist']));
      $passlist = (is_array ($passlist)) ? implode ("\r\n", $passlist) : '';
      
    }

  5. #45
    Join Date
    Dec 2010
    Location
    UK
    Posts
    1,771
    Plugin Contributions
    3

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by lat9 View Post
    It's just not my day:
    Code:
    } else {
      $ip_list = $db->Execute('SELECT * FROM ' . TABLE_IP_BLOCKER . ' WHERE ib_id=1');
      $enabled = (int)$ip_list->fields['ib_power'];
      $lockout_count = $ip_list->fields['ib_lockout_count'];
      $pwd = $ip_list->fields['ib_password'];
      $blocklist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_blocklist']));
      $blocklist = (is_array ($blocklist)) ? implode ("\r\n", $blocklist) : '';
      $passlist = ip_blocker_array_to_list (unserialize ($ip_list->fields['ib_passlist']));
      $passlist = (is_array ($passlist)) ? implode ("\r\n", $passlist) : '';
      
    }
    That did it

  6. #46
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    Great, thanks for the update.

  7. #47
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    I've installed the latest IP Blocker, 2.1.0. I'm having trouble with using the wildcards to block ranges. I can use 192.168.1.* OK but I get an invalid IP message when I use 192.168.* . There are several IP blocks that are logging hits but nothing else ie. 209.19.xxx.xxx. I could really use the wildcards...

    Thanks!

  8. #48
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by chain_man View Post
    I've installed the latest IP Blocker, 2.1.0. I'm having trouble with using the wildcards to block ranges. I can use 192.168.1.* OK but I get an invalid IP message when I use 192.168.* . There are several IP blocks that are logging hits but nothing else ie. 209.19.xxx.xxx. I could really use the wildcards...

    Thanks!
    IP Blocker currently supports wildcards only in the lowest octet.

  9. #49
    Join Date
    Dec 2005
    Location
    Box Elder, SD
    Posts
    373
    Plugin Contributions
    0

    Default Re: IP Blocker 1.5.1

    Thanks. The readme should probably be changed then.

  10. #50
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,492
    Plugin Contributions
    88

    Default Re: IP Blocker 1.5.1

    Quote Originally Posted by chain_man View Post
    Thanks. The readme should probably be changed then.
    Eek! Right you are.

 

 
Page 5 of 13 FirstFirst ... 34567 ... LastLast

Similar Threads

  1. v139h Pop up blocker blocking new window
    By kitten091182 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Nov 2013, 02:07 PM
  2. v139g ip blocker mod problem
    By michelleodin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 24 Nov 2012, 04:54 PM
  3. IP Blocker for Admin side?
    By fe1lho in forum Basic Configuration
    Replies: 3
    Last Post: 18 May 2010, 04:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR