[cvs] [Wiki] changed: QuotaHack

Wiki Guest wiki at wiki.horde.org
Mon Nov 14 10:45:09 PST 2005


guest [203.145.159.37]  Mon, 14 Nov 2005 10:45:09 -0800

Modified page: http://wiki.horde.org/QuotaHack
New Revision:  1.4
Change log:  correction

@@ -29,10 +29,9 @@
 <?php
 {
 
     $user=Auth::getAuth();
-    $usage = `sudo du -s /home/$user/mail | cut -d "/" -f 1` + `sudo du -s /var/spool/mail/$user | cut -d "/" -f 1` - $archive;
-    $archiveused = round($archive/1000);
+    $usage = `sudo du -s /home/$user/mail | cut -d "/" -f 1` + `sudo du -s /var/spool/mail/$user | cut -d "/" -f 1` ;
     $usedmb = round($usage / 1000);
     $quota = `cat /quota/$user`+ 1;
     $quotamb = round($quota / 1000);
     $percent = round($usage * 100 / $quota);


More information about the cvs mailing list