- add task to remove ftp-user data on filesystem correctly
This commit is contained in:
@@ -73,6 +73,17 @@ function inserttask($type, $param1 = '', $param2 = '', $param3 = '')
|
|||||||
$db->query('INSERT INTO `' . TABLE_PANEL_TASKS . '` (`type`, `data`) VALUES ("7", "' . $db->escape($data) . '")');
|
$db->query('INSERT INTO `' . TABLE_PANEL_TASKS . '` (`type`, `data`) VALUES ("7", "' . $db->escape($data) . '")');
|
||||||
$doupdate = true;
|
$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
|
if($doupdate === true
|
||||||
&& (int)$settings['system']['realtime_port'] !== 0
|
&& (int)$settings['system']['realtime_port'] !== 0
|
||||||
|
|||||||
Reference in New Issue
Block a user