diff options
| author | root | 2014-09-14 19:00:10 +0200 |
|---|---|---|
| committer | root | 2014-09-14 19:00:10 +0200 |
| commit | 1eba482c5172a92432c13e04480cb1604bef6df0 (patch) | |
| tree | d18149777a4ddd7f0b50d6be57acee42bfc0b080 | |
| parent | 1ae8d5fa2c627cf179c7b6aa1202304f55a00654 (diff) | |
| download | video-dl-1eba482c5172a92432c13e04480cb1604bef6df0.tar.gz | |
modified
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | 404.php | 6 | ||||
| -rw-r--r-- | 504.php | 6 | ||||
| -rw-r--r-- | config.php | 2 | ||||
| -rw-r--r-- | error.php | 7 | ||||
| -rw-r--r-- | faq.php | 6 | ||||
| -rw-r--r-- | help.php | 11 | ||||
| -rw-r--r-- | index.php | 9 | ||||
| -rw-r--r-- | random.php | 11 | ||||
| -rwxr-xr-x | static/foot.php | 11 | ||||
| -rw-r--r-- | static/header.php | 4 | ||||
| -rw-r--r-- | stream.php | 8 | ||||
| -rw-r--r-- | video.php | 6 |
13 files changed, 67 insertions, 21 deletions
@@ -1,2 +1,3 @@ zend/ cache/ +*.swp @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -8,9 +9,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> +<?php ob_end_flush(); ?> <body> <?php require_once("static/header.php"); ?> <div class='container'> @@ -25,3 +28,4 @@ </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -8,9 +9,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_end_flush(); ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body> <?php require_once("static/header.php"); ?> <div class='container'> @@ -26,3 +29,4 @@ </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -7,7 +7,7 @@ $ABSCACHEDIR = $ABSPATH . "/" . $CACHEDIR; $REDIS_DBNAME=0; $REDIS_CONNECT="/var/run/redis/redis.sock"; -$MAXSIZE = 50000000; +$MAXSIZE = 500000000000; $STREAM_MAXSIZE = 200000000; //$db = new SQLite3($ABSPATH . "/db/sqlite.db"); @@ -1,4 +1,5 @@ <?php header($_SERVER['SERVER_PROTOCOL'] . " 404 Not Found");?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -9,9 +10,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_end_flush(); ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body> <?php require_once("static/header.php"); ?> <div class="container"> @@ -24,4 +27,4 @@ </div> </div> <?php require_once("static/foot.php"); ?> - +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -8,9 +9,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_end_flush(); ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body> <?php require_once("static/header.php"); ?> @@ -51,3 +54,4 @@ </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -8,9 +9,11 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_end_flush(); ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body> <?php require_once("static/header.php"); ?> <div class="container"> @@ -33,12 +36,14 @@ </div> <div class="row"> <h3>What more?</h3> - <p><strong>Hint:</strong> You can even stream videos which are blocked in Germany! (GEMA)</p> + <p><strong>Hint:</strong> You can even stream videos which are blocked in Germany! (GEMA)<br> + Or watch a random YouTube video <a href="/random" title="random videos">here</a>.</p> </div> <div class="row"> <h3>Uhm...</h3> - <p>Still confused? Send me a <a href='mailto:mail@iamfabulous.de' class='mail'>mail</a> or check the <a href='/faq' class='mail'>FAQ</a>.</p> + <p>Still confused? Send me a <a href='mailto:mail@iamfabulous.de' class='mail'>mail</a> or check the <a href='/faq'>FAQ</a>.</p> </div> </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> @@ -8,10 +9,15 @@ <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/form.css"> + <?php /* + <link rel="stylesheet" href="/css/form.min.css"> <link rel="stylesheet" href="/css/style.css"> + */ ?> + <style><?php echo file_get_contents('./css/style.min.css') . ' '. file_get_contents('./css/form.min.css');?></style> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_end_flush(); ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body> <?php require_once("static/header.php"); ?> <div class="container"> @@ -31,3 +37,4 @@ </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <!doctype html> <html> <head> @@ -7,13 +8,14 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require("static/noscript.html"); ?> <style> h3 { color: black; } </style> +<?php ob_end_flush(); ?> <script type='text/javascript'> function get_random_video(){ @@ -46,10 +48,12 @@ <?php /* r.send('vid=<?php echo $vid; ?>', mime='<?php echo $mime; ?>', 'vname=<?php echo $filename?>'); r.send('vid=<?php echo $_GET["vid"]; ?>', 'strm=1'); */ ?> + </script> </head> -<body onload=get_random_video()> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> +<body onload="get_random_video();"> <?php require_once("static/header.php"); ?> <div class="container text-center"> <div class="row" id="heading"> @@ -63,6 +67,7 @@ <img src='/static/ajax-loader.gif' alt="ajax-loader"> </div> </div> +<?php ob_end_flush(); ?> <script> document.addEventListener('keydown', function(event) { if(event.keyCode == 82) { // someone pressed 'R' @@ -70,4 +75,6 @@ } }); </script> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> diff --git a/static/foot.php b/static/foot.php index e0a67c9..944c2fd 100755 --- a/static/foot.php +++ b/static/foot.php @@ -1,17 +1,16 @@ + <?php /* <!-- ______________________Content End______________________ --> + */ ?> <div class="footer text-right"> <div class="container"> <p> Copyright 2014 <a id="copyright-text" href="//www.moehm.org/" target="_blank">Maximilian Möhring</a></p> </div> </div> - <script src="//code.jquery.com/jquery-1.10.1.min.js"></script> - <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> + <script src="//code.jquery.com/jquery-1.10.1.min.js" defer></script> + <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js" defer></script> <?php if(preg_match('/^\/stream/', $_SERVER['REQUEST_URI'])) - echo '<script src="//vjs.zencdn.net/4.8/video.js"></script> - <script> - videojs.options.flash.swf = "/player/video-js.swf" - </script>'; + echo '<script src="//vjs.zencdn.net/4.8/video.js" defer></script>'; ?> <?php include("piwik.html"); ?> </body> diff --git a/static/header.php b/static/header.php index 0c929ad..c6212c1 100644 --- a/static/header.php +++ b/static/header.php @@ -9,7 +9,9 @@ </button> <a class="navbar-brand" href="/">Home</a> </div> + <?php /* <!-- Collect the nav links, forms, and other content for toggling --> + */ ?> <div class="collapse navbar-collapse" id="navbarCollapse"> <ul class="nav navbar-nav"> <li> @@ -34,5 +36,7 @@ </div> </div> </noscript> + <?php /* <!-- ______________________Content Start______________________ --> + */ ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <?php require_once("config.php"); require_once("func.php"); @@ -22,15 +23,16 @@ unset($db); <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'> <link href="//vjs.zencdn.net/4.8/video-js.css" rel="stylesheet"> <?php /* <link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/player.css"> <link rel="stylesheet" href="/static/content.css"> + <script type='text/javascript' src='/boring.js'></script> */ ?> - <!--script type='text/javascript' src='/boring.js'></script--> +<?php ob_end_flush(); ?> <script type='text/javascript'> window.onload = function () { @@ -67,6 +69,7 @@ unset($db); </script> <?php require_once("static/noscript.html"); ?> </head> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <body > <?php require_once("static/header.php"); ?> @@ -86,3 +89,4 @@ unset($db); </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> @@ -1,3 +1,4 @@ +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> <?php require("func.php"); @@ -33,8 +34,9 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> - <link rel="stylesheet" href="/css/style.css"> + <style><?php echo file_get_contents('./css/style.min.css'); ?></style> <?php require_once("static/noscript.html"); ?> +<?php ob_end_flush(); ?> <?php if(!$varnotset){ if($_SERVER["REQUEST_METHOD"] == "GET"){ @@ -107,6 +109,7 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ } } ?> +<?php ob_start(function($b){return preg_replace(['/\>[^\S ]+/s','/[^\S ]+\</s','/(\s)+/s'],['>','<','\\1'],$b);}); ?> </head> <body <?php if(!$varnotset) echo "onload=\"prep_video('info')\""; ?>> @@ -134,3 +137,4 @@ if($_SERVER["REQUEST_METHOD"] == "POST"){ </div> </div> <?php require_once("static/foot.php"); ?> +<?php ob_end_flush(); ?> |
