dsifjdp[ fixes
This commit is contained in:
parent
c23d09c31d
commit
5cbd04796e
|
|
@ -11,7 +11,7 @@ class PartyStarter {
|
|||
function header() {
|
||||
// to not confuse you i renamed it from loggedoutheader to header since qzip made it both lol
|
||||
require 'core/config.php';
|
||||
$grubloxlogotohome = '<a class="navbar-brand text-dark" href="/"><div class="headerLogo d-inline-block align-top" alt=""></div></a>';
|
||||
$grubloxlogotohome = '<a class="navbar-brand text-dark" href="/"><span class="grufont fs-3">G </span><span class="gotham">GRUBLOX</span></a>';
|
||||
$showhome = '';
|
||||
if (isset($_SESSION['user'])) {
|
||||
$showhome = ' <li class="nav-item text-dark" style="color: #FFFFFF;">
|
||||
|
|
@ -30,7 +30,7 @@ class PartyStarter {
|
|||
unset($_SESSION["user"]);
|
||||
}
|
||||
$grubloxlogotohome = '<a class="navbar-brand text-dark" href="/home"><span class="grufont fs-3">G </span><span class="gotham">GRUBLOX</span></a>';
|
||||
$query = $con->prepare('SELECT money FROM users WHERE id=:id');
|
||||
$query = $con->prepare('SELECT * FROM users WHERE id=:id');
|
||||
$query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT);
|
||||
$query->execute();
|
||||
$money = $query->fetch(PDO::FETCH_ASSOC)["money"] ?? "0";
|
||||
|
|
@ -48,12 +48,20 @@ class PartyStarter {
|
|||
$money = number_format($money / 1000000000, 1) . 'B';
|
||||
|
||||
}
|
||||
|
||||
// if admin
|
||||
if($query->fetch(PDO::FETCH_ASSOC)["admin"] ?? 0 >= 1) {
|
||||
$adminTab = ' <li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/about"><i class="bi bi-question-circle"></i> Admin</a>
|
||||
</li>';
|
||||
} else {
|
||||
$adminTab = " ";
|
||||
}
|
||||
// messy shit sorry mario1 fix it urself :trol:
|
||||
$rightside = '<li class="nav-item"><a class="nav-link text-dark"><span class="grufont">@ </span>'.$money.'</a></li> <li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/logout"><i class="bi bi-box-arrow-right"></i> Logout</a>
|
||||
</li>';
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$rightside = '
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/register">Register</a>
|
||||
|
|
@ -62,6 +70,7 @@ class PartyStarter {
|
|||
<a class="nav-link text-dark" href="/login">Login</a>
|
||||
</li>';
|
||||
}
|
||||
$adminTab = " ";
|
||||
echo '<style>
|
||||
@font-face {
|
||||
font-family: grufont;
|
||||
|
|
@ -101,6 +110,7 @@ class PartyStarter {
|
|||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/about"><i class="bi bi-question-circle"></i> About</a>
|
||||
</li>
|
||||
'.$adminTab.'
|
||||
</ul>
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
|
|
|
|||
BIN
favicon.ico~
BIN
favicon.ico~
Binary file not shown.
|
Before Width: | Height: | Size: 7.3 KiB |
Loading…
Reference in New Issue