-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
46 lines (43 loc) · 1.14 KB
/
menu.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
<?php
$fname=$current_user->fname ;
include '/functions/islogin.function.php';
include '/core.inc.php'
?>
<div id="menu">
<ul>
<?php
if ($debug && $menu)
{
$islogin=islogin();
echo "$islogin<br>$current_file";
}
if (islogin()==0)
{
if ($current_file=="/resolution/index.php")
{
?>
<li class="current_page_item"><a href="index.php" accesskey="1" title="">Home</a></li>
<li><a href="login.php" accesskey="2" title="">Login</a></li>
<?php
}
elseif ($current_file=="/resolution/login.php")
{
?>
<li ><a href="index.php" accesskey="1" title="">Home</a></li>
<li class="current_page_item"><a href="login.php" accesskey="2" title="">Login</a></li>
<?php
}
}
elseif (islogin()==1)
{
if ($current_file=="/resolution/index.php")
{
?>
<li class="current_page_item"><a href="index.php" accesskey="1" title=""><?php echo "$fname";?></a></li>
<li><a href="logout.php" accesskey="2" title="">Logout</a></li>
<?php
}
}
?>
</ul>
</div>