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
a8d947e6
Commit
a8d947e6
authored
Jul 29, 2014
by
Sergio
Browse files
display DOMAINID, CLIENTID, CLIENTNAME when data is not set
parent
07c297ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tools_sites.inc.php
View file @
a8d947e6
...
...
@@ -47,7 +47,7 @@ class tools_sites {
$name
=
str_replace
(
'['
.
$keyword
.
']'
,
$this
->
getClientID
(
$dataRecord
),
$name
);
break
;
case
'DOMAINID'
:
$name
=
str_replace
(
'['
.
$keyword
.
']'
,
$dataRecord
[
'parent_domain_id'
],
$name
);
$name
=
str_replace
(
'['
.
$keyword
.
']'
,
$dataRecord
[
'parent_domain_id'
]
?
$dataRecord
[
'parent_domain_id'
]
:
'[DOMAINID]'
,
$name
);
break
;
}
}
...
...
@@ -92,7 +92,7 @@ class tools_sites {
}
elseif
(
isset
(
$dataRecord
[
'sys_groupid'
]))
{
$client_group_id
=
$dataRecord
[
'sys_groupid'
];
}
else
{
$client_group_id
=
0
;
return
'[CLIENTNAME]'
;
}
}
...
...
@@ -119,7 +119,7 @@ class tools_sites {
}
elseif
(
isset
(
$dataRecord
[
'sys_groupid'
]))
{
$client_group_id
=
$dataRecord
[
'sys_groupid'
];
}
else
{
$client_group_id
=
0
;
return
'[CLIENTID]'
;
}
}
$tmp
=
$app
->
db
->
queryOneRecord
(
"SELECT client_id FROM sys_group WHERE groupid = "
.
$app
->
functions
->
intval
(
$client_group_id
));
...
...
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