From f858f045d6baebdafb8be42eec69999174b15c88 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 24 Jul 2010 17:59:05 +0000 Subject: [PATCH] - add task to remove ftp-user data on filesystem correctly --- lib/functions/froxlor/function.inserttask.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/functions/froxlor/function.inserttask.php b/lib/functions/froxlor/function.inserttask.php index ce802beb..0496cd1d 100644 --- a/lib/functions/froxlor/function.inserttask.php +++ b/lib/functions/froxlor/function.inserttask.php @@ -73,6 +73,17 @@ function inserttask($type, $param1 = '', $param2 = '', $param3 = '') $db->query('INSERT INTO `' . TABLE_PANEL_TASKS . '` (`type`, `data`) VALUES ("7", "' . $db->escape($data) . '")'); $doupdate = true; } + elseif($type == '8' + && $param1 != '' + && $param2 != '') + { + $data = Array(); + $data['loginname'] = $param1; + $data['homedir'] = $param2; + $data = serialize($data); + $db->query('INSERT INTO `' . TABLE_PANEL_TASKS . '` (`type`, `data`) VALUES ("8", "' . $db->escape($data) . '")'); + $doupdate = true; + } if($doupdate === true && (int)$settings['system']['realtime_port'] !== 0