Rev 4 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | daniel-mar | 1 | <?php |
2 | |||
3 | daniel-mar | 3 | if (!defined('IBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
2 | daniel-mar | 4 | |
5 | echo str_replace('<body', '<body onload="self.focus();document.getElementById(\'f_username\').focus();"', $header); |
||
6 | |||
7 | echo '<h1>Benutzer bearbeiten</h1>'; |
||
8 | |||
9 | $res = db_query("SELECT * FROM `".$mysql_zugangsdaten['praefix']."users` WHERE `id` = '".db_escape($id)."'"); |
||
10 | $row = db_fetch($res); |
||
11 | |||
12 | $f_username = (isset($row['username'])) ? $row['username'] : ''; |
||
13 | $f_email = (isset($row['email'])) ? $row['email'] : ''; |
||
14 | $f_gesperrt = (isset($row['gesperrt'])) ? $row['gesperrt'] : ''; |
||
15 | $f_personenname = (isset($row['personenname'])) ? $row['personenname'] : ''; |
||
16 | $f_passwort = ''; |
||
17 | $f_created = (isset($row['created_database'])) ? $row['created_database'] : ''; |
||
18 | $f_creator_ip = (isset($row['creator_ip'])) ? $row['creator_ip'] : ''; |
||
19 | $f_lastlogin = (isset($row['last_login'])) ? $row['last_login'] : ''; |
||
20 | |||
21 | echo '<form method="POST" name="mainform" action="'.$_SERVER['PHP_SELF'].'"> |
||
22 | <input type="hidden" name="modul" value="'.$modul.'"> |
||
23 | <input type="hidden" name="seite" value="kraftsetzung"> |
||
24 | <input type="hidden" name="aktion" value="edit"> |
||
25 | <input type="hidden" name="id" value="'.$id.'"> |
||
26 | |||
27 | <table cellspacing="0" cellpadding="0" border="0"> |
||
28 | <tr> |
||
29 | <td colspan="2"><b>Benutzerinformationen</b><br><br></td> |
||
30 | </tr> |
||
31 | <tr> |
||
32 | <td valign="top">Benutzername:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
33 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="f_username" id="f_username" value="'.$f_username.'" size="50"></td> |
||
34 | </tr> |
||
35 | <tr> |
||
36 | <td valign="top">E-Mail-Adresse:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
37 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="f_email" value="'.$f_email.'" size="50"></td> |
||
38 | </tr> |
||
39 | <tr> |
||
40 | <td valign="top">Gesperrt:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
41 | <td valign="top"><input type="checkbox" name="f_gesperrt"'; |
||
42 | if ($f_gesperrt) echo ' checked'; |
||
43 | echo'> Ja</td> |
||
44 | </tr> |
||
45 | <tr> |
||
46 | <td valign="top">Personenname:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
47 | <td valign="top"><input type="text" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="f_personenname" value="'.$f_personenname.'" size="50"></td> |
||
48 | </tr> |
||
49 | <tr> |
||
50 | <td valign="top">Passwort ersetzen:<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
51 | <td valign="top"><input type="checkbox" name="f_neupwd"> <input type="password" class="normal" onmouseover="this.className=\'highlight\';" onmouseout="this.className=\'normal\';" name="f_passwort" value="'.$f_passwort.'" size="50"></td> |
||
52 | </tr> |
||
53 | <tr> |
||
54 | <td valign="top">Datenbank erstellt<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
55 | <td valign="top">'.de_convertmysqldatetime($f_created).'</td> |
||
56 | </tr> |
||
57 | <tr> |
||
58 | <td valign="top">Über IP<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
59 | <td valign="top">'; |
||
60 | |||
61 | if ($f_creator_ip == '') |
||
62 | echo 'Unbekannt!'; |
||
63 | else |
||
8 | daniel-mar | 64 | echo '<a href="http://www.ripe.net/fcgi-bin/whois?form_type=simple&full_query_string=&searchtext='.urlencode($f_creator_ip).'&submit.x=0&submit.y=0" target="_blank">'.$f_creator_ip.'</a> (DNS: '.@gethostbyaddr($f_creator_ip).')'; |
2 | daniel-mar | 65 | |
66 | echo '</td> |
||
67 | </tr> |
||
68 | <tr> |
||
69 | <td valign="top">Letzter Login<img src="design/spacer.gif" height="1" width="35" alt=""></td> |
||
70 | <td valign="top">'.de_convertmysqldatetime($f_lastlogin).'</td> |
||
71 | </tr> |
||
72 | </table><br> |
||
8 | daniel-mar | 73 | <a href="javascript:document.mainform.submit();">Änderungen durchführen</a> | <a href="'.$_SERVER['PHP_SELF'].'?seite=inhalt&modul='.urlencode($modul).'">Zurück</a> |
2 | daniel-mar | 74 | |
75 | </form>'; |
||
76 | |||
77 | echo $footer; |
||
78 | |||
3 | daniel-mar | 79 | ?> |