Reorganizing the repo a fair bit. Code is still crap, but I don't care.
This commit is contained in:
parent
8e22a1c073
commit
604212226c
17 changed files with 31 additions and 65573 deletions
65541
aboutNetError_info.svg
65541
aboutNetError_info.svg
File diff suppressed because it is too large
Load diff
Before Width: | Height: | Size: 3.8 MiB |
|
@ -2,7 +2,7 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
@import url("common.css");
|
||||
@import url("firefox2.css");
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
|
@ -33,7 +33,7 @@ ul {
|
|||
}
|
||||
|
||||
#errorTitleText {
|
||||
background: url("22898.png") left 0 no-repeat;
|
||||
background: url("../img/firefox.png") left 0 no-repeat;
|
||||
background-size: 1.2em;
|
||||
-moz-margin-start: -2em;
|
||||
-moz-padding-start: 2em;
|
13
helpers/browser.php
Normal file
13
helpers/browser.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
$ua = $_SERVER['HTTP_USER_AGENT'];
|
||||
|
||||
if (preg_match('/Chrome/i',$ua)) include "browsers/chrome.php";
|
||||
elseif (preg_match('/Firefox/i',$ua)) include "browsers/firefox.php";
|
||||
elseif (preg_match('/MSIE/i',$ua) && !preg_match('/Opera/i',$ua)) include "browsers/ie.php";
|
||||
elseif (preg_match('/.NET/i',$ua)) include "browsers/ie.php";
|
||||
elseif (preg_match('/Trident/i',$ua)) include "browsers/ie.php";
|
||||
elseif (preg_match('/Konqueror/i',$ua)) include "browsers/konqueror.php";
|
||||
else include "browsers/firefox.php";
|
||||
|
||||
?>
|
|
@ -1,11 +1,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Eeeeeeeeeeeeeeeeeeeh.</title>
|
||||
<link rel="stylesheet" href="aboutNetError.css" type="text/css" media="all" />
|
||||
<!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in
|
||||
toolkit/components/places/src/nsFaviconService.h should be updated. -->
|
||||
<link rel="icon" type="image/png" id="favicon" href="warning-16.png"/>
|
||||
|
||||
<link rel="stylesheet" href="css/firefox1.css" type="text/css" media="all" />
|
||||
</head>
|
||||
|
||||
<body dir="&locale.dir;">
|
|
@ -1,13 +1,13 @@
|
|||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html PUBLIC "" ""><HTML><HEAD><META content="IE=11.0000"
|
||||
http-equiv="X-UA-Compatible">
|
||||
<LINK href="ie.css" rel="stylesheet"
|
||||
<LINK href="css/ie.css" rel="stylesheet"
|
||||
type="text/css">
|
||||
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<TITLE>Way too long.</TITLE>
|
||||
<SCRIPT language="javascript" src="ie1.js" type="text/javascript"></SCRIPT>
|
||||
<SCRIPT language="javascript" src="js/ie1.js" type="text/javascript"></SCRIPT>
|
||||
|
||||
<SCRIPT language="javascript" src="ie2.js" type="text/javascript"></SCRIPT>
|
||||
<SCRIPT language="javascript" src="js/ie2.js" type="text/javascript"></SCRIPT>
|
||||
|
||||
<META name="GENERATOR" content="MSHTML 11.00.9600.16384"></HEAD>
|
||||
<BODY onload="javascript:getInfo();">
|
7
helpers/piwik.php
Normal file
7
helpers/piwik.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once "../lib/PiwikTracker.php";
|
||||
$t = new PiwikTracker('7','http://stats.klaus-uwe.me/');
|
||||
$t->doTrackPageView('Lots of E\'s');
|
||||
|
||||
?>
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
|
||||
$code = 405;
|
||||
$text = "E-Only URL Not Allowed";
|
||||
$protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');
|
||||
header($protocol . ' ' . $code . ' ' . $text);
|
||||
|
||||
?>
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
25
index.php
25
index.php
|
@ -1,28 +1,9 @@
|
|||
<?php
|
||||
|
||||
error_reporting(0);
|
||||
include "405.php";
|
||||
|
||||
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||||
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||||
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||||
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
} else {
|
||||
$ip = $_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
require_once "PiwikTracker.php";
|
||||
$t = new PiwikTracker('7','http://stats.klaus-uwe.me/');
|
||||
$t->setIP($ip);
|
||||
$t->doTrackPageView('Lots of E\'s');
|
||||
|
||||
$ua = $_SERVER['HTTP_USER_AGENT'];
|
||||
|
||||
if (preg_match('/Chrome/i',$ua)) include "chrome.php";
|
||||
elseif (preg_match('/MSIE/i',$ua) && !preg_match('/Opera/i',$ua)) include "ie.php";
|
||||
elseif (preg_match('/.NET/i',$ua)) include "ie.php";
|
||||
elseif (preg_match('/Trident/i',$ua)) include "ie.php";
|
||||
elseif (preg_match('/Konqueror/i',$ua)) include "konqueror.php";
|
||||
else include "firefox.php";
|
||||
include "helpers/status.php";
|
||||
include "helpers/piwik.php";
|
||||
include "helpers/browser.php";
|
||||
|
||||
?>
|
||||
|
|
BIN
warning-16.png
BIN
warning-16.png
Binary file not shown.
Loading…
Reference in a new issue