From 6fea306ab914287bc2e6ec242f440e31e440110f Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 29 Nov 2014 19:31:21 +0100 Subject: move url rewriting into php for better compatibility with nginx --- pages/room.php | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 pages/room.php (limited to 'pages/room.php') diff --git a/pages/room.php b/pages/room.php new file mode 100644 index 0000000..96b8f18 --- /dev/null +++ b/pages/room.php @@ -0,0 +1,54 @@ +render(array( + 'page' => 'room', + + 'title' => $GLOBALS['CONFIG']['ROOMS'][$room].' – '.$GLOBALS['CONFIG']['FORMATS'][$format], + + 'rooms' => $GLOBALS['CONFIG']['ROOMS'], + 'formats' => $GLOBALS['CONFIG']['FORMATS'], + + 'room' => $room, + 'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room], + + 'program' => program(), + + 'type' => $type, + 'width' => @$width, + 'height' => @$height, + 'language' => $language, + 'translated' => ($language == 'translated'), + 'format' => $format, + + // miniroom = no translation, no slides, no irc, no program + // -> sendezentrum, workshops + 'miniroom' => in_array($room, array('sendezentrum')), +)); -- cgit v1.2.3