20
i had changed it but can't have done it right, though i now done it again to what i think it should be
below is what i done to it now
// #################### Error reporting settings ##################
error_reporting(E_ALL);
if ($xoopsConfig['debug_mode'] == 1) {
error_reporting(E_ALL);
} else {
// Turn off error handler
$xoopsErrorHandler->activate(false);
}
if ($xoopsConfig['enable_badips'] == 1 && isset($HTTP_SERVER_VARS['REMOTE_ADDR']) && $HTTP_SERVER_VARS['REMOTE_ADDR'] != '') {
foreach ($xoopsConfig['bad_ips'] as $bi) {
if (!empty($bi) && preg_match("/".$bi."/", $HTTP_SERVER_VARS['REMOTE_ADDR'])) {
exit();
}
}
}
unset($bi);
unset($bad_ips);
unset($xoopsConfig['badips']);
// ################# Include version info file ##############