-
Notifications
You must be signed in to change notification settings - Fork 8
/
offline.php
92 lines (90 loc) · 2.92 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
84
85
86
87
88
89
90
91
92
<?php
/*
BISMILLAAHIRRAHMAANIRRAHIIM - In the Name of Allah, Most Gracious, Most Merciful
================================================================================
filename : offline.php
purpose :
create : 2006/02/01
last edit : 060301;0317,070430,120113
author : cahya dsn
================================================================================
This program is free software; you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
copyright (c) 2006-2012 by cahya dsn; cahyadsn@yahoo.com
================================================================================
*/
if (!file_exists( 'installation/index.php' )) {
define( '_INSTALL_CHECK', 1 );
header("Location: index.php");
exit();
}
define('_ISO','UTF-8=ISO-8859-1');
if (!defined( '_ADMIN_OFFLINE' ) || defined( '_INSTALL_CHECK' )) {
include("config.php");
include("lang/".$adzanCfg_lang.".lang.php");
$iso = preg_split( '/=/', _ISO );
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'."\n";
?>
<!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 $adzanCfg_title." ver ".$adzanCfg_version; ?> - Offline</title>
<link rel="stylesheet" href="<?php echo $adzanCfg_live_site; ?>/templates/css/offline.css" type="text/css" />
<link rel="shortcut icon" href="<?php echo $adzanCfg_live_site; ?>/images/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
</head>
<body>
<p> </p>
<table width="550" align="center" class="outline">
<tr>
<td align="center">
<h1>
<?php echo $adzanCfg_title." ver ".$adzanCfg_version; ?>
</h1>
</td>
</tr>
<?php
if ( $adzanCfg_offline == 1 ) {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo _OFFLINE_MESSAGE; ?>
</h2>
</td>
</tr>
<?php
} else if (@$systemError) {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo _ERROR_MESSAGE; ?>
</h2>
<?php echo $systemError; ?>
</td>
</tr>
<?php
} else {
?>
<tr>
<td width="39%" align="center">
<h2>
<?php echo _INSTALL_WARN; ?>
</h2>
</td>
</tr>
<?php
}
?>
</table>
</body>
</html>
<?php
exit( 0 );
}
?>