summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--404.php6
-rw-r--r--504.php6
-rw-r--r--config.php2
-rw-r--r--error.php7
-rw-r--r--faq.php6
-rw-r--r--help.php11
-rw-r--r--index.php9
-rw-r--r--random.php11
-rwxr-xr-xstatic/foot.php11
-rw-r--r--static/header.php4
-rw-r--r--stream.php8
-rw-r--r--video.php6
13 files changed, 67 insertions, 21 deletions
diff --git a/.gitignore b/.gitignore
index ee20902..09e3e5f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
zend/
cache/
+*.swp
diff --git a/404.php b/404.php
index fa004c3..b72a40a 100644
--- a/404.php
+++ b/404.php
@@ -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(); ?>
diff --git a/504.php b/504.php
index 0ea5392..bc7dd29 100644
--- a/504.php
+++ b/504.php
@@ -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(); ?>
diff --git a/config.php b/config.php
index 278271a..56b3e2e 100644
--- a/config.php
+++ b/config.php
@@ -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");
diff --git a/error.php b/error.php
index 48f80ce..3265184 100644
--- a/error.php
+++ b/error.php
@@ -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(); ?>
diff --git a/faq.php b/faq.php
index dbb3989..16832e1 100644
--- a/faq.php
+++ b/faq.php
@@ -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(); ?>
diff --git a/help.php b/help.php
index 91182fd..eef5dc6 100644
--- a/help.php
+++ b/help.php
@@ -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(); ?>
diff --git a/index.php b/index.php
index 5231d3c..e890577 100644
--- a/index.php
+++ b/index.php
@@ -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(); ?>
diff --git a/random.php b/random.php
index 10af33b..02194dd 100644
--- a/random.php
+++ b/random.php
@@ -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&ouml;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______________________ -->
+ */ ?>
diff --git a/stream.php b/stream.php
index 30b703d..bbcc9a7 100644
--- a/stream.php
+++ b/stream.php
@@ -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(); ?>
diff --git a/video.php b/video.php
index 2a4b47c..38b5ca6 100644
--- a/video.php
+++ b/video.php
@@ -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(); ?>