Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lolo888
ISPConfig 3
Commits
e8a4bab2
Commit
e8a4bab2
authored
15 years ago
by
oilyflutesalad
Browse files
Options
Downloads
Patches
Plain Diff
Implemented: FS#1021 [DOMAINID] user prefix in Interface Config.
parent
6aa01ca4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
interface/web/sites/tools.inc.php
+4
-1
4 additions, 1 deletion
interface/web/sites/tools.inc.php
with
4 additions
and
1 deletion
interface/web/sites/tools.inc.php
+
4
−
1
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
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment