Ignore:
Timestamp:
Mar 11, 2010, 11:03:23 PM (14 years ago)
Author:
Eric
Message:

[nbc_HistoryIPExcluder]

This set works fine. A fist release will be build ASAP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/nbc_HistoryIPExcluder/trunk/main.inc.php

    r5099 r5113  
    3838  global $conf;
    3939
    40   $conf_HIPE = unserialize($conf['nbc_HistoryIPExcluder']);
    41   //$conf_nbc_HistoryIPExcluder = explode("," , $conf['nbc_HistoryIPExcluder']);
     40  $conf_HIPE = explode("," , $conf['nbc_HistoryIPExcluder']);
    4241
    43   if ( !$do_log )
     42  if (!$do_log)
    4443    return $do_log;
    4544  else
    4645  {
    47     $IP_Client = explode(".", $_SERVER['REMOTE_ADDR']);
     46    $IP_Client = explode('.', $_SERVER['REMOTE_ADDR']);
    4847 
    49     foreach ( $conf_HIPE as $Exclusion )
     48    foreach ($conf_HIPE as $Exclusion)
    5049    {
    51       $IP_Exclude = explode(".", $Exclusion);
     50      $IP_Exclude = explode('.', $Exclusion);
    5251 
    5352      if (
Note: See TracChangeset for help on using the changeset viewer.