From 0e9bbbf754bf8c2ee0f2a37b9a05fecd884bb42e Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 26 Feb 2018 23:35:36 +0100 Subject: new www stuff --- contrib/www/esc/browser.php | 45 -------------------------- contrib/www/esc/index.php | 13 -------- contrib/www/esc/init.php | 46 --------------------------- contrib/www/esc/player.php | 77 --------------------------------------------- contrib/www/esc/style.css | 50 ----------------------------- 5 files changed, 231 deletions(-) delete mode 100644 contrib/www/esc/browser.php delete mode 100644 contrib/www/esc/index.php delete mode 100644 contrib/www/esc/init.php delete mode 100644 contrib/www/esc/player.php delete mode 100644 contrib/www/esc/style.css (limited to 'contrib/www/esc') diff --git a/contrib/www/esc/browser.php b/contrib/www/esc/browser.php deleted file mode 100644 index 5df08dc..0000000 --- a/contrib/www/esc/browser.php +++ /dev/null @@ -1,45 +0,0 @@ - 'unknown', - 'name' => 'unknown', - 'version' => '0.0.0', - 'majorver' => 0, - 'minorver' => 0, - 'build' => 0, - 'useragent' => '' -); - -$browsers = array( - 'firefox', 'msie', 'opera', 'chrome', 'safari', 'mozilla', 'seamonkey', 'konqueror', 'netscape', - 'gecko', 'navigator', 'mosaic', 'lynx', 'amaya', 'omniweb', 'avant', 'camino', 'flock', 'aol' -); - -if (isset($_SERVER['HTTP_USER_AGENT'])) { - $browser['useragent'] = $_SERVER['HTTP_USER_AGENT']; - $user_agent = strtolower($browser['useragent']); - foreach($browsers as $_browser) { - if (preg_match("/($_browser)[\/ ]?([0-9.]*)/", $user_agent, $match)) { - $browser['name'] = $match[1]; - $browser['version'] = $match[2]; - @list($browser['majorver'], $browser['minorver'], $browser['build']) = explode('.', $browser['version']); - break; - } - } - if (preg_match('/linux/i', $user_agent)) { - $browser['platform'] = 'linux'; - } - elseif (preg_match('/macintosh|mac os x/i', $user_agent)) { - $browser['platform'] = 'mac'; - } - elseif (preg_match('/windows|win32/i', $user_agent)) { - $browser['platform'] = 'windows'; - } - -} - -if ( isset($_GET['debug']) ) { - echo "
";
-  print_r($browser);
-  echo "
"; -} -?> diff --git a/contrib/www/esc/index.php b/contrib/www/esc/index.php deleted file mode 100644 index f4962af..0000000 --- a/contrib/www/esc/index.php +++ /dev/null @@ -1,13 +0,0 @@ - - - - ESC Opening 2013 - Live Stream - - - -

ESC Opening 2013 - Live Stream

-
- -
- - diff --git a/contrib/www/esc/init.php b/contrib/www/esc/init.php deleted file mode 100644 index 199de5f..0000000 --- a/contrib/www/esc/init.php +++ /dev/null @@ -1,46 +0,0 @@ -= 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'; -} - -$DEFAULT_PROFILE = 'high'; -$PROFILE= isset($_GET['profile']) ? $_GET['profile'] : $DEFAULT_PROFILE; -switch($PROFILE) { - case 'low': { $WIDTH = 512; $HEIGHT = 288; break; } - default: { $PROFILE = 'high'; $WIDTH = 1024; $HEIGHT = 576; break; } -} - -$SRC = isset($_GET['src']) ? $_GET['src'] : 'av'; - -$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_HIGH = $URL_BASE . "?mode=$MODE&src=$SRC&profile=high"; -$URL_MEDIUM = $URL_BASE . "?mode=$MODE&src=$SRC&profile=medium"; -$URL_LOW = $URL_BASE . "?mode=$MODE&src=$SRC&profile=low"; -$URL_MINI = $URL_BASE . "?mode=$MODE&src=$SRC&profile=mini"; - - -$STREAM_URL_BASE = 'http://live.esc.mur.at'; -$STREAM_URL_WEBM = "$STREAM_URL_BASE:8000/$SRC-webm-$PROFILE.webm"; -$STREAM_URL_HLS = "$STREAM_URL_BASE/esc-live/$SRC-hls-$PROFILE.m3u8"; -$STREAM_URL_FLASH = "$STREAM_URL_BASE:8000/$SRC-flash-$PROFILE.flv"; - -?> diff --git a/contrib/www/esc/player.php b/contrib/www/esc/player.php deleted file mode 100644 index f5da311..0000000 --- a/contrib/www/esc/player.php +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - -
- - - - - - - - - diff --git a/contrib/www/esc/style.css b/contrib/www/esc/style.css deleted file mode 100644 index bc8919a..0000000 --- a/contrib/www/esc/style.css +++ /dev/null @@ -1,50 +0,0 @@ -body { - background-color: #FFFFFF; - font-family: "Lucida Grande","bitstream vera sans","trebuchet ms",verdana,arial; - text-align: center; -} - -h1 { - letter-spacing: -1px; - color: #2D5AC3; - font-weight: normal; - font-size: 1.7em; -} - -h2 { - letter-spacing: -1px; - font-weight: bold; - font-size: 1.2em; - text-align: left; -} - -table#header -{ - background-color: #333333; -} - -td { - padding: 0.5em 0.7em; -} - -td span { - color: #FFFFFF; -} - -td span a { - color: #AAAAAA; - font-size: 0.8em; - text-decoration: none; -} - -td span a:hover { - text-decoration: underline; -} - -td span.selected { - font-weight: bold; -} - -table#footer td { - padding: 0.3em 0.5em; -} -- cgit v1.2.3