forked from iseeyoucopy/U-232-Trinity-RC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.php
87 lines (87 loc) · 2.98 KB
/
error.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- @copyright 2020 U-232 Team ----------*
* ---------------------------------------------*
* ------------ @version V6 ------------------*
*/
require_once(__DIR__.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
$string = $_SERVER['QUERY_STRING'];
if ($string == '404') {
$page = 'Page Not Found - 404';
$text = 'Sorry, The page you are looking for cannot be found.';
}
if ($string == '401') {
$page = 'Authorization Required - 401';
$text = 'You need to be Authorized to access this page. You do not have the correct credentials.';
}
if ($string == '403') {
$page = 'Forbidden - 403';
$text = 'You do not have full permission to access this page.';
}
if ($string == '500') {
$page = 'Internal Server Error - 500';
$text = 'There seems to have been an error on this server. Please notify the webmaster of the site.';
}
if ($string == '400') {
$page = 'Bad Request - 400';
$text = 'There has been an error with the page you are trying to view. Please try again later.';
}
$domain = htmlsafechars($_SERVER['HTTP_HOST']);
$htmlout = '';
$htmlout = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='refresh' content='5; url=http://".$domain."'>
<meta name='generator' content='u-232.servebeer.com'>
<meta name='MSSmartTagsPreventParsing' content='TRUE'>
<title>{$page}</title>
<style type='text/css'>
<!--
body
{
margin: 4;
background-color: white;
}
p
{
margin: 0;
font-family: Arial, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 14px;
}
.style1 { color: #666666;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
-->
</style>
</head>
<body>
<div align='center'>
<table width='300' border='0' cellpadding='0' cellspacing='0'>
<!--Error pic layout-->
<tr>
<td width='300' height='50' valign='top'><!--Error 404 EmptyCell--> </td>
</tr>
<tr>
<td height='520' valign='top'><img src='{$TRINITY20['pic_base_url']}error404.png' alt='Error Not Found' width='300' height='520' border='0' usemap='#Map'></td>
</tr>
<tr>
<td height='14' valign='top'><div align='center'><span class='style1'>© U-232 V3</span></div></td>
</tr>
</table></div><map name='Map' id='map'>
<area shape='rect' coords='99,425,203,481' alt='Error Not Found'>
</map>
<p align='center'><b>{$page}</b></p>
<p align='center'>{$text}</p><br>
<p align='center'>You will be redirected back to {$domain} in 5 seconds</p>
</body>
</html>";
echo $htmlout;