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
ISPConfig Modules
hosted vps
Commits
0bd7ce05
Commit
0bd7ce05
authored
Mar 14, 2019
by
RemyD
Browse files
Fix Change customer
parent
f63a7103
Changes
1
Hide whitespace changes
Inline
Side-by-side
vps_details.php
View file @
0bd7ce05
...
...
@@ -374,9 +374,19 @@ class page_action extends tform_actions {
// close Session and get all message
$mess
=
$vmQuery
->
GetMessage
();
$vmQuery
->
logout
();
if
(
$_REQUEST
[
'method'
]
==
"perms"
)
{
$act
=
'OWNER'
;}
else
{
$act
=
$_REQUEST
[
'act'
];}
// $sql = 'UPDATE hosted SET hosted.status_vmw=9, hosted.task_run=1 WHERE hosted.vmid="'.$vmid.'"';
//$app->db->query($sql);
if
(
$_REQUEST
[
'method'
]
==
"perms"
)
{
$act
=
'OWNER'
;
$sql
=
'UPDATE hosted SET hosted.sys_groupid='
.
$_REQUEST
[
'sys_groupid'
]
.
' WHERE hosted.vmid="'
.
$vmid
.
'"'
;
//$debugmessage = print_r($_REQUEST);
//$app->error($sql. "<br>");
$app
->
db
->
query
(
$sql
);
}
else
{
$act
=
$_REQUEST
[
'act'
];
}
// $sql = 'UPDATE hosted SET hosted.status_vmw=9, hosted.task_run=1 WHERE hosted.vmid="'.$vmid.'"';
$sql
=
"Insert into hosted_log ( clientType,action,ip,domain,ua,target,ts,sys_groupid,sys_perm_group,script) values ('"
.
$_SESSION
[
"s"
][
"user"
][
"typ"
]
.
"',"
;
$sql
.
=
"'"
.
$act
.
"','"
.
$_SERVER
[
'REMOTE_ADDR'
]
.
"','"
.
$domain
.
"','"
.
$_SERVER
[
"HTTP_USER_AGENT"
]
.
"','"
.
$vm
[
'vmname'
]
.
"',now(),'"
.
$_SESSION
[
"s"
][
"user"
]
.
"','r','"
.
$mess
.
"')"
;
$app
->
db
->
query
(
$sql
);
...
...
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