Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kotishe
ISPConfig 3
Commits
ba18a83b
Commit
ba18a83b
authored
Jul 29, 2014
by
Sergio
Browse files
display prefix for resellers and admins
parent
a8d947e6
Changes
5
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/database_edit.php
View file @
ba18a83b
...
...
@@ -146,7 +146,7 @@ class page_action extends tform_actions {
$app
->
tpl
->
setVar
(
"database_name"
,
$app
->
tools_sites
->
removePrefix
(
$this
->
dataRecord
[
'database_name'
],
$this
->
dataRecord
[
'database_name_prefix'
],
$dbname_prefix
));
}
if
(
$this
->
dataRecord
[
'database_name'
]
==
""
&&
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
)
{
if
(
$this
->
dataRecord
[
'database_name'
]
==
""
)
{
$app
->
tpl
->
setVar
(
"database_name_prefix"
,
$dbname_prefix
);
}
else
{
$app
->
tpl
->
setVar
(
"database_name_prefix"
,
$app
->
tools_sites
->
getPrefix
(
$this
->
dataRecord
[
'database_name_prefix'
],
$dbname_prefix
,
$global_config
[
'dbname_prefix'
]));
...
...
interface/web/sites/database_user_edit.php
View file @
ba18a83b
...
...
@@ -103,7 +103,7 @@ class page_action extends tform_actions {
$app
->
tpl
->
setVar
(
"database_user"
,
$app
->
tools_sites
->
removePrefix
(
$this
->
dataRecord
[
'database_user'
],
$this
->
dataRecord
[
'database_user_prefix'
],
$dbuser_prefix
));
}
if
(
$this
->
dataRecord
[
'database_user'
]
==
""
&&
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
)
{
if
(
$this
->
dataRecord
[
'database_user'
]
==
""
)
{
$app
->
tpl
->
setVar
(
"database_user_prefix"
,
$dbuser_prefix
);
}
else
{
$app
->
tpl
->
setVar
(
"database_user_prefix"
,
$app
->
tools_sites
->
getPrefix
(
$this
->
dataRecord
[
'database_user_prefix'
],
$dbuser_prefix
,
$global_config
[
'dbuser_prefix'
]));
...
...
interface/web/sites/ftp_user_edit.php
View file @
ba18a83b
...
...
@@ -82,7 +82,7 @@ class page_action extends tform_actions {
$app
->
tpl
->
setVar
(
"username"
,
$app
->
tools_sites
->
removePrefix
(
$this
->
dataRecord
[
'username'
],
$this
->
dataRecord
[
'username_prefix'
],
$ftpuser_prefix
));
}
if
(
$this
->
dataRecord
[
'username'
]
==
""
&&
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
)
{
if
(
$this
->
dataRecord
[
'username'
]
==
""
)
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$ftpuser_prefix
);
}
else
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$app
->
tools_sites
->
getPrefix
(
$this
->
dataRecord
[
'username_prefix'
],
$ftpuser_prefix
,
$global_config
[
'ftpuser_prefix'
]));
...
...
interface/web/sites/shell_user_edit.php
View file @
ba18a83b
...
...
@@ -82,7 +82,7 @@ class page_action extends tform_actions {
$app
->
tpl
->
setVar
(
"username"
,
$app
->
tools_sites
->
removePrefix
(
$this
->
dataRecord
[
'username'
],
$this
->
dataRecord
[
'username_prefix'
],
$shelluser_prefix
));
}
if
(
$this
->
dataRecord
[
'username'
]
==
""
&&
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
)
{
if
(
$this
->
dataRecord
[
'username'
]
==
""
)
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$shelluser_prefix
);
}
else
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$app
->
tools_sites
->
getPrefix
(
$this
->
dataRecord
[
'username_prefix'
],
$shelluser_prefix
,
$global_config
[
'shelluser_prefix'
]));
...
...
interface/web/sites/webdav_user_edit.php
View file @
ba18a83b
...
...
@@ -81,7 +81,7 @@ class page_action extends tform_actions {
$app
->
tpl
->
setVar
(
"username"
,
$app
->
tools_sites
->
removePrefix
(
$this
->
dataRecord
[
'username'
],
$this
->
dataRecord
[
'username_prefix'
],
$webdavuser_prefix
));
}
if
(
$this
->
dataRecord
[
'username'
]
==
""
&&
$_SESSION
[
"s"
][
"user"
][
"typ"
]
!=
'admin'
&&
!
$app
->
auth
->
has_clients
(
$_SESSION
[
's'
][
'user'
][
'userid'
])
)
{
if
(
$this
->
dataRecord
[
'username'
]
==
""
)
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$webdavuser_prefix
);
}
else
{
$app
->
tpl
->
setVar
(
"username_prefix"
,
$app
->
tools_sites
->
getPrefix
(
$this
->
dataRecord
[
'username_prefix'
],
$webdavuser_prefix
,
$global_config
[
'webdavuser_prefix'
]));
...
...
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