Enleve le debug du quota et protege un peu mieux les variables

This commit is contained in:
Alan Garcia 2013-01-31 10:54:12 +00:00
parent 69ea12831a
commit f325f3f5e1
2 changed files with 2 additions and 1 deletions

View File

@ -147,6 +147,8 @@ class m_quota {
while (list($key,$val)=each($this->disk)) { while (list($key,$val)=each($this->disk)) {
$a=array(); $a=array();
exec("/usr/lib/alternc/quota_get ".$cuid ,$a); 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]); $this->quotas[$val]=array("name"=>"$val", 'description'=>_("quota_".$val), "t"=>$a[1],"u"=>$a[0]);
} }

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
set -x
AWK=/usr/bin/awk AWK=/usr/bin/awk
DF=/bin/df DF=/bin/df
SED=/bin/sed SED=/bin/sed