require_once LIBRARIES . "libchart" . PATH_SEP . "libchart.php"; if ($REQUEST['type'] == "pie") { $chart = new PieChart($width, $height); } elseif ($REQUEST['type'] == "hbar") { $chart = new HorizontalChart($width, $height); } elseif ($REQUEST['type'] == "vbar") { $chart = new VerticalChart($width, $height); $chart->setLabelMarginBottom(100); } else { $chart = new LineChart($width, $height); $chart->setLabelMarginBottom(150); } foreach ($REQUEST['datas'] as $data) { $chart->addPoint(new Point($data[0], $data[1])); } $chart->setLogo(""); $chart->setTitle($REQUEST['title']); $chart->render(); $BL->Disconnect(); } //GET INVOICE/SALES/SERVERLOAD REPORT if ($cmd == "load") { include_once XMLFEEDS . "uptime.php"; } if ($cmd == "cbm") { include_once XMLFEEDS . "orders_monthly.php"; } if ($cmd == "inv") { include_once XMLFEEDS . "invoices_all.php"; } if ($cmd == "sbm") {