ftp get_list() is now in sync with documentation and also returns the user password

This commit is contained in:
Fran��ois Serman 2013-10-17 10:26:49 +00:00
parent 61571cbf89
commit eebacb9be2
1 changed files with 2 additions and 1 deletions

View File

@ -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")