Hallo Towner !
Vorab schonmal an die Hater und Downer !
Ich werde meine PHP Datei veröffentlichen, damit ihr mir so schnellere Hilfe geben könnt ! Und wehe einer versucht dann mein Hotel zu DDosen -_- !
Spoiler anzeigen
PHP
<?php
require_once('./data_classes/server-data.php_data_classes-core.php.php');
session_start();
if(isset($_GET['registerCancel']) && $_GET['registerCancel'] == "true"){
session_unset();
}
if(!session_is_registered(username)){
if(isset($_POST['username']) && isset($_POST['password'])){
$username = FilterText($_POST['username']);
$password = HoloHash($_POST['password'], $username);
$password2 = HoloHashMD5($_POST['password'], $username);
if(empty($username) || empty($_POST['password'])){
$login_error = "Bitte füll alle Felder aus!";
} 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){
$login_error = "Username oder Passwort falsch";
} 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."' 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 = "Du bist gebannt! Der Grund für deinen Bann lautet \"" . $bandata['reason'] . "\" und dauert bis " . date('d.m.Y - H:i(worry)', $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."' 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;
}
}
}
}
}
$body_id = "index";
$pagename = "Erstelle deinen ".$shortname.", designe deinen Raum, chatte und triff neue Freunde";
?>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>iWabbo: Erstelle deinen iWabbo, designe deinen Raum, chatte und triff neue Freunde</title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="/web-gallery/v2/images/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="/articles/rss.xml" />
<script src="/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="/web-gallery/static/js/landing.js" type="text/javascript"></script>
<link rel="stylesheet" href="/web-gallery/v2/styles/frontpage.css" type="text/css" />
<link rel="stylesheet" href="/web-gallery/v2/styles/changepassword.css" type="text/css" />
<link rel="stylesheet" href="/web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />
<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboReqPath = "";
var habboStaticFilePath = "./web-gallery";
var habboImagerUrl = "/habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
</script>
<meta name="description" content="iHabboG is a virtual world where you can meet and make friends." />
<meta name="keywords" content="iHabboG,iHabboG,virtual world,play games,enter competitions,make friends" />
<!--[if IE 8]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="./web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url(./web-gallery/csshover.htc); }
</style>
<![endif]-->
<meta name="build" content="9.0.47 - Login Template - HoloCMS BETA v4.6 UBER" />
</head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<title>Habbo ~ Just have fun!</title>
<script type="text/javascript">
var andSoItBegins = (new Date()).getTime();
</script>
<link rel="shortcut icon" href="/web-gallery/v2/images/favicon.ico" type="image/vnd.microsoft.icon" />
<link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href="/articles/rss.xml" />
<script src="/web-gallery/static/js/libs2.js" type="text/javascript"></script>
<script src="/web-gallery/static/js/landing.js" type="text/javascript"></script>
<link rel="stylesheet" href="/web-gallery/v2/styles/frontpage_new.css" type="text/css" />
<link rel="stylesheet" href="/web-gallery/v2/styles/changepassword.css" type="text/css" />
<link rel="stylesheet" href="/web-gallery/v2/styles/forcedemaillogin.css" type="text/css" />
<script type="text/javascript">
document.habboLoggedIn = false;
var habboName = null;
var habboReqPath = "";
var habboStaticFilePath = "./web-gallery";
var habboImagerUrl = "/habbo-imaging/";
var habboPartner = "";
window.name = "habboMain";
</script>
<meta name="description" content="Habbo is a virtual world where you can meet and make friends." />
<meta name="keywords" content="Habbo,Habbo,virtual world,play games,enter competitions,make friends" />
<!--[if IE 8]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 8]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" href="/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
<style type="text/css">
body { behavior: url(/web-gallery/csshover.htc); }
</style>
<![endif]-->
<link rel="stylesheet" type="text/css" href="in-gallery/style.css">
<style>
.body {
background-image: url(http://ihabbog.de/in-gallery/backgraunt.png) top left repeat;
</style>
<body>
</div>
<div class="head">
<div class="logo"></div>
<div class="sprechblase"> <center><div style="padding-top: 5px;"><b><?php echo $online_count; ?></b> User Online!</h3></div> </center></div>
<div class="frank"> </div>
</div>
<div class="willkommen">
<div style="margin-auto;">
<h1>
<form method="post">
<input type="text" placeholder="Dein Username" class="login-field" name="username" id="login-username">
<input type="password" placeholder="Dein Passwort" class="login-field" name="password" id="login-password">
<input type="submit" value="Einloggen" class="submit" id="login-submit-button">
</form>
</h1>
</div>
</div>
<div class="img">
<a href="/quickregister/start"><div class="inscrit"></div>
<div class="barre"> <div style="margin-top:1px; opacity: 9.; color:#fff; text-align:center;"><h3>Registriere dich jetzt Kostenlos!</h3></span></b> </div></div>
</div>
</body>
<br><br>
<center><?php
} else {
header("location:../me");
die();
}
?>
Alles anzeigen
Vielleicht könnt ihr mir ja sagen, was ich wo Falsch gemacht habe .-.
Ich würde mich über EINE Hilfreichene Antwort freuen ! Danke.