From cadab96bae59bf0db6b65d293b1e231c881840b8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 20 Oct 2010 09:12:21 +0000 Subject: [PATCH] - set server-id parameter for inserttask in customer_ftp.php - call inserttask in admin_clients::deploy --- admin_clients.php | 7 +++++++ customer_ftp.php | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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'] . "'");