Warning: preg_match(): Unknown modifier '/' in /ctracker/engines/ct_ipblocker.php on line 66
managed to eleminate the error by comenting out this lines:
- /*
- * Now lets check if we have matches in the blocklist
- */
- if ( preg_match('/^' . $current_value . '$/is', $ct_client_ip) || preg_match('/^' . $current_value . '$/is', $ct_user_agent) || preg_match('/^' . $current_value . '$/is', $ct_remote_host) )
- {
- // We have a match, so write the log
- include_once($phpbb_root_path . 'ctracker/classes/class_log_manager.' . $phpEx);
- // write data into logfile
- $logfile = new log_manager();
- $logfile->write_general_logfile($ctracker_config->settings['ipblock_logsize'], 3);
- unset($logfile);
- // generate HTML output
- $htmloutput = '<html>
- <head><title>CBACK CrackerTracker :: Security Alert</title></head>
- <body>
- <br />
- <div align="center">
- <table style="border:2px solid #000000" border="0" width="600" cellpadding="10" cellspacing="0">
- <tr>
- <td align="left" bgcolor="#000000"><font face="Tahoma, Arial, Helvetica" size="4" color="#FFFFFF"><b>SECURITY ALERT » » » »</b></font></td>
- </tr>
- <tr>
- <td bgcolor="#FFF2CF" align="left">
- <font face="Tahoma, Arial, Helvetica" size="2" color="#000000"><b>CBACK CrackerTracker</b> blocked you because the Admin blocked your IP range, useragent or hostname from this board.<br /><br />
- If you think you're banned without a reason please tell the Admin from this error message and ask him what happened that he has the possibility to unblock you.
- </font>
- </td>
- </tr>
- </table>
- </div>
- </body>
- </html>';
- // stop the script
- die($htmloutput);
- }
Surely not the best solution... can someone help fixing this bug?