summaryrefslogtreecommitdiff
path: root/www/youtube.php
diff options
context:
space:
mode:
authorroot2014-03-22 23:32:31 +0100
committerroot2014-03-22 23:32:31 +0100
commitdc083d0685fa36e48f6d9e1ba2895f730a167194 (patch)
tree708201e76379e64e94a274b1ebd940f3647948dc /www/youtube.php
parenta72958ea64fcc95398e4b23418651060da8a955e (diff)
downloadrandom-dc083d0685fa36e48f6d9e1ba2895f730a167194.tar.gz
Committing all.
Diffstat (limited to 'www/youtube.php')
-rw-r--r--www/youtube.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/youtube.php b/www/youtube.php
index 8282ba0..866ffea 100644
--- a/www/youtube.php
+++ b/www/youtube.php
@@ -21,13 +21,15 @@ if(!isset($_GET["id"])){
<body vlnk='#5b5b5b' vlink='#000000' link='#000000' alink='#9a9696'>
<center>
-<?php include("header.php"); ?>
+<?php
+$new_id = start($yt);
+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>
<?php
-$new_id= start($yt);
echo "<a href=\"/youtube?id=".$new_id."\">Get another one</a>";
?>