-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path404.php
executable file
·48 lines (39 loc) · 960 Bytes
/
404.php
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
48
<?php
/**
*
* @package phpBB3
* @version $Id: index.php,v 1.175 2007/07/26 15:49:44 acydburn Exp $
* @copyright (c) 2005 phpBB Group
* @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();
// Figure out who sent them here
if (isset($_SERVER['HTTP_REFERER']))
{
$referer = $_SERVER['HTTP_REFERER'];
} else {
$referer = "someone";
}
// Assign index specific vars
$template->assign_vars(array(
'URI' => $_SERVER['REQUEST_URI'],
'REFERER' => $referer
));
// Output page
page_header('404 Error: '.$_SERVER['REQUEST_URI'].' Not Found');
$template->set_filenames(array(
'body' => '404_body.html',)
);
page_footer();
?>