Repository navigation
Expand file tree
/
Copy pathindex.php
More file actions
86 lines (77 loc) · 3.16 KB
/
Copy pathindex.php
File metadata and controls
86 lines (77 loc) · 3.16 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
<?php require_once("{$_SERVER['DOCUMENT_ROOT']}/src/header.php"); ?>
<!DOCTYPE HTML>
<html>
<head>
<title>Utelem - Home</title>
<link rel="icon" href="<?=$_CONFIG['FAVICON']?>" type="image/x-icon"/>
<style><?php include_once("./src/styles/layout.php"); ?>
body {
background-image: url('/src/images/landingpage1.jpg');
background-size: cover;
}
.boxmenu {
display: block;
position: relative;
font-size: 0;
text-align: center;
}
.boxmenu .button {
display: inline-block;
position: relative;
width: 25%;
height: 224px;
background-color: <?=$C_SECONDARY?>;
background-size: contain;
background-repeat: no-repeat;
background-position: center center;
box-shadow: 2px 2px 6px <?=$C_BORDER?>;
border: 3px solid <?=$C_BORDER?>;
border-radius: 32px;
color: <?=$C_PRIMARY?>;
margin: 1%;
line-height: 2.2em;
font-size: 14px;
vertical-align: top;
cursor: pointer;
}
.boxmenu .button.disabled {
background-color: <?=$C_TERNARY?>;
opacity: 0.5;
cursor: default;
}
</style>
</head>
<body>
<?php require_once("{$_SERVER['DOCUMENT_ROOT']}/src/menu.php"); ?>
<div class="boxmenu" style="top: 47%; transform: translateY(-50%);">
<?php
# Display box buttons
if(has_privilege("u"))
echo "<a class=\"button\" href=\"users/\" style=\"background-image: url('/src/images/graphics/users.png');\">User Accounts</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/users.png');\">User Accounts</div>";
if(has_privilege("D"))
echo "<a class=\"button\" href=\"download/?browser\" style=\"background-image: url('/src/images/graphics/browser.png');\">Browser Data</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/browser.png');\">Browser Data</div>";
if(has_privilege("D"))
echo "<a class=\"button\" href=\"download/?mobile\" style=\"background-image: url('/src/images/graphics/mobile.png');\">Mobile Data</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/mobile.png');\">Mobile Data</div>";
echo "</br>";
if(has_privilege("a"))
echo "<a class=\"button\" href=\"manage/\" style=\"background-image: url('/src/images/graphics/admins.png');\">Admin Accounts</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/admins.png');\">Admin Accounts</div>";
if(has_privilege("F"))
echo "<a class=\"button\" href=\"flush/?browser\" style=\"background-image: url('/src/images/graphics/flush_browser.png');\">Flush Browser Data</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/flush_browser.png');\">Flush Browser Data</div>";
if(has_privilege("F"))
echo "<a class=\"button\" href=\"flush/?mobile\" style=\"background-image: url('/src/images/graphics/flush_mobile.png');\">Flush Mobile Data</a>";
else
echo "<div class=\"button disabled\" style=\"background-image: url('/src/images/graphics/flush_mobile.png');\">Flush Mobile Data</div>";
?>
</div>
</body>
</html>