Ok here is the code of error.php
PHP Code:
<?php
/**
*
* @package phpBB3
* @version $Id: $
* @copyright (c) 2008 Francis W. Fisher (Phantom) http://radoncube.com/
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('mods/error');
$base_url = generate_board_url() . '/';
$template->assign_vars(array(
'S_ERROR_PAGE' => true,
'U_FORUM_BASE' => $base_url,
));
//set title of error page
$msg_title = $user->lang['ERROR_TITLE'];
$mode = request_var('mode', 0);
switch ($mode)
{
case '400':
trigger_error('ERROR_BAD_REQUEST');
break;
case '401':
trigger_error('ERROR_AUTH_REQUIRED');
break;
case '403':
trigger_error('ERROR_FORBIDDEN');
break;
case '404':
trigger_error('ERROR_NOT_FOUND');
break;
case '500':
trigger_error('ERROR_INT_SERVER');
break;
default:
trigger_error('ERROR_UNKNOWN');
break;
}
?>