<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
define('PAGE_NAME', 'indexnormal');
define('SHORTNAME', 'Lavvos');
define('PATH', $hotel_url);
error_reporting(0);
session_start();
if(isset($_SESSION['username'])){
header("location: $path/me");
}
if(isset($_GET['refer']))
{
$_SESSION['refer_by'] = $_GET['refer'];
}
if(!isset($_SESSION["antibf"])) $_SESSION["antibf"] = array(0,0);
if($_SESSION["antibf"][0] > 15) {
$login_error = "Has superado el límite de logueos, no te puedes loguear.";
$time = time()+(10*60);
if($_SESSION["antibf"][1] > $time) {
$_SESSION["antibf"]=array(0,0);
header("location: index.php");
exit;
}
} else {
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){
$username = FilterText($_POST['username']);
$password = FilterText(HoloHash($_POST['password'], $username));
$password2 = FilterText(HoloHashMD5($_POST['password'], $username));
if(empty($username) || empty($password)){
header("Location: /index.php?error=1");
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' OR username = '".$username."' AND
password = '".$password2."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
header("Location: /index.php?error=2");
$_SESSION["antibf"][0]++;
if($_SESSION["antibf"][0]==4) {
$_SESSION["antibf"][0]++;
$_SESSION["antibf"][1]=time();
}
} else {
$userdata = mysql_fetch_assoc($sql);
$userid = $userdata['id'];
$ban = mysql_query("SELECT * FROM bans WHERE value = '".$username."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip'
LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."', fecha = '".time()."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
} else {
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
$login_error = "¡Has sido baneado! La razón de su baneo ha sido \"" . $bandata['reason'] . "\" y durara
hasta el " . date('d.m.Y - H:i:s', $bandata['expire']) . ".";
} else {
mysql_query("DELETE FROM bans WHERE value = '".$username."' AND bantype = 'user' OR value = '".$remote_ip."' AND bantype
= 'ip' LIMIT 1") or die(mysql_error());
mysql_query("UPDATE users SET password = '".$password2."', ip_last = '".$remote_ip."', fecha = '".time()."' WHERE username = '".$username."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password2;
if($_POST['_login_remember_me'] == "true"){
setcookie("remember", "remember", time()+60*60*24*100, "/");
setcookie("rusername", $_SESSION['username'], time()+60*60*24*100, "/");
setcookie("rpassword", $_SESSION['password'], time()+60*60*24*100, "/");
}
header("location: $path/me"); exit;
}
}
}
}
}
}
}
require_once('./templates/templates_register_header.php');
?>
<body>
<style type="text/css">
.border {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
-webkit-box-shadow: 2px 2px 6px color(#CECECE);
-moz-box-shadow: color(#CECECE) 2px 2px 6px; box-shadow: color(#000) 2px 2px 6px;} #loginerrorfieldwrapper{
height:35px
}
#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
}
.fb_button_large, .fb_button_large_rtl {
background-position: left -138px;
font-size: 13px;
line-height: 16px;
}
fb_button, .fb_button_rtl {
background: #29447E url(http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/FGFbc80dUKj.png);
background-repeat: no-repeat;
cursor: pointer;
display: inline-block;
padding: 0 0 0 1px;
text-decoration: none;
outline: none;
}
.fb_button_large .fb_button_text {
margin-left: 24px;
padding: 2px 6px 4px 6px;
}
.fb_button .fb_button_text, .fb_button_rtl .fb_button_text {
background: #5F78AB url(http://static.ak.fbcdn.net/rsrc.php/v2/yL/r/FGFbc80dUKj.png);
border-top: solid 1px #879AC0;
border-bottom: solid 1px #1A356E;
color: white;
display: block;
font-family: "lucida grande",tahoma,verdana,arial,sans-serif;
font-weight: bold;
padding: 2px 6px 3px 6px;
margin: 1px 1px 0 21px;
text-shadow: none;
}
.fb_button_large, .fb_button_large_rtl {
font-size: 13px;
line-height: 16px;
}
</style>
<script language="JavaScript">
function submitonEnter(evt){
var charCode = (evt.which) ? evt.which : event.keyCode
if(charCode == "13"){
document.index.submit();
}
}
</script>
<div id="black-bg"></div>
<div id="page">
<?php if($_GET['error'] == '2')
{ ?>
<div id="loginerrorfieldwrapper" style="overflow-x: hidden; overflow-y: hidden; visibility: visible; z-index: 11; height: 35px;">
<div id="loginerrorfield">
<div>Introduce el usuario y la contraseña correctamente.</div>
</div>
</div>
<?php } elseif($_GET['error'] == '1') { ?>
<div id="loginerrorfieldwrapper" style="overflow-x: hidden; overflow-y: hidden; visibility: visible; z-index: 11; height: 35px;">
<div id="loginerrorfield">
<div>No dejes nada en blanco.</div>
</div>
</div>
<?php } ?>
<div id="main">
<div id="main-wrap">
<div id="top">
<div class="main-top">
<header>
<h1><?php echo SHORTNAME; ?></h1>
<div id="main-logo">
<a href="/" ><img src="/static/images/logo.png" alt="Haddo logo" /></a>
</div>
</header>
<div id="social">
<div>
<div id="fb-social">
<div class="fb-like" data-href="<?php echo PATH; ?>" data-send="false" data-layout="box_count" data-width="50" data-show-faces="false" data-font="arial"></div>
</div>
<div id="twitter-social">
<a href="https://twitter.com/share" class="twitter-share-button" data-count="vertical" data-url="<?php echo PATH; ?>" data-text="Hey, únete conmigo a lavvos, me lo estoy pasando genial :D" data-lang="es" data-hashtags="LavvoES">"Tweet"</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>
</div>
</div>
<div class="secondary-top landing">
<div id="content-top">
</div>
</div>
</div>
<div id="primary">
<div style="background-color:#E2E2E2;border:#000 1px solid;padding:5px;width:220px;" class="border">
<center>
<h4 class="lightGray">Hay <?php echo $online_count; ?> usuarios conectados.</h4>
</center>
</div>
<div class="container float landing" style="margin-left:-125px;">
<section class="clear">
<aside id="register" class="float round content-aside landing">
<div class="round-content">
<div id="register-top"></div>
<div class="register-content">
<div class="first">
<form name="index" method="post" action="<?php echo $path; ?>/index.php?name=&password=true">
<div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='<?php echo md5(rand(0,1000).rand(0,1000)); ?>' /></div>
<h4 class="lightGray">Introduce tu nombre de usuario.</h4>
<div class="input-area">
<div id="error_username" class="errors error-top"></div>
<input id="user_username" type="text" class="text" onclick = "if(this.value=='Nombre de usuario...') this.value=''" value="Nombre de usuario..." name="username" />
</div>
<h4 class="lightGray">Introduce tu contraseña.</h4>
<div class="input-area">
<div id="error_password" class="errors error-top"></div>
<input id="user_password" type="password" class="text" onclick="if(this.value=='password') this.value=''" value="password" name="password" />
</div>
<a class="submit-button button-link" href="#" onclick="index.submit();" onKeyDown="javascript:return submitonEnter(event);" style="width:130px;">
<div class="button-container">
<div class="button-left"></div>
<div class="button-content">Entrar</div>
<div class="button-right"></div>
</div>
</a>
<a class="submit-button button-link" href="<?php echo PATH; ?>/newera" style="width:130px;float:right;margin-top:-37px;">
<input type="submit" style="display:none;">
<div class="button-container">
<div class="button-left"></div>
<div class="button-content">Regístrate</div>
<div class="button-right"></div>
</div>
</a>
<div id="errors" class="errors"></div>
</form>
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
Cookie.erase("fbsr_455513871133135");
FB.init({appId: '455513871133135', status: true, cookie: true, xfbml: true, oauth: true});
$(document).fire("fbevents:scriptLoaded");
};
window.assistedLogin = function(FBobject, optresponse) {
Cookie.erase("fbsr_455513871133135");
FB.init({appId: '455513871133135', status: true, cookie: true, xfbml: true, oauth: true});
permissions = 'user_birthday,email';
defaultAction = function(response) {
if (response.authResponse) {
fbConnectUrl = "/facebook.php?connect=true";
Cookie.erase("fbhb_val_455513871133135");
Cookie.set("fbhb_val_455513871133135", response.authResponse.accessToken);
Cookie.erase("fbhb_expr_455513871133135");
Cookie.set("fbhb_expr_455513871133135", 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/es_ES/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
</div>
<div class="line"></div>
<div id="fb_register" class="last">
<p>Conéctate a Lavvos con Facebook</p>
<a class="fb_button fb_button_large" onclick="assistedLogin(FB); return false;">
<span class="fb_button_text">Conectar vía Facebook</span>
</a>
</div>
<div class="fb-reg-bottom">
<div id="fb-errors" class="errors"></div>
</div>
</div>
</aside>
</section>
</div>
<div>
<div class="cache">
<img src="/static/images/front-border-sprite.png" alt="" >
</div>
<div style="background-image: url(http://servidor1.lavvos.eu/static/images/index_images.png);border:#000 1px solid;width:490px;position:absolute;margin-top:-55px;margin-left:300px;height:400px;" class="border">
</div>
<aside id="vip" class="landing float round" style="margin-top:-98px;margin-left:170px;">
<div id="vip-top"></div>
<div class="round-content" style="padding:6px;">
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2FLavvoES&width=250&height=410&colorscheme=light&show_faces=true&&stream=false&header=false&appId=381779658524460" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:410px;" allowTransparency="true"></iframe>
</div>
<div id="vip-bottom"></div>
</aside>
<div class="clear-float"></div>
<center><audio controls="controls" autoplay="autoplay">
<source src="http://servidor1.lavvos.eu/song.mp3" type="audio/mpeg" />
Tu navegador es demasiado viejo y no soporta el audio en HTML5
</audio></center>
</div>
</div>
<div id="bg">
<div class="container">
<div class="bg-item left"></div>
<div class="bg-item right"></div>
</div>
</div>
</div>
<div id="fb-root"></div>
<script src="/static/js/habbo_facebook.js" type="text/javascript"></script>
<script>
facebookAppId = '455513871133135';
function facebookJSLoaded(){
FB.init({appId: facebookAppId, status: false, cookie: true, xfbml: true, oauth: true});
}
window.fbAsyncInit = facebookJSLoaded;
F = new facebookClass(facebookAppId);
F.load();
</script>
<?php require_once('./templates/templates_register_footer.php'); ?>
<?php require_once('./templates/templates_register_footer.php'); ?>
<?php
if($cored != true){
require_once('./data_classes/server-data.php_data_classes-core.php.php');
}
$pageid = "10a";
$pagename = "¡Página no encontrada!";
$title = "¡Página no encontrada!";
require_once('./templates/community_subheader.php');
require_once('./templates/community_header.php');
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix darkred ">
<h2 class="title">¡Página no encontrada!</h2>
<div id="notfound-content" class="box-content">
<p class="error-text">Lo sentimos, pero no se encuentra la página solicitada.</p> <img id="error-image" src="./web-gallery/v2/images/error.gif" />
<p class="error-text">Por favor, vuelve a teclear la URL. Si regresas a esta página, utiliza el botón 'Atrás' para volver al inicio.</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<div id="column2" class="column">
<div class="habblet-container ">
<div class="cbb clearfix green ">
<h2 class="title">Estabas buscando... </h2>
<div id="notfound-looking-for" class="box-content">
<p><b>¿Grupo de Amigos o Página Personal?</b><br/>
Comprueba si aparece en la página de <a href="<?php echo $path; ?>/community">Comunidad</a>.</p>
<p><b>¿Salas impactantes?</b><br/>
Echa un vistazo a las <a href="<?php echo $path; ?>/community">Salas Recomendadas</a>.</p>
<p><b>¿Qué otros <?php echo $shortname; ?>s están conectados?</b><br/>
Comprueba el Top de <a href="<?php echo $path; ?>/tag">YoSoys</a>.</p>
<p><b>¿Cómo comprar Créditos?</b><br/>
Echa un vistazo a la página de <a href="<?php echo $path; ?>/credits">Créditos</a>.</p>
</div>
</div>
</div>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
</div>
<?php require_once('./templates/community_footer.php'); ?>
<?php
$MySQLhostname = "127.0.0.1";
$MySQLusername = "root";
$MySQLpassword = "*******";
$MySQLdb = "rdh44";
$cms_version = "1.0";
$avatar = "http://www.habboon.com/habbo-imaging/avatarimage?figure=";
$hotel_url = "secondredragon.zapto.org";
$cimages_url = "secondredragon.zapto.org/r65a/c_images"; //Usado para las placas
$fb = "/pages/Red-Dragon-Hotel/293324200775886";//Facebook del hotel
$tw = "redragonhotel";//Twitter del hotel
$server = "1";//Ajustar a 1 si usas butterfly
?>
There is no CMS that has working groups.I need cms that have working groups
There are no released CMS's with working groups.There is Lavvo here's the linkYou must be registered for see links