diff options
| author | Horus3 | 2014-02-27 19:12:28 +0100 |
|---|---|---|
| committer | Horus3 | 2014-02-27 19:12:28 +0100 |
| commit | 9c65f42d3c406f30c763dd12a5d68dd7850bd7f4 (patch) | |
| tree | 1fc4400163ae9db7ff9f0e94a2cfb414ef09f18c | |
| parent | f474a90f1d1cf847d4798719916232136297538f (diff) | |
| download | random-9c65f42d3c406f30c763dd12a5d68dd7850bd7f4.tar.gz | |
index
| -rw-r--r-- | www/failure.php | 15 | ||||
| -rw-r--r-- | www/index.php | 16 |
2 files changed, 27 insertions, 4 deletions
diff --git a/www/failure.php b/www/failure.php new file mode 100644 index 0000000..21cd87c --- /dev/null +++ b/www/failure.php @@ -0,0 +1,15 @@ +<!Doctype html> +<head> +<title>404 - No Droids found</title> +<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon'> +</head> + +<body> +<center> +<img src="404.jpg" alt="404 - not found"> + +<br><br> +Recommandations: +<table> +<tr><td><a href="/youtube">Get a random youtube Video</a></td><td><a href="/puush">or a random puush file</a></td></tr> +</table> diff --git a/www/index.php b/www/index.php index b43b2dc..436bfeb 100644 --- a/www/index.php +++ b/www/index.php @@ -1,5 +1,13 @@ -<!Doctype html> -<head> -<meta http-equiv="refresh" content="0; /youtube"> -</head> +<? +switch($_GET["task"]){ + case("youtube"): + include("youtube.php"); + break; + case("puush"): + include("puush.php"); + break; + default: + include("failure.php") + break; +} |
