Ich arbeite gerade an einer HP für meinem Server ;D
Ich habe auch schon ein regi script :
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <?php include('inc/config.php'); If (isset($_POST['submit']) && $_POST['submit'] == 'Erstellen') { $login = $_POST['login']; $pass = $_POST['pass']; $pass2 = $_POST['pass2']; $email = $_POST['email']; $zip = $_POST['zip']; $real_name = $_POST['real_name']; $tele = $_POST['tele']; $securequest = $_POST['securequest']; $securerep = $_POST['securerep']; $securequest2 = $_POST['securequest2']; $securerep2 = $_POST['securerep2']; $deletecode = $_POST['deletecode']; $countryquest = $_POST['quest1']; If ($countryquest != "Berlin") { If ($countryquest != "berlin") { die ("Die Frage wurde nicht korrekt beantwortet. Überprüfe die schreibweise! - <a href\"\">Zurück</a>"); } } If ($pass != $pass2) { die("Die Passwörter stimmen nicht überein! - <a href=\"\">Zurück</a>"); } If($pass == "") { die("Das Passwort ist zu kurz! - <a href=\"\">Zurück</a>"); } $result = mysql_query("SELECT * FROM account WHERE login LIKE '$login'"); $menge = mysql_num_rows($result); If($menge != 0) { die("Den Accountnamen gibt es schon. - <a href=\"\">Zurück</a>"); } $ $result = mysql_query("SELECT * FROM account WHERE email LIKE '$email'"); $menge = mysql_num_rows($result); If($menge != 0) { die("Diese Email ist bereits Registriert! - <a href=\"\">Zurück</a>"); } If($deletecode == "") { die("Gebe einen Gültigen Löschcode an - <a href=\"\">Zurück</a>"); } If($securerep == "" OR $securerep2 == "") { die("Mindestens eine der Geheimantworten ist ungültig! - <a href=\"\">Zurück</a>"); } $pass = mysql_escape_string($pass); $eintrag = "INSERT INTO account (login, password, real_name, social_id, email, phone1, address, question1, answer1, question2, answer2) VALUES ('$login', PASSWORD('$pass'), '$real_name', '$deletecode', '$email', '$tele', '$zip', '$securequest', '$securerep', '$securequest2', '$securerep2')"; $eintragen = mysql_query($eintrag); If($eintragen == true) { echo "Benutzername <b>$login</b> wurde erstellt."; } else { echo "Fehler beim Speichern des Benutzernames. <a href=\"\">Zurück</a>" . mysql_error(); } } ?> <meta name="verify-webtopay" content="5c515cfcc0433ceca3c221ce56cbe537"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Legendary-Metin2</title> <link href="template/style.css" rel="stylesheet" type="text/css" /> <link rel="shortcut icon" href="template/jingjang.ico"> </head> <body> <div class="navigation"> <div id="container"><!-- CONTAINER START --> <div id="menu"><!-- MENU START --> <div class="banner"></div><!-- BANNER DIV --> <!-- NAVIGATION START --> <div id="navigation"> <a href="index.php">- Home</a> <a href="ranking.php">- Rangliste</a> <a href="register.php">- Regestrieren</a> <a href="chpsw.php">- Passwort ändern</a> <a href="downloads.php">- Downloads</a> <a href="information.php">- Informationen</a> <a href="movie.php">- <u>Server Videos [Bald]</u></a> <a href="donate.php">- Spenden</a> </div> <!-- NAVIGATION END --> <!-- LEFT END --> <!-- SERVER STATUS BLOCK END --> <!-- SERVER STATUS BLOCK START --> <div class="menu-block"> <div class="menu-title">+ Server Status</div> <div class="menu-content"> <?php include("status.php"); ?> <br /> <?php include ("highlights.php"); ?> </div> </div> <!-- SERVER STATUS BLOCK END --> <!-- SERVER STATUS BLOCK START --> <div class="menu-block"> <div class="menu-title">+ Voting</div> <div class="menu-content"> <div style="margin: 10px 5px 10px 5px;"> <center> <a href="http://topofgames.com/" target="_blank"><img style="border: 0;" src="http://pics.livejournal.com/samaritanyn/pic/0006xbhs.gif" alt="topofgames.com" /></a> <a href="http://www.ultimateprivateservers.com/" target="_blank"><img src="http://www.ultimateprivateservers.com/button.png" border="0" alt="Metin2 PServers" /></a><br /> <!-- top100********.com --> <a href="http://top100********.com/" target="_blank"><img border="0" src="http://top100********.com/img/buttons/1.gif" alt="top100********.com" /></a> <!-- /top100********.com --> <!-- top-mmo.com --> <a href="http://top-mmo.com/" target="_blank"><img border="0" src="http://pics.livejournal.com/samaritanyn/pic/00070yeg.gif" alt="top-mmo.com" /></a> <!-- /top-mmo.com --> <br /> <!-- mmorpg-top.com --> <a href="http://mmorpg-top.com/" target="_blank"><img border="0" src="http://mmorpg-top.com/img/buttons/1.gif" alt="mmorpg-top.com" /></a> <!-- /mmorpg-top.com --> <!-- listmmorpg.com --> <a href="http://listmmorpg.com/" target="_blank"><img border="0" src="http://pics.livejournal.com/samaritanyn/pic/0006y5hw.gif" alt="listmmorpg.com" /></a> <!-- /listmmorpg.com --> </center> </div> </div> </div> <!-- LEFT END --> <div class="menu-foot"></div><!--MENU FOOTER DIV --> </div><!-- MENU END --> <div id="content"><!-- CONTENT START --> <div class="content-top"></div> <div class="content-middle"> <div class="content-title">Regestrieren</div> <div class="content-ct"> <div style="margin: 10px 5px 10px 5px;"> <form action="register.php" method="post"> <table style="margin-right: 73px; width: 492px; height: 401px;" border="0"> <tbody> <tr> <td style="font-weight: bold; width: 273px; );"> Account Name: </td> <td style="width: 209px;"><input name="login" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> Passwort: </td> <td style="width: 209px;"><input name="pass" type="password" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px;);"> Passwort wiederholen: </td> <td style="width: 209px;"><input name="pass2" type="password" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> E-Mail Adresse: </td> <td style="width: 209px;"><input name="email" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> *Postleitzahl: </td> <td style="width: 209px;"><input name="zip" maxlength="5" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px;);"> *Vorname: </td> <td style="width: 209px;"><input name="real_name" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> *Telefon Nummer: </td> <td style="width: 209px;"><input name="tele" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px;);"> Sicherheitsfrage: </td> <td style="width: 209px;"> <select name="securequest"> <option value="1" selected="selected">Geburtsname der Mutter</option> <option value="2">Stadt, in der Sie geboren wurden</option> <option value="3">Erstes MMORPG</option> <option value="4">Name des Haustiers</option> <option value="5">Lieblingsfilm</option> <option value="6">Lieblings Teewurst???</option> </select> </td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> Geheime Antwort: </td> <td style="width: 209px;"><input name="securerep" size="35" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px;);"> Sicherheitsfrage 2: </td> <td style="width: 209px;"> <select name="securequest2"> <option value="1" selected="selected">Geburtsname der Mutter</option> <option value="2">Stadt, in der Sie geboren wurden</option> <option value="3">Erstes MMORPG</option> <option value="4">Name des Haustiers</option> <option value="5">Lieblingsfilm</option> <option value="6">Lieblings Teewurst???</option> </select> </td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> Geheime Antwort 2: </td> <td style="width: 209px;"><input name="securerep2" size="35" type="text" /></td> </tr> <tr> <td style="font-weight: bold; width: 273px; );"> Löschcode: </td> <td style="width: 209px;"><input name="deletecode" type="text" /></td> </tr> <tr> <td style="font-weight: bold; );">Hauptstadt von Deutschland:</td> <td><input size="10" maxlength="7" name="quest1" type="text" /></td> </tr> <tr> <td style="width: 273px; );"><i><span style="font-weight: bold;">Hinweis: </span><span style="font-weight: bold;">*</span><span style="font-weight: bold;"> (Optional)</span></i></td> <td style="width: 209px;"><input name="submit" value="Erstellen" type="submit" /></td> </tr> </tbody> </table> </form> </div> <div style="margin-top:15px;width:100%;text-align:center;font:9px Verdana;">Legendary-Metin2 © 2010. All Rights Reserved. </div> </div> </div> <div class="content-bottom"></div> </div><!-- CONTENT END --> <div class="clear"></div> <!-- CONTAINER END --> </body> </html>
Nun möchte ich halt ein Passwort vergessen und ein Passwort ändern script.
Kann mir jemand eins machen?
DB Daten etc. stehen bei mir in inc/config.php muss also nicht extra dazu geschrieben werden.
Evtl. wenns nicht zu viel arbeit ist sollte bei regi script vl. noch hinzugefügt werden das eine Email mit den angegebenden Sachen zu geschickt wird.
Meine Variablen für den DB Connect :
PHP Code:
$dbhost, $dbuser, $dbpass
MfG
WestLotto
PS: Wenn noch fragen sind einfach melden ;D






