-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathoffline.php
executable file
·83 lines (77 loc) · 1.96 KB
/
offline.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
<?php
/**
* @version $Id: offline.php,v 1.1 2005/07/22 01:57:42 eddieajau Exp $
* @package Mambo
* @copyright (C) 2000 - 2005 Miro International Pty Ltd
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* Mambo is Free Software
*/
/** ensure this file is being included by a parent file */
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
@include_once ('language/'.$mosConfig_lang.'.php');
$cur_template = 'rhuk_solarflare';
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
global $mosConfig_live_site;
?>
<!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>
<title><?php echo $mosConfig_sitename; ?> - Offline</title>
<link rel="stylesheet" href="<?php echo $mosConfig_live_site; ?>/templates/<?php echo $cur_template;?>/css/template_css.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
</head>
<body>
<p> </p>
<table width="550" align="center" style="background-color: #ffffff; border: 1px solid">
<tr>
<td width="60%" height="50" align="center">
<img src="<?php echo $mosConfig_live_site; ?>/images/logo.png" alt="Mambo Logo" align="middle" />
</td>
</tr>
<tr>
<td align="center">
<h1>
<?php echo $mosConfig_sitename; ?>
</h1>
</td>
</tr>
<?php
if ( $mosConfig_offline == 1 ) {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo $mosConfig_offline_message; ?>
</h2>
</td>
</tr>
<?php
} else if (@$mosSystemError) {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo $mosConfig_error_message; ?>
</h2>
<?php echo $mosSystemError; ?>
</td>
</tr>
<?php
} else {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo _INSTALL_WARN; ?>
</h2>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>