db_Delete("generic", "gen_id=$id"); $message = MESSLAN_3; } } if(isset($_POST['delete_all']) && isset($_POST['deleteconfirm'])) { $sql->db_Delete("generic", $queryString); $message = MESSLAN_6; } if (isset($message)) { $ns->tablerender("", "
".$message."
"); } if($amount = $sql -> db_Select("generic", "*", $queryString)) { $text = "\n\n"; $messages = $sql -> db_getList(); foreach($messages as $message) { extract($message); $sql -> db_Select("user", "user_name", "user_id=$gen_user_id"); $user = $sql -> db_Fetch(); $user = "".$user['user_name'].""; switch($gen_type) { case "Broken Download": $link = "$gen_ip"; $link .= " [".LAN_EDIT."]"; break; case "Dev Team Message": $link = ""; break; } $text .= "\n\n"; } $text .= "
".MESSLAN_8.": $gen_type
".MESSLAN_9.": ".$gen->convert_date($gen_datestamp, 'long')."
".MESSLAN_10.": $user
".MESSLAN_13.": $link "; ($gen_chardata ? "
".MESSLAN_12.": $gen_chardata" : "")."

".MESSLAN_5."
"; } else { $text = MESSLAN_7; } $ns->tablerender(MESSLAN_1, $text); require_once("footer.php"); /* if ($action != "edit") { $text = $rs->form_open("post", e_SELF, "ban_form")."
".$rs->form_hidden("ban_secure", "1")."
\n"; if (!$ban_total = $sql->db_Select("banlist")) { $text .= "
".BANLAN_2."
"; } else { $text .= ""; $count = 0; while ($row = $sql->db_Fetch()) { extract($row); $text .= "\n"; $count++; } $text .= "
".BANLAN_10." ".BANLAN_11."
$banlist_ip
".BANLAN_7.": $banlist_reason
".$rs->form_button("submit", "main_edit_$count", BANLAN_12, "onclick=\"document.getElementById('ban_form').action='".e_SELF."?edit-$banlist_ip'\"").$rs->form_button("submit", "main_delete_$count", BANLAN_4, "onclick=\"document.getElementById('ban_form').action='".e_SELF."?remove-$banlist_ip'\"")."
\n"; } $text .= "
".$rs->form_close(); $ns->tablerender(BANLAN_3, $text); } if ($action == "edit") { $sql2->db_Select("banlist", "*", "banlist_ip='$sub_action'"); $row = $sql2->db_Fetch(); extract($row); } else { unset($banlist_ip, $banlist_reason); if (e_QUERY && strpos($_SERVER["HTTP_REFERER"], "userinfo")) { $banlist_ip = $action; } } $text = "
".BANLAN_5.":
".BANLAN_7.":
". ($action == "edit" ? "" : "")."
"; $ns->tablerender(BANLAN_9, $text); require_once("footer.php"); */ ?>