<?php
require_once ('jpgraph/jpgraph_mgraph.php');
require_once ('graphs.php');
/**
This script displays a page with usage statistics graphs polled from a database whose format is described into tulip_stats.php
Methods called in this file come from the stats.php file which generates JPGraphs objects related to Tulip usage statistics
*/
$mgraph = new MGraph();
$y = 3;
$mgraph->Add(draw_os_pie(),3,$y);
$mgraph->Add(draw_version_pie(),600,$y);
$mgraph->Add(draw_user_repartition_pie(),1200,$y);
$y += 600;
$mgraph->Add(draw_tulip_runs(false),3,$y);
$y += 600;
$mgraph->Add(draw_tulip_runs(true),3,$y);
$mgraph->Stroke();
?>