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
lolo888
ISPConfig 3
Commits
e8a4bab2
Commit
e8a4bab2
authored
Jan 18, 2010
by
oilyflutesalad
Browse files
Implemented: FS#1021 [DOMAINID] user prefix in Interface Config.
parent
6aa01ca4
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/sites/tools.inc.php
View file @
e8a4bab2
...
...
@@ -32,7 +32,7 @@ function replacePrefix($name, $dataRecord) {
if
(
$name
==
""
)
return
""
;
// Array containing keys to search
$keywordlist
=
array
(
'CLIENTNAME'
,
'CLIENTID'
);
$keywordlist
=
array
(
'CLIENTNAME'
,
'CLIENTID'
,
'DOMAINID'
);
// Try to match the key within the string
foreach
(
$keywordlist
as
$keyword
)
{
...
...
@@ -44,6 +44,9 @@ function replacePrefix($name, $dataRecord) {
case
'CLIENTID'
:
$name
=
str_replace
(
'['
.
$keyword
.
']'
,
getClientID
(
$dataRecord
),
$name
);
break
;
case
'DOMAINID'
:
$name
=
str_replace
(
'['
.
$keyword
.
']'
,
$dataRecord
[
'parent_domain_id'
],
$name
);
break
;
}
}
}
...
...
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