-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathuser_connected.php
39 lines (38 loc) · 1.32 KB
/
user_connected.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
<?php
if (isset($_SESSION['user_name'])) {
$user_name = $_SESSION['user_name'];
} elseif (isset($_SESSION['user'])) {
$user_name = $_SESSION['user'];
}
?>
<div id="caja_nombre_usuario">
<div id="texto_open_sans">
<?php
if (isset($user_name)) {
?>
    <img style="vertical-align: middle;" src="images/verde.png" />
<?php
if (isset($_SESSION['user_token'])) {
echo '<a href="oidc_user_info.php">';
}
echo htmlspecialchars($user_name);
echo ' is connected';
if (isset($_SESSION['user_token'])) {
echo '</a>';
}
?>
  |   <a href = "logout.php">Sign out</a>
  |  
<?php
if (!isset($_SESSION['user_token'])) {
?>
<a href = "password.php">Change password</a>
<?php
}
?>
          
<?php
}
?>
</div>
</div>