From f325f3f5e1fbcbc07a852fd6c41e941fbc414cc3 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Thu, 31 Jan 2013 10:54:12 +0000 Subject: [PATCH] Enleve le debug du quota et protege un peu mieux les variables --- bureau/class/m_quota.php | 2 ++ src/quota_get | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_quota.php b/bureau/class/m_quota.php index ba0fc6e7..f555c96b 100644 --- a/bureau/class/m_quota.php +++ b/bureau/class/m_quota.php @@ -147,6 +147,8 @@ class m_quota { while (list($key,$val)=each($this->disk)) { $a=array(); exec("/usr/lib/alternc/quota_get ".$cuid ,$a); + $a[0]=intval($a[0]); + $a[1]=intval($a[1]); $this->quotas[$val]=array("name"=>"$val", 'description'=>_("quota_".$val), "t"=>$a[1],"u"=>$a[0]); } diff --git a/src/quota_get b/src/quota_get index 1ee53a72..cd0cd8c1 100755 --- a/src/quota_get +++ b/src/quota_get @@ -1,5 +1,4 @@ #!/bin/bash -set -x AWK=/usr/bin/awk DF=/bin/df SED=/bin/sed