Skip to content

Commit

Permalink
Updated SuperUser
Browse files Browse the repository at this point in the history
Added 401 unauthorized access to restricted users.
  • Loading branch information
anand-3399 committed Aug 22, 2023
1 parent 0573de5 commit 11e26fc
Show file tree
Hide file tree
Showing 7 changed files with 544 additions and 177 deletions.
12 changes: 12 additions & 0 deletions blog.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,18 @@
<?php
}
?>
<li class="nav-item">
<?php
if (isset($_SESSION['id']) && ($_SESSION['id'] === "1")) {
?>

<a class="nav-link" href="superuser.php">Admin</a>

<?php
}

?>
</li>


<li class="nav-item">
Expand Down
13 changes: 13 additions & 0 deletions contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@
}
?>

<li class="nav-item">
<?php
if (isset($_SESSION['id']) && ($_SESSION['id'] === "1")) {
?>

<a class="nav-link" href="superuser.php">Admin</a>

<?php
}

?>
</li>


<li class="nav-item">
<a class="nav-link" href="team.php">team</a>
Expand Down
16 changes: 14 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ h6 {
}


p {
p,
tr,
td {
font-family: "Poppins", sans-serif;
line-height: 29px;
font-size: 15px;
Expand Down Expand Up @@ -6844,6 +6846,16 @@ h6 {
}

/* For 000webhostapp */
img[alt="www.000webhost.com"]{
img[alt="www.000webhost.com"] {
display: none;
}

th,
td {
padding: 15px;
}

td img {
width: 50%;
border-radius: 50%;
}
13 changes: 13 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,19 @@ function start_session($expire = 0)
}
?>

<li class="nav-item">
<?php
if (isset($_SESSION['id']) && ($_SESSION['id'] === "1")) {
?>

<a class="nav-link" href="superuser.php">Admin</a>

<?php
}

?>
</li>


<li class="nav-item">
<a class="nav-link" href="team.php">team</a>
Expand Down
287 changes: 143 additions & 144 deletions single-blog.php

Large diffs are not rendered by default.

Loading

0 comments on commit 11e26fc

Please sign in to comment.