aus gegebenen anlass, update von <? auf <?PHP
git-svn-id: svn://svn.cccv.de/engel-system@99 29ba0400-6e00-0410-a75a-ca02368028f8main
parent
f53f4bf0c6
commit
bf88f9c69b
@ -1,6 +1,6 @@
|
|||||||
<h4 class="menu"> Anfragen und FAQ </h4>
|
<h4 class="menu"> Anfragen und FAQ </h4>
|
||||||
|
|
||||||
<li><a href="faq.php?quest=all">Alle Anfragen</a></li>
|
<li><a href="faq.php?quest=all">Alle Anfragen</a></li>
|
||||||
<li><a href="faq.php?quest=open">Offene Anfragen (<? noAnswer(); ?>)</a></li>
|
<li><a href="faq.php?quest=open">Offene Anfragen (<?PHP noAnswer(); ?>)</a></li>
|
||||||
<li><a href="faq.php?quest=faq">FAQ-Liste editiern</a></li>
|
<li><a href="faq.php?quest=faq">FAQ-Liste editiern</a></li>
|
||||||
|
|
||||||
|
@ -1,21 +1,21 @@
|
|||||||
|
|
||||||
|
|
||||||
<form action="<?
|
<form action="<?PHP
|
||||||
include ("./inc/config.php");
|
include ("./inc/config.php");
|
||||||
echo substr($url, 0, strlen($url)-1). $ENGEL_ROOT
|
echo substr($url, 0, strlen($url)-1). $ENGEL_ROOT
|
||||||
?>nonpublic/index.php" method="post">
|
?>nonpublic/index.php" method="post">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><? echo Get_Text("index_lang_nick");?></td>
|
<td align="right"><?PHP echo Get_Text("index_lang_nick");?></td>
|
||||||
<td><input type="text" name="user" size="23"></td>
|
<td><input type="text" name="user" size="23"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right"><? echo Get_Text("index_lang_pass");?></td>
|
<td align="right"><?PHP echo Get_Text("index_lang_pass");?></td>
|
||||||
<td><input type="password" name="password" size="23"></td>
|
<td><input type="password" name="password" size="23"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<input type="submit" value="<? echo Get_Text("index_lang_send");?>">
|
<input type="submit" value="<?PHP echo Get_Text("index_lang_send");?>">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,58 +0,0 @@
|
|||||||
<?php
|
|
||||||
$title = "Himmel";
|
|
||||||
$header = "News";
|
|
||||||
include ("./inc/header.php");
|
|
||||||
|
|
||||||
if (!IsSet($action)) {
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
Hier kannst du dein Kennwort für unsere Himmelsverwaltung ä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ä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ö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örter sind nicht gleich. Bitte wiederholen.";
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
echo "Ungültiger Aufruf!\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
include ("./inc/footer.php");
|
|
||||||
?>
|
|
Loading…
Reference in New Issue