Riferimento: QuickRegister MADANLABS
@
~GhostHack~
include('core.php');
session_start();
include("locale/".$language."/login.php");
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){
$username = addslashes($_POST['username']);
$sql = mysql_query("SELECT * FROM users WHERE username = '".$username."' LIMIT 1") or die(mysql_error());
$row2s = mysql_fetch_array($sql);
$password = HoloHash($_POST['password'], $row2s[username]);
$remember_me = $_POST['_login_remember_me'];
if(empty($username) || empty($password)){
$login_error = "Perfavore, non lasciare spazi bianchi.";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
$rows = mysql_num_rows($sql);
if($rows < 1){
$login_error = "Nome utente o Password non validi";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$check = mysql_query("SELECT * FROM bans WHERE value = '".$username."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$is_banned = mysql_num_rows($check);
if($is_banned < 1){
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE username = '".$username."'") or die(mysql_error());
header("location:security_check"); exit;
} else {
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['reason'];
$expire = $bandata['expire'];
if($stamp_now < $stamp_expire){
$login_error = "Sei Stato Bannato! La Ragione Del Ban e' \"".$reason."\". Scade Il ".$expire.".";
} else { // ban expired
//mysql_query("DELETE FROM users_bans WHERE userid = '".$userid."' OR ipaddress = '".$remote_ip."' LIMIT 1") or die(mysql_error());
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
if($remember_me == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", sha1("zomq".$_SESSION['password']), time()+60*60*24*100, "/");
}
$sql3 = mysql_query("UPDATE users SET lastvisit = '".$date_full."' WHERE username = '".$username."'") or die(mysql_error());
header("location:security_check"); exit;
}
}
}
}
}
if(isset($_GET['error'])){
$errorno = $_GET['error'];
if($errorno == 1){
$login_error = "Password o nome utente invalidi.";
} elseif($errorno == 2){
$login_error = "Invalida Username o Password.";
} elseif(isset($_GET['ageLimit']) && $_GET['ageLimit'] == "true"){
$login_error = "Sei troppo giovane, devi mettere una data falsa.";
}
}
include("locale/".$language."/login.php");
include('templates/frontpage/subheader.php');
?>
<br>
<?php
$do = Filtertext($_GET["do"]);
if($do == process_login)
{
print '<div id="process-content">
<div class="action-confirmation flash-message">
<div class="rounded">
<center><font color="red"><font size=3><b>Password o/e Nome Errati! Hai dimenticato la password? Clicca <a href="quickregister/forgot.php">qui</a> per recuperarla.</b></font></font></center>
</div>
</div>
';
}
?>
<style type="text/css">
.notice {
display: block;
background: #FFFDDE;
border-bottom: 2px solid #FFFAAB;
color: #D9B03A;
width: 100%;
top: 0;
left: 0;
font-size: 0.9em;
padding-top: 2px;
}
.notice a {
text-decoration: none;
color: #D9B03A;
font-weight: normal;
}
</style>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="/web-gallery/v2/styles/buttons.css" type="text/css" />
<style type="text/css">
p.footer-links {
font-size: 16px;
font-family: Verdana,Arial,Helvetica,sans-serif;
color:#000;
padding-top: 5px;
}
p.footer-links a {
color: #333;
text-decoration: none;
}
#footer .copyright { width:890px; color: #727272; }
a.big-button { top: 100px; }
.login-register-link, .login-register-link a { color: #000 !important; }
#tagline { background-color: #E6E6E6; color: #585858; font-size: 120%; font-weight: normal; padding: 7px; }
#tagline span { font-weight: bold; }
.tagcloud { margin-top: -3px; background-color: #D8D8D8 !important; }
.tagcloud .tag { margin: 5px; text-decoration: none; color: #424242; }
.tagcloud .tag:hover { border-bottom: 1px dotted; }
#loginerrorfieldwrapper{height:35px; margin-bottom:10px;}
#loginerrorfield{width:100%;height:100%;background-color:#c00;color:#fff}
#loginerrorfield div{font-family:Arial;font-size:13pt;font-weight:bold;text-align:center;line-height:35px}
#site-header #loginerrorfieldtest .hint{color:white;padding-left:10px}
#Container
{
width:890px;
min-height:430px;
background:#BCE0EE;
border:#94B6BD solid 1px;
margin: auto;
margin-top: 10px;
padding-top:5px;
padding-bottom:5px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
border-bottom-width: 3px;
}
body
{
background-color: #BCE0EE;
background: url(
margin: 0;
padding: 0;
font-family:Verdana, Geneva, sans-serif;
font-size:10px;
}
#footer {
text-align:center;
}
a {
color:#000000;
}
.error_message {
background: url(/images/error.png) no-repeat transparent;
width: 205px;
height: 26px;
padding-top: 6px;
text-align: center;
color:#FFFFFF;
}
#Image
{
clear:both;
padding:0px;
background:url(
width:890px;
height:371px;
}
#Login
{
background:#FFF;
width:890px;
}
#Footer
{
text-align:center;
}
#Footer2
{
padding-top:10px;
text-align:center;
}
#Tags
{
background:#666;
min-height:60px;
padding:10px;
width:630px;
color:#FFF;
text-align:center;
}
#LoginBox
{
font-size:11px;
clear:both;
margin-left: 20px;
margin-top: 4px;
float:left;
padding-left: 10px;
padding-right: 10px;
width:195px;
height:140px;
border:#999 solid 1px;
background-color:#fff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
}
#join-now-button-container{position:relative;left:22px;top:100px;height:121px;float:left;z-index:1}
#join-now-button-container a.join-now-link{cursor:pointer;text-decoration:none;height:121px;max-width:304px;float:left}#join-now-button-container span.close{float:left;height:121px}#join-now-button-container #join-now-button-wrapper-fb a.join-now-link{background:transparent url(/web-gallery/v2/images/embed/join_now_button_fb.png) no-repeat scroll -6px 0}
#join-now-button-container #join-now-button-wrapper-fb span.close{background:url(/web-gallery/v2/images/embed/join_now_button_fb.png) no-repeat;width:6px}#join-now-button-container #join-now-button-wrapper a.join-now-link{background:transparent url(/web-gallery/v2/images/embed/join_now_button.png) no-repeat scroll -8px 0}
#join-now-button-container #join-now-button-wrapper span.close{background:url(/web-gallery/v2/images/embed/join_now_button.png) no-repeat;width:8px}#join-now-button-container #join-now-button-wrapper-fb div.join-now-button:hover a.join-now-link{background-position:-6px -121px}#join-now-button-container #join-now-button-wrapper-fb div.join-now-button:hover span.close{background-position:0 -121px}
#join-now-button-container #join-now-button-wrapper div.join-now-button:hover a.join-now-link{background-position:-8px -121px}#join-now-button-container #join-now-button-wrapper div.join-now-button:hover span.close{background-position:0 -121px}.join-now-button .join-now-link{min-width:220px}#join-now-button-container span.join-now-text-big{padding:26px 40px 0 40px;color:#fff;font-size:28px;font-weight:bold;text-decoration:none;text-align:center;letter-spacing:-0.005em;text-shadow:#333 0 -1px 0;display:block}
#join-now-button-container span.join-now-text-small{padding-right:40px;padding-left:40px;color:#fff;font-size:24px;font-weight:normal;text-decoration:none;text-align:center;text-shadow:#000 0 -1px 0;display:block}#join-now-button-container span.join-now-text-small span.fbword{font-weight:bold;margin-left:5px}
#join-now-button-container div.join-now-alternative{margin-left:auto;margin-right:auto;padding:5px;text-align:left}#join-now-button-container div.join-now-alternative a.newusers{text-decoration:none;font-size:14px}#geotargeting{color:#fff;font-weight:bold;font-size:14px;text-align:center;padding:4px 0 15px 0;border-bottom:1px solid #414141}
#people-inside{display:block;float:right;height:65px;position:relative;overflow:hidden;white-space:nowrap;z-index:100;top:20px;right:240px}#people-inside b{float:left;padding:5px 10px 4px 16px;font-size:11px;height:56px;margin-right:8px;background:transparent url(/web-gallery/v2/images/users_online_bubble.png) no-repeat -8px 0;color:#000;font-weight:normal;text-align:center;display:inline}
#people-inside i{position:absolute;right:0;top:0;width:8px;height:65px;background:transparent url(/web-gallery/v2/images/users_online_bubble.png) no-repeat 0 0}#people-inside span{display:block}#people-inside .stats-fig{font-size:18px;font-weight:bold}#change-password-form{position:absolute;width:383px;z-index:9001;color:#fff}
#join-now-button-container div.join-now-alternative a, div.join-now-alternative span {
color: white;
font-size: 12px;
}
#RegBox
{
font-size:11px;
clear:both;
margin-left: 20px;
margin-top: 70px;
float:left;
padding-left: 10px;
padding-right: 10px;
width:195px;
border:#999 solid 1px;
background-color:#fff;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
position:relative;
}
#LoginBox .Box
{
width:180px;
height:20px;
border:#999 solid 1px;
}
#LoginBox .Button
{
width:60px;
height:20px;
border:#999 solid 1px;
}
#Stats
{
margin-top:-5px;
padding-right:10px;
float:right;
font-size:11px;
color: #727272;
}
</style>
<body>
<div id="Container">
<div id="Login">
<img src="/web-gallery/v2/images/habbo.png" style="float:left; margin-bottom:8px; margin-left:15px; margin-top:10px;" />
<div id="Stats">
<form id="loginformitem" name="loginformitem" action="index.php?do=process_login" method="post">
<div id="login-form">
<div id="login-form-email">
<p style="font-size:11px; font-family:Verdana, Geneva, sans-serif; float:left;">Nickname<br />
<input tabindex="1" type="text" class="login-new" name="username" id="login-username" value="" style="float:left;" maxlength="48" size="26" />
</p>
<p style="font-size:11px; font-family:Verdana, Geneva, sans-serif; float:left; margin-left: 5px;">Password<br />
<input tabindex="2" type="password" class="login-new" name="password" id="login-password" maxlength="32" style="float:left;" size="26" />
</p>
<input style="font-size: 12px; font-family:Verdana; padding: 3px 5px; float:left; margin-top:23px; margin-right: 10px;" type="submit" name="post_comment" value="Entra" id="login-submit-button" class="submit"/>
</form></div>
<div id="landing-remember-me-notification" class="bottom-bubble" style="display:none;">
<div class="bottom-bubble-t"><div></div></div>
<div class="bottom-bubble-c">
Selezionando <font color="#D80000"><b>Ricordami</b></font> resterai <b>loggato</b> finchè non effettuerai il <b>Logout</b>
</div>
<div class="bottom-bubble-b">
<div></div></div></div></div>
<div id="login-form-password">
<div id="login-forgot-password"></div>
</div>
<div id="login-form-submit"></div>
</div>
</div>
<div id="Image">
<div id="people-inside">
<b><span><span class="stats-fig"><?php echo $online_count; ?></span> </span>Utenti Online</b>
<i></i>
</div>
<div id="join-now-button-container">
<div id="join-now-button-wrapper">
<div class="join-now-button">
<div class="join-now-alternative">
<a href="/register.php" class="newusers" onClick="startRegistration(); return false;"><b>Sei Nuovo? Clicca qui!</b></a>
</div>
<a class="join-now-link" id="register-link" href="/register.php" onClick="startRegistration(this); return false;">
<span class="join-now-text-big">Registrati ora</span>
<span class="join-now-text-small">è gratis !</span>
</a>
<span class="close"></span>
</div>
</div></div>
</div>
<p class="footer-links" style="text-align:center;"><b>Benvenuto su <?php echo $sitename ?>! Mondo virtuale, divertimento reale!
</b></div>
<p class="copyright"><center>
<p><b><font color="gray"><a href="http://code.google.com/p/dnt-project/downloads/list">DnT HoloCMS v2.1</a> © 2012 Created By <a href="http://dnt.webnet32.com/">Donatello (DnT)</a></font><font color="white"><br/>Non facciamo parte di HABBO o della Sulake Group.</font></b></p>
</center>
</body>
<?php } else {
header("location:me");
}
?>
<script src=snow.js></script>
<style type="text/css">body, a:hover {cursor: url(
), url(
), progress !important;}</style><a href="http://www.cursors-4u.com/cursor/2010/02/24/animated-cool-shiny-blue-pointer.html" target="_blank" title="Animated Cool Shiny Blue Pointer"><img src="http://cur.cursors-4u.net/cursor.png" border="0" alt="Animated Cool Shiny Blue Pointer" style="position:absolute; top: 0px; right: 0px;" /></a>