From 7a5c8ff018936ed7328042c88a2edae3c29d91be Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Wed, 2 Sep 2015 12:56:32 +0200 Subject: Automatically open/close conference based on time. Toggle the 'closed' bit based on the current time, rather than manually setting it in the config. This patch also adds a distinction between the time before the conference and after: Different pages will be displayed as to not confuse the user. --- index.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'index.php') diff --git a/index.php b/index.php index 4d2bfc7..3cfe1d5 100644 --- a/index.php +++ b/index.php @@ -65,7 +65,12 @@ try { require('view/streams-json-v1.php'); } - else if($conference->isClosed()) + else if($conference->hasBegun()) + { + require('view/not_started.php'); + } + + else if($conference->hasEnded()) { require('view/closed.php'); } -- cgit v1.2.3