Skip to content
Snippets Groups Projects
Commit 7b7a5200 authored by Henoch Einbier's avatar Henoch Einbier
Browse files

Account Delete fixed

parent f405298a
No related merge requests found
......@@ -14,8 +14,8 @@ if (!isset($mailstatus)) $mailstatus = "";
if (!isset($delchange)) $delchange = "";
if ($_POST['acc_del'] == 'Jetzt löschen!' && $_POST['del_passwort']) {
$schnittstelle = mysql_fetch_array(db_query("SELECT `passwort` FROM " . $db_prefix . "_kontodaten LIMIT 1")) or die("Userinfo");
if ($schnittstelle['passwort'] != md5($_GET['del_passwort'])) {
$schnittstelle = mysql_fetch_array(db_query("SELECT `passwort` FROM " . $db_prefix . "_kontodaten WHERE uid=" .$_SESSION['uid']. " LIMIT 1")) or die("Userinfo");
if ($schnittstelle['passwort'] != md5($_POST['del_passwort'])) {
echo 'Passwort falsch';
} else {
$sperrzeit = time() + (86400 * 30);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment