<?php
/*=====================================================================+
|| # Index By AntonioCMS And MicheleCMS
|+=====================================================================+
|| # Copyright © 2008 Meth0d. All rights reserved.
|| #
|+===================================================+
|| # HoloCMS is provided "as is" and comes without
|| # warrenty of any kind. HoloCMS is free software!
|+=====================================================================+
|| #JuBBin Index v1.0
|| # A Breve Release Intero CMS Stile Halloween
|+=====================================================================*/
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 = FilterText($_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 = "Username o Password errati";
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$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.php"); exit;
} else {
$bandata = mysql_fetch_assoc($check);
$reason = $bandata['reason'];
$expire = $bandata['expire'];
if($stamp_now < $stamp_expire){
$login_error = "<center>Sei stato bannato per il seguente motivo: \"".$reason."\".<br>Il tuo BAN scade il: ".$expire.".</center>";
} 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.php"); exit;
}
}
}
}
}
if(isset($_GET['error'])){
$errorno = $_GET['error'];
if($errorno == 1){
$login_error = "Username o Password errati";
} elseif($errorno == 2){
$login_error = "Username o Password errati";
} elseif(isset($_GET['ageLimit']) && $_GET['ageLimit'] == "true"){
$login_error = "Sei troppo giovane per Giocare Qui.";
}
}
include("locale/".$language."/login.php");
?>
<!-- Habbo Index by Crookie | MADE FOR FANS -->
<!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="en" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $shortname; ?>: Crea il tuo avatar, arreda le tue Stanze, chatta e incontra nuovi Amici</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="stylesheet" href="data/css/frontpage.css" type="text/css" />
<script src="data/js/libs2.js" type="text/javascript"></script>
<script src="data/js/landing.js" type="text/javascript"></script>
<script src="data/js/visual.js" type="text/javascript"></script>
<script src="data/js/libs.js" type="text/javascript"></script>
<script src="data/js/common.js" type="text/javascript"></script>
<script src="data/js/fullcontent.js" type="text/javascript"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" href="data/css/style.css" type="text/css" />
<script type="text/javascript" src="data/js/modernizr.custom.28468.js"></script>
<link href='http://fonts.googleapis.com/css?family=Economica:700,400italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="data/css/box.css" />
<form id="loginformitem" name="loginformitem" action="/index.php?name=true&password=true"
method="post">
<?php if(isset($login_error)){ ?>
<div id="loginerrorfieldwrapper">
<div id="loginerrorfield">
<div><?php echo $login_error; ?></div>
</div> </div> <?php } elseif($_SESSION['CHANGE_YES'] != ''){
?> <div id="loginerrorfieldwrapper">
<div id="loginerrorfield">
<div>La tua password e' stata modificata correttamente.</div>
</div> </div>
<?php
unset($_SESSION['CHANGE_YES']);
}
?>
sfond
<style type="text/css">
body {
}
#footer .footer-links { color: #666666; }
#footer .footer-links a { color: #ffffff; }
#footer .copyright { color: #666666; }
#footer #compact-tags-container span, #footer #compact-tags-container a { color: #333333; }
</style>
</head>
<body id="frontpage">
<div id="overlay"></div>
<div id="site-header">
<form id="register_form" name="loginformitem" action="<?php echo $path; ?>?name=<?php echo FilterText($_POST['username']); ?>&password=true" method="post">
<div style="clear: both;"></div>
<div id="site-header-content">
<div id="habbo-logo"></div>
<div id="login-form">
<div id="login-form-email">
<label for="login-username"
class="login-text">Nome Hibix</label>
<input tabindex="3" type="text" class="login-field" name="username" id="login-username"
value="" maxlength="48"/>
<input tabindex="6" type="checkbox" name="_login_remember_me" id="login-remember-me"
value="true"/>
<label for="login-remember-me">Resta Collegato</label>
<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">
</div>
<div class="bottom-bubble-b"><div></div></div>
</div>
</div>
<div id="login-form-password">
<label for="login-password" class="login-text">La Tua Password</label>
<input tabindex="4" type="password" class="login-field" name="password"
id="login-password" maxlength="32"/>
<div id="login-forgot-password">
<a href="http://www.sciax2.it/forum/forgot/reset.php" id="forgot-password"><span>Hai dimenticato la password? >></span></a>
</div>
</div>
<div id="login-form-submit">
<input type="submit" value="Entra" name="login">
</div>
</div>
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
Cookie.erase("fbsr_309555212435126");
$(document).fire("fbevents:scriptLoaded");
};
window.assistedLogin = function(FBobject, optresponse) {
Cookie.erase("fbsr_1309555212435126");
FB.init({
appId: '<?php echo APP_ID; ?>',
status: true,
cookie: true,
xfbml: true,
oauth: true
});
permissions = 'user_birthday,email';
defaultAction = function(response) {
if (response.authResponse) {
fbConnectUrl = "/facebook/index.php?connect=true";
Cookie.erase("fbhb_val_309555212435126");
Cookie.set("fbhb_val_309555212435126", response.authResponse.accessToken);
Cookie.erase("fbhb_expr_309555212435126");
Cookie.set("fbhb_expr_309555212435126", response.authResponse.expiresIn);
window.location.replace(fbConnectUrl);
}
};
if (typeof optresponse == 'undefined')
FB.login(defaultAction, {scope:permissions});
else
FB.login(optresponse, {scope:permissions});
};
(function() {
var e = document.createElement('script');
e.async = true;
e.src = document.location.protocol + '//connect.facebook.net/it_IT/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
<div id="rpx-login">
<div>
<a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
<span class="fb_button_text">Entra con Facebook</span>
</a>
<P ALIGN=LEFT><img src="/web-gallery/funon.png" width="151" height="27" /></P>
</div>
</div>
<noscript>
<div id="alert-javascript-container">
<div id="alert-javascript-title">
Missing JavaScript support
</div>
<div id="alert-javascript-text">
Javascript is disabled on your browser. Please enable JavaScript or upgrade to a Javascript-capable browser to use <?php echo $sitename; ?>
</div>
</div>
</noscript>
<div id="alert-cookies-container" style="display:none">
<div id="alert-cookies-title">
Missing cookie support
</div>
<div id="alert-cookies-text">
Cookies are disabled on your browser. Please enable cookies to use <?php echo $sitename; ?>.
</div>
</div>
</div>
</form>
</div>
<div id="fp-container">
<div id="content">
<div id="column1" class="column">
<div class="habblet-container ">
<div style="width: 890px; margin: 0 auto">
<div id="tagline" style="padding: 4px 60px 15px;">Incontra nuovi Amici, divertiti e fatti conoscere! <a href="./quickregister/start.php"><img style="margin-left:35px;cursor: pointer;position:absolute;" src="data/images/enbutton.png" onmouseover="this.src='data/images/enbutton2.png'" onmouseout="this.src='data/images/enbutton.png'"></a></div>
</div>
</div>
<a href="quickregister/start.php" id="frontpage-image" style="background-image: url('http://habboblogging.files.wordpress.com/2012/06/silent_protest.png')" onclick="startRegistration(this); return false;"></a>
</div>
<center><span style="color: BLUE; font-size: 10pt; font-family: verdana"><img src="http://i925.photobucket.com/albums/ad98/web-link/grafica2/11a/natale_six.gif">Index By Hack4er-Projects Christmas For Hibix Hotel Italia<img src="http://i925.photobucket.com/albums/ad98/web-link/grafica2/11a/natale_dex.gif"></span></center>
<style type="text/css">body{
background-color:#000000;background-image:url(");background-position:right bottom;background-repeat:no-repeat;}#footer .footer-links{color:#666666;}#footer .footer-links a{color:#b3b3b3;}#footer .copyright{color:#727272;}</style>
<br>
<center><img src="http://i925.photobucket.com/albums/ad98/web-link/grafica2/11a/65.gif"></center>
<style type="text/css">body{background-color:#000000;background-image:url("./sfondo.gif");background-position:right bottom;background-repeat:no-repeat;}#footer .footer-links{color:#666666;}#footer .footer-links a{color:#b3b3b3;}#footer .copyright{color:#727272;}</style>
</div>
</div>
</div>
<?php
} else {
header("location:me.php");
}
?>
<body>
<script src="fall.js" type="text/javascript">
<!-- // prelevato ed illustrato su
--></script>
</body>
<head>
<script type="text/javascript">
<!--
var speed=20; // lower number for faster
var flakes=20; // number of flakes
var flake_image="lolli.gif"; // location of snowflake graphic
/***************************\
*Winter Drifting Snow Effect*
*(c) 2006 mf2fm web-design*
*
*
* DON'T EDIT BELOW THIS BOX *
\***************************/
/* prelevato ed illustrato su Web-Link.it
******************************************/
var swide, shigh;
var dx=new Array();
var xp=new Array();
var yp=new Array();
var am=new Array();
var sty=new Array();
window.onload=function() { if (document.getElementById) {
var k, f, b;
b=document.createElement("div");
b.style.position="absolute";
b.setAttribute("id", "bod");
document.body.appendChild(b);
set_scroll();
set_width();
for (var i=0; i<flakes; i++) {
dx
=0;
am=Math.random()*20;
xp=am+Math.random()*(swide-2*am-25);
yp=Math.random()*shigh;
sty=0.75+1.25*Math.random();
f=document.createElement("div");
f.style.position="absolute";
f.setAttribute("id", "flk"+i);
f.style.zIndex=i;
f.style.top=yp+"px";
f.style.left=xp+"px";
k=document.createElement("img");
k.src=flake_image;
f.appendChild(k);
b.appendChild(f);
}
setInterval("winter_snow()", speed);
}}
window.onresize=set_width;
function set_width() {
if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (typeof(self.innerHeight)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
else {
swide=800;
shigh=600
}
}
window.onscroll=set_scroll;
function set_scroll() {
var sleft, sdown;
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
document.getElementById("bod").style.top=sdown+"px";
document.getElementById("bod").style.left=sleft+"px";
}
function winter_snow() {
for (var i=0; i<flakes; i++) {
yp+=sty;
if (yp>shigh-30) {
xp=am+Math.random()*(swide-2*am-25);
yp=0;
sty=0.75+1.25*Math.random();
}
dx+=0.02+Math.random()/10;
document.getElementById("flk"+i).style.top=yp+"px";
document.getElementById("flk"+i).style.left=(xp+am*Math.sin(dx))+"px";
}
}
// -->
</script>
</head>