From 844a7d53f2d78bafba479c0d931277246ade61de Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 7 Mar 2015 17:58:07 +0100 Subject: Renames pages -> view --- pages/404.php | 9 ---- pages/about.php | 8 ---- pages/feedback.php | 43 ----------------- pages/overview.php | 8 ---- pages/party.php | 15 ------ pages/program-json.php | 6 --- pages/relive-player.php | 18 ------- pages/relive.php | 9 ---- pages/room.php | 124 ------------------------------------------------ 9 files changed, 240 deletions(-) delete mode 100644 pages/404.php delete mode 100644 pages/about.php delete mode 100644 pages/feedback.php delete mode 100644 pages/overview.php delete mode 100644 pages/party.php delete mode 100644 pages/program-json.php delete mode 100644 pages/relive-player.php delete mode 100644 pages/relive.php delete mode 100644 pages/room.php (limited to 'pages') diff --git a/pages/404.php b/pages/404.php deleted file mode 100644 index 0e84e5f..0000000 --- a/pages/404.php +++ /dev/null @@ -1,9 +0,0 @@ -render(array( - 'page' => '404', - 'title' => '404 Not Found', -)); diff --git a/pages/about.php b/pages/about.php deleted file mode 100644 index 9586e73..0000000 --- a/pages/about.php +++ /dev/null @@ -1,8 +0,0 @@ -render(array( - 'page' => 'about', - 'title' => 'About the Streams', -)); diff --git a/pages/feedback.php b/pages/feedback.php deleted file mode 100644 index 8b87b01..0000000 --- a/pages/feedback.php +++ /dev/null @@ -1,43 +0,0 @@ -render(array( - 'page' => 'feedback', - 'title' => 'Give Feedback', - 'room' => null, - )); -} -else -{ - $db = new PDO(get('FEEDBACK.DSN')); - $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); - - $stm = $db->prepare(' - INSERT INTO feedback (reported, datetime, net, os, player, stream, ipproto_v4, ipproto_v6, provider, issues, issuetext) - VALUES (:reported, :datetime, :net, :os, :player, :stream, :ipproto_v4, :ipproto_v6, :provider, :issues, :issuetext) - '); - - $stm->execute(array( - 'reported' => time(), - 'datetime' => strtotime($_POST['datetime']), - 'net' => $_POST['net'], - 'os' => $_POST['os'], - 'player' => $_POST['player'], - 'stream' => $_POST['stream'], - 'ipproto_v4' => isset($_POST['ipproto']) && is_array($_POST['ipproto']) && in_array('v4', $_POST['ipproto']), - 'ipproto_v6' => isset($_POST['ipproto']) && is_array($_POST['ipproto']) && in_array('v6', $_POST['ipproto']), - 'provider' => $_POST['provider'], - 'issues' => isset($_POST['issues']) && is_array($_POST['issues']) ? implode(',', $_POST['issues']) : '', - 'issuetext' => $_POST['issuetext'], - )); -} diff --git a/pages/overview.php b/pages/overview.php deleted file mode 100644 index 0b4434d..0000000 --- a/pages/overview.php +++ /dev/null @@ -1,8 +0,0 @@ -render(array( - 'page' => 'overview', - 'title' => 'Live-Streams', -)); diff --git a/pages/party.php b/pages/party.php deleted file mode 100644 index a095df3..0000000 --- a/pages/party.php +++ /dev/null @@ -1,15 +0,0 @@ -render(array( - 'page' => 'party', - - 'title' => $GLOBALS['CONFIG']['ROOMS'][$room], - - 'rooms' => $GLOBALS['CONFIG']['ROOMS'], - - 'room' => $room, - 'roomname' => $GLOBALS['CONFIG']['ROOMS'][$room], -)); diff --git a/pages/program-json.php b/pages/program-json.php deleted file mode 100644 index 2b5e38b..0000000 --- a/pages/program-json.php +++ /dev/null @@ -1,6 +0,0 @@ -render(array( - 'page' => 'relive-player', - 'title' => 'Relive!', - 'talk' => $talk, - - 'width' => 1024, - 'height' => 576, -)); diff --git a/pages/relive.php b/pages/relive.php deleted file mode 100644 index 33e0d5a..0000000 --- a/pages/relive.php +++ /dev/null @@ -1,9 +0,0 @@ -render(array( - 'page' => 'relive', - 'title' => 'Relive!', - 'talks' => relive_talks(), -)); diff --git a/pages/room.php b/pages/room.php deleted file mode 100644 index 77f4fdf..0000000 --- a/pages/room.php +++ /dev/null @@ -1,124 +0,0 @@ -render(array( - 'page' => 'room', - - 'title' => get("ROOMS.$room.DISPLAY").' – '.$title, - 'room' => $room, - - 'program' => program(), - - 'tab' => $tab, - 'tabs' => $tabs, - - 'width' => @$width, - 'height' => @$height, - 'language' => $language, - 'translated' => ($language == 'translated'), - 'selection' => $selection, - 'hlsformat' => ($selection == 'hd' ? 'auto' : $selection), - - 'has_translation' => $has_translation, - 'formats' => $formats, - 'protos' => $protos, - 'videores' => $videores, -)); -- cgit v1.2.3