grublox/not_approved.php

79 lines
3.0 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 bans WHERE user=:user ORDER BY time desc LIMIT 1');
$query->bindParam(':user', $_SESSION['user']);
$query->execute();
$ban = $query->fetch();
if(empty($ban)) {
die("no bans");
}
if($ban['type'] == 1) {
$ban['title'] = "Warning";
$ban['description'] = "Our content monitors have determined that your behavior at ".$sitename." has been in violation
of our <a href='iduko' class='text-decoration-none'>Terms of Service</a>. We will terminate your account if you do not abide by the rules.";
} elseif($ban['type'] == 2) {
$ban['title'] = "Banned for 1 day";
$ban['description'] = "Our content monitors have determined that your behavior at ".$sitename." has been in violation
of our <a href='iduko' class='text-decoration-none'>Terms of Service</a>. We will terminate your account if you do not abide by the rules.";
} elseif($ban['type'] == 3) {
$ban['title'] = "Banned for 7 days";
$ban['description'] = "Our content monitors have determined that your behavior at ".$sitename." has been in violation
of our <a href='iduko' class='text-decoration-none'>Terms of Service</a>.";
} else {
$ban['title'] = "Account deleted";
}
?>
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<title><?php echo $pagename; ?> | <?php echo $sitename; ?></title>
</head>
<body>
<main class="container d-flex flex-column" style="height: 90vh;">
<div class="border border-2 p-4 w-50 mx-auto mt-4">
<h1><?php echo htmlspecialchars($ban['title']); ?></h1>
<p><?php echo htmlspecialchars($ban['description']); ?></p>
<p>Reviewed: <b><?php echo htmlspecialchars($ban['time']); ?></b></p>
<p>Moderator Note: <b><?php echo htmlspecialchars($ban['note']); ?></b></p>
<?php if(isset($ban['reason'])) { ?>
<div class="border border-2 p-3" readonly contenteditable>
<p>Reason: <b><?php echo $ban['reason']; ?></b> </p>
</div>
<?php } ?>
<p>Please abide by the <a href="idk" class="text-decoration-none"><?php echo $sitename; ?> Community Guidelines</a> so that <?php echo $sitename; ?> can be fun for all
users.</p>
<p>You may re-activate your account by agreeing to our <a href="iduko" class="text-decoration-none">Terms of Service.</a></p>
<div class="text-center">
<a href="/" class="btn btn-primary">I agree</a>
<a href="/logout" class="btn btn-secondary">Logout</a>
</div>
</div>
</main>
</body>
</html>