From c1fcaed2ee8f05a5030fe4e8e211ca4eae7a9489 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Tue, 11 Jun 2013 11:44:57 -0400
Subject: [PATCH] - Fixed FS#2921 - RBL list field in server config can not be empty.
---
interface/web/mail/list/mail_whitelist.list.php | 25 +++++++++++++------------
1 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/interface/web/mail/list/mail_whitelist.list.php b/interface/web/mail/list/mail_whitelist.list.php
index 79a582c..beb3cab 100644
--- a/interface/web/mail/list/mail_whitelist.list.php
+++ b/interface/web/mail/list/mail_whitelist.list.php
@@ -16,16 +16,16 @@
$liste["name"] = "mail_whitelist";
// Database table
-$liste["table"] = "mail_whitelist";
+$liste["table"] = "mail_access";
// Index index field of the database table
-$liste["table_idx"] = "whitelist_id";
+$liste["table_idx"] = "access_id";
// Search Field Prefix
$liste["search_prefix"] = "search_";
// Records per page
-$liste["records_per_page"] = 15;
+$liste["records_per_page"] = "15";
// Script File of the list
$liste["file"] = "mail_whitelist_list.php";
@@ -54,7 +54,7 @@
'prefix' => "",
'suffix' => "",
'width' => "",
- 'value' => array('1' => "Yes",'0' => "No"));
+ 'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>Yes</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>No</span></div>"));
$liste["item"][] = array( 'field' => "server_id",
@@ -71,7 +71,8 @@
'width' => "",
'value' => "");
-$liste["item"][] = array( 'field' => "address",
+
+$liste["item"][] = array( 'field' => "source",
'datatype' => "VARCHAR",
'formtype' => "TEXT",
'op' => "like",
@@ -80,14 +81,14 @@
'width' => "",
'value' => "");
-$liste["item"][] = array( 'field' => "recipient",
+$liste["item"][] = array( 'field' => "type",
'datatype' => "VARCHAR",
- 'formtype' => "TEXT",
- 'op' => "like",
- 'prefix' => "%",
- 'suffix' => "%",
+ 'formtype' => "SELECT",
+ 'op' => "=",
+ 'prefix' => "",
+ 'suffix' => "",
'width' => "",
- 'value' => "");
+ 'value' => array('recipient' => 'recipient_txt', 'sender' => 'sender_txt', 'client' => 'client_txt'));
-?>
\ No newline at end of file
+?>
--
Gitblit v1.9.1