summaryrefslogtreecommitdiff
path: root/htdocs/404.php
blob: 2bb1e3c5c399794658ebfa4a7d09ffdae718d786 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/*
 * 404 errorDocument page.
 * 
 * Author: Sylvain Viart (viart@users.sf.net)
 * Date: Wed Jun  6 07:46:32 PDT 2001
 * Modified: [by user] [date]
 * Description: Handle 404 http error, and redirect to vim online if the
 *              document was about the VUR which will be removed.
 */

	$page = $_SERVER['REQUEST_URI'];
	$match_VUR = ereg('^/(VUR|vim_depot)', $page);

	$redirect = "http://www.vim.org/";
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
  <TITLE>Vim online - Page not found</TITLE>
  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<?php
	// automatic redirect if the page was about the VUR.
	if($match_VUR)
		echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"12; URL=$redirect\">\n";
?>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<h2>404 document not found</h2>
<?php
	
	if(!$match_VUR)
	{
		echo "<BLOCKQUOTE><TT>$page</TT></BLOCKQUOTE>\n";
		echo "does not exist.\n";
	}
	else
	{
		echo "The VUR has merged with vim online.\n";
	}
?>
<P>
Try vim online at <a href="http://www.vim.org/">http://www.vim.org/</a>.
</BODY>
</HTML>
<!-- vim: set ts=3 sts=3 sw=3: -->