yezz credits and made the ui look hote

This commit is contained in:
ui0ppk 2023-02-06 18:42:16 +02:00
parent 7dd3b0fe4e
commit 5f02ba2687
5 changed files with 61 additions and 29 deletions

View File

@ -17,11 +17,30 @@
</head>
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
<body>
<h1>yes i am AGAIN still not hired to make html</h1>
<h1>here is all the devs</h1>
<h1><?php foreach($maintainers as $dev) {
echo $dev."<br>";
} ?>and not u cause you stink 😂😂😂😂😂😂😂😂😂😂😂😂😂
<main class="container mt-3" style="width: 100%; margin-left: 20px;">
<h2>Special thanks to these people for making <?php echo $sitename; ?> possible.</h2><br>
<ul class="list-group float-start me-2">
<li class="list-group-item fs-5 bg-primary text-white">Site developers:</li>
<?php foreach($maintainers as $dev) {
echo '<li class="list-group-item">'.$dev."</li>";
} ?>
</ul>
<ul class="list-group float-start me-2">
<li class="list-group-item fs-5 bg-success text-white">Client developers:</li>
<?php foreach($clientdevs as $dev) {
echo '<li class="list-group-item">'.$dev."</li>";
} ?>
</ul>
<ul class="list-group float-start me-2">
<li class="list-group-item fs-5 bg-secondary text-white">Donators:</li>
<?php foreach($donators as $dev) {
echo '<li class="list-group-item">'.$dev."</li>";
} ?>
</ul>
<div class="clearfix"></div>
<br><br><small>Sorry if the page looks bland, I dont know what to add.</small>
</main>
</body>
</html>

View File

@ -111,7 +111,7 @@ $getitstarted->header();
</span>
<br>
<p class="text-white">Limited Unique Items</p>
<p>A limited supply originally sold by <?php echo $sitename; ?>. Each unit is labeled with a serial number. Once sold out, owners can re-sell them to other users. </p>
<p>A limited supply originally sold by <?php echo $sitename; ?>. Each unit is labeled with a serial number. Once sold out, you cannot buy them. </p>
</li>
</ul>
<div class="row row-cols-xl-6 row-cols-lg-4 row-cols-md-3 row-cols-sm-2 g-4" style="margin-left: 200px; margin-top: 1px;">
@ -146,8 +146,8 @@ $getitstarted->header();
<div class="d-inline-block card-img-top border border-1">
<img src="<?php if (!empty($item["thumbnail"])) {echo htmlspecialchars($item["thumbnail"]);} else {echo "assets/placeholder.png";} ?>" height=150 width=150></a>
<p class="me-1 mt-1 position-absolute top-0 end-0"><?php if($item['limited'] == 1) { echo '<span class="badge bg-success">Limited</span>'; }; ?></p>
<span class="fs-6 mb-2 ms-2 opacity-75 bg-success badge"><span class="grufont fs-5">@ </span><?php echo getMoney((int)htmlspecialchars($item["price"])); ?></span>
</div>
<span class="fs-6 mt-2 ms-2 opacity-75 position-absolute top-50 start-0 translate-middle-y bg-success badge"><span class="grufont fs-5">@ </span><?php echo getMoney((int)htmlspecialchars($item["price"])); ?></span>
<div class="card-body">
<h5 class="card-title"><?php echo htmlspecialchars($item["name"]); ?></h5>
<p class="card-text">

View File

@ -13,6 +13,7 @@ class PartyStarter {
require 'core/config.php';
$grubloxlogotohome = '<a class="navbar-brand text-dark" href="/"><span class="grufont fs-3">G </span><span class="gotham">GRUBLOX</span></a>';
$showhome = '';
$adminTab = " ";
if (isset($_SESSION['user'])) {
$showhome = ' <li class="nav-item text-dark" style="color: #FFFFFF;">
<a class="nav-link text-dark" href="/home"><i class="bi bi-house"></i> Home
@ -29,10 +30,21 @@ class PartyStarter {
} else {
unset($_SESSION["user"]);
}
$query = $con->prepare('SELECT * FROM users WHERE id=:id');
$query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT);
$query->execute();
// if admin
if($query->fetch(PDO::FETCH_ASSOC)["admin"] >= 1) {
$adminTab = ' <li class="nav-item">
<a class="nav-link text-dark" href="/admin"><i class="bi bi-hammer"></i> Admin</a>
</li>';
} else {
$adminTab = " ";
}
$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 * FROM users WHERE id=:id');
$query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT);
$query->execute();
$money = $query->fetch(PDO::FETCH_ASSOC)["money"] ?? "0";
if ($money < 1000000) {
@ -49,17 +61,18 @@ class PartyStarter {
}
// if admin
if($query->fetch(PDO::FETCH_ASSOC)["admin"] ?? 0 >= 1) {
$adminTab = ' <li class="nav-item">
<a class="nav-link text-dark" href="/admin"><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"><span class="bi bi-box-arrow-right"></span> Logout</a>
$rightside = '
<li class="nav-item"><a class="nav-link text-dark" style="font-size: 1.1rem"><span class="grufont" style="font-size: 1.25rem">@ </span>'.$money.'</a></li>
<li class="nav-item dropdown">
<button class="nav-link border-0 text-dark dropdown-toggle bg-transparent" data-bs-toggle="dropdown" aria-expanded="false">
<img height=32 width=32 class="rounded-5 border border-2" src="/assets/renders/user/headshot?userId='.(int)htmlspecialchars($_SESSION['user']).'">
</button>
<ul class="dropdown-menu dropdown-menu-lg-end">
<li><a class="nav-link ms-2" href="/user"><span class="bi bi-person-circle"></span> Profile</a></li>
<li><a class="nav-link ms-2" href="/settings"><span class="bi bi-gear"></span> Settings</a></li>
<li><a class="nav-link ms-2" href="/logout"><span class="bi bi-box-arrow-right"></span> Logout</a></li>
</ul>
</li>';
} else {
$rightside = '
@ -70,7 +83,7 @@ class PartyStarter {
<a class="nav-link text-dark" href="/login">Login</a>
</li>';
}
$adminTab = " ";
echo '<style>
@font-face {
font-family: grufont;
@ -92,7 +105,7 @@ class PartyStarter {
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js" integrity="sha384-mQ93GR66B00ZXjt0YO5KlohRA5SY2XofN4zfuZxLkoj1gXtW8ANNCe9d5Y3eG5eD" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.3/font/bootstrap-icons.css">
<nav class="navbar navbar-expand-lg navbar-light sticky-top" style="background-color: #ff7700; height: 45px; ">
<nav class="navbar navbar-expand-lg navbar-light sticky-top py-0" style="background-color: #ff7700;">
<div class="container-fluid">
' . $grubloxlogotohome . '
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation">
@ -113,8 +126,6 @@ class PartyStarter {
'.$adminTab.'
</ul>
<ul class="navbar-nav">
<li class="nav-item">
</li>
' . $rightside . '
</ul>
</div>

View File

@ -28,6 +28,10 @@ $pagename = ucfirst(str_replace(".php", "", str_replace("/", "", $_SERVER['DOCUM
$maintainers = array("Mario1", "qzip", "nolanwhy");
$clientdevs = array("Invent", "Mario1");
$donators = array('"very"broken ps3', "«John»");
$arraybackground = array('win7.png', 'win8.png', 'epic.png', 'yosemite.png', 'aurora.png', 'tiger.png', 'fish.png', 'baconbloxii.png', 'win81yellow.jpg');
$youtubefunnies = array('bitqf13QU7Q', 'Z_V6yKKIk5U', '2tHl6O5Sp8w', '-5WcDfKndxU', 'cwyTleTL06Y','Rr8XkF5TBLU','kQvlOulY9SI');

View File

@ -4,10 +4,6 @@ session_start();
require_once 'core/classes.php';
require_once 'core/classes/user.php';
$user = new User($con, $_SESSION['user']);
if(!$user->isLoggedIn()) {
header('location: /login');
exit;
}
if(!isset($_GET["id"])) {
header("Location: ?id=".$_SESSION['user']);
@ -33,10 +29,12 @@ $getitstarted->header();
</head>
<title><?php echo htmlspecialchars($item["name"]); ?> | <?php echo $sitename; ?></title>
<body>
<h1>yes i am still not hired to make html</h1>
<main class="container mx-auto" style="width: 100%;">
<h1 class="mt-3"><?php echo htmlspecialchars($item["name"]); ?></h1>
<h1>this item is called <?php echo htmlspecialchars($item["name"]); ?></h1>
<h1>with id <?php echo (int)htmlspecialchars($item["id"]); ?></h1>
<h1>and he costs $<?php echo (int)htmlspecialchars($item["price"]); ?></h1>
<p>thats all i have to say</p>
</main>
</body>
</html>