Tokiwa Battle Royale
GE777
A PHP Battle Royale inspired game
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
errorpage.php
Go to the documentation of this file.
1
<?php
2
@
$error
= $_SERVER[
'REDIRECT_STATUS'
];
3
@
$referring_url
= $_SERVER[
'HTTP_REFERER'
];
4
@
$requested_url
= $_SERVER[
'REQUEST_URI'
];
5
@
$referring_ip
= $_SERVER[
'REMOTE_ADDR'
];
6
@
$server_name
= $_SERVER[
'SERVER_NAME'
];
7
8
if
(
$error
== 200 ) die();
9
10
$titles
= array(
11
401 =>
"错误401 - 认证失败"
,
12
403 =>
"错误403 - 拒绝访问"
,
13
404 =>
"错误404 - 文件未找到"
,
14
500 =>
"错误500 - 服务器内部错误"
,
15
503 =>
"错误503 - 服务暂时不可用"
,
16
);
17
18
if
( isset(
$titles
[
$error
]) ){
19
$title
=
$titles
[
$error
];
20
}
else
{
21
$title
=
"未知错误"
;
22
}
23
$img
=
"/img/error/$error.jpg"
;
24
25
?><!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
>
26
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
27
<head>
28
<meta http-equiv=
"Content-Type"
content
=
"text/html; charset=utf-8"
/>
29
<title><?php echo
$title
;?></title>
30
</head>
31
32
<body style=
"text-align: center;"
>
33
34
<img src=
"<?php echo $img;?>"
style=
""
/>
35
36
</body>
37
</html>
$referring_url
$referring_url
Definition:
errorpage.php:3
$requested_url
$requested_url
Definition:
errorpage.php:4
$title
$title
Definition:
config.inc.php:91
$error
$error
Definition:
errorpage.php:2
$titles
$titles
Definition:
errorpage.php:10
content
content($file= '')
Definition:
global.func.php:98
$server_name
$server_name
Definition:
errorpage.php:6
$img
$img
Definition:
errorpage.php:23
$referring_ip
$referring_ip
Definition:
errorpage.php:5
errorpage.php
Generated on Thu Nov 20 2014 11:37:59 for Tokiwa Battle Royale by
1.8.8