aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Larysch2015-09-02 12:56:32 +0200
committerFlorian Larysch2015-09-02 14:31:39 +0200
commit7a5c8ff018936ed7328042c88a2edae3c29d91be (patch)
tree23efc9fdb4e3c8fd1c44cc49a3f30be0a6ed1987 /index.php
parent502371650e4e1fe99ec382104e2eba945925a459 (diff)
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.
Diffstat (limited to 'index.php')
-rw-r--r--index.php7
1 files changed, 6 insertions, 1 deletions
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');
}