summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot2014-03-24 10:24:21 +0100
committerroot2014-03-24 10:24:21 +0100
commite5e8ee54e4b404d0cbdf69bebc3d9bdd9bd04855 (patch)
tree3ab69711dbf83bc6cc19ac3065b0b6374b0fd337
parent293e2d3203d4f473f3239571b5d0237cea26a46b (diff)
downloadrandom-e5e8ee54e4b404d0cbdf69bebc3d9bdd9bd04855.tar.gz
changes
-rw-r--r--www/error.php50
-rw-r--r--www/failure.php59
-rwxr-xr-xwww/lolrndm.php2
-rw-r--r--www/print_index.php6
-rw-r--r--www/puush.php3
-rw-r--r--www/youtube.php2
6 files changed, 55 insertions, 67 deletions
diff --git a/www/error.php b/www/error.php
new file mode 100644
index 0000000..f930068
--- /dev/null
+++ b/www/error.php
@@ -0,0 +1,50 @@
+<?php
+
+switch($_GET["e"]){
+ case("401"):
+ $title="401";
+ $message="Restricted area. Access denied.";
+ break;
+ case("403"):
+ $title="403";
+ $message="I could do that. I choose not to...";
+ break;
+ case("404"):
+ $title="404";
+ $message="These aren't the droids you are looking for.";
+ break;
+ case("500"):
+ $title="500";
+ $message="Upps, there went something wrong. Don't worry, that's not your fault. Just refresh this site and it should work again.";
+ header("Refresh: 2;");
+ break;
+ case("502"):
+ $title="502";
+ $message="Bad Gateway. It's not my fault, really.'";
+ break;
+ case("504"):
+ $title="504";
+ $message="Sorry, I don't have the whole day time. Too impatient.";
+ break;
+}
+
+?>
+<!DOCTYPE html>
+<html>
+<head>
+ <title><?php echo $title; ?> error code></title>
+ <meta http-equiv='Content-type' content='text/html; charset=utf-8' />
+ <link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />
+ <link rel='stylesheet' type='text/css' href='style.css'/>
+</head>
+<body vlnk='#5b5b5b' vlink='#000000' link='#000000' alink='#9a9696'>
+<center>
+<?php
+include("header.php");
+include("piwik.php");
+
+echo "<h1>".$title." error!</h1>";
+echo "<p>".$message."</p>";
+?>
+<a href="">Try again<a>
+</body>
diff --git a/www/failure.php b/www/failure.php
deleted file mode 100644
index 5ccc7a8..0000000
--- a/www/failure.php
+++ /dev/null
@@ -1,59 +0,0 @@
-<!Doctype html>
-<head>
-<title>Welcome</title>
-<meta http-equiv='Content-type' content='text/html; charset=utf-8' />
-<link rel='shortcut icon' href='/favicon.ico' type='image/x-icon' />
-<link rel='stylesheet' type='text/css' href='style.css'/>
-<style type='text/css'>
-a2 {
- color: blue;
-}
-tt {
- text-align: center;
-}
-</style>
-</head>
-
-<body vlink='#000000' link='#000000' alink='#9a9696'>
-<center>
-<? include("header.php"); ?>
-<table align="center"><tr><td>
-<h1> Welcome! </h1>
-<? //<img src="404.jpg" alt="404 - not found"> ?>
-
-</td></tr><tr><td>
-On this website, you can get a random
-</td></tr><tr><td>
-</td></tr><tr><td>
-</td></tr><tr><td>
-<ul>
-<li>
-<table><tr><td>
-<a href="/youtube">YouTube video</a>
-</td></tr></table>
-</li>
-<li>
-<table><tr><td>
-<a href="/puush">puush file</a>
-</td></tr></table>
-</li>
-<li>
-<table><tr><td>
-<a href="/random">random subsite</a>
-</td></tr></table>
-</li>
-</ul>
-</td></tr>
-<tr><td>
-</td></tr><tr><td>
-completely free and as often as you like.
-</td></tr>
-</table>
-
-<br><br>
-For comments, questions or suggestions drop a <br> <a href="/about"><font color='blue'>mail</font></a>.
-
-<? include("piwik.php");?>
-
-</body>
-</html>
diff --git a/www/lolrndm.php b/www/lolrndm.php
index 0b19b84..eee3c8a 100755
--- a/www/lolrndm.php
+++ b/www/lolrndm.php
@@ -18,7 +18,7 @@ $random="https://cdn.iamfabulous.de/swf/".$swf_array[$index].".swf";
</head>
<body vlnk='#5b5b5b' vlink='#000000' link='#000000' alink='#9a9696'>
<center>
-<? include("header.php"); ?>
+<?php include("header.php"); ?>
<h1>Nope. Not here. ;_;</h1>
<p>This doesn't look like the page you requested.</p>
<p>
diff --git a/www/print_index.php b/www/print_index.php
index 81e52a6..a076a9a 100644
--- a/www/print_index.php
+++ b/www/print_index.php
@@ -19,10 +19,10 @@ tt {
<body vlink='#000000' link='#000000' alink='#9a9696'>
<center>
-<? include("header.php"); ?>
+<?php include("header.php"); ?>
<table align="center"><tr><td>
<h1> Welcome! </h1>
-<? //<img src="404.jpg" alt="404 - not found"> ?>
+<?php //<img src="404.jpg" alt="404 - not found"> ?>
</td></tr><tr><td>
On this website, you can get a random
@@ -56,7 +56,7 @@ completely free and as often as you like.
<br><br>
For comments, questions or suggestions drop a <br> <a href="/about"><font color='blue'>mail</font></a>.
-<? include("piwik.php");?>
+<?php include("piwik.php");?>
</body>
</html>
diff --git a/www/puush.php b/www/puush.php
index 5757360..d8aafd6 100644
--- a/www/puush.php
+++ b/www/puush.php
@@ -19,9 +19,6 @@ include("piwik.php");
<?php
$count = 0;
-$count = 0;
-
-$count = get_image($count);
$count = get_image($count);
diff --git a/www/youtube.php b/www/youtube.php
index abf0a53..b4c241b 100644
--- a/www/youtube.php
+++ b/www/youtube.php
@@ -37,4 +37,4 @@ echo "<a href=\"/youtube?id=".$new_id."\">Get another one</a>";
</center>
-<?include("piwik.php");
+<?php include("piwik.php");