summaryrefslogtreecommitdiff
path: root/www/index.php
diff options
context:
space:
mode:
authorroot2014-03-12 16:25:54 +0100
committerroot2014-03-12 16:25:54 +0100
commit3d85e8b07382727cfe1cbf7f3a7add424ac47a04 (patch)
tree155122a3b476ff90534795a15b629fb5ccfea964 /www/index.php
parentc5eb023d8ecedee1f94aff6892df818f85a0d8a3 (diff)
parenteecb232938a20bd33eb5928e54d7fd3cffea9b2a (diff)
downloadrandom-3d85e8b07382727cfe1cbf7f3a7add424ac47a04.tar.gz
merge and adding stuff
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;
}
+}