From 64ebccd6022aae8f92f38b4355761539b34469e8 Mon Sep 17 00:00:00 2001 From: Git Date: Mon, 5 Aug 2013 08:00:44 +0000 Subject: [PATCH] Empty commit --- docs/CHANGES.txt | 3 +++ sections/tools/managers/email_blacklist.php | 22 +++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 16252fd3..ecd1cee8 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,8 @@ CHANGELOG +2013-08-05 by Ajax +Search email blacklist + 2013-07-30 by Y Collage API additions. diff --git a/sections/tools/managers/email_blacklist.php b/sections/tools/managers/email_blacklist.php index 82d0d025..0b0369ba 100644 --- a/sections/tools/managers/email_blacklist.php +++ b/sections/tools/managers/email_blacklist.php @@ -6,6 +6,20 @@ list ($Page, $Limit) = Format::page_limit(EMAILS_PER_PAGE); View::show_header('Manage email blacklist'); +$Where = ""; +if (!empty($_POST['email'])) { + $Email = db_string($_POST['email']); + $Where .= " WHERE eb.Email LIKE '%$Email%'"; +} +if (!empty($_POST['comment'])) { + $Comment = db_string($_POST['comment']); + if (!empty($Where)) { + $Where .= " AND"; + } else { + $Where .= " WHERE"; + } + $Where .= " eb.Comment LIKE '%$Comment%'"; +} $DB->query(" SELECT SQL_CALC_FOUND_ROWS @@ -15,6 +29,7 @@ eb.Email, eb.Comment FROM email_blacklist AS eb + $Where ORDER BY eb.Time DESC LIMIT $Limit"); $Results = $DB->to_array(false, MYSQLI_ASSOC, false); @@ -24,6 +39,13 @@

Email Blacklist

+
+
+ + + + +