Odyssey
hcuBadRequest.i
1 <?php
2  /*
3  * hcuBadRequest
4  *
5  * This script will present a bad request page.
6  * used by scripts that raise an exception event, but have nowhere to got
7  *
8  * Called as a stand alone..
9  * this can be called from any product {banking, admin, monitor}
10  *
11  */
12 
13 
14  if (ob_get_length() > 0) {
15  ob_clean();
16  }
17  // Set the response of this page to be 400 (bad request) -- Some exception happened, not much can be done
18  // http_response_code(400);
19 ?><!DOCTYPE HTML>
20 <html>
21  <head>
22  <title>Page Request Error</title>
23 
24  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
25  <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
26  <meta name="viewport" content="width=device-width, initial-scale=1" />
27 
28  <style>
29  .error-content {
30  background-color: #EFEFEF;
31  min-width: 300px;
32  max-width: 500px;
33  margin: auto !important;
34  padding: 20px;
35  -webkit-border-radius: 5px;
36  -moz-border-radius: 5px;
37  border-radius: 5px;
38 
39  text-align: center;
40  }
41 
42  .page-title {
43  text-align: center;
44  }
45  .title-caption {
46  border-top: 2px solid;
47  border-bottom: 2px solid #333;
48  border-color: rgba(51, 51, 51, .4);
49  margin: auto !important;
50  display: inline-block;
51  padding: 10px;
52  }
53  .return-section {
54  margin-top: 20px;
55  }
56  .return-section button {
57  -webkit-border-radius: 10px;
58  -moz-border-radius: 10px;
59  border-radius: 10px;
60  color: #FFF;
61  background: #26B336;
62  border-color: #26B336;
63  padding: 5px 20px 5px 20px;
64  text-decoration: none;
65  font-size: 1.4em;
66 
67  }
68  @media (min-width: 768px) {
69  width: 500px;
70 
71  }
72  </style>
73 
74  <script>
75  function ReturnToPage() {
76  document.location = 'http://www.google.com';
77  }
78  </script>
79  </head>
80  <body>
81  <div class="error-content">
82 
83  <div class="page-title">
84  <div class="title-caption">
85  Page Error
86  </div>
87  </div>
88  <div class="">
89  <h1>
90  Page request failed
91  </h1>
92  </div>
93  <div class="">
94  <h3>
95  We have logged the error and an engineer will look in to it.
96  </h3>
97  </div>
98  </div>
99 
100  </body>
101 </html>