Hallo liebe towner,
Habe derzeit die ycms der index bleibt weiß. http://prntscr.com/eg1qpg hier das bild dazu alles andere geht.
Ich habe denn fehler nicht gefunden. Hoffe ihr findet denn.
<html>
<?php
$is_maintenance = true;
require('./inc/core.php');
if(isset($_GET['registerCancel']) && $_GET['registerCancel'] == "true"){ session_unset(); }
$zufallspieler = mysql_fetch_assoc(mysql_query("SELECT * FROM users ORDER BY rand() LIMIT 1"));
?>
<head>
<title>Habbo: Startseite</title>
<link rel="icon" type="image/png" href="./gallery/images/favicon.png" />
<link rel="stylesheet" type="css/text" href="./gallery/styles/index.css?ss">
<link href='http://fonts.googleapis.com/css?family=Ubuntu|Nova+Square' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jque…2/jquery.min.js"></script>
</head>
<script>
$(document).ready(function() {
$("#raw").fadeIn(2000);
});
$(document).ready(function() {
setInterval(function() {
$('#onlinecount').load('<?php echo $path; ?>/templ/counter.php') },2000); });
</script>
<body>
<header>
<div id="header">
<div class="bubi" id="logo"></div>
<div id="onlinecount" class="bubi"><?php echo $onlinecount; ?> Habbos online</div>
</header>
</div>
<center>
</center>
<div id="raw" style="display:none;">
<div id="loginbox">
<form method="post">
<input class="texti" type="text" name="username" placeholder="Habbo Name">
<input class="texti" type="password" name="password" placeholder="Habbo Passwort">
<input class="submit" type="submit" name="login" value="Einloggen">
<a href="<?php echo $path; ?>/register.php"><div id="register">Registrieren</div></a>
<?php
if(isset($_SESSION['username'])) { header("Location: /community.php"); exit; }
if(isset($_POST['login'])){
$username = Escape($_POST['username']);
$password = Escape(HoloHashMD5($_POST['password']));
if(isset($_POST['username']) isset($_POST['password'])){
$sql = mysql_query("SELECT id FROM users WHERE username = '".Escape($_POST['username'])."' AND password = '".$password."' LIMIT 1") or die(mysql_error());
if(mysql_num_rows($sql) < 1){
echo '<div class="error2">Benutzername oder Passwort ist falsch.</div>'; }
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' ORDER BY id DESC LIMIT 1") or die(mysql_error());
if(mysql_num_rows($ban) < 1){
mysql_query("UPDATE users SET last_online = '".time()."', ip_last = '".$remote_ip."' WHERE id = '".$user_id."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
// $core->MUS('sa', "$username hat sich eingeloggt");
header("location: ".$path."/community.php"); exit; }
else {
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
echo '<div class="error2">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']).'"</div>';
} else {
echo '<div class="error2">Das Einloggen ist derzeit leider nicht möglich!</div>';
mysql_query("UPDATE users SET last_online = '".time()."', ip_last = '".$remote_ip."' WHERE id = '".$user_id."'");
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
// $core->MUS('sa', "$username hat sich eingeloggt");
header("location: ".$path."/community.php"); exit;
}
}
}
}
else { echo '<div class="error2">Du hast nicht alle Felder ausgefüllt!</div>'; }
}
?>
</form>
</div>
<div id="willkommen"><strong>Werde jetzt ein Teil der Habbo Community!</strong></div>
</div>
</body>
<?php include('./templ/footer.php'); ?>
</html>
Vielen dank für eure hilfe
Lg.Mango