summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/api.inc.php
blob: f964bea176723a303eeaa171951ade5d50729362 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

if (Request::any('show') === 'svg') {
	$ret = PvsGenerator::generateSvg(Request::any('locationid', false, 'int'),
		Request::any('machineuuid', false, 'string'),
		Request::any('rotate', 0, 'int'),
		Request::any('scale', 1, 'float'));
	if ($ret === false) {
		Header('HTTP/1.1 404 Not Found');
		exit;
	}
	Header('Content-Type: image/svg+xml');
	die($ret);
}

die(PvsGenerator::generate());