From 4a7d0b5c799f915b9ca84dc0418bc7a7a6185f2e Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Mon, 5 Sep 2016 17:07:24 +0200 Subject: Added a pvs.ini file generator. --- modules-available/roomplanner/page.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules-available/roomplanner/page.inc.php') diff --git a/modules-available/roomplanner/page.inc.php b/modules-available/roomplanner/page.inc.php index 7152f015..0d4b7ee9 100644 --- a/modules-available/roomplanner/page.inc.php +++ b/modules-available/roomplanner/page.inc.php @@ -19,6 +19,13 @@ class Page_Roomplanner extends Page if ($locationid === null) { die('please specify locationid'); } + if (Request::get('pvs', false, 'bool')) { + /* return a pvs-file */ + echo "
"; + echo PvsGenerator::generate($locationid); + echo ""; + die(); + } $furniture = $this->getFurniture($locationid); $subnetMachines = $this->getPotentialMachines($locationid); -- cgit v1.2.3-55-g7522