Hallo retrotown, kann mir jemand eine andere Register php geben, wegen den fehler:
H0bbu.tk - da geht ihr auf registieren dan datum, dan weiter und es geht nicht weiter!
Brauche hilfe bittee!
Hilfeee
-
-
-
Hier
PHP
Alles anzeigen<?php require_once('./data_classes/server-data.php_data_classes-core.php.php'); if($logged_in){ header("Location: ".$path."/me"); exit; } $ip_check = mysql_query("SELECT ip_last,username,id FROM users WHERE ip_last = '".$remote_ip."'"); if(isset($_GET['cancal'])){ session_unset(); header("Location: $path/"); exit; } switch($_GET['stap']){ case "1": if(isset($_SESSION['register']['1'])){ header("Location: ".$path."/quickregister/email_password"); } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-1.php'); break; case "2": $bday_day = FilterText($_POST['bean_day']); $bday_month = FilterText($_POST['bean_month']); $bday_year = FilterText($_POST['bean_year']); $gender = FilterText($_POST['bean_gender']); if (!is_numeric($bday_day) || !is_numeric($bday_month) || !is_numeric($bday_year) || $bday_day <= 0 || $bday_day > 31 || $bday_month <= 0 || $bday_month > 12 || $bday_year < 1900 || $bday_year > 2010) { $errors = "Vul een geldige datum in!."; }else if(!empty($gender)){ $_SESSION['register'][1]['bday_day'] = $bday_day; $_SESSION['register'][1]['bday_month'] = $bday_month; $_SESSION['register'][1]['bday_year'] = $bday_year; $_SESSION['register'][1]['gender'] = $gender; header("Location: ".$path."/quickregister/email_password"); exit; }else{ $errors = "Vul een geldige datum in!."; } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-1.php'); exit; break; case "3": if(!isset($_SESSION['register'][1])){ header("Location: ".$path."/quickregister/start"); } elseif(isset($_SESSION['register'][2])){ header("Location: ".$path."/quickregister/captcha"); } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-2.php'); break; case "4": $name = FilterText($_POST['bean_name']); $email = FilterText($_POST['bean_email']); $email2 = FilterText($_POST['bean_retypedEmail']); $pass1 = FilterText($_POST['bean_password']); $pass2 = FilterText($_POST['bean_retypedPassword']); $filter = preg_replace("/[^a-z\d\-=\?!@:\.]/i", "", $name); $email_check = preg_match("/^[a-z0-9_\.-]+@([a-z0-9]+([\-]+[a-z0-9]+)*\.)+[a-z]{2,7}$/i", $email); $tmp = mysql_query("SELECT id FROM users WHERE username = '".$name."' LIMIT 1") or die(mysql_error()); $tmp = mysql_num_rows($tmp); $first = substr($name, 0, 4); // NAME CHECK if(strnatcasecmp($first,"MOD-") == false) { $errors = "Je mag jezelf geen MOD noemen!"; }elseif($tmp > 0){ $errors = "Deze naam is al bezet!"; }elseif($filter !== $name){ $errors = "Deze naam bevat ongeldige tekens!"; }elseif(strlen($name) > 20){ $errors = "Deze naam is te lang."; // E-MAIL CHECK }elseif($email_check !== 1){ $errors = "Ongeldig Email Adres!"; }elseif(strlen($email) < 6){ $errors = "Ongeldig Email Adres!"; }elseif($email !== $email2){ $errors = "De emails zijn niet hetzelfde!"; // PASSWORT CHECK }elseif($pass1 !== $pass2){ $errors = "De wachtwoorden zijn niet hetzelfde!"; }elseif(isset($_POST['bean_termsOfServiceSelection'])){ $_SESSION['register'][2]['name'] = $name; $_SESSION['register'][2]['email'] = $email; $_SESSION['register'][2]['pass'] = $pass1; header("Location: ".$path."/quickregister/captcha"); exit; }else{ $errors = "Je moet de Algemene Voorwaarden wel accepteren!"; } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-2.php'); exit; break; case "5": if(!isset($_SESSION['register'][1])){ header("Location: ".$path."/quickregister/start"); }elseif(!isset($_SESSION['register'][2])){ header("Location: ".$path."/quickregister/email_password"); } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-3.php'); break; case "6": if($_SESSION['register-captcha-bubble'] !== strtolower($_POST['captchaResponse'])){ $errors = "De veiligheidscode was incorrect. Probeer het nogmaals"; }else{ $look = FilterText($_POST['bean_figure']); if($_SESSION['register'][1]['gender'] == "male"){ $gender = 'M'; }else{ $gender = 'F'; } mysql_query("INSERT INTO `users` (username,real_name,password,auth_ticket,motto,mail,rank,look,gender,account_created,last_online,online,ip_last,ip_reg,working,secretcode,mymusik,home_room) VALUES ('".$_SESSION['register'][2]['name']."','HabboRE','".HoloHashMD5($_SESSION['register'][2]['pass'])."','-/-','Welkom in ".$sitename."','".$_SESSION['register'][2]['email']."','1','".$look."','".$gender."','".time()."','".time()."','1','".$remote_ip."','".$remote_ip."','','','','0')") or die(mysql_error()); $userdata2 = mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['register'][2]['name']."'"); $userdata = mysql_fetch_assoc($userdata2); mysql_query("INSERT INTO `user_info` (user_id,reg_timestamp) VALUES ('".$userdata['id']."','".time()."')"); mysql_query("INSERT INTO `user_stats` (id) VALUES ('".$userdata['id']."')"); $_SESSION['username'] = $_SESSION['register'][2]['name']; $_SESSION['password'] = HoloHashMD5($_SESSION['register'][2]['pass'], $_SESSION['register'][2]['name']); unset($_SESSION['register']); header("Location: ../me"); exit; } require_once('./templates/register_subheader.php'); require_once('./templates/quickregister/page-register-3.php'); exit; break; } ?>
-
Postet doch bitte 1 mal was in die richtige Kategorie
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!