1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php if (Request::any('show') === 'svg') { $ret = PvsGenerator::generateSvg(Request::any('locationid', false, 'int'), Request::any('machineuuid', false, 'string'), Request::any('rotate', 0, 'int')); if ($ret === false) { Header('HTTP/1.1 404 Not Found'); exit; } Header('Content-Type: image/svg+xml'); die($ret); } die(PvsGenerator::generate());