summaryrefslogtreecommitdiff
path: root/www/youtube.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/youtube.php')
-rw-r--r--www/youtube.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/www/youtube.php b/www/youtube.php
index ab8a9c8..1e902f7 100644
--- a/www/youtube.php
+++ b/www/youtube.php
@@ -57,6 +57,7 @@ function printVideoFeed($videoFeed)
$res_quant = count($videoFeed);
$video = mt_rand(0, $res_quant-1);
+
if(empty($video)){
error();
}
@@ -111,15 +112,24 @@ $videoID = start($yt);
?>
<!Doctype html>
<head>
-<title>Random Youtube Video</title>
-<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'>
+<title>Random YouTube Video</title>
+<meta http-equiv='Content-type' content='text/html; charset=utf-8' />
+<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />
+<link rel='stylesheet' type='text/css' href='style.css'/>
</head>
-<body>
+<!--body link='#000000' alink='#000000' vlink='#6a6862'>
+<body link='#000000' alink='#000000' vlink='#41403d'>
+<body link='#000000' alink='#000000' vlink='#2c2b29'-->
+<body vlnk='#5b5b5b' vlink='#000000' link='#000000' alink='#9a9696'>
<center>
+<?php include("header.php"); ?>
+
<h1>A random youtube video!</h1> <br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo $videoID ?>" frameborder="0" allowfullscreen></iframe> <br><br>
<a href="youtube">Get another one</a>
</center>
+
+<?include("piwik.php");