Initial commit Change-Id: I0000000000000000000000000000000000000000
This commit is contained in:
16
error/.htaccess
Executable file
16
error/.htaccess
Executable file
@@ -0,0 +1,16 @@
|
||||
php_value include_path ".:/var/www"
|
||||
|
||||
# disable directory browsing
|
||||
Options All -Indexes
|
||||
|
||||
ErrorDocument 400 /error/error400.php
|
||||
ErrorDocument 401 /error/error401.php
|
||||
ErrorDocument 403 /error/error403.php
|
||||
ErrorDocument 404 /error/error404.php
|
||||
ErrorDocument 500 /error/error500.php
|
||||
|
||||
#400 - Bad request
|
||||
#401 - Authorization Required
|
||||
#403 - Forbidden directory
|
||||
#404 - Page not found
|
||||
#500 - Internal Server Error
|
||||
16
error/.htaccess~
Executable file
16
error/.htaccess~
Executable file
@@ -0,0 +1,16 @@
|
||||
php_value include_path ".:/var/www"
|
||||
|
||||
# disable directory browsing
|
||||
Options All -Indexes
|
||||
|
||||
ErrorDocument 400 /error/error400.php
|
||||
ErrorDocument 401 /error/error401.php
|
||||
ErrorDocument 403 /error/error403.php
|
||||
ErrorDocument 404 /error/error404.php
|
||||
ErrorDocument 500 /error/error500.php
|
||||
|
||||
#400 - Bad request
|
||||
#401 - Authorization Required
|
||||
#403 - Forbidden directory
|
||||
#404 - Page not found
|
||||
#500 - Internal Server Error
|
||||
BIN
error/404_error_icon.png
Executable file
BIN
error/404_error_icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
BIN
error/500_error_icon.png
Executable file
BIN
error/500_error_icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 214 KiB |
22
error/error400.php
Executable file
22
error/error400.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<title>Bad request</title>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("error_header.php");
|
||||
|
||||
echo <<<MSG
|
||||
<center>
|
||||
<img src="/error/error_icon.png"/>
|
||||
<br/>
|
||||
<strong>Bad request</strong>
|
||||
</center>
|
||||
MSG;
|
||||
|
||||
include("footer.php");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
error/error401.php
Executable file
22
error/error401.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<title>Authorization Required</title>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("error_header.php");
|
||||
|
||||
echo <<<MSG
|
||||
<center>
|
||||
<img src="/error/error_icon.png"/>
|
||||
<br/>
|
||||
<strong>Authorization Required</strong>
|
||||
</center>
|
||||
MSG;
|
||||
|
||||
include("footer.php");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
error/error403.php
Executable file
22
error/error403.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<title>Forbidden directory</title>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("error_header.php");
|
||||
|
||||
echo <<<MSG
|
||||
<center>
|
||||
<img src="/error/error_icon.png"/>
|
||||
<br/>
|
||||
<b>Forbidden directory</b>
|
||||
</center>
|
||||
MSG;
|
||||
|
||||
include("footer.php");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
22
error/error404.php
Executable file
22
error/error404.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<title>Page not found</title>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("error_header.php");
|
||||
|
||||
echo <<<MSG
|
||||
<center>
|
||||
<img height="70%" src="/error/404_error_icon.png"/>
|
||||
<br/>
|
||||
<strong>Page not found</strong>
|
||||
</center>
|
||||
MSG;
|
||||
|
||||
include("footer.php");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
24
error/error500.php
Executable file
24
error/error500.php
Executable file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<title>Internal Server Error</title>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
|
||||
include("error_header.php");
|
||||
|
||||
echo <<<MSG
|
||||
<center>
|
||||
<img height="70%" src="/error/500_error_icon.png"/>
|
||||
<br/>
|
||||
<strong>Internal Server Error</strong>
|
||||
<br/>
|
||||
He's Dead Jim....
|
||||
</center>
|
||||
MSG;
|
||||
|
||||
include("footer.php");
|
||||
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
18
error/error_header.php
Executable file
18
error/error_header.php
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
require_once('/exceptionhandler/config.php');
|
||||
$name = COMPANY_NAME;
|
||||
echo <<<HEADER
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
<link rel="shortcut icon" href="/error/error_icon.png" type="image/x-icon" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
$name
|
||||
</h1>
|
||||
</body>
|
||||
</html>
|
||||
HEADER;
|
||||
?>
|
||||
BIN
error/error_icon.png
Executable file
BIN
error/error_icon.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
135
error/style.css
Executable file
135
error/style.css
Executable file
@@ -0,0 +1,135 @@
|
||||
.body {
|
||||
margin:0;
|
||||
padding-left:10%;
|
||||
border:0; /* This removes the border around the viewport in old versions of IE */
|
||||
width:80%;
|
||||
background:#fff;
|
||||
min-width:600px; /* Minimum width of layout - remove line if not required */
|
||||
/* The min-width property does not work in old versions of Internet Explorer */
|
||||
font-size: 16px;
|
||||
}
|
||||
.big{
|
||||
font-size: 250%;
|
||||
}
|
||||
|
||||
.textfield {
|
||||
font-size: 11px;
|
||||
color: #333333;
|
||||
background: #F7F7F7;
|
||||
border: 1px solid #CCCCCC;
|
||||
padding-left: 1px;
|
||||
}
|
||||
h1 {
|
||||
color: #99CC00;
|
||||
margin: 0px 0px 5px;
|
||||
padding: 0px 0px 3px;
|
||||
font: bold 35px Verdana, Arial, Helvetica, sans-serif;
|
||||
border-bottom: 4px dashed #E6E8ED;
|
||||
|
||||
text-shadow: 1px 0px #eee, 0px 1px #ccc,
|
||||
2px 1px #eee, 1px 2px #ccc,
|
||||
3px 2px #eee, 2px 3px #ccc,
|
||||
4px 3px #eee, 3px 4px #ccc,
|
||||
5px 4px #eee, 4px 5px #ccc,
|
||||
6px 5px #eee, 5px 6px #ccc,
|
||||
7px 6px #eee, 6px 7px #ccc,
|
||||
8px 7px #eee, 7px 8px #ccc,
|
||||
8px 8px #eee;
|
||||
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #99CC00;
|
||||
margin: 0px 0px 5px;
|
||||
padding: 0px 0px 3px;
|
||||
font: bold 20px Verdana, Arial, Helvetica, sans-serif;
|
||||
border-bottom: 1px dashed #E6E8ED;
|
||||
}
|
||||
|
||||
b {
|
||||
color:#99CC00;
|
||||
font-size: 18px;
|
||||
}
|
||||
a {
|
||||
color:#99CC00;
|
||||
font-size: 18px;
|
||||
}
|
||||
a:hover {
|
||||
color: #2D3954;
|
||||
}
|
||||
.err {
|
||||
color: #FF9900;
|
||||
}
|
||||
th {
|
||||
font-weight: bold;
|
||||
text-align: left;
|
||||
}
|
||||
.dim{
|
||||
width:228px;
|
||||
height:228px;
|
||||
}
|
||||
.padding{
|
||||
padding:50px;
|
||||
}
|
||||
footer{
|
||||
clear:both;
|
||||
margin: 0 auto;
|
||||
position: relative;
|
||||
width:98%;
|
||||
}
|
||||
li{
|
||||
display: inline;
|
||||
list-style-type: none;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.post{
|
||||
background-color: #ffffff;
|
||||
border:1px solid #cccccc;
|
||||
padding:10px;
|
||||
-webkit-border-radius: 20px 20px;
|
||||
-moz-box-shadow: 5px 5px 5px #ccc;
|
||||
-webkit-box-shadow: 5px 5px 5px #ccc;
|
||||
box-shadow: 5px 5px 5px #ccc;
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
}
|
||||
.commentfooter{
|
||||
border-top: 1px dashed #E6E8ED
|
||||
}
|
||||
pre {
|
||||
width: 70%;
|
||||
margin: 5px;
|
||||
white-space: pre-wrap; /* css-3 */
|
||||
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
|
||||
white-space: -pre-wrap; /* Opera 4-6 */
|
||||
white-space: -o-pre-wrap; /* Opera 7 */
|
||||
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
||||
}
|
||||
.codebox {
|
||||
display: block;
|
||||
background: #383838;
|
||||
color: #99CC00;
|
||||
padding: 10px;
|
||||
font-size: 14px;
|
||||
line-height: 15px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
border-radius: 10px;
|
||||
/*
|
||||
-moz-box-shadow: 0 0 40px #656565;
|
||||
-webkit-box-shadow: 0 0 40px #656565;
|
||||
box-shadow: 0 0 40px #656565;
|
||||
*/
|
||||
|
||||
}
|
||||
.centered {
|
||||
text-align:center;
|
||||
}
|
||||
.search{
|
||||
width:25%;
|
||||
text-align:right;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user