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
e0db878e
Commit
e0db878e
authored
Apr 01, 2011
by
chjacobsen
Browse files
Adding a new client remotelly, it was not been associated to the proper reseller.
parent
d5132ba5
Changes
1
Show whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
e0db878e
...
@@ -2004,6 +2004,14 @@ class remoting {
...
@@ -2004,6 +2004,14 @@ class remoting {
$new_rec
=
$app
->
remoting_lib
->
getDataRecord
(
$insert_id
);
$new_rec
=
$app
->
remoting_lib
->
getDataRecord
(
$insert_id
);
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
$app
->
remoting_lib
->
ispconfig_sysuser_add
(
$params
,
$insert_id
);
$app
->
remoting_lib
->
ispconfig_sysuser_add
(
$params
,
$insert_id
);
if
(
$reseller_id
)
{
$client_group
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM sys_group WHERE client_id = "
.
$insert_id
);
$reseller_user
=
$app
->
db
->
queryOneRecord
(
"SELECT * FROM sys_user WHERE client_id = "
.
$reseller_id
);
$app
->
auth
->
add_group_to_user
(
$reseller_user
[
'userid'
],
$client_group
[
'groupid'
]);
$app
->
db
->
query
(
"UPDATE client SET parent_client_id = "
.
$reseller_id
.
" WHERE client_id = "
.
$insert_id
);
}
}
}
return
$insert_id
;
return
$insert_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