From 14159e05704c90c994ae2853e228884dbe471449 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:33:26 +0000 Subject: [PATCH] back in #4488 because password are no longer available in plain text --- .gitattributes | 1 - bureau/admin/recapitulatif.php | 58 ---------------------------------- bureau/class/m_ftp.php | 4 +-- 3 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 bureau/admin/recapitulatif.php diff --git a/.gitattributes b/.gitattributes index 4125aff0..196676f1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -325,7 +325,6 @@ bureau/admin/piwik_utils.php -text bureau/admin/quota_show.php -text bureau/admin/quotas_oneuser.php -text bureau/admin/quotas_users.php -text -bureau/admin/recapitulatif.php -text bureau/admin/sql_bck.php -text bureau/admin/sql_del.php -text bureau/admin/sql_doadd.php -text diff --git a/bureau/admin/recapitulatif.php b/bureau/admin/recapitulatif.php deleted file mode 100644 index 4efc99cf..00000000 --- a/bureau/admin/recapitulatif.php +++ /dev/null @@ -1,58 +0,0 @@ - - -

-
- -

- - - - -get_list(); - -if (!$ftp_accounts) { - echo ''; -} -else { - foreach ($ftp_accounts AS $single_ftp_account) - echo ''; -} -?> -
No FTP account.
' . $single_ftp_account['login'] . '' . $single_ftp_account['pass'] . '' . $single_ftp_account['dir'] . '
- - diff --git a/bureau/class/m_ftp.php b/bureau/class/m_ftp.php index fd4a0f2d..7b6e328f 100644 --- a/bureau/class/m_ftp.php +++ b/bureau/class/m_ftp.php @@ -128,7 +128,6 @@ class m_ftp { * tableaus associatifs comme suit : * $a["id"]= ID du compte ftp * $a["login"]= Nom de login du compte - * $a["pass"]= Mot de passe du compte * $a["dir"]= Dossier relatif à la racine du compte de l'utilisateur * @return array Retourne le tableau des comptes ou FALSE si une erreur s'est produite. */ @@ -136,13 +135,12 @@ class m_ftp { global $db,$err,$cuid, $bro; $err->log("ftp","get_list"); $r=array(); - $db->query("SELECT id, name, password, homedir, enabled FROM ftpusers WHERE uid='$cuid' ORDER BY name;"); + $db->query("SELECT id, name, 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")