src.dualinventive.com/mtinfo/dist/webroot/rc-4.05/scripts/page/error.php

50 lines
1.1 KiB
PHP

<?php
/** \file scripts\page\error.php
* \brief DI webinterface error script.
* \author Rob Schalken, Core|Vision
* \version 1.0
* \date 17-10-2008
*
* This file contains the error script. This file displays that the file selected is not
* a valid one.
*/
//== Required settings ======================
$_PAGE_INFO['page_title'] = "error";
$_PAGE_INFO['history_menu_buttons'] = array();
$_PAGE_INFO['history_menu_links'] = array();
//===========================================
$error_info = array(
'$_GET' => serialize($_GET),
'$_POST' => serialize($_POST),
'$_SERVER' => serialize($_SERVER)
);
db_log_user("error", serialize($error_info));
// Show page header
print_page_header();
echo "<div style=\"height:50px\"></div>";
echo "<center><h1>";
echo _("Invalid page") . "!!!!";
echo "</h1></center>\n";
echo "<div style=\"height:50px\"></div>";
//echo "<p>";
//if (isset($_GET['href'])) {
// echo $_GET['href'] . ".php";
//}
//else if (isset($_GET['redirect'])) {
// echo $_GET['redirect'] . ".php";
//}
//echo "</p>\n";
// Show page footer
print_page_footer();
?>