summaryrefslogtreecommitdiff
path: root/www/index.php
blob: f793c102228a961d78eab7a433f6198d507179d2 (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
<?

if(empty($_GET["task"])){
	include("failure.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;
}
}