diff --git a/admin_clients.php b/admin_clients.php index 52c84bd4..fb14c6f9 100644 --- a/admin_clients.php +++ b/admin_clients.php @@ -242,6 +242,13 @@ if((int)$settings['multiserver']['enabled'] == 1) if(isset($_POST['send']) && $_POST['send'] == 'send') { + // ... + + /** + * create task to deploy client, + * always use id of master-server + */ + inserttask('9', $id, 0); } else { diff --git a/customer_ftp.php b/customer_ftp.php index 9dbb60e8..0c37c4a0 100644 --- a/customer_ftp.php +++ b/customer_ftp.php @@ -119,7 +119,7 @@ elseif($page == 'accounts') if(isset($_POST['delete_userfiles']) && (int)$_POST['delete_userfiles'] == 1) { - inserttask('8', $userinfo['loginname'], $result['homedir']); + inserttask('8', $userinfo['loginname'], $result['homedir'], $userinfo['sid']); } $result = $db->query("UPDATE `" . TABLE_PANEL_CUSTOMERS . "` SET `ftps_used`=`ftps_used`-1 $resetaccnumber WHERE `customerid`='" . (int)$userinfo['customerid'] . "'");