[Openfirst-cvscommit] SF.net SVN: openfirst: [210] trunk/src/includes/functions.php
Brought to you by:
xtimg
From: <ast...@us...> - 2006-07-04 17:45:02
|
Revision: 210 Author: astronouth7303 Date: 2006-07-04 10:44:53 -0700 (Tue, 04 Jul 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=210&view=rev Log Message: ----------- Ooops... Didn't delete old version. Modified Paths: -------------- trunk/src/includes/functions.php Modified: trunk/src/includes/functions.php =================================================================== --- trunk/src/includes/functions.php 2006-07-04 14:07:01 UTC (rev 209) +++ trunk/src/includes/functions.php 2006-07-04 17:44:53 UTC (rev 210) @@ -100,21 +100,6 @@ } } } -function ofFormatSize($size) { - $base = 1024; - - $units = array_reverse($units, true); - reset($units); - while (list($pow, $unit) = each($units)) { - if ($unit === false) continue; - if ($size >= pow($base, $pow)) { - $unitsize = $size/pow($base, $pow); - $unitsize = rtrim($unitsize, '0'); - if (substr($unitsize, -1) == '.') $unitsize = substr($unitsize, 0, -1); - return number_format($unitsize, 2, '.', '').' '.$unit; - } - } -} /** Strip line comment. * Given a string and an array of commentors (in PHP, it would be array('#', '//')), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |