Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | daniel-mar | 1 | <?php |
2 | |||
3 | if (!defined('WBLEGAL')) die('Kann nicht ohne Personal WebBase ausgeführt werden.'); |
||
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 `".$WBConfig->getMySQLPrefix()."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_banned = (isset($row['banned'])) ? $row['banned'] : ''; |
||
15 | $f_personal_name = (isset($row['personal_name'])) ? $row['personal_name'] : ''; |
||
16 | $f_password = ''; |
||
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="operate"> |
||
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="designs/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="designs/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="designs/spacer.gif" height="1" width="35" alt=""></td> |
||
41 | <td valign="top"><input type="checkbox" name="f_banned"'; |
||
42 | if ($f_banned) echo ' checked'; |
||
43 | echo'> Ja</td> |
||
44 | </tr> |
||
45 | <tr> |
||
46 | <td valign="top">Personenname:<img src="designs/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_personal_name" value="'.$f_personal_name.'" size="50"></td> |
||
48 | </tr> |
||
49 | <tr> |
||
50 | <td valign="top">Passwort ersetzen:<img src="designs/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_password" value="'.$f_password.'" size="50"></td> |
||
52 | </tr> |
||
53 | <tr> |
||
54 | <td valign="top">Datenbank erstellt<img src="designs/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="designs/spacer.gif" height="1" width="35" alt=""></td> |
||
59 | <td valign="top">'; |
||
60 | |||
61 | if ($f_creator_ip == '') |
||
62 | echo 'Unbekannt!'; |
||
63 | else |
||
64 | echo '<a href="'.ip_tracer($f_creator_ip).'" target="_blank">'.$f_creator_ip.'</a> (DNS: '.@gethostbyaddr($f_creator_ip).')'; |
||
65 | |||
66 | echo '</td> |
||
67 | </tr> |
||
68 | <tr> |
||
69 | <td valign="top">Letzter Login<img src="designs/spacer.gif" height="1" width="35" alt=""></td> |
||
70 | <td valign="top">'.de_convertmysqldatetime($f_lastlogin).'</td> |
||
71 | </tr> |
||
72 | </table><br> |
||
73 | <a href="javascript:document.mainform.submit();">Änderungen durchführen</a> | <a href="'.$_SERVER['PHP_SELF'].'?seite=main&modul='.$modul.'">Zurück</a> |
||
74 | |||
75 | </form>'; |
||
76 | |||
77 | echo $footer; |
||
78 | |||
79 | ?> |