summaryrefslogtreecommitdiffabout
path: root/components/exception_prod
blob: 976862366f5b82138e156ecf172d5cd796dc9e88 (plain)
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
<%code>
 /* vim:set ft=sitecing: */
 __SCIF->headers.clear(); /* reset all headers possibly set by the component throwing an exception. */
 __SCIF->out->seekp(0); /* rollback the output that the exceptional component may have produced. */
 /* set out headers */
 __SCIF->headers["Content-Type"] = "text/html";
 __SCIF->headers["Status"] = "500 server-side exception";
 __SCIF->headers["Pragma"] = "no-cache";
</%code>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 <head>
  <title>Server-side exception</title>
  <style type="text/css">
   <!--
    body {
     font-family: sans-serif;
     font-size: 12pt;
    }
    h1 {
     font-family: serif;
     font-size: 130%;
     font-weight: bold;
     text-align: center;
    }
    p {
     text-indent: 2em;
     text-align: justify;
    }

    div.powered {
     margin: 2em 0px 0px 50%;
     padding: 1ex 2ex;
     text-align: right;
     font-family: serif;
     font-size: 140%;
     font-weight: bold;
     border-top: solid 2px black;
     border-left: solid 1px gray; border-right: solid 1px gray; border-bottom: solid 1px gray;
     background: #c0c0f0;
    }
   -->
  </style>
 </head>
 <body>
  <h1>server-side exception</h1>
  <p>Something has gone really wrong with the server. Feel free to report the
  incident to <a href="mailto:<% __CGI->get_meta("SERVER_ADMIN") %>" title="e-mail
  server administrator">webmaster</a>.</p>
  <div class="powered">Powered by <a href="http://kin.klever.net/sitecing/" title="site-C-ing">site-C-ing</a>.</div>
 </body>
</html>