[freenet-cvs] r12015 - trunk/website

nextgens at freenetproject.org nextgens at freenetproject.org
Wed Mar 7 20:35:45 UTC 2007


Author: nextgens
Date: 2007-03-07 20:35:44 +0000 (Wed, 07 Mar 2007)
New Revision: 12015

Modified:
   trunk/website/index.php
Log:
website: send 401 insteed of 404

Modified: trunk/website/index.php
===================================================================
--- trunk/website/index.php	2007-03-07 19:42:44 UTC (rev 12014)
+++ trunk/website/index.php	2007-03-07 20:35:44 UTC (rev 12015)
@@ -3,10 +3,11 @@
 	$page = htmlentities($_REQUEST["page"]);
 	if(!file_exists("pages/".escapeshellcmd($page).".php") )
 	{
-		header('HTTP/1.0 404 Not Found');
+		header('HTTP/1.0 401 Likely to be gone');
 		if(empty($_SERVER["HTTP_REFERER"]) || empty($_SERVER["REQUEST_URI"])){
 			header("Location: /");
-		}else{
+		}
+		/* else{
 			echo "<html><head><title>404</title><head>";
 			echo "<body>404 error - broken link</body>";
 			$to="webmaster";
@@ -14,6 +15,7 @@
 			$content="\nA 404 error has occurred on the website : may you fix it ?\nFrom :  ".$_SERVER["HTTP_REFERER"]."\nTo : ".$_SERVER["REQUEST_URI"]."\nAt : ".date("D M j Y g:i:s a T"."\nUser-agent : ".$_SERVER["HTTP_USER_AGENT"]);
 			@mail($to,$subject,$content,"svn-build");
 		}
+		*/
 		die;
 	}
 } else {




More information about the cvs mailing list