summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/index.php')
-rw-r--r--www/index.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/index.php b/www/index.php
index 24db3f5..f793c10 100644
--- a/www/index.php
+++ b/www/index.php
@@ -1,5 +1,8 @@
<?
+if(empty($_GET["task"])){
+ include("failure.php");
+} else {
switch($_GET["task"]){
case("youtube"):
include("youtube.php");
@@ -7,7 +10,16 @@ switch($_GET["task"]){
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("failure.php");
+ include("lolrndm.php");
break;
}
+}