summaryrefslogtreecommitdiffstats
path: root/modules-available/roomplanner/api.inc.php
blob: 055c6b2ee48c8809a96d45b1ded6910c5dcbbd0a (plain) (blame)
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());