Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
7c6e658a
Commit
7c6e658a
authored
Sep 06, 2007
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added server settings and getmail configuration form.
parent
92bc670e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
5 deletions
+154
-5
interface/web/mail/form/spamfilter_config.tform.php
interface/web/mail/form/spamfilter_config.tform.php
+97
-2
interface/web/mail/lib/lang/en_spamfilter_config.lng
interface/web/mail/lib/lang/en_spamfilter_config.lng
+8
-2
interface/web/mail/templates/spamfilter_config_getmail_edit.htm
...ace/web/mail/templates/spamfilter_config_getmail_edit.htm
+16
-0
interface/web/mail/templates/spamfilter_config_list.htm
interface/web/mail/templates/spamfilter_config_list.htm
+1
-1
interface/web/mail/templates/spamfilter_config_server_edit.htm
...face/web/mail/templates/spamfilter_config_server_edit.htm
+32
-0
No files found.
interface/web/mail/form/spamfilter_config.tform.php
View file @
7c6e658a
...
...
@@ -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'
=>
"Mail
server
"
,
'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
interface/web/mail/lib/lang/en_spamfilter_config.lng
View file @
7c6e658a
<?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
interface/web/mail/templates/spamfilter_config_getmail_edit.htm
0 → 100644
View file @
7c6e658a
<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"
>
</td>
<td
class=
"frmText11"
>
</td>
</tr>
<tr>
<td>
</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>
<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
interface/web/mail/templates/spamfilter_config_list.htm
View file @
7c6e658a
...
...
@@ -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'}&phpsess
id={tmpl_var name='
phpsess
id'}');"
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>
...
...
interface/web/mail/templates/spamfilter_config_server_edit.htm
0 → 100644
View file @
7c6e658a
<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"
>
</td>
<td
class=
"frmText11"
>
</td>
</tr>
<tr>
<td>
</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>
<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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment