diff --git a/www/vicidial/admin_search_lead.php b/www/vicidial/admin_search_lead.php
index 555b36ad..b1b6dc91 100644
--- a/www/vicidial/admin_search_lead.php
+++ b/www/vicidial/admin_search_lead.php
@@ -6,12 +6,15 @@
# AST GUI database administration search for lead info
# admin_modify_lead.php
#
-# this is the administration lead information modifier screen, the administrator just needs to enter the leadID and then they can view and modify the information in the record for that lead
+# this is the administration lead information modifier screen, the administrator
+# just needs to enter the leadID and then they can view and modify the information
+# in the record for that lead
#
# changes:
# 60620-1055 - Added variable filtering to eliminate SQL injection attack threat
# - Added required user/pass to gain access to this page
# - Changed results to multi-record
+# 80710-0023 - Added searching by list, user, status
#
require("dbconnect.php");
@@ -31,6 +34,12 @@ if (isset($_GET["SUBMIT"])) {$SUBMIT=$_GET["SUBMIT"];}
elseif (isset($_POST["SUBMIT"])) {$SUBMIT=$_POST["SUBMIT"];}
if (isset($_GET["DB"])) {$DB=$_GET["DB"];}
elseif (isset($_POST["DB"])) {$DB=$_POST["DB"];}
+if (isset($_GET["status"])) {$status=$_GET["status"];}
+ elseif (isset($_POST["status"])) {$status=$_POST["status"];}
+if (isset($_GET["user"])) {$user=$_GET["user"];}
+ elseif (isset($_POST["user"])) {$user=$_POST["user"];}
+if (isset($_GET["list_id"])) {$list_id=$_GET["list_id"];}
+ elseif (isset($_POST["list_id"])) {$list_id=$_POST["list_id"];}
$PHP_AUTH_USER = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_USER);
$PHP_AUTH_PW = ereg_replace("[^0-9a-zA-Z]","",$PHP_AUTH_PW);
@@ -102,7 +111,7 @@ $browser = getenv("HTTP_USER_AGENT");
echo "VICIDIAL ADMIN: Lead search
\n";
-if ( (!$vendor_id) and (!$phone) and (!$lead_id) )
+if ( (!$vendor_id) and (!$phone) and (!$lead_id) and ( (strlen($status)<1) and (strlen($list_id)<1) and (strlen($user)<1) ))
{
echo date("l F j, Y G:i:s A");
echo "\n