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
ISPConfig
ISPConfig 3
Commits
a59ad3ae
Commit
a59ad3ae
authored
Jun 09, 2010
by
tbrehm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged revisions 1806-1811,1816 from stable.
parent
f8ec4be2
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
12 deletions
+32
-12
interface/lib/classes/listform.inc.php
interface/lib/classes/listform.inc.php
+6
-1
interface/web/dns/form/dns_soa.tform.php
interface/web/dns/form/dns_soa.tform.php
+1
-1
server/conf/autoresponder.master
server/conf/autoresponder.master
+1
-1
server/conf/bind_named.conf.local.master
server/conf/bind_named.conf.local.master
+1
-1
server/conf/bind_pri.domain.master
server/conf/bind_pri.domain.master
+1
-1
server/lib/classes/system.inc.php
server/lib/classes/system.inc.php
+3
-1
server/plugins-available/bind_plugin.inc.php
server/plugins-available/bind_plugin.inc.php
+14
-5
server/plugins-available/postfix_server_plugin.inc.php
server/plugins-available/postfix_server_plugin.inc.php
+5
-1
No files found.
interface/lib/classes/listform.inc.php
View file @
a59ad3ae
...
...
@@ -129,12 +129,17 @@ class listform {
//* Get config variable
$list_name
=
$this
->
listDef
[
'name'
];
$search_prefix
=
$this
->
listDef
[
'search_prefix'
];
if
(
isset
(
$_REQUEST
[
'Filter'
])
&&
!
isset
(
$_SESSION
[
'search'
][
$list_name
]))
{
//* Jump back to page 1 of the list when a new search gets started.
$_SESSION
[
'search'
][
$list_name
][
'page'
]
=
0
;
}
//* store retrieval query
foreach
(
$this
->
listDef
[
'item'
]
as
$i
)
{
$field
=
$i
[
'field'
];
//*
TODO: comment = hat sich die suche ge�ndert
//*
The search string has been changed
if
(
isset
(
$_REQUEST
[
$search_prefix
.
$field
])
&&
isset
(
$_SESSION
[
'search'
][
$list_name
][
$search_prefix
.
$field
])
&&
$_REQUEST
[
$search_prefix
.
$field
]
!=
$_SESSION
[
'search'
][
$list_name
][
$search_prefix
.
$field
]){
$this
->
searchChanged
=
1
;
...
...
interface/web/dns/form/dns_soa.tform.php
View file @
a59ad3ae
...
...
@@ -82,7 +82,7 @@ $form["tabs"]['dns_soa'] = array (
1
=>
array
(
'type'
=>
'UNIQUE'
,
'errmsg'
=>
'origin_error_unique'
),
2
=>
array
(
'type'
=>
'REGEX'
,
'regex'
=>
'/^[\w\.\-]{2,255}\.[a-zA-Z]{2,10}[\.]{0,1}$/'
,
'regex'
=>
'/^[\w\.\-
\/
]{2,255}\.[a-zA-Z]{2,10}[\.]{0,1}$/'
,
'errmsg'
=>
'origin_error_regex'
),
),
'default'
=>
''
,
...
...
server/conf/autoresponder.master
View file @
a59ad3ae
...
...
@@ -13,7 +13,7 @@ if ($RETURNCODE==1)
RESPONDDB="{vmail_mailbox_base}/mailfilters/$HOST/$USER/.vacation.lst"
# The following must be one contiguous line
cc "| mailbot -t $RESPOND -d $RESPONDDB -D 1 \
cc "| mailbot -t $RESPOND -d $RESPONDDB
-c 'UTF-8'
-D 1 \
-A 'From: $RECIPIENT' -s 'Auto Response: from $RECIPIENT' \
/usr/sbin/sendmail -t -f ''"
}
...
...
server/conf/bind_named.conf.local.master
View file @
a59ad3ae
...
...
@@ -3,7 +3,7 @@
<tmpl_if name='zone'>
zone "<tmpl_var name='zone'>" {
type master;
file "<tmpl_var name='zonefile_path'>";
<tmpl_var name='options'>
file "<tmpl_var name='zonefile_path'>";
};
</tmpl_if>
</tmpl_loop>
server/conf/bind_pri.domain.master
View file @
a59ad3ae
...
...
@@ -39,7 +39,7 @@ $TTL {tmpl_var name='ttl'}
{tmpl_var name='name'} RP {tmpl_var name='data'}
</tmpl_if>
<tmpl_if name="type" op='==' value='SRV'>
{tmpl_var name='name'} SRV {tmpl_var name='data'}
{tmpl_var name='name'} SRV
0
{tmpl_var name='data'}
</tmpl_if>
<tmpl_if name="type" op='==' value='TXT'>
{tmpl_var name='name'} TXT {tmpl_var name='data'}
...
...
server/lib/classes/system.inc.php
View file @
a59ad3ae
...
...
@@ -1202,7 +1202,9 @@ class system{
if
(
$user
!=
''
&&
$this
->
is_user
(
$user
)
&&
$user
!=
'root'
)
{
$user
=
escapeshellarg
(
$user
);
exec
(
"chown
$user
$dir
$dir_cur
$dir_new
$dir_tmp
"
);
// I assume that the name of the (vmail group) is the same as the name of the mail user in ispconfig 3
$group
=
$user
;
exec
(
"chown
$user
:
$group
$dir
$dir_cur
$dir_new
$dir_tmp
"
);
}
//* Add the subfolder to the subscriptions and courierimapsubscribed files
...
...
server/plugins-available/bind_plugin.inc.php
View file @
a59ad3ae
...
...
@@ -99,6 +99,7 @@ class bind_plugin {
$records
=
$app
->
db
->
queryAllRecords
(
"SELECT * FROM dns_rr WHERE zone = "
.
$zone
[
'id'
]
.
" AND active = 'Y'"
);
$tpl
->
setLoop
(
'zones'
,
$records
);
$filename
=
escapeshellcmd
(
$dns_config
[
'bind_zonefiles_dir'
]
.
'/pri.'
.
substr
(
$zone
[
'origin'
],
0
,
-
1
));
$app
->
log
(
"Writing BIND domain file: "
.
$filename
,
LOGLEVEL_DEBUG
);
...
...
@@ -106,6 +107,7 @@ class bind_plugin {
exec
(
'chown '
.
escapeshellcmd
(
$dns_config
[
'bind_user'
])
.
':'
.
escapeshellcmd
(
$dns_config
[
'bind_group'
])
.
' '
.
$filename
);
unset
(
$tpl
);
unset
(
$records
);
unset
(
$records_out
);
unset
(
$zone
);
}
...
...
@@ -136,9 +138,9 @@ class bind_plugin {
$this
->
write_named_conf
(
$data
,
$dns_config
);
//* Delete the domain file
$filename
=
$dns_config
[
'bind_zonefiles_dir'
]
.
'/pri.'
.
substr
(
$data
[
'old'
][
'origin'
],
0
,
-
1
);
if
(
is_file
(
$filename
))
un
set
(
$
filename
);
$app
->
log
(
"Deleting BIND domain file: "
.
$filename
,
LOGLEVEL_DEBUG
);
$
zone_
file
_
name
=
$dns_config
[
'bind_zonefiles_dir'
]
.
'/pri.'
.
substr
(
$data
[
'old'
][
'origin'
],
0
,
-
1
);
if
(
is_file
(
$
zone_
file
_
name
))
un
link
(
$zone_
file
_
name
);
$app
->
log
(
"Deleting BIND domain file: "
.
$
zone_
file
_
name
,
LOGLEVEL_DEBUG
);
//* Reload bind nameserver
$app
->
services
->
restartServiceDelayed
(
'bind'
,
'reload'
);
...
...
@@ -186,11 +188,18 @@ class bind_plugin {
function
write_named_conf
(
$data
,
$dns_config
)
{
global
$app
,
$conf
;
$tmps
=
$app
->
db
->
queryAllRecords
(
"SELECT origin FROM dns_soa WHERE active = 'Y'"
);
$tmps
=
$app
->
db
->
queryAllRecords
(
"SELECT origin
, xfer, also_notify
FROM dns_soa WHERE active = 'Y'"
);
$zones
=
array
();
foreach
(
$tmps
as
$tmp
)
{
$options
=
''
;
if
(
trim
(
$tmp
[
'xfer'
])
!=
''
)
$options
.
=
' allow-transfer {'
.
str_replace
(
','
,
';'
,
$tmp
[
'xfer'
])
.
";};
\n
"
;
if
(
trim
(
$tmp
[
'also_notify'
])
!=
''
)
$options
.
=
' also-notify {'
.
str_replace
(
','
,
';'
,
$tmp
[
'also_notify'
])
.
";};
\n
"
;
$zones
[]
=
array
(
'zone'
=>
substr
(
$tmp
[
'origin'
],
0
,
-
1
),
'zonefile_path'
=>
$dns_config
[
'bind_zonefiles_dir'
]
.
'/pri.'
.
substr
(
$tmp
[
'origin'
],
0
,
-
1
)
'zonefile_path'
=>
$dns_config
[
'bind_zonefiles_dir'
]
.
'/pri.'
.
substr
(
$tmp
[
'origin'
],
0
,
-
1
),
'options'
=>
$options
);
}
...
...
server/plugins-available/postfix_server_plugin.inc.php
View file @
a59ad3ae
...
...
@@ -86,7 +86,11 @@ class postfix_server_plugin {
if
(
$mail_config
[
"relayhost"
]
!=
''
)
{
exec
(
"postconf -e 'relayhost = "
.
$mail_config
[
"relayhost"
]
.
"'"
);
exec
(
"postconf -e 'smtp_sasl_auth_enable = yes'"
);
if
(
$mail_config
[
"relayhost_user"
]
!=
''
&&
$mail_config
[
"relayhost_password"
]
!=
''
)
{
exec
(
"postconf -e 'smtp_sasl_auth_enable = yes'"
);
}
else
{
exec
(
"postconf -e 'smtp_sasl_auth_enable = no'"
);
}
exec
(
"postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd'"
);
exec
(
"postconf -e 'smtp_sasl_security_options ='"
);
...
...
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