-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlivemenuSEC.php
69 lines (52 loc) · 2.23 KB
/
livemenuSEC.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
<?php
include_once 'config.inc.php';
include_once 'lang.php';
if (($requireauth=='yes') && ($loggedin=='yes'))// || ($requireauth!='yes'))
{
echo 'CCC';
echo '<div class="header" id="myHeader" style="padding: 2px 0px 6px 0px">';
echo '<table border=0><tr><td><a href="/airscan.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$scanpage.'</span></a></td>';
if (($showfilemanager=='yes') && ($requireauth=='yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'index.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$userfilestxt.'</span></a></td>';
}
elseif (($showfilemanager == 'yes') && ($requireauth != 'yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'index.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$alluserfilestxt.'</span></a></td>';
}
else
{
echo '';
}
if (($showpdfmanager=='yes') && ($requireauth='yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'PDF/index.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$userpdfstxt.'</span></a></td>';
}
elseif (($showpdfmanager == 'yes') && ($requireauth != 'yes'))
{
echo '<td> <a href="/'.$_SESSION['userpath'].'PDF/index.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$alluserpdfstxt.'</span></a>>/td>';
}
else
{
echo '';
}
if ($_SESSION['username']=='admin')
{
echo '<td> <a href="/usermanager.php?rand='.$rand.'"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$adminbutton.'</span></a></td>';
}
if ($_SESSION['loggedin']=='yes')
{
echo '<td> <a href="/logout.php"><span style="font-size: larger; color:#777AFF; font-weight:bold">'.$logout.'</span></a> </td>';
}
else echo '';
if (($requireauth=='yes') && ($_SESSION['loggedin']=='yes') && ($fastload!='yes') && ($showlogintime=='yes') && ($_SESSION['expire'] > $now))
{
echo "<td><div id=\"loginStatus\">$checkloginstatustxt</div></td>";
}
else
{
echo '';
}
}
?>
</tr></table></div>