forked from Amit86/minimanager
-
Notifications
You must be signed in to change notification settings - Fork 38
/
error.php
47 lines (41 loc) · 1.61 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
<?php
// page header, and any additional required libraries
require_once 'header.php';
// we get the error message which was passed to us
$err = (isset($_GET['err'])) ? ($_GET['err']) : ((defined('ERROR_MSG')) ? ERROR_MSG : 'Oopsy...');
// we start with a lead of 10 spaces,
// because last line of header is an opening tag with 8 spaces
// keep html indent in sync, so debuging from browser source would be easy to read
$output .= '
<!-- start of error.php -->
<center>
<br />
<table width="400" class="flat">
<tr>
<td align="center">
<h1>
<font class="error">
<img src="img/warn_red.gif" width="48" height="48" alt="error" />
<br />ERROR!
</font>
</h1>
<br />'.$err.'<br />
</td>
</tr>
</table>
<br />
<table width="300" class="hidden">
<tr>
<td align="center">';
makebutton($lang_global['home'], 'index.php', 130);
makebutton($lang_global['back'], 'javascript:window.history.back()', 130);
unset($err);
$output .= '
</td>
</tr>
</table>
<br />
</center>
<!-- end of error.php -->';
require_once 'footer.php';
?>