- Joined
- Jun 27, 2009
- Messages
- 1,571
- Reaction score
- 170
**UPDATES**
Hello,
It's been awhile since I've posted updates on this thread!
Replaced the whole checktheban.php with
PHP:
<?php
$userID = (isset($_SESSION['user']['id'])) ? $_SESSION['user']['id'] : 0;
$ip = (isset($_SERVER["HTTP_CF_CONNECTING_IP"]) && !empty($_SERVER["HTTP_CF_CONNECTING_IP"])) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : $_SERVER["REMOTE_ADDR"];
$getBan = mysql_query("SELECT * FROM bans WHERE user_id = '{$userID}' OR ip = '{$ip}' ORDER BY ban_expire DESC LIMIT 1");
while($ban = mysql_fetch_array($getBan))
{
if($ban['ban_expire'] >= time())
{
if($ban['type'] == 'account') die(header('Location: /banned'));
die(header('Location: /ipbanned'));
}
}
?>
Credits goes to billsonnn for the help!
and created just very Generic Banned Page. Create/Replace banned.php
PHP:
<?php
session_destroy();
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>{hotelname} Hotel - Banned</title>
<script>
var andSoItBegins = (new Date()).getTime();
var habboPageInitQueue = [];
var habboStaticFilePath = "ttps://habboo-a.akamaihd.net/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/2303/web-gallery";
</script>
<link rel="shortcut icon" href="https://habboo-a.akamaihd.net/habboweb/63_1dc60c6d6ea6e089c6893ab4e0541ee0/2543/web-gallery/v2/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic,700italic|Ubuntu+Condensed">
<link rel="stylesheet" href="{url}/app/tpl/skins/Habbo/styles/v3_landing.css" type="text/css" />
<script src="{url}/app/tpl/skins/Habbo/web-gallery/static/js/v3_landing_top.js" type="text/javascript"></script>
<meta name="description" content="Check into the world's largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and more...">
<meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer">
<meta name="apple-itunes-app" content="app-id=794866182">
<script src="//cdn.optimizely.com/js/13389159.js"></script>
<meta name="build" content="63-BUILD3038 - 14.05.2014 10:13 - com">
</head>
<body >
<div id="overlay"></div>
<header >
<div id="border-left"></div>
<div id="border-right"></div>
<div id="login-form-container">
<a href="index.php" id="habbo-logo"></a>
</div>
<div id="top-bar-triangle"></div>
<div id="top-bar-triangle-border"></div>
</header>
<div id="sail" style="margin-top:-1350px;margin-left:-330px;"></div>
<div id="content">
<ul>
<li id="home-anchor">
<div id="welcome" style="margin-top:25px;margin-left:210px;" >
</span></a>
<h1>You have been banned from {hotelname}.</h1>
<?php
//Something Goes here to get the banned details
?>
<?php session_destroy(); ?>
<a href="index" id="logout-ok" class="new-button fill ok"><b>OK</b><i></i></a>
</div>
</div>
</div>
</div>
</div>
<footer>
<div id="footer-content">
<div id="footer"><a href="#">Customer Support</a> / <a href="#">Parents</a> / <a href="#" target="_new">Terms of Use & Privacy Policy</a> / <a href="#" target="_new">Infringements</a> / <a href="#" target="_new">{hotelname} Way</a> / <a href="#">Safety</a> / <a href="#"target="_blank">For Advertisers</a></div>
<div id="copyright">© 2004 - <?php echo date("Y"); ?> {hotelname}. {hotelname} is not affiliated with the Sulake corporation. </div>
</div>
</footer>
Image: