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
35cc408f
Commit
35cc408f
authored
Sep 02, 2010
by
tbrehm
Browse files
Implemented client template support in remoting API: FS#1308
parent
d7ef36d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
35cc408f
...
...
@@ -1922,7 +1922,14 @@ class remoting {
$app
->
remoting_lib
->
loadFormDef
(
$formdef_file
);
//* load the user profile of the client
$app
->
remoting_lib
->
loadUserProfile
(
$reseller_id
);
$app
->
remoting_lib
->
loadUserProfile
(
$reseller_id
);
//* load the client template
if
(
isset
(
$params
[
'template_master'
])
and
$params
[
'template_master'
])
{
$template
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM client_template WHERE template_id="
.
intval
(
$params
[
'template_master'
]));
$params
=
array_merge
(
$params
,
$template
);
}
//* Get the SQL query
$sql
=
$app
->
remoting_lib
->
getSQL
(
$params
,
'INSERT'
,
0
);
...
...
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