From: Davide Franco Date: Mon, 27 Jun 2011 20:06:00 +0000 (+0200) Subject: bacula-web: Renamed php class from BGraph to CGraph X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ddf3ab37105c2e197a9843137df1e63392bade0a;p=bacula%2Fbacula bacula-web: Renamed php class from BGraph to CGraph --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index 8436de0490..35d5ad0284 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -49,7 +49,7 @@ // =============================================================== // Last 7 days stored Bytes graph // =============================================================== - $graph = new BGraph( "graph2.png" ); + $graph = new CGraph( "graph2.png" ); foreach( $days as $day ) array_push( $days_stored_bytes, $dbSql->GetStoredBytesByJob( $backupjob_name, $day['start'], $day['end'] ) ); @@ -68,7 +68,7 @@ // =============================================================== // Getting last 7 days stored files graph // =============================================================== - $graph = new BGraph("graph3.png" ); + $graph = new CGraph("graph3.png" ); foreach( $days as $day ) array_push( $days_stored_files, $dbSql->GetStoredFilesByJob( $backupjob_name, $day['start'], $day['end'] ) ); diff --git a/gui/bacula-web/includes/graph/cgraph.class.php b/gui/bacula-web/includes/graph/cgraph.class.php index 1c110fd491..255931aa0e 100644 --- a/gui/bacula-web/includes/graph/cgraph.class.php +++ b/gui/bacula-web/includes/graph/cgraph.class.php @@ -15,7 +15,7 @@ +-------------------------------------------------------------------------+ */ -class BGraph{ +class CGraph{ private $title; private $ytitle; diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 88e6e46ba1..ccfd117a36 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -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) diff --git a/gui/bacula-web/test.php b/gui/bacula-web/test.php index 139031a45e..723f940841 100644 --- a/gui/bacula-web/test.php +++ b/gui/bacula-web/test.php @@ -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' );