".$locale['401'].""; } opentable($title); echo "
".$message."
\n"; closetable(); tablebreak(); } if ($step == "delete") { $result = dbquery("DELETE FROM ".$db_prefix."blacklist WHERE blacklist_id='$blacklist_id'"); redirect(FUSION_SELF.$aidlink."&status=del"); } else { if (isset($_POST['blacklist_user'])) { $blacklist_ip = stripinput($_POST['blacklist_ip']); $blacklist_email = stripinput($_POST['blacklist_email']); $blacklist_reason = stripinput($_POST['blacklist_reason']); if ($blacklist_ip || $blacklist_email) { if ($step == "edit") { $result = dbquery("UPDATE ".$db_prefix."blacklist SET blacklist_ip='$blacklist_ip', blacklist_email='$blacklist_email', blacklist_reason='$blacklist_reason' WHERE blacklist_id='$blacklist_id'"); } else { $result = dbquery("INSERT INTO ".$db_prefix."blacklist (blacklist_ip, blacklist_email, blacklist_reason) VALUES ('$blacklist_ip', '$blacklist_email', '$blacklist_reason')"); } } redirect(FUSION_SELF.$aidlink); } if ($step == "edit") { $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."blacklist WHERE blacklist_id='$blacklist_id'")); $blacklist_ip = $data['blacklist_ip']; $blacklist_email = $data['blacklist_email']; $blacklist_reason = $data['blacklist_reason']; $form_title = $locale['421']; $form_action = FUSION_SELF.$aidlink."&step=edit&blacklist_id=".$data['blacklist_id']; } else { $blacklist_ip = ""; $blacklist_email = ""; $blacklist_reason = ""; $form_title = $locale['420']; $form_action = FUSION_SELF.$aidlink; } opentable($form_title); echo "
".$locale['440']."
".$locale['441']."
".$locale['442']."
".$locale['443']."

"; closetable(); tablebreak(); opentable($locale['460']); $result = dbquery("SELECT * FROM ".$db_prefix."blacklist"); if (dbrows($result) != 0) { $i = 0; echo "\n"; while ($data = dbarray($result)) { $row_color = ($i % 2 == 0 ? "tbl1" : "tbl2"); echo "\n"; } echo "
".$locale['461']." ".$locale['462']."
".($data['blacklist_ip'] ? $data['blacklist_ip'] : $data['blacklist_email'])."
".$data['blacklist_reason']."
".$locale['463']." - ".$locale['464']."
\n"; } else { echo "

\n".$locale['465']."

\n
\n"; } closetable(); } echo "\n"; require_once BASEDIR."footer.php"; ?>