* @license http://www.gnu.org/licenses/gpl-2.0.txt GPL, version 2 * @author Icinga Development Team * */ // {{{ICINGA_LICENSE_HEADER}}} use Icinga\Chart\Inline\PieChart; use Icinga\Application\Loader; /* * Use only autoloader and do not bootstrap EmbeddedWeb to improve performance * of svg rendering */ require_once dirname(__FILE__) . '/../../library/Icinga/Application/Loader.php'; $loader = new Loader(); $loader->registerNamespace('Icinga', dirname(__FILE__) . '/../../library/Icinga'); $loader->register(); if (!array_key_exists('data', $_GET)) { die; } header('Content-Type: image/svg+xml'); $pie = new PieChart(); $pie->initFromRequest(); echo $pie->render();