summaryrefslogtreecommitdiff
path: root/www-ssl/nonpublic/passwort.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 17:14:25 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2005-11-06 17:14:25 +0000
commit866c47ec603595e8fe67da5f0e5d162a70b1f7b4 (patch)
treeef2b85462576150f017ba6bd53ace13dc60dc510 /www-ssl/nonpublic/passwort.php
parentfbc8e11b91b0565ae5d23472fc4e5bfc7d879939 (diff)
move files
git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/nonpublic/passwort.php')
-rwxr-xr-xwww-ssl/nonpublic/passwort.php58
1 files changed, 58 insertions, 0 deletions
diff --git a/www-ssl/nonpublic/passwort.php b/www-ssl/nonpublic/passwort.php
new file mode 100755
index 00000000..37860946
--- /dev/null
+++ b/www-ssl/nonpublic/passwort.php
@@ -0,0 +1,58 @@
+<?php
+$title = "Himmel";
+$header = "News";
+include ("./inc/header.php");
+
+if (!IsSet($action)) {
+
+?>
+
+Hier kannst du dein Kennwort f&uuml;r unsere Himmelsverwaltung &auml;ndern. <br><br>
+
+<form action="./passwort.php" method="post">
+ <input type="hidden" name="action" value="set">
+ <table>
+ <tr><td>Altes Passwort:</td><td><input type="password" name="old" size="20"></td></tr>
+ <tr><td>Neues Passwort:</td><td><input type="password" name="new1" size="20"></td></tr>
+ <tr><td>Passwortbest&auml;tigung:</td><td><input type="password" name="new2" size="20"></td></tr>
+ </table>
+ <input type="submit" value="Abschicken...">
+</form>
+<?
+
+} else {
+
+ if ($action == "set") {
+ if ($new1==$new2){
+ echo "Eingegebene Kennw&ouml;rter sind nicht gleich. -> ok.<br>";
+ 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.<br>";
+ 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.<br>";
+ echo "Altes Kennwort ist nicht ok. Bitte wiederholen.<br>";
+ }
+
+ } else {
+ echo "Kennw&ouml;rter sind nicht gleich. Bitte wiederholen.";
+ }
+
+ } else {
+ echo "Ung&uuml;ltiger Aufruf!\n";
+ }
+}
+
+include ("./inc/footer.php");
+?>