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