Location: PHPKode > projects > Wexplorer > weXplorer/404.php
<?php
/*
 * Created on 18 août 2005
 */

require_once('config.inc.php');

 $uri = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
 
 $patterns = array();
 $replacements = array();
 foreach($ini_array['URL_mapping'] as $map) {
	$map = split(' => ',$map);
	if(count($map)>1) {
		$patterns[] = $map[0];
		$replacements[] = $map[1];
	}
 }
 $potUri = preg_replace($patterns,$replacements,$uri); 
	
 if($potUri != $uri) {
	header("Location: $potUri");
	$potUri = "<br/>or <a href='$potUri'>$potUri</a>";
 } else {
	$potUri = strtolower($potUri);
	if($potUri != $uri){
		header("Location: $potUri");
		$potUri = "<br/>or <a href='$potUri'>$potUri</a>";
	}
 }
 if($potUri == $uri) 
	$potUri ="";
 require_once('session.php');
 $bannername = 'banner.jpg';
 define('dontShowLogin',true);
?> 
<html>
<head>
<title>weXplorer</title>
</head>

<frameset rows="31,*" cols="*" framespacing="0" frameborder="NO" border="0">
  <frame src="<?php echo ROOT_URL;?>/header.php" name="header" scrolling="NO" noresize >
  <frame src="<?php echo ROOT_URL;?>/404frame.php?url=<?php echo $_SERVER['REQUEST_URI'];?>" name="content" scrolling="NO" noresize > 
</frameset>
<noframes><body>

</body></noframes>
</html>



Return current item: Wexplorer