From a9aa438ea0558eb0044cf1e54a9190ddb41b65e5 Mon Sep 17 00:00:00 2001 From: cassio Date: Tue, 2 Jul 2013 09:44:46 +0400 Subject: restructuring of boca's git --- boca-1.5.2/src/admin/report/piechart.php | 68 -------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 boca-1.5.2/src/admin/report/piechart.php (limited to 'boca-1.5.2/src/admin/report/piechart.php') diff --git a/boca-1.5.2/src/admin/report/piechart.php b/boca-1.5.2/src/admin/report/piechart.php deleted file mode 100644 index e6dbf95..0000000 --- a/boca-1.5.2/src/admin/report/piechart.php +++ /dev/null @@ -1,68 +0,0 @@ -. -//////////////////////////////////////////////////////////////////////////////// -// Last modified 05/aug/2012 by cassio@ime.usp.br - -ob_start(); -header ("Expires: " . gmdate("D, d M Y H:i:s") . " GMT"); -header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); -header ("Cache-Control: no-cache, must-revalidate"); -header ("Pragma: no-cache"); -session_start(); -$locr = $_SESSION['locr']; -$loc = $_SESSION['loc']; - -require_once($locr . "/libchart/libchart.php"); -header("Content-type: image/png"); -ob_end_flush(); - -$v = explode(chr(1),rawurldecode($_GET['dados']),100); -$cor = null; -if(isset($_GET['color'])) - $cor = explode("-",rawurldecode($_GET['color']),100); - -if(count($v)/2 > 8) - $chart = new PieChart(450, 300); -else - $chart = new PieChart(400, 250); - -if(isset($_GET['order'])) $chart->order=true; -else $chart->order=false; - -$tot=0; -for($i=1;$i $tot/100) - $chart->addPoint(new Point($v[$i], $v[$i+1], $color)); - else - $chart->addPoint(new Point($v[$i], $tot/100, $color)); -} - -$chart->setTitle($v[0]); -$chart->setLogo($locr. "/images/poweredbyboca.png"); -$chart->render(); - -?> -- cgit v1.2.3