Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
ba747c0b
Commit
ba747c0b
authored
May 30, 2007
by
tbrehm
Browse files
Enhanced getmail support and the installer.
parent
32b40db8
Changes
19
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
ba747c0b
...
...
@@ -86,7 +86,11 @@ $inst->configure_spamassassin();
swriteln
(
'Configuring Amavisd'
);
$inst
->
configure_amavis
();
// Configure Amavis
// Configure Getmail
swriteln
(
'Configuring Getmail'
);
$inst
->
configure_getmail
();
// Configure ISPConfig
swriteln
(
'Installing ISPConfig'
);
$inst
->
install_ispconfig
();
...
...
@@ -101,11 +105,19 @@ postfix
amavisd
calmd
spamd
*/
exec
(
"/etc/init.d/mysql restart"
);
exec
(
"/etc/init.d/postfix restart"
);
exec
(
"/etc/init.d/saslauthd restart"
);
exec
(
"/etc/init.d/amavis restart"
);
exec
(
"/etc/init.d/clamav-daemon restart"
);
exec
(
"/etc/init.d/courier-authdaemon restart"
);
exec
(
"/etc/init.d/courier-imap restart"
);
exec
(
"/etc/init.d/courier-imap-ssl restart"
);
exec
(
"/etc/init.d/courier-pop restart"
);
exec
(
"/etc/init.d/courier-pop-ssl restart"
);
echo
"Installation finished.
\n
"
;
...
...
install/lib/installer_base.lib.php
View file @
ba747c0b
...
...
@@ -439,6 +439,16 @@ postfix check
wf
(
$configfile
,
$content
);
}
function
configure_getmail
()
{
global
$conf
;
$command
=
"useradd -b /etc/getmail -d /etc/getmail getmail"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
$command
=
"chmod -R 700 /etc/getmail"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
}
function
install_ispconfig
()
{
global
$conf
;
...
...
@@ -466,7 +476,7 @@ postfix check
$command
=
"ln -s "
.
$conf
[
"ispconfig_install_dir"
]
.
"/interface/web/ /var/www/ispconfig"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
// Create the config file for ISPConfig
// Create the config file for ISPConfig
interface
$configfile
=
'config.inc.php'
;
if
(
is_file
(
$conf
[
"ispconfig_install_dir"
]
.
'/interface/lib/'
.
$configfile
))
copy
(
$conf
[
"ispconfig_install_dir"
]
.
'/interface/lib/'
.
$configfile
,
$conf
[
"ispconfig_install_dir"
]
.
'/interface/lib/'
.
$configfile
.
'~'
);
$content
=
rf
(
"tpl/"
.
$configfile
.
".master"
);
...
...
@@ -476,6 +486,17 @@ postfix check
$content
=
str_replace
(
'{mysql_server_host}'
,
$conf
[
"mysql_server_host"
],
$content
);
wf
(
$conf
[
"ispconfig_install_dir"
]
.
'/interface/lib/'
.
$configfile
,
$content
);
// Create the config file for ISPConfig server
$configfile
=
'config.inc.php'
;
if
(
is_file
(
$conf
[
"ispconfig_install_dir"
]
.
'/server/lib/'
.
$configfile
))
copy
(
$conf
[
"ispconfig_install_dir"
]
.
'/server/lib/'
.
$configfile
,
$conf
[
"ispconfig_install_dir"
]
.
'/interface/lib/'
.
$configfile
.
'~'
);
$content
=
rf
(
"tpl/"
.
$configfile
.
".master"
);
$content
=
str_replace
(
'{mysql_server_ispconfig_user}'
,
$conf
[
"mysql_server_ispconfig_user"
],
$content
);
$content
=
str_replace
(
'{mysql_server_ispconfig_password}'
,
$conf
[
"mysql_server_ispconfig_password"
],
$content
);
$content
=
str_replace
(
'{mysql_server_database}'
,
$conf
[
"mysql_server_database"
],
$content
);
$content
=
str_replace
(
'{mysql_server_host}'
,
$conf
[
"mysql_server_host"
],
$content
);
wf
(
$conf
[
"ispconfig_install_dir"
]
.
'/server/lib/'
.
$configfile
,
$content
);
// Chmod the files
$command
=
"chmod -R 750 "
.
$conf
[
"ispconfig_install_dir"
];
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
...
...
@@ -491,6 +512,9 @@ postfix check
$command
=
"adduser www-data ispconfig"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
// Make the shell scripts executable
$command
=
"chmod +x "
.
$conf
[
"ispconfig_install_dir"
]
.
"/server/scripts/*.sh"
;
caselog
(
$command
.
" &> /dev/null"
,
__FILE__
,
__LINE__
,
"EXECUTED: "
.
$command
,
"Failed to execute the command "
.
$command
);
}
...
...
install/tpl/config.inc.php.master
View file @
ba747c0b
...
...
@@ -35,6 +35,7 @@ ini_set('register_globals',0);
$conf
[
"app_title"
]
=
"ISPConfig"
;
$conf
[
"app_version"
]
=
"3.0.0"
;
$conf
[
"server_id"
]
=
"1"
;
/*
...
...
@@ -69,6 +70,13 @@ define("DB_DATABASE",$conf["db_database"]);
define
(
"DB_USER"
,
$conf
[
"db_user"
]);
define
(
"DB_PASSWORD"
,
$conf
[
"db_password"
]);
/*
Logging
*/
$conf
[
"log_file"
]
=
$conf
[
"rootpath"
]
.
$conf
[
"fs_div"
]
.
"ispconfig.log"
;
$conf
[
"log_priority"
]
=
0
;
// 0 = Debug, 1 = Warning, 2 = Error
/*
Themes
*/
...
...
@@ -104,4 +112,8 @@ $conf["default_retry"] = 7200;
$conf
[
"default_expire"
]
=
604800
;
$conf
[
"default_minimum_ttl"
]
=
86400
;
define
(
"LOGLEVEL_DEBUG"
,
0
);
define
(
"LOGLEVEL_WARN"
,
1
);
define
(
"LOGLEVEL_ERROR"
,
2
);
?>
\ No newline at end of file
install/uninstall.php
0 → 100644
View file @
ba747c0b
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
require
(
"/usr/local/ispconfig/server/lib/config.inc.php"
);
require
(
"/usr/local/ispconfig/server/lib/app.inc.php"
);
// Delete the ISPConfig database
$app
->
db
->
query
(
'DROP DATABASE '
.
$conf
[
"db_database"
]);
// Deleting the symlink in /var/www
unlink
(
"/var/www/ispconfig"
);
// Delete the ispconfig files
exec
(
'rm -rf /usr/local/ispconfig'
);
echo
"Finished.
\n
"
;
?>
\ No newline at end of file
interface/lib/classes/tform.inc.php
View file @
ba747c0b
...
...
@@ -875,14 +875,17 @@ class tform {
}
function
getAuthSQL
(
$perm
)
{
$sql
=
'('
;
$sql
.
=
"(sys_userid = "
.
$_SESSION
[
"s"
][
"user"
][
"userid"
]
.
" AND sys_perm_user like '%
$perm
%') OR "
;
$sql
.
=
"(sys_groupid IN ("
.
$_SESSION
[
"s"
][
"user"
][
"groups"
]
.
") AND sys_perm_group like '%
$perm
%') OR "
;
$sql
.
=
"sys_perm_other like '%
$perm
%'"
;
$sql
.
=
')'
;
return
$sql
;
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
{
return
'1'
;
}
else
{
$sql
=
'('
;
$sql
.
=
"(sys_userid = "
.
$_SESSION
[
"s"
][
"user"
][
"userid"
]
.
" AND sys_perm_user like '%
$perm
%') OR "
;
$sql
.
=
"(sys_groupid IN ("
.
$_SESSION
[
"s"
][
"user"
][
"groups"
]
.
") AND sys_perm_group like '%
$perm
%') OR "
;
$sql
.
=
"sys_perm_other like '%
$perm
%'"
;
$sql
.
=
')'
;
return
$sql
;
}
}
/*
...
...
interface/web/admin/form/server.tform.php
View file @
ba747c0b
...
...
@@ -123,4 +123,29 @@ $form["tabs"]['services'] = array (
);
$form
[
"tabs"
][
'config'
]
=
array
(
'title'
=>
"Config"
,
'width'
=>
100
,
'template'
=>
"templates/server_edit_config.htm"
,
'fields'
=>
array
(
##################################
# Begin Datatable fields
##################################
'config'
=>
array
(
'datatype'
=>
'TEXT'
,
'formtype'
=>
'TEXTAREA'
,
'default'
=>
''
,
'value'
=>
''
,
'width'
=>
''
,
'cols'
=>
'40'
,
'rows'
=>
'20'
,
'maxlength'
=>
''
),
##################################
# ENDE Datatable fields
##################################
)
);
?>
\ No newline at end of file
interface/web/admin/lib/lang/en_server.lng
View file @
ba747c0b
<?php
$wb
[
"server_name_txt"
]
=
'Servername'
;
$wb
[
"mail_server_txt"
]
=
'Mailserver'
;
$wb
[
"web_server_txt"
]
=
'Webserver'
;
$wb
[
"dns_server_txt"
]
=
'DNS-Server'
;
$wb
[
"file_server_txt"
]
=
'Fileserver'
;
$wb
[
"db_server_txt"
]
=
'DB-Server'
;
$wb
[
"vserver_server_txt"
]
=
'VServer-Server'
;
$wb
[
"active_txt"
]
=
'Active'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
<?php
$wb
[
"config_txt"
]
=
'config'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
$wb
[
"server_name_txt"
]
=
'Servername'
;
$wb
[
"mail_server_txt"
]
=
'Mailserver'
;
$wb
[
"web_server_txt"
]
=
'Webserver'
;
$wb
[
"dns_server_txt"
]
=
'DNS-Server'
;
$wb
[
"file_server_txt"
]
=
'Fileserver'
;
$wb
[
"db_server_txt"
]
=
'DB-Server'
;
$wb
[
"vserver_server_txt"
]
=
'VServer-Server'
;
$wb
[
"active_txt"
]
=
'Active'
;
?>
\ No newline at end of file
interface/web/admin/templates/server_edit_config.htm
0 → 100644
View file @
ba747c0b
<table
width=
"500"
border=
"0"
cellspacing=
"0"
cellpadding=
"2"
>
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='config_txt'}:
</td>
<td
class=
"frmText11"
><textarea
name=
'config'
cols=
'60'
rows=
'30'
>
{tmpl_var name='config'}
</textarea></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','admin/server_edit.php');"
><div
class=
"buttonEnding"
></div>
<input
name=
"btn_cancel"
type=
"button"
class=
"button"
value=
"{tmpl_var name='btn_cancel_txt'}"
onClick=
"loadContent('admin/server_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/client/templates/client_edit_limits.htm
View file @
ba747c0b
...
...
@@ -34,10 +34,12 @@
<td
class=
"frmText11"
>
{tmpl_var name='limit_mailrouting_txt'}:
</td>
<td
class=
"frmText11"
><input
name=
"limit_mailrouting"
type=
"text"
class=
"text"
value=
"{tmpl_var name='limit_mailrouting'}"
size=
"10"
maxlength=
"10"
></td>
</tr>
<!--
<tr>
<td class="frmText11">{tmpl_var name='limit_mailfilter_txt'}:</td>
<td class="frmText11"><input name="limit_mailfilter" type="text" class="text" value="{tmpl_var name='limit_mailfilter'}" size="10" maxlength="10"></td>
</tr>
-->
<tr>
<td
class=
"frmText11"
>
{tmpl_var name='limit_fetchmail_txt'}:
</td>
<td
class=
"frmText11"
><input
name=
"limit_fetchmail"
type=
"text"
class=
"text"
value=
"{tmpl_var name='limit_fetchmail'}"
size=
"10"
maxlength=
"10"
></td>
...
...
interface/web/mail/lib/lang/en_mail_get.lng
View file @
ba747c0b
<?php
$wb
[
"server_id_txt"
]
=
'
s
erver
_id
'
;
$wb
[
"type_txt"
]
=
'
t
ype'
;
$wb
[
"source_server_txt"
]
=
'
source_s
erver'
;
$wb
[
"source_username_txt"
]
=
'
source_u
sername'
;
$wb
[
"source_password_txt"
]
=
'
source_p
assword'
;
$wb
[
"source_delete_txt"
]
=
'
source_delete
'
;
$wb
[
"destination_txt"
]
=
'
d
estination'
;
$wb
[
"active_txt"
]
=
'
a
ctive'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
<?php
$wb
[
"server_id_txt"
]
=
'
S
erver'
;
$wb
[
"type_txt"
]
=
'
T
ype'
;
$wb
[
"source_server_txt"
]
=
'
Pop3/Imap S
erver'
;
$wb
[
"source_username_txt"
]
=
'
U
sername'
;
$wb
[
"source_password_txt"
]
=
'
P
assword'
;
$wb
[
"source_delete_txt"
]
=
'
Delete emails after retrieval
'
;
$wb
[
"destination_txt"
]
=
'
D
estination'
;
$wb
[
"active_txt"
]
=
'
A
ctive'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
?>
\ No newline at end of file
interface/web/mail/lib/lang/en_mail_get_list.lng
View file @
ba747c0b
<?php
$wb
[
"list_head_txt"
]
=
'mail_get'
;
$wb
[
"active_txt"
]
=
'active'
;
$wb
[
"server_id_txt"
]
=
'server_id'
;
$wb
[
"source_server_txt"
]
=
'source_server'
;
$wb
[
"source_username_txt"
]
=
'source_username'
;
$wb
[
"destination_txt"
]
=
'destination'
;
$wb
[
"page_txt"
]
=
'Page'
;
$wb
[
"page_of_txt"
]
=
'of'
;
$wb
[
"page_next_txt"
]
=
'Next'
;
$wb
[
"page_back_txt"
]
=
'Back'
;
$wb
[
"delete_txt"
]
=
'Delete'
;
$wb
[
"filter_txt"
]
=
'Filter'
;
<?php
$wb
[
"list_head_txt"
]
=
'Fetch emails from external POP3 / IMAP servers'
;
$wb
[
"active_txt"
]
=
'Active'
;
$wb
[
"server_id_txt"
]
=
'Server'
;
$wb
[
"source_server_txt"
]
=
'External Server'
;
$wb
[
"source_username_txt"
]
=
'Username'
;
$wb
[
"destination_txt"
]
=
'Destination'
;
$wb
[
"page_txt"
]
=
'Page'
;
$wb
[
"page_of_txt"
]
=
'of'
;
$wb
[
"page_next_txt"
]
=
'Next'
;
$wb
[
"page_back_txt"
]
=
'Back'
;
$wb
[
"delete_txt"
]
=
'Delete'
;
$wb
[
"filter_txt"
]
=
'Filter'
;
$wb
[
"add_new_record_txt"
]
=
'Add new Account'
;
?>
\ No newline at end of file
interface/web/mail/lib/lang/en_spamfilter_policy.lng
View file @
ba747c0b
<?php
$wb
[
"policy_name_txt"
]
=
'
p
olicy
_n
ame'
;
$wb
[
"virus_lover_txt"
]
=
'
v
irus
_
lover'
;
$wb
[
"spam_lover_txt"
]
=
'
spam_
lover'
;
$wb
[
"banned_files_lover_txt"
]
=
'
b
anned
_
files
_
lover'
;
$wb
[
"bad_header_lover_txt"
]
=
'
b
ad
_
header
_
lover'
;
$wb
[
"bypass_virus_checks_txt"
]
=
'
b
ypass
_
virus
_
checks'
;
$wb
[
"bypass_banned_checks_txt"
]
=
'
b
ypass
_
banned
_
checks'
;
$wb
[
"bypass_header_checks_txt"
]
=
'
b
ypass
_
header
_
checks'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
$wb
[
"virus_quarantine_to_txt"
]
=
'
v
irus
_
quarantine
_
to'
;
$wb
[
"spam_quarantine_to_txt"
]
=
'
s
pam
_
quarantine
_
to'
;
$wb
[
"banned_quarantine_to_txt"
]
=
'
b
anned
_
quarantine
_
to'
;
$wb
[
"bad_header_quarantine_to_txt"
]
=
'
b
ad
_
header
_
quarantine
_
to'
;
$wb
[
"clean_quarantine_to_txt"
]
=
'
c
lean
_
quarantine
_
to'
;
$wb
[
"other_quarantine_to_txt"
]
=
'
o
ther
_
quarantine
_
to'
;
$wb
[
"spam_tag_level_txt"
]
=
'
spam_
tag
_
level'
;
$wb
[
"spam_tag2_level_txt"
]
=
'
spam_
tag2
_
level'
;
$wb
[
"spam_kill_level_txt"
]
=
'
spam_
kill
_
level'
;
$wb
[
"spam_dsn_cutoff_level_txt"
]
=
'
spam_
dsn
_
cutoff
_
level'
;
$wb
[
"spam_quarantine_cutoff_level_txt"
]
=
'
spam_
quarantine
_
cutoff
_
level'
;
$wb
[
"spam_modifies_subj_txt"
]
=
'
spam_
modifies
_
subj'
;
$wb
[
"spam_subject_tag_txt"
]
=
'
spam_
subject
_
tag'
;
$wb
[
"spam_subject_tag2_txt"
]
=
'
spam_
subject
_
tag2'
;
$wb
[
"addr_extension_virus_txt"
]
=
'
a
ddr
_
extension
_
virus'
;
$wb
[
"addr_extension_spam_txt"
]
=
'
a
ddr
_
extension
_spam
'
;
$wb
[
"addr_extension_banned_txt"
]
=
'
a
ddr
_
extension
_
banned'
;
$wb
[
"addr_extension_bad_header_txt"
]
=
'
a
ddr
_
extension
_
bad
_
header'
;
$wb
[
"warnvirusrecip_txt"
]
=
'
w
arnvirusrecip'
;
$wb
[
"warnbannedrecip_txt"
]
=
'
w
arnbannedrecip'
;
$wb
[
"warnbadhrecip_txt"
]
=
'
w
arnbad
h
recip'
;
$wb
[
"newvirus_admin_txt"
]
=
'
n
ewvirus
_
admin'
;
$wb
[
"virus_admin_txt"
]
=
'
v
irus
_
admin'
;
$wb
[
"banned_admin_txt"
]
=
'
b
anned
_
admin'
;
$wb
[
"bad_header_admin_txt"
]
=
'
b
ad
_
header
_
admin'
;
$wb
[
"spam_admin_txt"
]
=
'
spam_
admin'
;
$wb
[
"message_size_limit_txt"
]
=
'
m
essage
_
size
_
limit'
;
$wb
[
"banned_rulenames_txt"
]
=
'
b
anned
_
rulenames'
;
<?php
$wb
[
"policy_name_txt"
]
=
'
P
olicy
N
ame'
;
$wb
[
"virus_lover_txt"
]
=
'
V
irus
l
lover'
;
$wb
[
"spam_lover_txt"
]
=
'
SPAM
lover'
;
$wb
[
"banned_files_lover_txt"
]
=
'
B
anned
files
lover'
;
$wb
[
"bad_header_lover_txt"
]
=
'
B
ad
header
lover'
;
$wb
[
"bypass_virus_checks_txt"
]
=
'
B
ypass
virus
checks'
;
$wb
[
"bypass_banned_checks_txt"
]
=
'
B
ypass
banned
checks'
;
$wb
[
"bypass_header_checks_txt"
]
=
'
B
ypass
header
checks'
;
$wb
[
"btn_save_txt"
]
=
'Save'
;
$wb
[
"btn_cancel_txt"
]
=
'Cancel'
;
$wb
[
"virus_quarantine_to_txt"
]
=
'
V
irus
quarantine
to'
;
$wb
[
"spam_quarantine_to_txt"
]
=
'
S
pam
quarantine
to'
;
$wb
[
"banned_quarantine_to_txt"
]
=
'
B
anned
quarantine
to'
;
$wb
[
"bad_header_quarantine_to_txt"
]
=
'
B
ad
header
quarantine
to'
;
$wb
[
"clean_quarantine_to_txt"
]
=
'
C
lean
quarantine
to'
;
$wb
[
"other_quarantine_to_txt"
]
=
'
O
ther
quarantine
to'
;
$wb
[
"spam_tag_level_txt"
]
=
'
SPAM
tag
level'
;
$wb
[
"spam_tag2_level_txt"
]
=
'
SPAM
tag2
level'
;
$wb
[
"spam_kill_level_txt"
]
=
'
SPAM
kill
level'
;
$wb
[
"spam_dsn_cutoff_level_txt"
]
=
'
SPAM
dsn
cutoff
level'
;
$wb
[
"spam_quarantine_cutoff_level_txt"
]
=
'
SPAM
quarantine
cutoff
level'
;
$wb
[
"spam_modifies_subj_txt"
]
=
'
SPAM
modifies
subj
ect
'
;
$wb
[
"spam_subject_tag_txt"
]
=
'
SPAM
subject
tag'
;
$wb
[
"spam_subject_tag2_txt"
]
=
'
SPAM
subject
tag2'
;
$wb
[
"addr_extension_virus_txt"
]
=
'
A
ddr
.
extension
virus'
;
$wb
[
"addr_extension_spam_txt"
]
=
'
A
ddr
.
extension
SPAM
'
;
$wb
[
"addr_extension_banned_txt"
]
=
'
A
ddr
.
extension
banned'
;
$wb
[
"addr_extension_bad_header_txt"
]
=
'
A
ddr
extension
bad
header'
;
$wb
[
"warnvirusrecip_txt"
]
=
'
W
arn
virus
recip
.
'
;
$wb
[
"warnbannedrecip_txt"
]
=
'
W
arn
banned
recip
.
'
;
$wb
[
"warnbadhrecip_txt"
]
=
'
W
arn
bad
header
recip
.
'
;
$wb
[
"newvirus_admin_txt"
]
=
'
N
ewvirus
admin'
;
$wb
[
"virus_admin_txt"
]
=
'
V
irus
admin'
;
$wb
[
"banned_admin_txt"
]
=
'
B
anned
admin'
;
$wb
[
"bad_header_admin_txt"
]
=
'
B
ad
header
admin'
;
$wb
[
"spam_admin_txt"
]
=
'
SPAM
admin'
;
$wb
[
"message_size_limit_txt"
]
=
'
M
essage
size
limit'
;
$wb
[
"banned_rulenames_txt"
]
=
'
B
anned
rulenames'
;
?>
\ No newline at end of file
interface/web/mail/lib/module.conf.php
View file @
ba747c0b
<?php
$module
=
array
(
'name'
=>
'mail'
,
'title'
=>
'Email'
,
'template'
=>
'module.tpl.htm'
,
'navframe_page'
=>
''
,
'startpage'
=>
'mail/mail_domain_list.php'
,
'tab_width'
=>
''
,
'nav'
=>
array
(
0
=>
array
(
'title'
=>
'Email Accounts'
,
'open'
=>
1
,
'items'
=>
array
(
0
=>
array
(
'title'
=>
'Domain'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_domain_list.php'
,
),
3
=>
array
(
'title'
=>
'Email Mailbox'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_user_list.php'
,
),
4
=>
array
(
'title'
=>
'Email Alias'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_alias_list.php'
,
),
5
=>
array
(
'title'
=>
'Email Forward'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_forward_list.php'
,
),
6
=>
array
(
'title'
=>
'Email Catchall'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_domain_catchall_list.php'
,
),
7
=>
array
(
'title'
=>
'Email Routing'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_transport_list.php'
,
),
),
),
1
=>
array
(
'title'
=>
'Email Filter'
,
'open'
=>
1
,
'items'
=>
array
(
0
=>
array
(
'title'
=>
'Whitelist'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_whitelist_list.php'
,
),
1
=>
array
(
'title'
=>
'Blacklist'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_blacklist_list.php'
,
),
),
),
2
=>
array
(
'title'
=>
'Spamfilter'
,
'open'
=>
1
,
'items'
=>
array
(
0
=>
array
(
'title'
=>
'Whitelist'
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_whitelist_list.php'
,
),
1
=>
array
(
'title'
=>
'Blacklist'
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_blacklist_list.php'
,
),
2
=>
array
(
'title'
=>
'User'
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_users_list.php'
,
),
3
=>
array
(
'title'
=>
'Policy'
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_policy_list.php'
,
),
),
),
3
=>
array
(
'title'
=>
'Fetchmail'
,
'open'
=>
1
,
'items'
=>
array
(
0
=>
array
(
'title'
=>
'Fetchmail'
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_get_list.php'
,
),
),
),
),
)
<?php
$module
[
"name"
]
=
"mail"
;
$module
[
"title"
]
=
"Email"
;
$module
[
"template"
]
=
"module.tpl.htm"
;
$module
[
"startpage"
]
=
"mail/mail_domain_list.php"
;
$module
[
"tab_width"
]
=
''
;
/*
Email accounts menu
*/
$items
[]
=
array
(
'title'
=>
"Domain"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_domain_list.php'
);
$items
[]
=
array
(
'title'
=>
"Email Mailbox"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_user_list.php'
);
$items
[]
=
array
(
'title'
=>
"Email Alias"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_alias_list.php'
);
$items
[]
=
array
(
'title'
=>
"Email Forward"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_forward_list.php'
);
$items
[]
=
array
(
'title'
=>
"Email Catchall"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_domain_catchall_list.php'
);
$items
[]
=
array
(
'title'
=>
"Email Routing"
,
'target'
=>
'content'
,
'link'
=>
'mail/mail_transport_list.php'
);
$module
[
"nav"
][]
=
array
(
'title'
=>
'Email Accounts'
,
'open'
=>
1
,
'items'
=>
$items
);
// aufrumen
unset
(
$items
);
/*
Spamfilter menu
*/
$items
[]
=
array
(
'title'
=>
"Whitelist"
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_whitelist_list.php'
);
$items
[]
=
array
(
'title'
=>
"Blacklist"
,
'target'
=>
'content'
,
'link'
=>
'mail/spamfilter_blacklist_list.php'
);
if
(
$_SESSION
[
"s"
][
"user"
][
"typ"
]
==
'admin'
)
{