Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="grid grid-pad">
- <?php
- /*$getBans = $con->prepare("SELECT * FROM bans WHERE user=? AND active=1");
- $getBans->bind_param("i", $_SESSION['id']);
- $getBans->execute();
- $banRes = $getBans->get_result();
- if($banRes->num_rows == 1){
- $ban = $banRes->fetch_assoc();
- $getBanner = $con->prepare("SELECT * FROM users WHERE id=?");
- $getBanner->bind_param("i", $ban['person']);
- $getBanner->execute();
- $banner = $getBanner->get_result()->fetch_assoc();
- ?>
- <div class="grid grid-pad">
- <div class="col-10-12 push-1-12 form ui">
- <div class="ui card fluid">
- <div class="content">
- <div class="header"><h2>
- <?php
- if($ban['perm'] == "0"){
- if(time() - $ban['expires'] >= 0){
- $updateBan = $con->prepare("UPDATE bans SET active=0 WHERE user=?");
- $updateBan->bind_param("i", $_SESSION['id']);
- $updateBan->execute();
- ?>
- <script>
- document.location = "";
- </script>
- <?php
- die();
- }*/
- ?>
- <!--You have been banned. Wait <?=time_elapsed_string2($ban['expires'])?> to be unbanned. -->
- <?php
- /*
- } else {
- */
- ?>
- <!--You have been banned permanently.-->
- <?php
- //}
- ?>
- </h2></div>
- <div class="ui divider"></div>
- <div class="col-8-12">
- <h2>Reason:</h2>
- <?=nl2br(htmlentities($ban['reason']))?>
- </div>
- <div class="col-4-12">
- <h2>Ban info:</h2>
- <p>You were banned by: <?=htmlentities($banner['username'])?></p>
- <p>This ban was created <?=time_elapsed_string3($ban['created'])?></p>
- </div>
- <center>
- <?php
- if($ban['perm'] == 0){
- ?>
- <a class="ui button" href="/profiles/logout.php">Logout Here</a>
- <?php
- } else {
- ?>
- Thank you for playing.
- <?php
- }
- ?>
- </center>
- </div>
- </div>
- </div>
- </div>
- <?php
- die();
- //}
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement