ftp get_list() is now in sync with documentation and also returns the user password
This commit is contained in:
parent
61571cbf89
commit
eebacb9be2
|
@ -136,12 +136,13 @@ class m_ftp {
|
|||
global $db,$err,$cuid, $bro;
|
||||
$err->log("ftp","get_list");
|
||||
$r=array();
|
||||
$db->query("SELECT id, name, homedir, enabled FROM ftpusers WHERE uid='$cuid' ORDER BY name;");
|
||||
$db->query("SELECT id, name, password, homedir, enabled FROM ftpusers WHERE uid='$cuid' ORDER BY name;");
|
||||
if ($db->num_rows()) {
|
||||
while ($db->next_record()) {
|
||||
$r[]=array(
|
||||
"id"=>$db->f("id"),
|
||||
"login"=>$db->f("name"),
|
||||
"pass"=>$db->f("password"),
|
||||
"enabled"=>$db->f("enabled"),
|
||||
//"dir"=>$match[1]
|
||||
"dir"=>$db->f("homedir")
|
||||
|
|
Loading…
Reference in New Issue