forked from markosjal/AirScan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlivemenu.php
More file actions
87 lines (68 loc) · 3.11 KB
/
livemenu.php
File metadata and controls
87 lines (68 loc) · 3.11 KB
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
86
87
<?php
include_once 'config.inc.php';
include_once 'lang.php';
if ((($requireauth=='yes') && ($_SESSION['loggedin']=='yes')) || ($requireauth!='yes'))
{
// echo $_SESSION['loggedin'];
echo '<div class="header" id="myHeader" style="padding: 2px 0px 6px 0px">';
//echo '<table border=0><tr><td><a data-href="/airscan.php"><span style="font-size: larger; color:#777AFF; font-weight:bold; cursor: pointer; text-decoration: underline;">'.$scanpage.'</span></a></td>';
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') && ($_SESSION['txtfilemanager']=='yes') && ($_SESSION['pamfilemanager']=='no') && ($requireauth=='yes') && ($_SESSION['password']!='PAM'))
{
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') && ($_SESSION['pamfilemanager']=='yes') && ($_SESSION['txtfilemanager']=='no') && ($requireauth=='yes') && ($_SESSION['password']=='PAM'))
{
echo '<td> <a href="/pamindex.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>
<?php /* </div>
<script>
$("body").on("click", "a[data-href]", function() {
var href = $(this).data("href");
if (href) {
location.href = href;
}
});
</script>
*/ ?>