forked from e107inc/e107
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsitedown.php
52 lines (44 loc) · 1.19 KB
/
sitedown.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
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| Copyright (C) 2001-2009 e107 Inc
| http://e107.org
|
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/sitedown.php,v $
| $Revision: 1.4 $
| $Date: 2009-09-15 15:02:35 $
| $Author: secretr $
+----------------------------------------------------------------------------+
*/
require_once("class2.php");
header("Content-type: text/html; charset=utf-8", TRUE);
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
/*
global $pref;
global $tp;
e107_include_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_sitedown.php");
e107_include_once(e_LANGUAGEDIR."English/lan_sitedown.php");
*/
if (!$pref['maintainance_flag'] )
{
header("location: ".SITEURL);
}
require_once(e_FILE."shortcode/batch/sitedown_shortcodes.php");
if (!$SITEDOWN_TABLE) {
if (file_exists(THEME."sitedown_template.php"))
{
require_once(THEME."sitedown_template.php");
}
else
{
require_once(e_THEME."templates/sitedown_template.php");
}
}
echo $tp->parseTemplate($SITEDOWN_TABLE, TRUE, $sitedown_shortcodes);
?>