Guten Abend ,
ich hab einen Problem mit der Registration. sobald ich mich Registiriere und es auf absenden drücke bekomme ich ein Weißen fenster .
Die Register leitet nicht weiter zur /me . Kann mir jemand dabei helfen ? besitze BOSTCMS,was habboST besitzt.
Hier ist der Code, kann jemand mir vielleicht helfen?
PHP
<?php
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#| #|
#| Développement de Myzer #|
#| #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
$pageid = "index";
require_once './init.php';
require_once './includes/files/register.php';
$Auth::Session_Connected($_SESSION);
$pagename = "Inscription";
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php print Settings('Name'); ?>: Inscription</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="<?php print URL; ?>/css/normalize.css" type="text/css">
<link rel="stylesheet" href="<?php print URL; ?>/css/rwdgrid.css" type="text/css">
<link rel="stylesheet" href="<?php print URL; ?>/css/swiper.min.css" type="text/css">
<link rel="stylesheet" href="<?php print URL; ?>/css/jquery.mCustomScrollbar.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/login.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="<?php print URL; ?>/js/swiper.jquery.min.js"></script>
<script src="<?php print URL; ?>/js/jquery.tabbedcontent.min.js"></script>
<script src="<?php print URL; ?>/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="<?php print URL; ?>/js/script.js"></script>
<script src="https://www.google.com/recaptcha/api.js"></script>
</head>
<body>
<div class="container">
<div class="grid-4"></div>
<div class="grid-4">
<a class="logo" href="./"></a>
<form class="register" method="post">
<div class="input-box">
<input type="text" id="username" name="bean_name" placeholder="Pseudo" autofocus required>
<input type="email" id="email" name="bean_email" placeholder="E-Mail" required>
<div class="password">
<input type="password" id="password" class="password" name="bean_password" placeholder="Mot de passe" required>
<span id="result"></span>
</div>
<input type="password" id="password-re" name="bean_repassword" placeholder="Confirmer mot de passe" required>
</div>
<hr>
<input type="submit" value="Inscription" class="register-btn">
</form>
</div>
<div class="grid-4"></div>
</div>
<div class="clouds">
<div class="cloud-l cloud"></div>
<div class="cloud-xs cloud"></div>
<div class="cloud-m cloud"></div>
<div class="cloud-xs cloud"></div>
<div class="cloud-m cloud"></div>
<div class="cloud-s cloud"></div>
<div class="cloud-m cloud"></div>
<div class="cloud-l cloud"></div>
<div class="cloud-s cloud"></div>
<div class="cloud-xs cloud"></div>
</div>
</body>
</html>
Alles anzeigen
Und hier files/register.php
PHP
<?php
if(isset($_POST['bean_name']) && isset($_POST['bean_email']) && isset($_POST['bean_password']) && isset($_POST['bean_repassword']))
{
$username = safe($_POST['bean_name'],'SQL');
$email = safe($_POST['bean_email'],'SQL');
$password = safe($_POST['bean_password'],'SQL');
$repassword = safe($_POST['bean_repassword'],'SQL');
$filter = preg_replace("/[^a-z\d'\-=\?!@:\.]/i", "", $username);
$email_check = preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $email);
$tmp_sql = $bdd->prepare("SELECT id FROM users WHERE username = :username LIMIT 1");
$tmp_sql->execute(Array(":username" => $username));
$tmp_sql_2 = $bdd->prepare("SELECT id FROM users WHERE mail = :email LIMIT 1");
$tmp_sql_2->execute(Array(":email" => $email));
if(isset($username) && isset($email) && isset($password) && isset($repassword)) {
$failure = false;
if($tmp_sql->rowCount() > 0){
$message1['username'] = "Ce pseudo est déjà utilisé.";
$failure = true; }
elseif(strlen($email) < 6){
$message2['email'] = "Merci d'indiquer une adresse email valide";
$failure = true;
} elseif($email_check !== 1){
$message2['email'] = "Merci d'indiquer une adresse email valide";
$failure = true;
}
elseif($tmp_sql_2->rowCount() > 0){
$message2['email'] = "Cette adresse email existe déjà.";
$failure = true; }
elseif($password !== $repassword){
$message3['password'] = "Les mots de passe ne correspondent pas.";
$failure = true;
}
elseif(strlen($password) < 6){
$message3['password'] = "Ton mot de passe doit avoir au moins 6 caractères.";
$failure = true;
}
elseif(strlen($username) < 3){
$message4['username'] = "Votre pseudo est trop court.";
$failure = true;
} elseif(strlen($username) > 15){
$message4['username'] = "Votre pseudo est trop long.";
$failure = true;
}
elseif($filter !== $username){
$message4['username'] = "Votre Pseudo contient des carractères non-autorisé.";
$failure = true;
}
$erreurmess = $message1['username'].$message2['email'].$message3['password'].$message4['username'];
if($failure == false){
$password = Hashage($password);
$Db->InsertSQL('users', array(
'username' => $username,
'password' => $password,
'mail' => $email,
'rank' => Settings('Rank'),
'credits' => Settings('Credits'),
'activity_points' => Settings('Pixels'),
'seasonal_currency' => '10',
'look' => Settings('Look_Boy'),
'gender' => 'M',
'motto' => Settings('Mission'),
'account_created' => time(),
'ip_last' => $Auth->IP(),
'ip_reg' => $Auth->IP(),
'last_offline' => time(),
));
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
Header("Location: http://habboom.net");
exit();
}
}
}
?>
Alles anzeigen