From d6997febbdf6d424fcd0702e3324588387dc2cd9 Mon Sep 17 00:00:00 2001 From: moehm Date: Fri, 30 May 2014 11:04:28 +0200 Subject: rewrite --- www/index.php | 80 ++++++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 54 insertions(+), 26 deletions(-) (limited to 'www/index.php') diff --git a/www/index.php b/www/index.php index cf851e8..23cc3ff 100644 --- a/www/index.php +++ b/www/index.php @@ -1,28 +1,56 @@ - + + + A random youtube video! + + + + + + -if(empty($_GET["task"])){ - $videoID = start($yt); - include("print_index.php"); -} else { -switch($_GET["task"]){ - case("youtube"): - include("youtube.php"); - break; - case("puush"): - include("puush.php"); - break; - case("about"): - include("about.php"); - break; - case("random"): - $array = array("youtube.php", "puush.php", "about.php", "lolrndm.php"); - $site = mt_rand(0, count($array)-1); - include($array[$site]); - break; - default: - include("lolrndm.php"); - break; -} -} + + + +
+
+

Fetching a random youtube video!

+
+

One moment please.

+
+
+ +
+
+ -- cgit v1.2.3