]>
Commit | Line | Data |
---|---|---|
ef8be8ea AD |
1 | <?php |
2 | function module_pref_users($link) { | |
3 | ||
d20f3544 AD |
4 | global $access_level_names; |
5 | ||
85ef2118 AD |
6 | if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) { |
7 | print __("Your access level is insufficient to open this tab."); | |
8 | return; | |
9 | } | |
10 | ||
ef8be8ea AD |
11 | $subop = $_GET["subop"]; |
12 | ||
5a437c88 AD |
13 | if ($subop == "user-details") { |
14 | ||
15 | $uid = sprintf("%d", $_GET["id"]); | |
16 | ||
17 | print "<div id=\"infoBoxTitle\">User details</div>"; | |
18 | ||
19 | print "<div class='infoBoxContents'>"; | |
20 | ||
21 | $result = db_query($link, "SELECT login, | |
22 | ".SUBSTRING_FOR_DATE."(last_login,1,16) AS last_login, | |
23 | access_level, | |
24 | (SELECT COUNT(int_id) FROM ttrss_user_entries | |
25 | WHERE owner_uid = id) AS stored_articles, | |
26 | ".SUBSTRING_FOR_DATE."(created,1,16) AS created | |
27 | FROM ttrss_users | |
28 | WHERE id = '$uid'"); | |
29 | ||
30 | if (db_num_rows($result) == 0) { | |
31 | print "<h1>User not found</h1>"; | |
32 | return; | |
33 | } | |
34 | ||
35 | // print "<h1>User Details</h1>"; | |
36 | ||
37 | $login = db_fetch_result($result, 0, "login"); | |
38 | ||
39 | // print "<h1>$login</h1>"; | |
40 | ||
41 | print "<table width='100%'>"; | |
42 | ||
43 | $last_login = date(get_pref($link, 'LONG_DATE_FORMAT'), | |
44 | strtotime(db_fetch_result($result, 0, "last_login"))); | |
45 | ||
46 | $created = date(get_pref($link, 'LONG_DATE_FORMAT'), | |
47 | strtotime(db_fetch_result($result, 0, "created"))); | |
48 | ||
49 | $access_level = db_fetch_result($result, 0, "access_level"); | |
50 | $stored_articles = db_fetch_result($result, 0, "stored_articles"); | |
51 | ||
52 | // print "<tr><td>Username</td><td>$login</td></tr>"; | |
53 | // print "<tr><td>Access level</td><td>$access_level</td></tr>"; | |
54 | print "<tr><td>".__('Registered')."</td><td>$created</td></tr>"; | |
55 | print "<tr><td>".__('Last logged in')."</td><td>$last_login</td></tr>"; | |
5a437c88 | 56 | |
3485099c | 57 | /* $result = db_query($link, "SELECT |
fad8506f | 58 | SUM(LENGTH(content)) AS db_size |
5a437c88 AD |
59 | FROM ttrss_user_entries,ttrss_entries |
60 | WHERE owner_uid = '$uid' AND ref_id = id"); | |
61 | ||
62 | $db_size = round(db_fetch_result($result, 0, "db_size") / 1024); | |
63 | ||
fad8506f | 64 | print "<tr><td>".__('Stored articles'). |
3485099c | 65 | "</td><td>$stored_articles (${db_size}K)</td></tr>"; */ |
5a437c88 | 66 | |
fad8506f AD |
67 | $result = db_query($link, "SELECT COUNT(id) as num_feeds FROM ttrss_feeds |
68 | WHERE owner_uid = '$uid'"); | |
69 | ||
70 | $num_feeds = db_fetch_result($result, 0, "num_feeds"); | |
71 | ||
72 | print "<tr><td>".__('Subscribed feeds count')."</td><td>$num_feeds</td></tr>"; | |
73 | ||
5a437c88 AD |
74 | print "</table>"; |
75 | ||
76 | print "<h1>".__('Subscribed feeds')."</h1>"; | |
77 | ||
78 | $result = db_query($link, "SELECT id,title,site_url FROM ttrss_feeds | |
79 | WHERE owner_uid = '$uid' ORDER BY title"); | |
80 | ||
81 | print "<ul class=\"userFeedList\">"; | |
82 | ||
83 | $row_class = "odd"; | |
84 | ||
85 | while ($line = db_fetch_assoc($result)) { | |
86 | ||
87 | $icon_file = ICONS_URL."/".$line["id"].".ico"; | |
88 | ||
89 | if (file_exists($icon_file) && filesize($icon_file) > 0) { | |
90 | $feed_icon = "<img class=\"tinyFeedIcon\" src=\"$icon_file\">"; | |
91 | } else { | |
92 | $feed_icon = "<img class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\">"; | |
93 | } | |
94 | ||
95 | print "<li class=\"$row_class\">$feed_icon <a href=\"".$line["site_url"]."\">".$line["title"]."</a></li>"; | |
96 | ||
97 | $row_class = toggleEvenOdd($row_class); | |
98 | ||
99 | } | |
100 | ||
101 | if (db_num_rows($result) < $num_feeds) { | |
102 | // FIXME - add link to show ALL subscribed feeds here somewhere | |
103 | print "<li><img | |
104 | class=\"tinyFeedIcon\" src=\"images/blank_icon.gif\"> ...</li>"; | |
105 | } | |
106 | ||
107 | print "</ul>"; | |
108 | ||
109 | print "<div align='center'> | |
110 | <input type='submit' class='button' | |
111 | onclick=\"closeInfoBox()\" value=\"Close this window\"></div>"; | |
112 | ||
113 | print "</div>"; | |
114 | ||
115 | return; | |
116 | } | |
117 | ||
ef8be8ea AD |
118 | if ($subop == "edit") { |
119 | ||
120 | $id = db_escape_string($_GET["id"]); | |
121 | ||
41ed2d38 | 122 | print "<div id=\"infoBoxTitle\">".__('User Editor')."</div>"; |
ef8be8ea AD |
123 | |
124 | print "<div class=\"infoBoxContents\">"; | |
125 | ||
e6312f6c | 126 | print "<form id=\"user_edit_form\" onsubmit='return false'>"; |
ef8be8ea AD |
127 | |
128 | print "<input type=\"hidden\" name=\"id\" value=\"$id\">"; | |
129 | print "<input type=\"hidden\" name=\"op\" value=\"pref-users\">"; | |
130 | print "<input type=\"hidden\" name=\"subop\" value=\"editSave\">"; | |
131 | ||
132 | $result = db_query($link, "SELECT * FROM ttrss_users WHERE id = '$id'"); | |
133 | ||
134 | $login = db_fetch_result($result, 0, "login"); | |
135 | $access_level = db_fetch_result($result, 0, "access_level"); | |
136 | $email = db_fetch_result($result, 0, "email"); | |
137 | ||
41ed2d38 | 138 | $sel_disabled = ($id == $_SESSION["uid"]) ? "disabled" : ""; |
ef8be8ea | 139 | |
41ed2d38 AD |
140 | print "<div class=\"dlgSec\">".__("User")."</div>"; |
141 | print "<div class=\"dlgSecCont\">"; | |
ef8be8ea | 142 | |
41ed2d38 | 143 | print "<input size=\"30\" style=\"font-size : 16px\" |
8df90057 | 144 | onkeypress=\"return filterCR(event, userEditSave)\" $sel_disabled |
41ed2d38 AD |
145 | name=\"login\" value=\"$login\">"; |
146 | ||
147 | print "</div>"; | |
148 | ||
149 | print "<div class=\"dlgSec\">".__("Authentication")."</div>"; | |
150 | print "<div class=\"dlgSecCont\">"; | |
151 | ||
152 | print __('Access level: ') . " "; | |
ef8be8ea | 153 | |
ef8be8ea AD |
154 | print_select_hash("access_level", $access_level, $access_level_names, |
155 | $sel_disabled); | |
41ed2d38 AD |
156 | |
157 | print "<br/>"; | |
158 | ||
159 | print __('Change password to') . | |
8df90057 | 160 | " <input size=\"20\" onkeypress=\"return filterCR(event, userEditSave)\" |
41ed2d38 AD |
161 | name=\"password\">"; |
162 | ||
163 | print "</div>"; | |
164 | ||
165 | print "<div class=\"dlgSec\">".__("Options")."</div>"; | |
166 | print "<div class=\"dlgSecCont\">"; | |
167 | ||
168 | print __('E-mail: '). | |
8df90057 | 169 | " <input size=\"30\" name=\"email\" onkeypress=\"return filterCR(event, userEditSave)\" |
41ed2d38 AD |
170 | value=\"$email\">"; |
171 | ||
172 | print "</div>"; | |
ef8be8ea AD |
173 | |
174 | print "</table>"; | |
175 | ||
176 | print "</form>"; | |
177 | ||
41ed2d38 | 178 | print "<div class=\"dlgButtons\"> |
ef8be8ea AD |
179 | <input class=\"button\" |
180 | type=\"submit\" onclick=\"return userEditSave()\" | |
11ffbec3 | 181 | value=\"".__('Save')."\"> |
ef8be8ea AD |
182 | <input class=\"button\" |
183 | type=\"submit\" onclick=\"return userEditCancel()\" | |
11ffbec3 | 184 | value=\"".__('Cancel')."\"></div>"; |
ef8be8ea AD |
185 | |
186 | print "</div>"; | |
187 | ||
188 | return; | |
189 | } | |
190 | ||
191 | if ($subop == "editSave") { | |
192 | ||
193 | if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) { | |
194 | ||
195 | $login = db_escape_string(trim($_GET["login"])); | |
196 | $uid = db_escape_string($_GET["id"]); | |
4dccf1ed | 197 | $access_level = (int) $_GET["access_level"]; |
ef8be8ea AD |
198 | $email = db_escape_string(trim($_GET["email"])); |
199 | $password = db_escape_string(trim($_GET["password"])); | |
200 | ||
201 | if ($password) { | |
c3a005ad | 202 | $pwd_hash = encrypt_password($password, $login); |
ef8be8ea | 203 | $pass_query_part = "pwd_hash = '$pwd_hash', "; |
4dccf1ed | 204 | print_notice(T_sprintf('Changed password of user <b>%s</b>.', $login)); |
ef8be8ea AD |
205 | } else { |
206 | $pass_query_part = ""; | |
207 | } | |
208 | ||
209 | db_query($link, "UPDATE ttrss_users SET $pass_query_part login = '$login', | |
210 | access_level = '$access_level', email = '$email' WHERE id = '$uid'"); | |
211 | ||
212 | } | |
213 | } else if ($subop == "remove") { | |
214 | ||
215 | if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) { | |
216 | ||
217 | $ids = split(",", db_escape_string($_GET["ids"])); | |
218 | ||
219 | foreach ($ids as $id) { | |
c29324c7 AD |
220 | db_query($link, "BEGIN"); |
221 | db_query($link, "DELETE FROM ttrss_feeds WHERE owner_uid = '$id' AND owner_uid != " . $_SESSION["uid"]); | |
ef8be8ea | 222 | db_query($link, "DELETE FROM ttrss_users WHERE id = '$id' AND id != " . $_SESSION["uid"]); |
c29324c7 | 223 | db_query($link, "COMMIT"); |
ef8be8ea AD |
224 | |
225 | } | |
226 | } | |
227 | } else if ($subop == "add") { | |
228 | ||
229 | if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) { | |
230 | ||
231 | $login = db_escape_string(trim($_GET["login"])); | |
232 | $tmp_user_pwd = make_password(8); | |
c3a005ad | 233 | $pwd_hash = encrypt_password($tmp_user_pwd, $login); |
ef8be8ea AD |
234 | |
235 | $result = db_query($link, "SELECT id FROM ttrss_users WHERE | |
236 | login = '$login'"); | |
237 | ||
238 | if (db_num_rows($result) == 0) { | |
239 | ||
240 | db_query($link, "INSERT INTO ttrss_users | |
54a3d3cf AD |
241 | (login,pwd_hash,access_level,last_login,created) |
242 | VALUES ('$login', '$pwd_hash', 0, null, NOW())"); | |
ef8be8ea AD |
243 | |
244 | ||
245 | $result = db_query($link, "SELECT id FROM ttrss_users WHERE | |
246 | login = '$login' AND pwd_hash = '$pwd_hash'"); | |
247 | ||
248 | if (db_num_rows($result) == 1) { | |
249 | ||
250 | $new_uid = db_fetch_result($result, 0, "id"); | |
251 | ||
4dccf1ed AD |
252 | print_notice(T_sprintf("Added user <b>%s</b> with password <b>%s</b>", |
253 | $login, $tmp_user_pwd)); | |
ef8be8ea AD |
254 | |
255 | initialize_user($link, $new_uid); | |
256 | ||
257 | } else { | |
258 | ||
4dccf1ed | 259 | print_warning(T_sprintf("Could not create user <b>%s</b>", $login)); |
ef8be8ea AD |
260 | |
261 | } | |
262 | } else { | |
4dccf1ed | 263 | print_warning(T_sprintf("User <b>%s</b> already exists.", $login)); |
ef8be8ea AD |
264 | } |
265 | } | |
266 | } else if ($subop == "resetPass") { | |
267 | ||
268 | if (!WEB_DEMO_MODE && $_SESSION["access_level"] >= 10) { | |
269 | ||
270 | $uid = db_escape_string($_GET["id"]); | |
271 | ||
272 | $result = db_query($link, "SELECT login,email | |
273 | FROM ttrss_users WHERE id = '$uid'"); | |
274 | ||
275 | $login = db_fetch_result($result, 0, "login"); | |
276 | $email = db_fetch_result($result, 0, "email"); | |
277 | $tmp_user_pwd = make_password(8); | |
c3a005ad | 278 | $pwd_hash = encrypt_password($tmp_user_pwd, $login); |
ef8be8ea AD |
279 | |
280 | db_query($link, "UPDATE ttrss_users SET pwd_hash = '$pwd_hash' | |
281 | WHERE id = '$uid'"); | |
282 | ||
4dccf1ed AD |
283 | print_notice(T_sprintf("Changed password of user <b>%s</b> |
284 | to <b>%s</b>", $login, $tmp_user_pwd)); | |
ef8be8ea AD |
285 | |
286 | if (MAIL_RESET_PASS && $email) { | |
f1d9632e | 287 | print_notice(T_sprintf("Notifying <b>%s</b>.", $email)); |
ef8be8ea | 288 | |
eb0b4ee8 AD |
289 | require_once "MiniTemplator.class.php"; |
290 | ||
291 | $tpl = new MiniTemplator; | |
292 | ||
293 | $tpl->readTemplateFromFile("templates/resetpass_template.txt"); | |
294 | ||
295 | $tpl->setVariable('LOGIN', $login); | |
296 | $tpl->setVariable('NEWPASS', $tmp_user_pwd); | |
297 | ||
298 | $tpl->addBlock('message'); | |
299 | ||
300 | $message = ""; | |
301 | ||
302 | $tpl->generateOutputToString($message); | |
303 | ||
304 | $mail = new PHPMailer(); | |
305 | ||
306 | $mail->PluginDir = "phpmailer/"; | |
307 | $mail->SetLanguage("en", "phpmailer/language/"); | |
308 | ||
309 | $mail->CharSet = "UTF-8"; | |
310 | ||
311 | $mail->From = DIGEST_FROM_ADDRESS; | |
312 | $mail->FromName = DIGEST_FROM_NAME; | |
313 | $mail->AddAddress($email, $login); | |
314 | ||
315 | if (DIGEST_SMTP_HOST) { | |
316 | $mail->Host = DIGEST_SMTP_HOST; | |
317 | $mail->Mailer = "smtp"; | |
19a1da0d | 318 | $mail->SMTPAuth = DIGEST_SMTP_LOGIN != ''; |
eb0b4ee8 AD |
319 | $mail->Username = DIGEST_SMTP_LOGIN; |
320 | $mail->Password = DIGEST_SMTP_PASSWORD; | |
321 | } | |
322 | ||
323 | $mail->IsHTML(false); | |
ebb41333 | 324 | $mail->Subject = __("[tt-rss] Password change notification"); |
eb0b4ee8 AD |
325 | $mail->Body = $message; |
326 | ||
327 | $rc = $mail->Send(); | |
328 | ||
329 | if (!$rc) print_error($mail->ErrorInfo); | |
330 | ||
331 | /* mail("$login <$email>", "Password reset notification", | |
ef8be8ea AD |
332 | "Hi, $login.\n". |
333 | "\n". | |
334 | "Your password for this TT-RSS installation was reset by". | |
335 | " an administrator.\n". | |
336 | "\n". | |
337 | "Your new password is $tmp_user_pwd, please remember". | |
338 | " it for later reference.\n". | |
339 | "\n". | |
eb0b4ee8 | 340 | "Sincerely, TT-RSS Mail Daemon.", "From: " . MAIL_FROM); */ |
ef8be8ea AD |
341 | } |
342 | ||
343 | print "</div>"; | |
344 | ||
345 | } | |
346 | } | |
347 | ||
fe8d2059 AD |
348 | set_pref($link, "_PREFS_ACTIVE_TAB", "userConfig"); |
349 | ||
a5bd7bf0 AD |
350 | $user_search = db_escape_string($_GET["search"]); |
351 | ||
352 | if (array_key_exists("search", $_GET)) { | |
353 | $_SESSION["prefs_user_search"] = $user_search; | |
354 | } else { | |
355 | $user_search = $_SESSION["prefs_user_search"]; | |
356 | } | |
357 | ||
358 | print "<div class=\"feedEditSearch\"> | |
359 | <input id=\"user_search\" size=\"20\" type=\"search\" | |
360 | onfocus=\"javascript:disableHotkeys();\" | |
361 | onblur=\"javascript:enableHotkeys();\" | |
362 | onchange=\"javascript:updateUsersList()\" value=\"$user_search\"> | |
363 | <input type=\"submit\" class=\"button\" | |
364 | onclick=\"javascript:updateUsersList()\" value=\"".__('Search')."\"> | |
365 | </div>"; | |
366 | ||
ef8be8ea AD |
367 | $sort = db_escape_string($_GET["sort"]); |
368 | ||
369 | if (!$sort || $sort == "undefined") { | |
370 | $sort = "login"; | |
371 | } | |
372 | ||
373 | print "<div class=\"prefGenericAddBox\"> | |
374 | <input id=\"uadd_box\" | |
375 | onkeyup=\"toggleSubmitNotEmpty(this, 'user_add_btn')\" | |
b5015f72 | 376 | onchange=\"toggleSubmitNotEmpty(this, 'user_add_btn')\" |
0e164432 | 377 | size=\"15\"> "; |
ef8be8ea AD |
378 | |
379 | print "<input type=\"submit\" class=\"button\" | |
380 | id=\"user_add_btn\" disabled=\"true\" | |
807fd4d6 | 381 | onclick=\"javascript:addUser()\" value=\"".__('Create user')."\"></div>"; |
ef8be8ea | 382 | |
a5bd7bf0 AD |
383 | if ($user_search) { |
384 | $user_search_query = "UPPER(login) LIKE UPPER('%$user_search%') AND"; | |
385 | } else { | |
386 | $user_search_query = ""; | |
387 | } | |
388 | ||
ef8be8ea AD |
389 | $result = db_query($link, "SELECT |
390 | id,login,access_level,email, | |
f52fb64d AD |
391 | ".SUBSTRING_FOR_DATE."(last_login,1,16) as last_login, |
392 | ".SUBSTRING_FOR_DATE."(created,1,16) as created | |
ef8be8ea AD |
393 | FROM |
394 | ttrss_users | |
a5bd7bf0 AD |
395 | WHERE |
396 | $user_search_query | |
397 | id > 0 | |
ef8be8ea AD |
398 | ORDER BY $sort"); |
399 | ||
a5bd7bf0 AD |
400 | if (db_num_rows($result) > 0) { |
401 | ||
ef8be8ea AD |
402 | // print "<div id=\"infoBoxShadow\"><div id=\"infoBox\">PLACEHOLDER</div></div>"; |
403 | ||
404 | print "<p><table width=\"100%\" cellspacing=\"0\" | |
405 | class=\"prefUserList\" id=\"prefUserList\">"; | |
406 | ||
407 | print "<tr><td class=\"selectPrompt\" colspan=\"8\"> | |
e8d0177d AD |
408 | ".__('Select:')." |
409 | <a href=\"javascript:selectPrefRows('user', true)\">".__('All')."</a>, | |
410 | <a href=\"javascript:selectPrefRows('user', false)\">".__('None')."</a> | |
ef8be8ea AD |
411 | </td</tr>"; |
412 | ||
413 | print "<tr class=\"title\"> | |
414 | <td align='center' width=\"5%\"> </td> | |
5ede560f AD |
415 | <td width=''><a href=\"javascript:updateUsersList('login')\">".__('Login')."</a></td> |
416 | <td width='20%'><a href=\"javascript:updateUsersList('access_level')\">".__('Access Level')."</a></td> | |
f52fb64d | 417 | <td width='20%'><a href=\"javascript:updateUsersList('created')\">".__('Registered')."</a></td> |
5ede560f | 418 | <td width='20%'><a href=\"javascript:updateUsersList('last_login')\">".__('Last login')."</a></td></tr>"; |
ef8be8ea AD |
419 | |
420 | $lnum = 0; | |
421 | ||
422 | while ($line = db_fetch_assoc($result)) { | |
423 | ||
424 | $class = ($lnum % 2) ? "even" : "odd"; | |
425 | ||
426 | $uid = $line["id"]; | |
427 | $edit_uid = $_GET["id"]; | |
428 | ||
429 | if ($subop == "edit" && $uid != $edit_uid) { | |
430 | $class .= "Grayed"; | |
431 | $this_row_id = ""; | |
432 | } else { | |
433 | $this_row_id = "id=\"UMRR-$uid\""; | |
434 | } | |
435 | ||
436 | print "<tr class=\"$class\" $this_row_id>"; | |
437 | ||
438 | $line["login"] = htmlspecialchars($line["login"]); | |
439 | ||
0b6f179e AD |
440 | # $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), |
441 | # strtotime($line["last_login"])); | |
442 | ||
443 | if (get_pref($link, 'HEADLINES_SMART_DATE')) { | |
444 | $line["last_login"] = smart_date_time(strtotime($line["last_login"])); | |
f52fb64d | 445 | $line["created"] = smart_date_time(strtotime($line["created"])); |
0b6f179e AD |
446 | } else { |
447 | $line["last_login"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), | |
448 | strtotime($line["last_login"])); | |
f52fb64d AD |
449 | $line["created"] = date(get_pref($link, 'SHORT_DATE_FORMAT'), |
450 | strtotime($line["created"])); | |
0b6f179e | 451 | } |
ef8be8ea | 452 | |
a95da136 | 453 | print "<td align='center'><input onclick='toggleSelectPrefRow(this, \"user\");' |
ef8be8ea AD |
454 | type=\"checkbox\" id=\"UMCHK-$uid\"></td>"; |
455 | ||
a0eb61b2 | 456 | $onclick = "onclick='editUser($uid)' title='".__('Click to edit')."'"; |
ef8be8ea | 457 | |
a95da136 | 458 | print "<td $onclick>" . $line["login"] . "</td>"; |
ef8be8ea | 459 | |
a95da136 | 460 | if (!$line["email"]) $line["email"] = " "; |
ef8be8ea | 461 | |
a95da136 AD |
462 | print "<td $onclick>" . $access_level_names[$line["access_level"]] . "</td>"; |
463 | print "<td $onclick>" . $line["created"] . "</td>"; | |
464 | print "<td $onclick>" . $line["last_login"] . "</td>"; | |
ef8be8ea AD |
465 | |
466 | print "</tr>"; | |
467 | ||
468 | ++$lnum; | |
469 | } | |
470 | ||
471 | print "</table>"; | |
472 | ||
473 | print "<p id='userOpToolbar'>"; | |
474 | ||
a3c159c4 | 475 | print " |
ef8be8ea | 476 | <input type=\"submit\" class=\"button\" disabled=\"true\" |
a3c159c4 | 477 | onclick=\"javascript:selectedUserDetails()\" value=\"".__('User details')."\"> |
ef8be8ea | 478 | <input type=\"submit\" class=\"button\" disabled=\"true\" |
a3c159c4 | 479 | onclick=\"javascript:editSelectedUser()\" value=\"".__('Edit')."\"> |
ef8be8ea | 480 | <input type=\"submit\" class=\"button\" disabled=\"true\" |
a3c159c4 | 481 | onclick=\"javascript:removeSelectedUsers()\" value=\"".__('Remove')."\"> |
ef8be8ea | 482 | <input type=\"submit\" class=\"button\" disabled=\"true\" |
a3c159c4 | 483 | onclick=\"javascript:resetSelectedUserPass()\" value=\"".__('Reset password')."\">"; |
ef8be8ea | 484 | |
a5bd7bf0 AD |
485 | } else { |
486 | print "<p>"; | |
487 | if (!$user_search) { | |
488 | print __('No users defined.'); | |
489 | } else { | |
490 | print __('No matching users found.'); | |
491 | } | |
492 | print "</p>"; | |
493 | ||
494 | } | |
495 | ||
ef8be8ea AD |
496 | } |
497 | ?> |