diff options
Diffstat (limited to 'www/youtube.php')
| -rw-r--r-- | www/youtube.php | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/www/youtube.php b/www/youtube.php index b4c241b..868bd8a 100644 --- a/www/youtube.php +++ b/www/youtube.php @@ -16,6 +16,9 @@ if(!isset($_GET["id"])){ <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'/> +<style type='text/css'> + .center {text-align:left;} +</style> </head> <!--body link='#000000' alink='#000000' vlink='#6a6862'> <body link='#000000' alink='#000000' vlink='#41403d'> @@ -32,6 +35,43 @@ include("header.php"); <iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo $videoID ?>" frameborder="0" allowfullscreen></iframe> <br><br> <?php +$data = get_yt_data($videoID); +?> +<table width='560' > + <tr> + <td class='center'>Video Titel: </td> + <td class='center'><?php echo $data["title"]; ?></td> + </tr> + <tr> + <td class='center'>Views: </td> + <td class='center'><?php echo $data["viewCount"]; ?></td> + </tr> + <tr> + <td class='center'>Rating: </td> + <td class='center'><?php echo $data["rate"]; ?></td> + </tr> + <tr> + <td class='center'>Uploader: </td> + <td class='center'><?php echo $data["author"]; ?></td> + </tr> + <tr> + <td></td><td><hr></td> + </tr> + <tr> + <td class='center'>Description: </td> + <td class='center'><?php echo $data["desc"]; ?></td> + </tr> + <tr> + <td></td><td><hr></td> + </tr> + <tr> + <td class='center'>Published: </td> + <td class='center'><?php echo $data["date"]; ?></td> + </tr> + +</table> +<br><br> +<?php echo "<a href=\"/youtube?id=".$new_id."\">Get another one</a>"; ?> |
