For awhile change inside '/usr/local/lxlabs/kloxo/httpdocs/driver/ftp/ftpuser__pureftplib.php':
from
function dbactionDelete()
{
global $gbl, $sgbl, $login, $ghtml;
$u = $this->main->__var_username;
$d = str_replace("/home/{$u}/", "", $this->main->__var_full_directory);
$c = db_get_count("web", "customer_name = '{$u}' AND docroot = '{$d}'");
if ((int)$c !== 0) {
throw new lxException($login->getThrow("no_permit_to_delete_main_ftpuser"), '', $this->main->nname);
}
lxshell_return("pure-pw", "userdel", $this->main->nname, "-m");
}
to:
function dbactionDelete()
{
global $gbl, $sgbl, $login, $ghtml;
$u = $this->main->__var_username;
$n = $this->main->nname;
$c = db_get_count("ftpuser", "nname = '{$n}' AND username = '{$u}'");
$d = db_get_count("web", "nname = '{$n}' AND username = '{$u}'");
if (((int)$c !== 0) && ((int)$d !== 0)) {
throw new lxException($login->getThrow("no_permit_to_delete_main_ftpuser"), '', $n);
}
lxshell_return("pure-pw", "userdel", $n, "-m");
}