forked from cilogon/service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex-maint.php
More file actions
49 lines (41 loc) · 1.57 KB
/
index-maint.php
File metadata and controls
49 lines (41 loc) · 1.57 KB
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
<?php
// error_reporting(E_ALL); ini_set('display_errors',1);
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/config.php';
include_once __DIR__ . '/config.secrets.php';
require_once __DIR__ . '/index-functions.php';
use CILogon\Service\Util;
use CILogon\Service\Content;
Util::cilogonInit();
// Handle the rare case that the language chooser is shown
// and the user selects a different language.
$submit = Util::getPostVar('submit');
Util::unsetSessionVar('submit');
if (preg_match('/^[a-z]{2}_[A-Z]{2}$/', $submit)) {
Util::changeLanguage($submit);
}
Content::printHeader(_('Site Maintenance'));
Content::printCollapseBegin('maint', _('Site Maintenance'), false);
echo '
<div class="card-body px-5">
<div class="row">
<div class="col-1 align-self-center text-center">
', Content::getIcon('fa-exclamation-triangle fa-2x', 'gold'), '
</div> <!-- end col-1 -->
<div class="col">
<div class="card-text my-2" id="id=maint-1">
',
_('The CILogon Service is currently undergoing maintenance. ' .
'Please try again in a few minutes.'), '
</div> <!-- end card-text -->
<div class="card-text my-2" id="id=maint-2">
',
_('For more information, see'),
' <a target="_blank" href="https://cilogon.statuspage.io/">cilogon.statuspage.io</a> .
</div> <!-- end card-text -->
</div> <!-- end col -->
</div> <!-- end row -->
</div> <!-- end card-body -->
';
Content::printCollapseEnd();
Content::printFooter();