From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- lib/helper/FilesHelper.php | 27 +++++++++++++++++++++++++++ lib/helper/SortHeaderHelper.php | 21 +++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 lib/helper/FilesHelper.php create mode 100644 lib/helper/SortHeaderHelper.php (limited to 'lib/helper') diff --git a/lib/helper/FilesHelper.php b/lib/helper/FilesHelper.php new file mode 100644 index 0000000..ff290d6 --- /dev/null +++ b/lib/helper/FilesHelper.php @@ -0,0 +1,27 @@ +=$factor;$i++) + $val /= $factor; + $p = strpos($val, "."); + if($p !== false && $p > $digits) $val = round($val); + elseif($p !== false) $val = round($val, $digits-$p); + return round($val, $digits) . " " . $symbols[$i] . $bB; +} + +?> diff --git a/lib/helper/SortHeaderHelper.php b/lib/helper/SortHeaderHelper.php new file mode 100644 index 0000000..ef16eb1 --- /dev/null +++ b/lib/helper/SortHeaderHelper.php @@ -0,0 +1,21 @@ + -- cgit v1.1-32-gdbae