db_Delete("generic", "gen_id='$delete' "); } $message = FLALAN_3.": ".$delcount; $bancount = 0; foreach($_POST['flaban'] as $ban) { if($sql -> db_Select("generic", "*", "gen_id=$ban")) { $at = $sql -> db_Fetch(); $banlist_ip = $at['gen_ip']; $sql->db_Insert("banlist", "'$banlist_ip', '".ADMINID."', '".FLALAN_4."' "); $sql -> db_Delete("generic", "gen_id='$ban' "); $bancount ++; } } $message .= ", ".FLALAN_5.": ".$bancount; } if(e_QUERY == "dabl") { $sql -> db_Delete("generic", "gen_type='auto_banned' "); $message = FLALAN_17; } if($sql -> db_Select("generic", "*", "gen_type='auto_banned' ORDER BY gen_datestamp DESC ")) { $abArray = $sql -> db_getList(); $message = FLALAN_15; foreach($abArray as $ab) { $message .= " - ".$ab['gen_ip']; } $message .= "
( ".FLALAN_16." )
"; } if (isset($message)) { $ns->tablerender("", "
".$message."
"); } $gen = new convert; $fla_total = $sql->db_Count("generic", "(*)", "WHERE gen_type='failed_login'"); if(!$sql -> db_Select("generic", "*", "gen_type='failed_login' ORDER BY gen_datestamp DESC LIMIT $from,$amount")) { $text = "
".FLALAN_2."
"; } else { $faArray = $sql -> db_getList('ALL', FALSE, FALSE); $text = "
"; foreach($faArray as $fa) { extract($fa); $host = $e107->get_host_name(getenv($gen_ip)); $text .= " "; } $text .= "
".FLALAN_6." ".FLALAN_7." ".FLALAN_8." ".FLALAN_9."
".$gen->convert_date($gen_datestamp, "forum")." ".str_replace(":::", "
", htmlentities($gen_chardata))."
".$fa['gen_ip']."
{$host}
".LAN_DELETE."
".LAN_BAN."
".FLALAN_11." - ".FLALAN_12."
".FLALAN_13." - ".FLALAN_14."

"; $parms = $fla_total.",".$amount.",".$from.",".e_SELF.'?'."[FROM].".$amount; $text .= $tp->parseTemplate("{NEXTPREV={$parms}}"); $text .= "
"; } $ns->tablerender(FLALAN_1, $text); require_once("footer.php"); ?>