summaryrefslogtreecommitdiff
path: root/www/youtube.php
blob: 8282ba0b69a1abfac211b573755b4751d2cec288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php

include("func_youtube.php");

if(!isset($_GET["id"])){
	$videoID = start($yt);
} else {
	$videoID = $_GET["id"];
}
?>
<!Doctype html>
<head>
<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 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>

<?php
$new_id= start($yt);
echo "<a href=\"/youtube?id=".$new_id."\">Get another one</a>";
?>

</center>

<?include("piwik.php");