I think that this is a cool feature
so i would like to add it to my
error page, but the problem is
that my error file is a php file
so it wont work together :-/
Here is the source code!,
anyone that know a way to make
it work ?
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="Microsoft FrontPage 4.0" name=GENERATOR></HEAD>
<BODY bgColor=#ffcc00>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD><IMG src="http://charmed.dns2go.com/sysimage/icons/dork.gif"> </TD>
<TD>
<p align="center"><font size="5">404</font><br>
<br>
<FONT size=5>The file you requested no longer exists!</p>
<P>
<P>
<FORM><INPUT onclick=history.back(-1) type=button value="<< back"
;></FORM></FONT></TD></TR></TBODY></TABLE></BODY></HTML>
<HTML>
<HEAD>
<TITLE>404 File not found</TITLE>
<META NAME="Generator" CONTENT="Stone's WebWriter 3.5">
</HEAD>
<BODY>
<script language="javascript">
document.write("Browser: " + navigator.appName + "<br>")
document.write("Version: " + navigator.appVersion + "<br>")
idag = new Date();
var time = idag.getHours()
var minut = idag.getMinutes()
var sekund = idag.getSeconds()
if (minut < 10)
{minutes = "0" + minut}
if (sekund < 10)
{sekund = "0" + sekund}
document.write("Time: " + time + ":" + minut + ":" + sekund + "<br>")
if (idag.getDay() == 0) {
document.write("Sunday ") }
if (idag.getDay() == 1) {
document.write("Monday ") }
if (idag.getDay() == 2) {
document.write("Tuesday ") }
if (idag.getDay() == 3) {
document.write("Wednesday ") }
if (idag.getDay() == 4) {
document.write("Thursday ") }
if (idag.getDay() == 5) {
document.write("Friday ") }
if (idag.getDay() == 6) {
document.write("Saturday ") }
document.write(idag.getDate() + ". ")
if (idag.getMonth() == 0) {
document.write("january") }
if (idag.getMonth() == 1) {
document.write("february") }
if (idag.getMonth() == 2) {
document.write("march") }
if (idag.getMonth() == 3) {
document.write("april") }
if (idag.getMonth() == 4) {
document.write("may") }
if (idag.getMonth() == 5) {
document.write("june") }
if (idag.getMonth() == 6) {
document.write("july") }
if (idag.getMonth() == 7) {
document.write("august") }
if (idag.getMonth() == 8) {
document.write("september") }
if (idag.getMonth() == 9) {
document.write("october") }
if (idag.getMonth() == 10) {
document.write("november") }
if (idag.getMonth() == 11) {
document.write("december") }
if (idag.getYear() < 100) {
document.write(" - 19" + today.getYear() + "<br>") }
if (idag.getYear() > 100) {
document.write(" - " + today.getYear() + "<br>") }
if (navigator.appName == "Netscape") {
adresse = java.net.InetAddress.getLocalHost()
adresse2 = java.net.InetAddress.getLocalHost()
document.write("Dom�ne: " + adresse.getHostName() + "<br>")
document.write("IP: " + adresse2.getHostAddress() + "<br>") }
else {}
</script>
<p> </p>
<?php
if($HTTP_X_FORWARDED_FOR){ /*if they are connected through a proxy server*/
/*$HTTP_X_FORWARDED_FOR detects if the connection is forwared, or in lamens
terms, checks to see if the user is behind a proxy server*/
echo"We have detected that you are behind a proxy server. Here is some
information:<br>
User ip: $HTTP_X_FORWARDED_FOR<br>
$HTTP_VIA @ $REMOTE_ADDR";
} else { /*if they aren't connected through a proxy server*/
echo "User ip: $REMOTE_ADDR";
}
?>
----- Original Message -----
From: "CDS" <[EMAIL PROTECTED]>
To: "sambar List Member" <[EMAIL PROTECTED]>
Sent: Monday, March 17, 2003 10:37 AM
Subject: [sambar] question about - stm files {03}
> Also note that any personal firewalls which protect the users referer
> will cause this not to work.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.462 / Virus Database: 261 - Release Date: 13-03-2003
-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/