sql_query("SELECT `ip_addr`, `reason` FROM `".$prefix."_nsnst_blocked_ips` ORDER BY `date` DESC LIMIT 10");
while (list($ip_addr, $ip_reason) = $db->sql_fetchrow($result)) {
if((is_admin($admin) AND $ab_config['display_link']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_link']==2) OR $ab_config['display_link']==3) {
$lookupip = str_replace("*", "0", $ip_addr);
$content .= "· $ip_addr\n";
} else {
$content .= "· $ip_addr\n";
}
if((is_admin($admin) AND $ab_config['display_reason']==1) OR ((is_user($user) OR is_admin($admin)) AND $ab_config['display_reason']==2) OR $ab_config['display_reason']==3) {
$result2 = $db->sql_query("SELECT `reason` FROM `".$prefix."_nsnst_blockers` WHERE `blocker`='$ip_reason'");
list($reason) = $db->sql_fetchrow($result2);
$reason = str_replace("Abuse-","",$reason);
$content .= " - $reason\n";
}
$content .= "
\n";
}
$content .= "