]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Renamed php class from BGraph to CGraph
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 27 Jun 2011 20:06:00 +0000 (22:06 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:18 +0000 (14:49 +0200)
gui/bacula-web/backupjob-report.php
gui/bacula-web/includes/graph/cgraph.class.php
gui/bacula-web/index.php
gui/bacula-web/test.php

index 8436de049000856692c6a43034e5864e16678c13..35d5ad0284e9e39ff74e343de47e99242380ac87 100644 (file)
@@ -49,7 +49,7 @@
   // ===============================================================
   // Last 7 days stored Bytes graph\r
   // ===============================================================  
-  $graph = new BGraph( "graph2.png" );
+  $graph = new CGraph( "graph2.png" );
 \r
   foreach( $days as $day )\r
     array_push( $days_stored_bytes, $dbSql->GetStoredBytesByJob( $backupjob_name, $day['start'], $day['end'] ) );\r
@@ -68,7 +68,7 @@
   // ===============================================================
   // Getting last 7 days stored files graph\r
   // ===============================================================
-  $graph = new BGraph("graph3.png" );
+  $graph = new CGraph("graph3.png" );
   \r
   foreach( $days as $day )\r
     array_push( $days_stored_files, $dbSql->GetStoredFilesByJob( $backupjob_name, $day['start'], $day['end'] ) );\r
index 1c110fd4911ca3082b7236a2126302b4c701ed2b..255931aa0ef9678b74bd4f12ee394f24ad12e538 100644 (file)
@@ -15,7 +15,7 @@
 +-------------------------------------------------------------------------+ 
 */
 
-class BGraph{
+class CGraph{
        private $title;
        private $ytitle;
        
index 88e6e46ba136b8c4210ebe6e3e209b35110b03e2..ccfd117a36978b19ef5d2b9c60b5ca3056cfc8bf 100644 (file)
@@ -68,7 +68,7 @@ foreach( $status as $job_status ) {
        array_push( $data, $dbSql->GetJobsStatistics( $job_status ) );
 }
 
-$graph = new BGraph( "graph.png" );
+$graph = new CGraph( "graph.png" );
 $graph->SetData( $data, 'pie', 'text-data-single' );
 $graph->SetGraphSize( 400, 230 );
 
@@ -78,7 +78,7 @@ unset($graph);
 
 // Pool and volumes graph
 $data = array();
-$graph = new BGraph( "graph1.png" );
+$graph = new CGraph( "graph1.png" );
 
 $pools = $dbSql->Get_Pools_List();
 while( $pool = $pools->fetchRow( ) ) {
@@ -93,7 +93,7 @@ $dbSql->tpl->assign('graph_pools', $graph->Get_Image_file() );
 
 // Last 7 days stored Bytes graph
 $data  = array();
-$graph = new BGraph( "graph2.png" );
+$graph = new CGraph( "graph2.png" );
 $days  = array();
 
 // Get the last 7 days interval (start and end)
index 139031a45e818b9f37725044a96f1c94f7649d6a..723f940841d4062a209aa5fccf2c3561caaf9b38 100644 (file)
@@ -77,7 +77,7 @@
  
  // Generate test graph
  $data = array( array('test', 100, 100, 200, 100), array('test1', 150, 100, 150, 100 ) );      
- $graph = new BGraph( "graph3.png" );
+ $graph = new CGraph( "graph3.png" );
  $graph->SetColors( array('green', 'red' ) );
 
  $graph->SetData( $data, 'pie', 'text-data-single' );