133 lines
4.6 KiB
PHP
133 lines
4.6 KiB
PHP
<?php
|
|
// banned.php by qzip, pls no remove or i will remove your spinal cord.
|
|
require_once 'core/classes.php';
|
|
headStart();
|
|
|
|
require_once 'core/classes/User.php';
|
|
require_once 'core/config.php';
|
|
|
|
$getitstarted = new PartyStarter;
|
|
$getitstarted->header();
|
|
|
|
// Now here the fun starts...
|
|
// Basically I will make the text change by the severity of the ban, it could be just a warning so I'm gonna rename it.
|
|
|
|
$ban = Array(
|
|
"title" => "Warning",
|
|
"description" => "Our content monitors have determined that your behavior at Roblox has been in violation
|
|
of our Terms of Service. We will terminate your account if you do not abide by the rules.",
|
|
"time" => date('m/d/Y H:i:s A'),
|
|
"note" => "robus."
|
|
);
|
|
$query = $con->prepare('SELECT * FROM owned WHERE user=:user');
|
|
$query->bindParam(':user', $_SESSION['user']);
|
|
$query->execute();
|
|
$ban = $query->fetchAll();
|
|
|
|
$possibleFilters = [
|
|
"hats",
|
|
"shirts",
|
|
"tshirts",
|
|
"pants",
|
|
"gears",
|
|
"packages",
|
|
"heads",
|
|
"torso",
|
|
"leftarm",
|
|
"rightarm",
|
|
"leftleg",
|
|
"rightleg"
|
|
];
|
|
|
|
if(isset($_GET["filter"])) {
|
|
$filter = $_GET["filter"];
|
|
if(!in_array($filter,$possibleFilters)) {
|
|
$filter = NULL;
|
|
}
|
|
} else {
|
|
$filter = NULL;
|
|
}
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
|
|
</head>
|
|
<body>
|
|
<main class="container-fluid w-75" style="height: 90vh;">
|
|
|
|
<div class="mx-auto mt-4">
|
|
<h1 class="text-center">Avatar Customizer</h1>
|
|
<div class="row row-cols-auto">
|
|
<div class="col col-md-8 col-xl mx-auto mb-4">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<img class="d-block mx-auto img-fluid" src="http://grublox.test/assets/renders/user/fullbody?userId=1">
|
|
<button onclick="render()" class="btn btn-primary mt-2 me-2 position-absolute top-0 end-0"><i class="bi bi-arrow-clockwise me-1"></i>Render</button>
|
|
</img>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-8 mx-auto">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<ul class="nav nav-tabs">
|
|
<li class="nav-item">
|
|
<a href="?" class="nav-link <?php if($filter == null) { echo "active"; } ?>">All categories</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=hats" class="nav-link <?php if($filter == "hats") { echo "active"; } ?>">Hats</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=shirts" class="nav-link <?php if($filter == "shirts") { echo "active"; } ?>">Shirts</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=tshirts" class="nav-link <?php if($filter == "tshirts") { echo "active"; } ?>">T-shirts</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=pants" class="nav-link <?php if($filter == "pants") { echo "active"; } ?>">Pants</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=gears" class="nav-link <?php if($filter == "gears") { echo "active"; } ?>">Gears</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a href="?filter=packages" class="nav-link <?php if($filter == "packages") { echo "active"; } ?>">Packages</a>
|
|
</li>
|
|
<button class="nav-link text-start <?php if($filter == "heads" || $filter == "torso" || $filter == "leftarm" || $filter == "rightarm" || $filter == "leftleg" || $filter == "rightleg") { echo "active"; } ?>" type="button" data-bs-toggle="dropdown" aria-expanded="false">Body parts</button>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "heads") { echo "active"; } ?>" href="?filter=heads">Heads</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "torso") { echo "active"; } ?>" href="?filter=torso">Torso</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "leftarm") { echo "active"; } ?>" href="?filter=leftarm">Left arm</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "rightarm") { echo "active"; } ?>" href="?filter=rightarm">Right arm</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "leftleg") { echo "active"; } ?>" href="?filter=leftleg">Left leg</a>
|
|
</li>
|
|
<li>
|
|
<a class="dropdown-item <?php if($filter == "rightleg") { echo "active"; } ?>" href="?filter=rightleg">Right leg</a>
|
|
</li>
|
|
</ul>
|
|
<li class="nav-item ms-auto">
|
|
<a href="/catalog" class="btn btn-info"><i class="bi bi-shop me-1"></i>Catalog</a>
|
|
</li>
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
<h4 class='text-muted text-center mb-4'><i class='bi bi-egg-fried' style='font-size: 6rem;'></i><br> Empty wardrobe.. get some clothes on dude.</h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</body>
|
|
</html>
|