From eebacb9be2aec1661666ab237f999693e7915c59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=EF=BF=BD=EF=BF=BDois=20Serman?= Date: Thu, 17 Oct 2013 10:26:49 +0000 Subject: [PATCH] ftp get_list() is now in sync with documentation and also returns the user password --- bureau/class/m_ftp.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_ftp.php b/bureau/class/m_ftp.php index 8ad7d359..fd4a0f2d 100644 --- a/bureau/class/m_ftp.php +++ b/bureau/class/m_ftp.php @@ -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")