]> git.sur5r.net Git - bacula/bacula/blob - gui/bacula-web/external_packages/phplot/examples/inline_image.php
Update
[bacula/bacula] / gui / bacula-web / external_packages / phplot / examples / inline_image.php
1 <?php
2 /* $Id$ */
3
4 if (! isset($_GET['which_title'])) {
5 echo <<<EOF
6 <pre>
7            *************************************************
8            * This file is meant to be called only from the *
9            *                   <a href="test_setup.php">test page</a>                   *
10            * It will fail if called by itself.             *
11            *************************************************
12 </pre>
13 EOF
14 ;
15 exit;
16 }
17
18 // From PHP 4.?, register_globals is off, take it into account (MBD)
19
20 include('../phplot.php');
21 $graph = new PHPlot;
22 include('./data.php');
23 $graph->SetTitle("$_GET[which_title]");
24 $graph->SetDataValues($example_data);
25 $graph->SetIsInline('1');
26 $graph->SetFileFormat("$_GET[which_format]");
27 $graph->DrawGraph();
28 ?>