<?php
$page->login = true;
require('huggo_core/MYSQL/[DB]-MYSQL.php');
require('huggo_core/CORE-QatIbJqiE3d8fayOMfWBmYxYP.php');
require('huggo_core/COOKIE-REMEMBER.php');
require('huggo_core/function@password_hash.php');
if(session_is_registered(password)){ header("location: ".$site->url."me"); exit; }
if(isset($_GET['submit'])) {
if(session_is_registered(password)){ header("location: ".$site->url."me"); exit; }
if(!empty($_POST['credentials_username']) && !empty($_POST['credentials_password'])){
$username = FilterText($_POST['credentials_username']);
$password = FilterText(PW_HASH($_POST['credentials_password'], $username));
$remember_me = FilterText($_POST['_login_remember_me']);
if(empty($remember_me)) {
$remember_me = "false";
} else {
$remember_me = "true";
}
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
$error->login = "Dieser User existiert leider nicht in unserer Datenbank!";
} else {
$sql = mysql_query("SELECT id FROM users WHERE username = '".$username."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
$error->login = "Bitte überprüfe deinen Usernamen und dein Passwort!";
} else {
$ban = mysql_query("SELECT reason,expire FROM bans WHERE value = '".$username."' AND bantype = 'user' AND expire > '".time()."' or value = '".$_SERVER["REMOTE_ADDR"]."' AND bantype = 'ip' AND expire > '".time()."' ORDER BY id DESC LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET ip_last = '".$_SERVER["REMOTE_ADDR"]."', last_online = UNIX_TIMESTAMP(), auth_ticket = '' WHERE username = '".$username."' AND password = '".$password."' 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", $_SESSION['password'], time()+60*60*24*100, "/");
}
if(isset($_POST['sitepage'])){
$location = "".$site->url."me";
} else {
$location = "".$site->url."me";
}
} else {
$bandata = mysql_fetch_object($ban);
$error->login = "Du bist gebannt! Der Grund für deinen Bann lautet: \"" . $bandata->reason . "\" und dauert noch bis zum " . date('d.m.Y - H:i:s', $bandata->expire). "";
}
}
}
} else {
$username = "guest";
$error->login = "Bitte gib deinen Username und dein Passwort ein, um dich einzuloggen!";
}
if(isset($error->login)){
$_SESSION['login->error'] = $error->login;
$location = "".$site->url."?username=".$username."&rememberme=".$remember_me."&focus=login-username";
}
?>
<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="google" content="notranslate" />
<meta name="google" content="noautotranslate" />
<style type="text/css">body { background-color: #e3e3db; text-align: center; font: 11px Verdana, Arial, Helvetica, sans-serif; } a { color: #fc6204; }</style>
</head>
<body>
<script type="text/javascript">window.location.replace('<?php echo $location; ?>');</script>
<noscript><meta http-equiv="Refresh" content="0;URL=<?php echo $location; ?>"></noscript>
<p class="btn">If you are not automatically redirected, please <a href="index.php" id="manual_redirect_link">click here</a></p>
<?php } ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:og="http://ogp.me/ns#"
xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title><?php echo $site->name; ?>: Erstelle deinen <?php echo $site->name; ?>, designe deinen Raum, chatte und triff neue Freunde!</title>
<link rel="shortcut icon" href="/web-gallery/v2/favicon.ico" />
<link rel="apple-touch-icon" href="/web-gallery/static/img/apple-touch-icon.png" />
<link href='http://fonts.googleapis.com/css?family=Ubu…0,700,700italic' rel='stylesheet' type='text/css'>
<!-- styles -->
<link href="/web-gallery/static/styles/frontpage-bootstrap.min.css" rel="stylesheet" />
<link href="/web-gallery/static/styles/frontpage-bootstrap-responsive.min.css" rel="stylesheet" />
<link href="/web-gallery/static/styles/frontpage-prettify.css" type="text/css" rel="stylesheet" />
<link href="/web-gallery/static/styles/frontpage.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript">
function registerurl() {
$("#body").animate({opacity:'0'}, 600 );
setTimeout(function() { document.location.href='<?php echo $site->url; ?>register/start'; }, 600);
}
</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if gte IE 9]>
<style type="text/css">
.gradient {
filter: none;
}
</style>
<![endif]-->
</head>
<body id="body">
<style type="text/css">
</style>
<div id="main-nav" class="navbar navbar-inverse navbar-static-top" >
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/"> <img src="/web-gallery/v2/images/frontpage/frontpage_logo.png" style="margin-top: 20px;"/></a>
<form method="POST" action="/account/submit">
<div class="nav-collapse collapse">
<ul class="nav" style="margin-left: 25px;">
<li><input type="text" name="credentials_username" id="text" class="span2" placeholder="Username"></li>
<li> <input id="text" class="span2" type="password" id="password" name="credentials_password" placeholder="Passwort"></li>
<li> <button onclick="login(); return false" id="login-submit" class="btn btn-habbo gradient">Login</button></li>
<li> <button onclick="registerurl(); return false;" id="login-submit" class="btn btn-habbo gradient">Registrieren</button></li>
<li><a href="/account/forgot#" >Passwort oder Username vergessen?</a></li>
</ul>
<div id="nav-right" class="pull-right">
<b><?php echo $online_count."</b> ".$site->name."";if($online_count != "1") { echo"s"; } echo" online!"; ?>
</div>
</div>
</div>
</div>
</div>
<div id="page-top" class="index-top"></div>
<div class="container">
<div id="banner">
<div class="row">
<div class="left span6">
<div id="banner-container">
<div id="banner-1" class="banner-img"></div>
</div>
</div>
<div class="right span6">
<div class="banner-content">
<h1 id="h1" style="font-size: 2em;">Herzlich Willkommen im <?php echo $site->name; ?>!</h1>
<p><span id="login"><?php if(isset($_SESSION['login->error'])){ echo '<font color="red">'.$_SESSION['login->error'].'</font>'; } ?><br />
Erstelle nun <b>deinen eigenen <?php echo $site->name; ?>-Avatar</b>, designe deinen Raum, chatte,<br /> triff alte sowie neue Freunde und habe mit 6.000 Starttalern <b>jede Menge<br />Spaß</b>!
Werde nun ein Teil unserer einzigartigen Community!
<br /><br /><a class="request-invite-link" onclick="registerurl();">Jetzt kostenlos loslegen »</a>
</span></p>
</div>
</div>
</div>
</div>
<div id="site-content" style="opacity:0;">
<div class="row">
<div class="span4">
<div class="site-item first-site-item">
<h2 style="padding: 0 40px;"><a href="/register/start">Was ist <?php echo $site->name; ?>?</a></h2>
<p><strong><?php echo $site->name; ?> ist eine virtuelle Welt,</strong><br/>
die erschaffen wurde, damit du mit deinen Freunden abhängen und an tollen spaßigen Aktionen teilnehmen kannst - und das <b>kostenlos</b>! Amüsiere dich mit unserer hochqualitativen Technik.</p>
</div>
</div>
<div class="span4">
<div class="site-item second-site-item">
<h2 style="padding: 0 53px;"><a href="/register/start">Räume bauen!</a></h2>
<p><strong>Ein Architekt sein..</strong><br/>
bei uns möglich! Wir haben uns rangesetzt um dir eine vielzahl an einzigartigen Möbelstücken zu erschaffen, welche es ganz bestimmt nirgendwo anders gibt - lege mit nur wenigen Klicken direkt los!</p>
</div>
</div>
<div class="span4">
<div class="site-item third-site-item">
<h2 style="padding: 0 54px;"><a href="/register/start">Atemberaubende..</a></h2>
<p><strong>..und unglaublich abenteuerliche Veranstaltungen!</strong><br/>
Kämpfe dich in allen Veranstaltungen auf Platz Eins! Viele Events und Wettbewerbe warten - stellst du dich der Herausvorderung?<br />
Worauf wartest du noch? <a class="request-invite-link" onclick="registerurl();">Jetzt Registrieren »</a></p>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="container" style="margin-top: 90px;">
<div id="footer-container">
<div id="footer-logo"><a href="/"><img alt="logo" src="/web-gallery/v2/images/logo_gray.png"/></a></div>
<div id="footer-nav" class="navbar">
<ul class="nav">
<li><a href="#">Homepage</a></li>
<li><a href="/hilfe" target="new">Hilfe</a></li>
<li><a href="/impressum" target="new">Impressum</a></li>
<li><a href="/haftung" target="new">Haftungsausschluss</a></li>
<li><a href="/datenschutz" target="new">Datenschutzerklärung</a></li>
<li><a href="/kontakt" target="new">Kontakt</a></li>
</ul>
</div>
<div id="copyright">
<p><?php echo $config['footer_content']; ?></p>
</div>
</div>
</div>
</footer>
<!-- bottom scripts -->
<script type="text/javascript">
$("#site-content").animate({opacity:'1'}, 3000 );
</script>
<div id="welcome"><img style="float: left; margin-right: 5px;" src="/web-gallery/images/frank/ok.png">
<b>Hallo lieber Neuling!</b><br /><br />
Das <?php echo $site->name; ?> Hotel bietet dir <u>hochqualitative Technik</u>, jede Menge toller, spaßiger <u>Events</u>, sowie eine einzigartige Auswahl an <u>Möbeln</u> - und vieles mehr!<br /><br />
<b>Worauf wartest du? Lege noch heute los!</b>
</div>
</body>
</html>
<?php if(isset($_GET['username'])) { unset($_SESSION['login->error']); } ?>