| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/meteoca/ |
Upload File : |
<?php
/******************************
Project: MeteoCA, 2017-2020
Version: PHP-7
Author : M. Kukic
Note :
******************************/
$c1 = $_GET["c1"];
$c2 = $_GET["c2"];
$c3 = $_GET["c3"];
$c4 = $_GET["c4"];
$c5 = $_GET["c5"];
$c6 = $_GET["c6"];
//
include('phpgraphlib.php');
include('phpgraphlib_pie.php');
$graph = new PHPGraphLibPie(400, 200);
/*
$data = array(
"CA1" => 1,
"CA2" => 2,
"CA3" => 3,
);
*/
$data["CA1"] = $c1;
if ($c2>0) $data["CA2"] = $c2;
if ($c3>0) $data["CA3"] = $c3;
if ($c4>0) $data["CA4"] = $c4;
if ($c5>0) $data["CA5"] = $c5;
if ($c6>0) $data["CA6"] = $c6;
$graph->addData($data);
$graph->setTitle('Sample Data');
$graph->setLabelTextColor('50,50,50');
$graph->setLegendTextColor('50,50,50');
$graph->createGraph();
?>