summaryrefslogtreecommitdiff
path: root/contrib/www/2012/init.php
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-02-26 23:35:36 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-02-26 23:35:36 +0100
commit0e9bbbf754bf8c2ee0f2a37b9a05fecd884bb42e (patch)
treedd5e2ed16e95c05919ccbf7389a14865af0ea674 /contrib/www/2012/init.php
parentadded stream-site nginx (diff)
new www stuff
Diffstat (limited to 'contrib/www/2012/init.php')
-rw-r--r--contrib/www/2012/init.php74
1 files changed, 0 insertions, 74 deletions
diff --git a/contrib/www/2012/init.php b/contrib/www/2012/init.php
deleted file mode 100644
index c8b9684..0000000
--- a/contrib/www/2012/init.php
+++ /dev/null
@@ -1,74 +0,0 @@
-<?php
-
-require_once('browser.php');
-
-$DEFAULT_MODE = 'flash';
-if (($browser['name'] == 'firefox' && $browser['majorver'] >= 4) ||
- ($browser['name'] == 'opera' && $browser['majorver'] == 10 && $browser['minorver'] >= 60) ||
- ($browser['name'] == 'opera' && $browser['majorver'] >= 11) ||
- ($browser['name'] == 'chrome' && $browser['majorver'] >= 6) ||
- ($browser['name'] == 'safari' && $browser['platform'] == 'mac')) {
- $DEFAULT_MODE = 'html5';
-}
-
-if ( isset($EMBED) && $EMBED >= 3 ) {
- $DEFAULT_PROFILE = 'mini';
-} elseif ( isset($EMBED) && $EMBED >= 2 ) {
- $DEFAULT_PROFILE = 'low';
-} else {
- $DEFAULT_PROFILE = 'medium';
-}
-
-$PROFILE= isset($_GET['profile']) ? $_GET['profile'] : $DEFAULT_PROFILE;
-switch($PROFILE) {
- case 'high': { $WIDTH = 1280; $HEIGHT = 720; break; }
- case 'low': { $WIDTH = 640; $HEIGHT = 360; break; }
- case 'mini': { $WIDTH = 426; $HEIGHT = 240; break; }
- default: { $PROFILE = 'medium'; $WIDTH = 854; $HEIGHT = 480; break; }
-}
-
-$SRC = isset($_GET['src']) ? $_GET['src'] : 'av-orig';
-switch($SRC) {
- case 'av-en': { $LANG = 'en'; break; }
- default: { $SRC = 'av-orig'; $LANG = 'orig'; break; }
-}
-
-$MODE = isset($_GET['mode']) ? $_GET['mode'] : $DEFAULT_MODE;
-switch($MODE) {
- case 'flash': { break; }
- default: { $MODE = 'html5'; break; }
-}
-
-$URL_BASE = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
-$URL_BASE_IDX = preg_replace("/embed(-.*)?\.php/", "index.php", $URL_BASE);
-
-$URL_FLASH = $URL_BASE . "?mode=flash&src=$SRC&profile=$PROFILE";
-$URL_HTML5 = $URL_BASE . "?mode=html5&src=$SRC&profile=$PROFILE";
-
-$URL_ORIG = $URL_BASE . "?mode=$MODE&src=av-orig&profile=$PROFILE";
-$URL_EN = $URL_BASE . "?mode=$MODE&src=av-en&profile=$PROFILE";
-
-if ( isset($EMBED) ) {
- $URL_HIGH = $URL_BASE_IDX . "?mode=$MODE&src=$SRC&profile=high";
-} else {
- $URL_HIGH = $URL_BASE . "?mode=$MODE&src=$SRC&profile=high";
-}
-if ( isset($EMBED) && $EMBED >= 2 ) {
- $URL_MEDIUM = $URL_BASE_IDX . "?mode=$MODE&src=$SRC&profile=medium";
-} else {
- $URL_MEDIUM = $URL_BASE . "?mode=$MODE&src=$SRC&profile=medium";
-}
-if ( isset($EMBED) && $EMBED >= 3 ) {
- $URL_LOW = $URL_BASE_IDX . "?mode=$MODE&src=$SRC&profile=low";
-} else {
- $URL_LOW = $URL_BASE . "?mode=$MODE&src=$SRC&profile=low";
-}
-$URL_MINI = $URL_BASE . "?mode=$MODE&src=$SRC&profile=mini";
-
-
-$STREAM_URL_BASE = 'http://elevate-live.spreadspace.org';
-$STREAM_URL_WEBM = "$STREAM_URL_BASE:8000/$SRC-webm-$PROFILE.webm";
-$STREAM_URL_HLS = "$STREAM_URL_BASE/elevate-live/$SRC-hls-$PROFILE.m3u8";
-$STREAM_URL_FLASH = "$STREAM_URL_BASE:8000/$SRC-flash-$PROFILE.flv";
-
-?>