-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsplash.php
86 lines (69 loc) · 3.71 KB
/
splash.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
<?php
$_SESSION['splash'] = true;
$error = '';
#file_put_contents("mylog.log", "\$_SESSION in Splash.php BEFORE changes = ".print_r($_SESSION,1)."\n\n\n", FILE_APPEND);
if (!empty($_SESSION['user_data']['userid']) && (empty($_SESSION['authorized']) || $_SESSION['authorized'] !== true)){
$error = '<br>The user ' . $_SESSION['user_data']['userid'] . " is not authorized to use this tool<br>\n";
$_SESSION['splash'] = false;
}
#file_put_contents("mylog.log", "\$_SESSION in Splash.php AFTER changes = ".print_r($_SESSION,1)."\n\n\n", FILE_APPEND);
#file_put_contents("mylog.log", "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \n\n\n\n\n\n\n", FILE_APPEND);
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $config['app']['app_title']; ?></title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="style.v2.01.css" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="header row align-items-center">
<div class="col-sm-4">
<img src="images/<?php echo $config['app']['app_logo']; ?>" class="logo" alt="<?php echo $config['app']['app_logo_alt']; ?>">
</div>
<div class="col-sm-4 text-center">
<h1><?php echo $config['app']['app_title']; ?></h1>
</div>
<div class="col-sm-4 text-end">
<?php
if (!empty($user)) echo '<p id="username">Hello '.$user.'</p>'."\n";
?>
</div>
</div>
<div class="row">
<div class="col-md-1 columns">
</div>
<div class="col-md-10 columns">
<div>
<p class="newchat" style="text-align: center;">
<?php echo $config['app']['help_text1']; ?>
<span style="display: flex; justify-content: space-between; width: 90%; margin: 20px auto;">
<a title="Open a link to the Teams interface" href="<?php echo $config['app']['teams_link']; ?>" target="_blank">Connect in Teams</a>
<a title="Open a link to the NHLBI Intranet interface" href="<?php echo $config['app']['intranet_link']; ?>" target="_blank">Overview and Instructions</a>
<a title="Open the training video in a new window" href="<?php echo $config['app']['video_link']; ?>" target="_blank">Training Video</a>
<a title="Open a new window to submit feedback" href="<?php echo $config['app']['feedback_link']; ?>" target="_blank">Submit Feedback</a>
</span>
</p>
<?php
if (!empty($error)) echo '<span style="color:red">'.$error.'</span></p>'."\n";
if (!empty($config['app']['notification_center'])) {
echo '<div class="notification_center"><strong>Notification Center:</strong> <br><br>'.$config['app']['notification_center'].'</div>'."\n";
}
echo $config['app']['disclaimer_text'];
?>
<p class="newchat" style="text-align: center;">
<a title="Click here to go to authentication" href="auth_redirect.php">Proceed</a></p>
<!-- Chat messages will be added here -->
</div>
<div class="footer">
<p><a title="Open the disclosure information in a new window" href="<?php echo $config['app']['disclosure_link']; ?>" target="_Blank" title="Vulnerability Disclosure">Vulnerability Disclosure</a></p>
</div>
</div>
<div class="col-md-1 columns">
</div>
</div>
</div>
</body>
</html>