Reorganizing the repo a fair bit. Code is still crap, but I don't care.

This commit is contained in:
Klaus-Uwe Mitterer 2015-03-15 14:47:21 +01:00
parent 8e22a1c073
commit 604212226c
17 changed files with 31 additions and 65573 deletions

File diff suppressed because it is too large Load diff

Before

Width:  |  Height:  |  Size: 3.8 MiB

View file

@ -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;

View file

13
helpers/browser.php Normal file
View 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";
?>

View file

@ -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;">

View file

@ -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
View 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');
?>

View file

@ -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);
?>

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -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";
?>

View file

View file

Binary file not shown.