<?php
/**
 * Public error page
 * 
 * Called when a 404 HTTP error is triggered
 * 
 * @package linea21\core\config_files
 * @author $Author$ - linea21 <info@linea21.com>
 * @version $Id$ 
 * @access public
 * @license http://opensource.org/licenses/gpl-3.0.html
 */
ob_start();
session_start();
include_once("../config/define.php");
include_once('../languages/'.U_L.'/lang_common.' . CHARSET . '.php');

$backlink= CURRENT_APP_URL ."index.php?rub=".$GLOBALS['links'][U_L]['search']['linkvalue'];

echo '<?xml version="1.0" encoding="'.CHARSET.'" xml:lang="'. U_L .'">'.PHP_EOL;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo U_L; ?>">
<head>
<meta HTTP-EQUIV="Refresh" CONTENT="<?php echo CONFIRM_REFRESH; ?>;URL=<?php echo $backlink; ?>">
<meta http-equiv="content-language" content="<?php echo U_L; ?>" />
<meta http-equiv="content-type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo _t('header','title'); ?></title>
<link type="text/css" rel="StyleSheet" href="<?php echo THEME_ADMIN_PATH; ?>css/knacss.css" />
<link type="text/css" rel="StyleSheet" href="<?php echo THEME_ADMIN_PATH; ?>css/actionconfirm.css" />
</head>
<body>
<h1 class="error txtcenter center w33"><?php echo _t('divers', '404'); ?></h1>
</body>
</html>
<?php
ob_end_flush();
?>