Menu

[r8512]: / www / TulipStats / index.php  Maximize  Restore  History

Download this file

21 lines (18 with data), 648 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
<?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();
?>