Added admin-panel button
This commit is contained in:
@@ -3,7 +3,7 @@ var gettingMessages = false;
|
||||
|
||||
|
||||
$(document).ready(function() {
|
||||
setInterval(loadMessages, 2000);
|
||||
setInterval(loadMessages, 1000);
|
||||
sayEmpty();
|
||||
$(".chat-field").hide();
|
||||
});
|
||||
|
||||
3
website/public/styles/adminbutton.css
Normal file
3
website/public/styles/adminbutton.css
Normal file
@@ -0,0 +1,3 @@
|
||||
#quick-links i {
|
||||
font-size: 32px;
|
||||
}
|
||||
@@ -228,6 +228,7 @@ td {
|
||||
|
||||
/* Custom title box, appears instantaneously */
|
||||
a[data-title]:hover,
|
||||
i[data-title]:hover,
|
||||
img[data-title]:hover,
|
||||
span[data-title]:hover,
|
||||
div[data-title]:hover {
|
||||
@@ -235,6 +236,7 @@ div[data-title]:hover {
|
||||
}
|
||||
|
||||
a[data-title]:hover:after,
|
||||
i[data-title]:hover:after,
|
||||
img[data-title]:hover:after,
|
||||
span[data-title]:hover:after,
|
||||
div[data-title]:hover:after {
|
||||
|
||||
@@ -1,9 +1,20 @@
|
||||
<nav class="menu" id="notification-center">
|
||||
<section id="quick-links">
|
||||
<a href="chat.php"><i class="fa fa-comments-o" data-title="Prive chats"></i></a>
|
||||
<a href="settings.php"><i class="fa fa-cog" data-title="Instellingen"></i></a>
|
||||
<a href="profile.php"><i class="fa fa-user" data-title="Profiel"></i></a>
|
||||
<a href="logout.php"><i class="fa fa-sign-out" data-title="Uitloggen"></i></a>
|
||||
<a href="chat.php" data-title="Prive chats"><i class="fa fa-comments-o"></i></a>
|
||||
<a href="settings.php" data-title="Instellingen"><i class="fa fa-cog"></i></a>
|
||||
<a href="profile.php" data-title="Profiel"><i class="fa fa-user"></i></a>
|
||||
<?php
|
||||
include_once ("../queries/user.php");
|
||||
|
||||
// auth
|
||||
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
if ($userinfo['role'] == 'admin' OR $userinfo['role'] == 'owner') {
|
||||
echo "<a href=\"admin.php\" data-title=\"Admin\"><i class=\"fa fa-lock\"></i></a>";
|
||||
echo "<style>@import url('styles/adminbutton.css'); </style>";
|
||||
}
|
||||
?>
|
||||
<a href="logout.php" data-title="Admin"><i class="fa fa-sign-out"></i></a>
|
||||
</section>
|
||||
<section id="friend-request-section">
|
||||
<h4>
|
||||
|
||||
Reference in New Issue
Block a user