]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Renamed php class Utils to CUtils
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 24 Jun 2011 13:32:36 +0000 (15:32 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:14 +0000 (14:49 +0200)
 - Changed file path in config.inc.php

gui/bacula-web/config.inc.php
gui/bacula-web/includes/bweb.inc.php
gui/bacula-web/includes/utils/cutils.class.php
gui/bacula-web/index.php
gui/bacula-web/jobs.php

index 2dcc796fb6119f280e761106d1eda127d4b18041..eb409cc400c3f452bc3b6e49fc0865b27c177a3c 100644 (file)
@@ -32,7 +32,7 @@
  require_once BW_OBJ . "cfg/config.class.php";
  require_once BW_OBJ . "graph/bgraph.class.php";
  require_once BW_OBJ . "bweb.inc.php";
- require_once BW_OBJ . "utils/utils.class.php";
+ require_once BW_OBJ . "utils/cutils.class.php";
  require_once BW_OBJ . "utils/timeutils.class.php";
  
  // Global constants
index 90a14f8b4f4cdb95fa56f026e1339ae812a65b4a..e14ed2eb66d536976de745761f92e542846cb078 100644 (file)
@@ -141,7 +141,7 @@ class Bweb extends DB
                }else
                        die( "Unable to get database size<br />" . $result->getMessage() );
                
-               return Utils::Get_Human_Size( $database_size );
+               return CUtils::Get_Human_Size( $database_size );
        } // end function GetDbSize()
        
        public function Get_Nb_Clients()
@@ -218,7 +218,7 @@ class Bweb extends DB
                                                                                $media['expire'] = 'N/A';
                                                                        }
                                                                        // Media used bytes in a human format
-                                                                       $media['volbytes'] = Utils::Get_Human_Size( $media['volbytes'] );
+                                                                       $media['volbytes'] = CUtils::Get_Human_Size( $media['volbytes'] );
                                                                } else {
                                                                        $media['lastwritten'] = "N/A";
                                                                        $media['expire']      = "N/A";
@@ -505,7 +505,7 @@ class Bweb extends DB
                        $day = date( "D d", strtotime($end_date) );
                        
                        if( isset( $tmp['stored_bytes'] ) ) {
-                               $hbytes = Utils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
+                               $hbytes = CUtils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
                                $hbytes = explode( " ", $hbytes );
                                $stored_bytes = $hbytes[0];
                        }
@@ -531,7 +531,7 @@ class Bweb extends DB
                        $day = date( "D d", strtotime($end_date) );
                        
                        if( isset( $tmp['stored_bytes'] ) ) {
-                               $hbytes = Utils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
+                               $hbytes = CUtils::Get_Human_Size( $tmp['stored_bytes'], 3, 'GB' );
                                $hbytes = explode( " ", $hbytes );
                                $stored_bytes = $hbytes[0];
                        }
index b9eddfb3155094e46f6878015ce273a93f08c337..7b38c83f628f9c6921af0d8b7bd6fb074da1f435 100644 (file)
@@ -14,7 +14,7 @@
 | GNU General Public License for more details.                            |
 +-------------------------------------------------------------------------+ 
 */
-class Utils {
+class CUtils {
        static public function Get_Human_Size( $size, $decimal = 2, $unit = 'auto' )
        {
                $unit_id = 0;
index 9e912ca06eca4ede8af55b3e6603601aa0401a9b..2672381fb118b1b70054772374571397f13246c9 100644 (file)
@@ -31,11 +31,11 @@ $dbSql->tpl->assign('database_size', $dbSql->GetDbSize());
 
 // Overall stored bytes
 $result = $dbSql->GetStoredBytes( ALL );
-$dbSql->tpl->assign('stored_bytes', Utils::Get_Human_Size( $result['stored_bytes'] ) );
+$dbSql->tpl->assign('stored_bytes', CUtils::Get_Human_Size( $result['stored_bytes'] ) );
 
 // Total stored bytes since last 24 hours
 $result = $dbSql->GetStoredBytes( LAST_DAY );
-$dbSql->tpl->assign('bytes_last', Utils::Get_Human_Size( $result['stored_bytes'] ) );
+$dbSql->tpl->assign('bytes_last', CUtils::Get_Human_Size( $result['stored_bytes'] ) );
 
 // Total stored files since last 24 hours
 $files_last = $dbSql->GetStoredFiles( LAST_DAY );
index 794ca3d0027c11fe237b4a6d724869805430b301..665d8be8c334eb9b86dcfbedb1443a75dfe4ee94 100644 (file)
                // Job Level
         $job['Level'] = $job_level[ $job['Level'] ];
                // Job Size
-               $job['JobBytes'] = Utils::Get_Human_Size( $job['JobBytes'] );
+               $job['JobBytes'] = CUtils::Get_Human_Size( $job['JobBytes'] );
 
                array_push( $last_jobs, $job);
          }