-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsession.php
More file actions
36 lines (32 loc) · 715 Bytes
/
Copy pathsession.php
File metadata and controls
36 lines (32 loc) · 715 Bytes
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
<Table width="100%">
<tr>
<td>
<?php
@$_SESSION['login'];
error_reporting(1);
?>
</td>
<td>
<?php
if(isset($_SESSION['login']))
{
//echo "Connected";
if($_SESSION['checkadmin'] == 0)
{
echo "<div align=\"right\"><strong><a href=\"userpage.php\">". $_SESSION['login'];
echo "</a> | <a href=\"signout.php\">Sign Out</a></strong></div>";
}
else
{
echo "<div align=\"right\"><strong><a href=\"adminpage.php\">". $_SESSION['login'];
echo "</a> | <a href=\"signout.php\">Sign Out</a></strong></div>";
}
}
else
{
echo " ";
}
?>
</td>
</tr>
</table>