]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Renamed file utils.class.php to cutils.class.php
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 24 Jun 2011 13:24:38 +0000 (15:24 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:14 +0000 (14:49 +0200)
gui/bacula-web/includes/utils/cutils.class.php [new file with mode: 0644]
gui/bacula-web/includes/utils/utils.class.php [deleted file]

diff --git a/gui/bacula-web/includes/utils/cutils.class.php b/gui/bacula-web/includes/utils/cutils.class.php
new file mode 100644 (file)
index 0000000..b9eddfb
--- /dev/null
@@ -0,0 +1,50 @@
+<?php
+/* 
++-------------------------------------------------------------------------+
+| Copyright 2010-2011, Davide Franco                                             |
+|                                                                         |
+| This program is free software; you can redistribute it and/or           |
+| modify it under the terms of the GNU General Public License             |
+| as published by the Free Software Foundation; either version 2          |
+| of the License, or (at your option) any later version.                  |
+|                                                                         |
+| This program is distributed in the hope that it will be useful,         |
+| but WITHOUT ANY WARRANTY; without even the implied warranty of          |
+| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
+| GNU General Public License for more details.                            |
++-------------------------------------------------------------------------+ 
+*/
+class Utils {
+       static public function Get_Human_Size( $size, $decimal = 2, $unit = 'auto' )
+       {
+               $unit_id = 0;
+               $lisible = false;
+               $units = array('B','KB','MB','GB','TB');
+               $hsize = $size;
+
+               switch( $unit )
+               {
+                       case 'auto';
+                               while( !$lisible ) {
+                                       if ( $hsize >= 1024 ) {
+                                               $hsize    = $hsize / 1024;
+                                               $unit_id += 1;
+                                       }        
+                                       else
+                                               $lisible = true;
+                               } // end while
+                       break;
+                       
+                       default:
+                               $p = array_search( $unit, $units);
+                               $hsize = $hsize / pow(1024,$p);
+                       break;
+               } // end switch
+               
+               $hsize = sprintf("%." . $decimal . "f", $hsize);
+               $hsize = $hsize . ' ' . $units[$unit_id];
+               return $hsize;
+       }
+}
+
+?>
diff --git a/gui/bacula-web/includes/utils/utils.class.php b/gui/bacula-web/includes/utils/utils.class.php
deleted file mode 100644 (file)
index b9eddfb..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/* 
-+-------------------------------------------------------------------------+
-| Copyright 2010-2011, Davide Franco                                             |
-|                                                                         |
-| This program is free software; you can redistribute it and/or           |
-| modify it under the terms of the GNU General Public License             |
-| as published by the Free Software Foundation; either version 2          |
-| of the License, or (at your option) any later version.                  |
-|                                                                         |
-| This program is distributed in the hope that it will be useful,         |
-| but WITHOUT ANY WARRANTY; without even the implied warranty of          |
-| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
-| GNU General Public License for more details.                            |
-+-------------------------------------------------------------------------+ 
-*/
-class Utils {
-       static public function Get_Human_Size( $size, $decimal = 2, $unit = 'auto' )
-       {
-               $unit_id = 0;
-               $lisible = false;
-               $units = array('B','KB','MB','GB','TB');
-               $hsize = $size;
-
-               switch( $unit )
-               {
-                       case 'auto';
-                               while( !$lisible ) {
-                                       if ( $hsize >= 1024 ) {
-                                               $hsize    = $hsize / 1024;
-                                               $unit_id += 1;
-                                       }        
-                                       else
-                                               $lisible = true;
-                               } // end while
-                       break;
-                       
-                       default:
-                               $p = array_search( $unit, $units);
-                               $hsize = $hsize / pow(1024,$p);
-                       break;
-               } // end switch
-               
-               $hsize = sprintf("%." . $decimal . "f", $hsize);
-               $hsize = $hsize . ' ' . $units[$unit_id];
-               return $hsize;
-       }
-}
-
-?>