bernd commited on 2008-08-15 18:41:33
Zeige 1 geänderte Dateien mit 12 Einfügungen und 4 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1138 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -35,7 +35,7 @@ if (isset($_GET['action'])) |
35 | 35 |
} |
36 | 36 |
break; |
37 | 37 |
case 'delete_user': |
38 |
- if (! has_mysql_username($_GET['user'])) |
|
38 |
+ if (! has_mysql_user($_GET['user'])) |
|
39 | 39 |
system_failure('Ungültiger Benutzer'); |
40 | 40 |
$sure = user_is_sure(); |
41 | 41 |
if ($sure === NULL) |
... | ... |
@@ -154,19 +154,27 @@ if ($output_something) |
154 | 154 |
|
155 | 155 |
|
156 | 156 |
$form = '<div> |
157 |
- <label for="username">Benutzername:</label> <select name="mysql_username" id="username"> |
|
157 |
+ <label for="mysql_username">Benutzername:</label> '.html_select('mysql_username', $users).' |
|
158 |
+     |
|
159 |
+ <label for="password">Passwort:</label> <input type="password" name="mysql_password" id="password" /> |
|
160 |
+   <input type="submit" value="Setzen" /> |
|
161 |
+</div>'; |
|
162 |
+ |
|
163 |
+ |
|
164 |
+ |
|
165 |
+ /*<select name="mysql_username" id="username"> |
|
158 | 166 |
'; |
159 | 167 |
foreach ($users as $user) |
160 | 168 |
$form .= "<option value=\"{$user}\">{$user}</option>\n"; |
161 | 169 |
$form .= '</select>    |
162 | 170 |
<label for="password">Passwort:</label> <input type="password" name="mysql_password" id="password" />  <input type="submit" value="Setzen" /> |
163 | 171 |
</div> |
164 |
-'; |
|
172 |
+';*/ |
|
165 | 173 |
|
166 | 174 |
output('<h4>Passwort ändern</h4> |
167 | 175 |
<p>Hier können Sie das Passwort eines MySQL-Benutzeraccounts ändern bzw. neu setzen</p> |
168 | 176 |
|
169 |
- '.html_form('mysql_databases', 'databases', 'action=change_pw', $form)); |
|
177 |
+ '.html_form('mysql_databases', 'databases', 'action=change_pw', $form).'<br />'); |
|
170 | 178 |
|
171 | 179 |
} |
172 | 180 |
|
173 | 181 |