diff options
author | Florian Larysch | 2015-09-02 12:56:32 +0200 |
---|---|---|
committer | Florian Larysch | 2015-09-02 14:31:39 +0200 |
commit | 7a5c8ff018936ed7328042c88a2edae3c29d91be (patch) | |
tree | 23efc9fdb4e3c8fd1c44cc49a3f30be0a6ed1987 /index.php | |
parent | 502371650e4e1fe99ec382104e2eba945925a459 (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 '')
-rw-r--r-- | index.php | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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'); } |