From 310c2ce98fc8c0e94559c9ed8587101d92f6e853 Mon Sep 17 00:00:00 2001 From: cookie Date: Sat, 10 Sep 2005 17:25:43 +0000 Subject: add total system git-svn-id: svn://svn.cccv.de/engel-system@1 29ba0400-6e00-0410-a75a-ca02368028f8 --- nonpublic/passwort.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100755 nonpublic/passwort.php (limited to 'nonpublic/passwort.php') diff --git a/nonpublic/passwort.php b/nonpublic/passwort.php new file mode 100755 index 00000000..37860946 --- /dev/null +++ b/nonpublic/passwort.php @@ -0,0 +1,58 @@ + + +Hier kannst du dein Kennwort für unsere Himmelsverwaltung ändern.

+ +
+ + + + + +
Altes Passwort:
Neues Passwort:
Passwortbestätigung:
+ +
+ ok.
"; + echo "Check, ob altes Passwort ok ist."; + $sql = "select * from User where UID=".$_SESSION['UID']; + $Erg = mysql_query($sql, $con); + if (md5($old)==mysql_result($Erg, $i, "Passwort")) { + echo "-> ok.
"; + echo "Setzen des neuen Kennwortes...: "; + $usql = "update User set Passwort='".md5($new1)."' where UID=".$_SESSION['UID']; + $Erg = mysql_query($usql, $con); + if ($Erg==1) { + echo "Neues Kennwort wurde gesetzt."; + } else { + echo "Ein Fehler ist trotzdem noch aufgetreten. Probiere es einfach nocheinmal :)"; + } + + + } else { + echo "-> nicht ok.
"; + echo "Altes Kennwort ist nicht ok. Bitte wiederholen.
"; + } + + } else { + echo "Kennwörter sind nicht gleich. Bitte wiederholen."; + } + + } else { + echo "Ungültiger Aufruf!\n"; + } +} + +include ("./inc/footer.php"); +?> -- cgit v1.3.1