From 34fd28abd6a4da827e1d3d80b71308d7e2a36a28 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:23:06 +0100 Subject: remove unised offsetting in js --- assets/js/lustiges-script.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 7f22766..78b8758 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -182,11 +182,7 @@ $(function() { updateTimer = 5*1000, /* update display every 5 seconds */ refetchTimer = 10*60*1000, /* re-request current / upcoming schedule every 10 minutes */ scheduleData = {}, - $lecture = $('.room.has-schedule'), - - /* offset to the browsers realtime (for simulation) */ - offset = $('.js-settings').data('scheduleoffset');; - + $lecture = $('.room.has-schedule'); if($lecture.length == 0) return; @@ -210,7 +206,7 @@ $(function() { function updateProgtamTeaser() { var // corrected "now" timestamp in unix-counting (seconds, not microseconds) - now = (Date.now() / 1000) + offset; + now = (Date.now() / 1000); $.each(scheduleData, function(room, talks) { var currentTalk, nextTalk; -- cgit v1.2.3 From d0a891dcc4f261300616883aab384bd93f9f487c Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:23:22 +0100 Subject: aways print a stack-trace --- index.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 19a174a..b27055e 100644 --- a/index.php +++ b/index.php @@ -140,7 +140,16 @@ try { catch(Exception $e) { ob_clean(); - require('view/500.php'); + try { + require('view/500.php'); + exit; + } + catch(Exception $e) { + header("HTTP/1.1 500 Internal Server Error"); + header("Content-Type: text/plain"); + print_r($e); + exit; + } } -- cgit v1.2.3 From 3de0b86d9c3c82428ed7d1f0e04cec9fa2d0d758 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:23:45 +0100 Subject: alwas allow access to the conference about-page --- index.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index b27055e..414dede 100644 --- a/index.php +++ b/index.php @@ -214,6 +214,11 @@ try { require('view/multiview.php'); } + else if($route == 'about') + { + require('view/about.php'); + } + // HAS-NOT-BEGUN VIEW else if(!$conference->hasBegun()) { @@ -247,11 +252,6 @@ try { require('view/overview.php'); } - else if($route == 'about') - { - require('view/about.php'); - } - else if($route == 'feedback') { require('view/feedback.php'); -- cgit v1.2.3 From b137ccc18be2f8addf10b0db5257da8c3767dba9 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:24:03 +0100 Subject: repair indentation --- model/Relive.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/model/Relive.php b/model/Relive.php index ca32f19..7f0e747 100644 --- a/model/Relive.php +++ b/model/Relive.php @@ -34,22 +34,22 @@ class Relive $mapping = $this->getScheduleToRoomMapping(); - usort($talks, function($a, $b) { - // first, make sure that live talks are always on top - if($a['status'] == 'live' && $b['status'] != 'live') { - return -1; - } else if($a['status'] != 'live' && $b['status'] == 'live') { - return 1; - } else if($a['status'] == 'live' && $b['status'] == 'live') { - // sort live talks by room - - return strcmp($a['room'], $b['room']); - } - - // all other talks get sorted by their name - - return strcmp($a['title'], $b['title']); - }); + usort($talks, function($a, $b) { + // first, make sure that live talks are always on top + if($a['status'] == 'live' && $b['status'] != 'live') { + return -1; + } + else if($a['status'] != 'live' && $b['status'] == 'live') { + return 1; + } + else if($a['status'] == 'live' && $b['status'] == 'live') { + // sort live talks by room + return strcmp($a['room'], $b['room']); + } + + // all other talks get sorted by their name + return strcmp($a['title'], $b['title']); + }); $talks_by_id = array(); foreach ($talks as $talk) -- cgit v1.2.3 From 751c58ebf7e8e6ea20b5f5116866f065e52ea1a2 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 10 Dec 2016 18:24:14 +0100 Subject: use close-view in allclosed view --- template/allclosed.phtml | 37 +++++++------------------------------ 1 file changed, 7 insertions(+), 30 deletions(-) diff --git a/template/allclosed.phtml b/template/allclosed.phtml index 4d4ff38..e01aa3b 100644 --- a/template/allclosed.phtml +++ b/template/allclosed.phtml @@ -1,34 +1,11 @@ -
- + - + -
- -

is over!

+ - - Recordings will be released at . - +

+ You can watch most of our Recordings at media.ccc.de. +

- - - Until all recordings are released, ReLive remains available. - - You can still watch stream dumps here. - - -
- - - -

- You can watch most of our Recordings at getReleasesUrl())?>. -

- - - -


- - -
+ -- cgit v1.2.3