This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
maintenance.php
52 lines (46 loc) · 2.15 KB
/
maintenance.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
/*---------------------------------------------------------------------+
| ExiteCMS Content Management System |
+----------------------------------------------------------------------+
| Copyright 2006-2008 Exite BV, The Netherlands |
| for support, please visit http://www.exitecms.org |
+----------------------------------------------------------------------+
| Some code derived from PHP-Fusion, copyright 2002 - 2006 Nick Jones |
+----------------------------------------------------------------------+
| Released under the terms & conditions of v2 of the GNU General Public|
| License. For details refer to the included gpl.txt file or visit |
| http://gnu.org |
+----------------------------------------------------------------------+
| $Id:: $|
+----------------------------------------------------------------------+
| Last modified by $Author:: $|
| Revision number $Rev:: $|
+---------------------------------------------------------------------*/
require_once dirname(__FILE__)."/includes/core_functions.php";
require_once dirname(__FILE__)."/includes/theme_functions.php";
// login requested, switch to setuser to perform the login
if (isset($_POST['login'])) {
$_GET['login'] = "yes";
include PATH_ROOT."setuser.php";
exit;
}
// logout requested, switch to setuser to perform the logout
if (isset($_POST['logout'])) {
$_GET['logout'] = "yes";
include PATH_ROOT."setuser.php";
exit;
}
// temp storage for template variables
$variables = array();
if (isset($reason) && $reason == "2") {
$variables['message'] = $locale['189'];
} else {
$variables['message'] = stripslashes(nl2br($settings['maintenance_message']));
}
// define the first body panel variables
$template_panels[] = array('type' => 'body', 'name' => 'maintenance', 'template' => 'main.maintenance.tpl');
$template_variables['maintenance'] = $variables;
load_templates('body', '');
// clean up and clean exit
theme_cleanup();
?>