Commit 7c6e658a authored by tbrehm's avatar tbrehm
Browse files

- Added server settings and getmail configuration form.

parent 92bc670e
......@@ -40,7 +40,7 @@ $form["action"] = "spamfilter_config_edit.php";
$form["db_table"] = "server";
$form["db_table_idx"] = "server_id";
$form["db_history"] = "yes";
$form["tab_default"] = "mail";
$form["tab_default"] = "server";
$form["list_default"] = "spamfilter_config_list.php";
$form["auth"] = 'yes'; // yes / no
......@@ -50,8 +50,77 @@ $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update,
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['server'] = array (
'title' => "Server",
'width' => 100,
'template' => "templates/spamfilter_config_server_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
##################################
'ip_address' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.100',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'ip_address_error_empty'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
'netmask' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '255.255.255.0',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'netmask_error_empty'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
'gateway' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.1',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'gateway_error_empty'),
),
'value' => '',
'width' => '15',
'maxlength' => '255'
),
'hostname' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => 'server1.example.com',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'hostname_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
'nameservers' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '192.168.0.1,192.168.0.2',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'nameservers_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
##################################
# ENDE Datatable fields
##################################
)
);
$form["tabs"]['mail'] = array (
'title' => "Mailserver",
'title' => "Mail",
'width' => 100,
'template' => "templates/spamfilter_config_mail_edit.htm",
'fields' => array (
......@@ -176,5 +245,31 @@ $form["tabs"]['mail'] = array (
)
);
$form["tabs"]['getmail'] = array (
'title' => "Getmail",
'width' => 100,
'template' => "templates/spamfilter_config_getmail_edit.htm",
'fields' => array (
##################################
# Begin Datatable fields
##################################
'getmail_config_dir' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'default' => '',
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'getmail_config_dir_error_empty'),
),
'value' => '',
'width' => '40',
'maxlength' => '255'
),
##################################
# ENDE Datatable fields
##################################
)
);
?>
\ No newline at end of file
<?php
$wb["getmail_config_dir_txt"] = 'Getmail Config Path';
$wb["btn_save_txt"] = 'Save';
$wb["btn_cancel_txt"] = 'Cancel';
$wb["ip_address_txt"] = 'IP Address';
$wb["netmask_txt"] = 'Netmask';
$wb["gateway_txt"] = 'Gateway';
$wb["hostname_txt"] = 'Hostname';
$wb["nameservers_txt"] = 'Nameservers';
$wb["module_txt"] = 'Server Module';
$wb["maildir_path_txt"] = 'Maildir Path';
$wb["homedir_path_txt"] = 'Homedir Path';
......@@ -11,6 +19,4 @@ $wb["relayhost_user_txt"] = 'Relayhost User';
$wb["relayhost_password_txt"] = 'Relayhost Password';
$wb["mailbox_size_limit_txt"] = 'Mailbox Size Limit';
$wb["message_size_limit_txt"] = 'Message Size Limit';
$wb["btn_save_txt"] = 'Save';
$wb["btn_cancel_txt"] = 'Cancel';
?>
\ No newline at end of file
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="frmText11">{tmpl_var name='getmail_config_dir_txt'}:</td>
<td class="frmText11"><input name="getmail_config_dir" type="text" class="text" value="{tmpl_var name='getmail_config_dir'}" size="40" maxlength="255"></td>
</tr> <tr>
<td class="frmText11">&nbsp;</td>
<td class="frmText11">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="btn_save" type="button" class="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_config_edit.php');"><div class="buttonEnding"></div>&nbsp;
<input name="btn_cancel" type="button" class="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_config_list.php');"><div class="buttonEnding"></div>
</td>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
......@@ -11,7 +11,7 @@
<tmpl_loop name="records">
<tr bgcolor="{tmpl_var name="bgcolor"}">
<td class="frmText11"><a href="#" onClick="loadContent('mail/spamfilter_config_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="server_name"}</a></td>
<td class="frmText11" align="right">[<a href="javascript: del_record('mail/spamfilter_config_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">{tmpl_var name='delete_txt'}</a>]</td>
<td class="frmText11" align="right">[<a href="#" onClick="loadContent('mail/spamfilter_config_edit.php?id={tmpl_var name='id'}');" class="frmText11">Edit</a>]</td>
</tr>
</tmpl_loop>
......
<table width="500" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="frmText11">{tmpl_var name='ip_address_txt'}:</td>
<td class="frmText11"><input name="ip_address" type="text" class="text" value="{tmpl_var name='ip_address'}" size="15" maxlength="255"></td>
</tr>
<tr>
<td class="frmText11">{tmpl_var name='netmask_txt'}:</td>
<td class="frmText11"><input name="netmask" type="text" class="text" value="{tmpl_var name='netmask'}" size="15" maxlength="255"></td>
</tr>
<tr>
<td class="frmText11">{tmpl_var name='gateway_txt'}:</td>
<td class="frmText11"><input name="gateway" type="text" class="text" value="{tmpl_var name='gateway'}" size="15" maxlength="255"></td>
</tr>
<tr>
<td class="frmText11">{tmpl_var name='hostname_txt'}:</td>
<td class="frmText11"><input name="hostname" type="text" class="text" value="{tmpl_var name='hostname'}" size="40" maxlength="255"></td>
</tr>
<tr>
<td class="frmText11">{tmpl_var name='nameservers_txt'}:</td>
<td class="frmText11"><input name="nameservers" type="text" class="text" value="{tmpl_var name='nameservers'}" size="40" maxlength="255"></td>
</tr> <tr>
<td class="frmText11">&nbsp;</td>
<td class="frmText11">&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input name="btn_save" type="button" class="button" value="{tmpl_var name='btn_save_txt'}" onClick="submitForm('pageForm','mail/spamfilter_config_edit.php');"><div class="buttonEnding"></div>&nbsp;
<input name="btn_cancel" type="button" class="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('mail/spamfilter_config_list.php');"><div class="buttonEnding"></div>
</td>
</tr>
</table>
<input type="hidden" name="id" value="{tmpl_var name='id'}">
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment