-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathmaintenance.php
More file actions
22 lines (16 loc) · 737 Bytes
/
maintenance.php
File metadata and controls
22 lines (16 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
define('PMD_SECTION', 'public');
include ('./defaults.php');
if(!$PMDR->getConfig('maintenance') OR (isset($_SESSION['admin_permissions']) AND in_array('admin_login',$_SESSION['admin_permissions']))) {
redirect(BASE_URL.'/index.php');
}
header("HTTP/1.1 503 Service Unavailable");
header("Retry-After: 3600");
$PMDR->loadLanguage(array('public_maintenance'));
$PMDR->setAdd('page_title',$PMDR->getLanguage('public_maintenance'));
$PMDR->set('header_file','maintenance_header.tpl');
$PMDR->set('footer_file','maintenance_footer.tpl');
$PMDR->set('wrapper_file','wrapper_blank.tpl');
$template_content = $PMDR->getNew('Template',PMDROOT.TEMPLATE_PATH.'/maintenance.tpl');
include(PMDROOT.'/includes/template_setup.php');
?>