include("./inc/config.inc.php"); $uip = $REMOTE_ADDR; session_start(); $fertig = $_REQUEST['fertig']; $user = $_REQUEST['user']; $password = $_REQUEST['password']; $login = $_REQUEST['login']; $email = $_REQUEST['email']; $forgot = $_REQUEST['forgot']; $time = time(); if ($login=="yes") { if ($fertig=="yes") { include("./inc/db_connect.inc.php"); mysql_select_db($db_table3,$db); $abfrage = mysql_query ("SELECT * FROM $db_table3 WHERE user = '$user' and password = '$password'"); $reihen = mysql_num_rows($abfrage); if ($reihen == 0) { $user = ''; include("header.php"); echo "
Mitgliederlogin
include("footer.php"); } } else if ($forgot=="yes") { include("header.php"); if ($fertig=="yes") { include("./inc/config.inc.php"); include("./inc/db_connect.inc.php"); mysql_select_db($db_table3,$db); $abfrage=mysql_query("SELECT * FROM $db_table3"); while ($row = mysql_fetch_object ($abfrage)) { if ($email==$row->email) { $ismail="true"; } } if ($ismail=="true") { mysql_select_db($db_table3,$db); $password=mysql_query("SELECT * FROM $db_table3 WHERE email = '$email'"); while ($row = mysql_fetch_object ($password)) { $nachricht="Hallo $row->user!\n\nIhr Passwort ist:\n\n$row->password\n\nMfG\nAdmin"; } mail($email, "Passwort", $nachricht, "From: Administrator"); ?>Das Passwort wurde Ihnen erfolgreich an die Adresse echo $email; ?> geschickt!
Rufen Sie Ihre E-Mails ab und loggen Sie sich ein.
"; echo "
} include("footer.php"); } ?>