]> git.sur5r.net Git - bacula/bacula/commitdiff
Revert "bacula-web: Renamed php class from BGraph to CGraph"
authorDavide Franco <bacula-dev@dflc.ch>
Mon, 27 Jun 2011 16:37:59 +0000 (18:37 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 2 Aug 2011 09:56:21 +0000 (11:56 +0200)
This reverts commit 3027365b60325cd7c1a120fc20a2d392ccee9ad1.

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 35d5ad0284e9e39ff74e343de47e99242380ac87..8436de049000856692c6a43034e5864e16678c13 100644 (file)
@@ -49,7 +49,7 @@
   // ===============================================================
   // Last 7 days stored Bytes graph\r
   // ===============================================================  
-  $graph = new CGraph( "graph2.png" );
+  $graph = new BGraph( "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 CGraph("graph3.png" );
+  $graph = new BGraph("graph3.png" );
   \r
   foreach( $days as $day )\r
     array_push( $days_stored_files, $dbSql->GetStoredFilesByJob( $backupjob_name, $day['start'], $day['end'] ) );\r
index c5ff516ef34edd2e212d9a2321708588f64d300d..0957c81ee5657ac5f4d3b14087c30d86b5c850fa 100644 (file)
@@ -15,7 +15,7 @@
 +-------------------------------------------------------------------------+ 
 */
 
-class CGraph{
+class BGraph{
        private $title;
        private $ytitle;
        
index ccfd117a36978b19ef5d2b9c60b5ca3056cfc8bf..88e6e46ba136b8c4210ebe6e3e209b35110b03e2 100644 (file)
@@ -68,7 +68,7 @@ foreach( $status as $job_status ) {
        array_push( $data, $dbSql->GetJobsStatistics( $job_status ) );
 }
 
-$graph = new CGraph( "graph.png" );
+$graph = new BGraph( "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 CGraph( "graph1.png" );
+$graph = new BGraph( "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 CGraph( "graph2.png" );
+$graph = new BGraph( "graph2.png" );
 $days  = array();
 
 // Get the last 7 days interval (start and end)
index 723f940841d4062a209aa5fccf2c3561caaf9b38..139031a45e818b9f37725044a96f1c94f7649d6a 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 CGraph( "graph3.png" );
+ $graph = new BGraph( "graph3.png" );
  $graph->SetColors( array('green', 'red' ) );
 
  $graph->SetData( $data, 'pie', 'text-data-single' );