From 5734aa4561e8b6027bdecabdc795432fb3cc024e Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 27 Oct 2009 11:35:37 -0400
Subject: [PATCH] Updated apacheChanged apache_ispconfig.conf.master template to allow access to phpmyadmin and squirrelmail in redhat based distributions.
---
interface/web/mail/form/mail_user.tform.php | 48 +++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 45 insertions(+), 3 deletions(-)
diff --git a/interface/web/mail/form/mail_user.tform.php b/interface/web/mail/form/mail_user.tform.php
index eba1e1f..5ed0146 100644
--- a/interface/web/mail/form/mail_user.tform.php
+++ b/interface/web/mail/form/mail_user.tform.php
@@ -93,8 +93,11 @@
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'ISINT',
'errmsg'=> 'quota_error_isint'),
+ 1 => array ( 'type' => 'REGEX',
+ 'regex' => '/^([0-9]*)$/',
+ 'errmsg'=> 'quota_error_value'),
),
- 'default' => '',
+ 'default' => '-1',
'value' => '',
'width' => '30',
'maxlength' => '255'
@@ -137,11 +140,25 @@
'default' => 'y',
'value' => array(1 => 'y',0 => 'n')
),
+ /*
'access' => array (
'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX',
'default' => 'y',
'value' => array(1 => 'y',0 => 'n')
+ ),
+ */
+ 'disableimap' => array (
+ 'datatype' => 'VARCHAR',
+ 'formtype' => 'CHECKBOX',
+ 'default' => '0',
+ 'value' => array(1 => '1',0 => '0')
+ ),
+ 'disablepop3' => array (
+ 'datatype' => 'VARCHAR',
+ 'formtype' => 'CHECKBOX',
+ 'default' => 'y',
+ 'value' => array(1 => '1',0 => '0')
),
##################################
# ENDE Datatable fields
@@ -177,12 +194,37 @@
)
);
+$form["tabs"]['filter_records'] = array (
+ 'title' => "Mail Filter",
+ 'width' => 100,
+ 'template' => "templates/mail_user_mailfilter_edit.htm",
+ 'fields' => array (
+ ##################################
+ # Begin Datatable fields
+ ##################################
+
+ ##################################
+ # ENDE Datatable fields
+ ##################################
+ ),
+ 'plugins' => array (
+ 'filter_records' => array (
+ 'class' => 'plugin_listview',
+ 'options' => array(
+ 'listdef' => 'list/mail_user_filter.list.php',
+ 'sqlextwhere' => "mailuser_id = ".@intval(@$_REQUEST['id']),
+ 'sql_order_by' => "ORDER BY rulename"
+ )
+ )
+ )
+);
+
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$form["tabs"]['mailfilter'] = array (
- 'title' => "Mailfilter",
+ 'title' => "Custom Rules",
'width' => 100,
- 'template' => "templates/mail_user_mailfilter_edit.htm",
+ 'template' => "templates/mail_user_custom_rules_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
--
Gitblit v1.9.1