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
Jozef Sroka
ISPConfig 3
Commits
39981b72
Commit
39981b72
authored
Oct 04, 2016
by
Till Brehm
Browse files
Merge branch 'stable-3.1' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.1
parents
0d35fef9
3bd0d086
Changes
6
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
39981b72
...
...
@@ -585,7 +585,7 @@ class installer_base {
$this
->
warning
(
'Unable to set rights of user in master database: '
.
$value
[
'db'
]
.
"
\n
Query: "
.
$query
.
"
\n
Error: "
.
$this
->
dbmaster
->
errorMessage
);
}
$query
=
"GRANT SELECT, UPDATE (`ssl_request`, `ssl_cert`, `ssl_action`, `ssl_key`) ON ?? TO ?@?"
;
$query
=
"GRANT SELECT, UPDATE (
`ssl`, `ssl_letsencrypt`,
`ssl_request`, `ssl_cert`, `ssl_action`, `ssl_key`) ON ?? TO ?@?"
;
if
(
$verbose
){
echo
$query
.
"
\n
"
;
}
...
...
interface/lib/classes/functions.inc.php
View file @
39981b72
...
...
@@ -302,7 +302,11 @@ class functions {
if
(
$encode
==
true
)
{
if
(
function_exists
(
'idn_to_ascii'
))
{
$domain
=
idn_to_ascii
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
if
(
defined
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
)
&&
defined
(
'INTL_IDNA_VARIANT_UTS46'
)
&&
constant
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
))
{
$domain
=
idn_to_ascii
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
}
else
{
$domain
=
idn_to_ascii
(
$domain
);
}
}
elseif
(
file_exists
(
ISPC_CLASS_PATH
.
'/idn/idna_convert.class.php'
))
{
/* use idna class:
* @author Matthias Sommerfeld <mso@phlylabs.de>
...
...
@@ -319,7 +323,11 @@ class functions {
}
}
else
{
if
(
function_exists
(
'idn_to_utf8'
))
{
$domain
=
idn_to_utf8
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
if
(
defined
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
)
&&
defined
(
'INTL_IDNA_VARIANT_UTS46'
)
&&
constant
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
))
{
$domain
=
idn_to_utf8
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
}
else
{
$domain
=
idn_to_utf8
(
$domain
);
}
}
elseif
(
file_exists
(
ISPC_CLASS_PATH
.
'/idn/idna_convert.class.php'
))
{
/* use idna class:
* @author Matthias Sommerfeld <mso@phlylabs.de>
...
...
server/lib/classes/functions.inc.php
View file @
39981b72
...
...
@@ -354,7 +354,11 @@ class functions {
if
(
$encode
==
true
)
{
if
(
function_exists
(
'idn_to_ascii'
))
{
$domain
=
idn_to_ascii
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
if
(
defined
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
)
&&
defined
(
'INTL_IDNA_VARIANT_UTS46'
)
&&
constant
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
))
{
$domain
=
idn_to_ascii
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
}
else
{
$domain
=
idn_to_ascii
(
$domain
);
}
}
elseif
(
file_exists
(
ISPC_CLASS_PATH
.
'/idn/idna_convert.class.php'
))
{
/* use idna class:
* @author Matthias Sommerfeld <mso@phlylabs.de>
...
...
@@ -371,7 +375,11 @@ class functions {
}
}
else
{
if
(
function_exists
(
'idn_to_utf8'
))
{
$domain
=
idn_to_utf8
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
if
(
defined
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
)
&&
defined
(
'INTL_IDNA_VARIANT_UTS46'
)
&&
constant
(
'IDNA_NONTRANSITIONAL_TO_ASCII'
))
{
$domain
=
idn_to_utf8
(
$domain
,
IDNA_NONTRANSITIONAL_TO_ASCII
,
INTL_IDNA_VARIANT_UTS46
);
}
else
{
$domain
=
idn_to_utf8
(
$domain
);
}
}
elseif
(
file_exists
(
ISPC_CLASS_PATH
.
'/idn/idna_convert.class.php'
))
{
/* use idna class:
* @author Matthias Sommerfeld <mso@phlylabs.de>
...
...
server/plugins-available/apache2_plugin.inc.php
View file @
39981b72
...
...
@@ -890,10 +890,10 @@ class apache2_plugin {
$primitive_root
=
$df_output
[
1
];
if
(
$file_system
==
'xfs'
)
{
exec
(
"xfs_quota -x -c 'limit -
g
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
exec
(
"xfs_quota -x -c 'limit -
u
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
// xfs only supports timers globally, not per user.
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'"
);
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'
$primitive_root
"
);
unset
(
$project_uid
,
$username_position
,
$xfs_projects
);
unset
(
$primitive_root
,
$df_output
,
$mb_hard
,
$mb_soft
);
...
...
server/plugins-available/cron_plugin.inc.php
View file @
39981b72
...
...
@@ -145,10 +145,10 @@ class cron_plugin {
exec
(
'setquota -T -u '
.
$username
.
' 604800 604800 -a &> /dev/null'
);
}
elseif
(
$file_system
==
'xfs'
)
{
exec
(
"xfs_quota -x -c 'limit -
g
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
exec
(
"xfs_quota -x -c 'limit -
u
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
// xfs only supports timers globally, not per user.
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'"
);
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'
$primitive_root
"
);
unset
(
$project_uid
,
$username_position
,
$xfs_projects
);
unset
(
$primitive_root
,
$df_output
,
$mb_hard
,
$mb_soft
);
...
...
server/plugins-available/nginx_plugin.inc.php
View file @
39981b72
...
...
@@ -748,10 +748,10 @@ class nginx_plugin {
$primitive_root
=
$df_output
[
1
];
if
(
$file_system
==
'xfs'
)
{
exec
(
"xfs_quota -x -c 'limit -
g
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
exec
(
"xfs_quota -x -c 'limit -
u
bsoft=
$mb_soft
"
.
'm'
.
" bhard=
$mb_hard
"
.
'm'
.
"
$username
'
$primitive_root
"
);
// xfs only supports timers globally, not per user.
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'"
);
exec
(
"xfs_quota -x -c 'timer -bir -i 604800'
$primitive_root
"
);
unset
(
$project_uid
,
$username_position
,
$xfs_projects
);
unset
(
$primitive_root
,
$df_output
,
$mb_hard
,
$mb_soft
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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