Lines Matching refs:this

76         $this->setupLocale();
79 $this->disabled = $this->lang['noauth'];
81 $this->disabled = $this->lang['nosupport'];
85 $this->_auth = & $auth;
317 if (is_null($this->_auth)) return false;
334 $this->_start = $_REQUEST['start'];
336 $this->_filter = $this->_retrieveFilter();
337 $this->_setFilter("new");
343 $this->_addUser();
344 } else msg($this->lang['add_without_form'], -1);
347 $this->_deleteUser();
355 $this->_setFilter($param);
356 $this->_start = 0;
367 …$this->_user_total = $this->_auth->canDo('getUserCount') ? $this->_auth->getUserCount($this->_filt…
372 $this->_start = 0;
376 $this->_start -= $this->_pagesize;
379 $this->_start += $this->_pagesize;
382 $this->_start = $this->_user_total;
385 $this->_validatePagination();
396 if (is_null($this->_auth)) {
397 print $this->lang['badauth'];
404 … $this->userlist = $this->_auth->retrieveUsers($this->_start, $this->_pagesize, $this->_filter);
405 $page_buttons = $this->_pagination();
406 $colspan = 4 + count($this->grplst) + ($allow_delete_user?0:-1) ;
414 if ($this->_user_total > 0) {
415 …$renderer->doc .= "<p>" . sprintf($this->lang['summary'], $this->_start + 1, $this->_last, $this->…
417 …$renderer->doc .= "<p>" . sprintf($this->lang['nonefound'], $this->_auth->getUserCount()) . "</p>";
426 …right: 5px;\" name=\"fn[search][new]\" title=\"" . $this->lang['search_prompt'] . "\" alt=\"" . $t…
427 … name=\"fn[search][show_default]\" title=\"" . $this->lang['search_default_group'] . "\" alt=\"" .…
428 …g-right: 5px;\" name=\"fn[search][clear]\" title=\"" . $this->lang['clear'] . "\" alt=\"" . $this-…
431 …"fn[start]\" " . $page_buttons['start'] . " class=\"button\" value=\"" . $this->lang['start'] . "\…
432 …=\"fn[prev]\" " . $page_buttons['prev'] . " class=\"button\" value=\"" . $this->lang['prev'] . "\"…
433 …=\"fn[next]\" " . $page_buttons['next'] . " class=\"button\" value=\"" . $this->lang['next'] . "\"…
434 …=\"fn[last]\" " . $page_buttons['last'] . " class=\"button\" value=\"" . $this->lang['last'] . "\"…
441 …width:90%; color: #FF9900';\" name=\"userid\" class=\"edit\" value=\"" . $this->_htmlFilter('user'…
442 …dth:90%; color: #FF9900';\" name=\"username\" class=\"edit\" value=\"" . $this->_htmlFilter('name'…
443 …dth:90%; color: #FF9900';\" name=\"usermail\" class=\"edit\" value=\"" . $this->_htmlFilter('mail'…
445 …h:95%; color: #FF9900';\" name=\"usergroups\" class=\"edit\" value=\"" . $this->_htmlFilter('grps'…
449 …low_delete_user) $renderer->doc .= " <th style='color: #FF9900'>" . $this->lang['delete'] . "…
450 $renderer->doc .= " <th>" . $this->lang['user_id'] . "</th>\n";
451 $renderer->doc .= " <th>" . $this->lang['user_name'] . "</th>\n";
452 $renderer->doc .= " <th>" . $this->lang['user_mail'] . "</th>\n";
454 foreach ($this->grplst as $g) {
462 foreach ($this->userlist as $name => $u) {
485 foreach ($this->grplst as $g) {
521 if ($this->_auth->triggerUserMod('modify',array($name, $update))) {
551 …right: 5px;\" name=\"fn[search][new]\" title=\"" . $this->lang['search_prompt'] . "\" alt=\"" . $t…
552 … name=\"fn[search][show_default]\" title=\"" . $this->lang['search_default_group'] . "\" alt=\"" .…
553 …g-right: 5px;\" name=\"fn[search][clear]\" title=\"" . $this->lang['clear'] . "\" alt=\"" . $this-…
556 …"fn[start]\" " . $page_buttons['start'] . " class=\"button\" value=\"" . $this->lang['start'] . "\…
557 …=\"fn[prev]\" " . $page_buttons['prev'] . " class=\"button\" value=\"" . $this->lang['prev'] . "\"…
558 …=\"fn[next]\" " . $page_buttons['next'] . " class=\"button\" value=\"" . $this->lang['next'] . "\"…
559 …=\"fn[last]\" " . $page_buttons['last'] . " class=\"button\" value=\"" . $this->lang['last'] . "\"…
568 … $renderer->doc .= "<input type=\"hidden\" name=\"start\" value=\"" . $this->_start . "\" />";
570 …n[update]\" " . $page_buttons['update'] . " class=\"button\" value=\"" . $this->lang['btn_update_g…
575 if ($this->_auth->canDo('addUser') && $allow_add_user) {
576 $style = $this->_add_user ? " class=\"add_user\"" : "";
578 $renderer->doc .= $this->locale_xhtml('add');
581 $UserData['grps'][0] = $this->DefaultGroup;
582 $this->_htmlUserForm($renderer, 'add', null, $UserData, 4);
590 msg($this->lang['updatesuccess'], 1);
592 msg($this->lang['updatefailed'], -1);
596 $renderer->doc .= "<p>" . $this->lang['notauthorized'] . "</p>\n";
618 $notes[] = sprintf($this->lang['note_group'], $groups);
625 …$renderer->doc .= " <tr><th>" . $this->lang["field"] . "</th><th>" . $this->lang["value"] . "…
629 …$this->_htmlInputField($renderer, $cmd . "_userid", "userid", $this->lang["user_id"], $user, $this
630 …$this->_htmlInputField($renderer, $cmd . "_userpass", "userpass", $this->lang["user_pass"], "", $t…
631 …$this->_htmlInputField($renderer, $cmd . "_username", "username", $this->lang["user_name"], $name,…
632 …$this->_htmlInputField($renderer, $cmd . "_usermail", "usermail", $this->lang["user_mail"], $mail,…
635 if ($this->_auth->canDo("modPass")) {
636 $notes[] = $this->lang['note_pass'];
638 $notes[] = $this->lang['note_notify'];
641 …$renderer->doc .= "<tr><td><label for=\"" . $cmd . "_usernotify\" >" . $this->lang["user_notify"] …
649 $this->_htmlFilterSettings($renderer, $indent + 10);
651 …t type=\"submit\" name=\"fn[" . $cmd . "]\" class=\"button\" value=\"" . $this->lang[$cmd] . "\" /…
694 if (!$this->_auth->canDo('addUser')) return false;
696 list($user, $pass, $name, $mail, $grps) = $this->_retrieveUser();
699 if ($this->_auth->canDo('modPass')) {
704 msg($this->lang['user_must_be_notified_with_generated_pwd'], -1);
705 msg($this->lang['add_fail'], -1);
711 msg($this->lang['add_fail'], -1);
716 if ($this->_auth->canDo('modName')) {
718 msg($this->lang['add_fail'], -1);
727 if ($this->_auth->canDo('modMail')) {
729 msg($this->lang['mail_required'], -1);
730 msg($this->lang['add_fail'], -1);
739 … if ($ok = $this->_auth->triggerUserMod('create', array($user, $pass, $name, $mail, $grps))) {
741 msg($this->lang['add_ok'], 1);
744 $this->_notifyUser($user, $pass);
747 msg($this->lang['add_fail'], -1);
762 if (!$this->_auth->canDo('delUser')) return false;
769 msg($this->lang['cant_delete_yourself'], -1);
776 $currentuser = $this->_auth->retrieveUsers(0, 100000, $currentfilter);
781 if (!in_array($g, $this->grplst)) {
782 msg($this->lang['cant_delete_if_more_groups'], -1);
789 $count = $this->_auth->triggerUserMod('delete', array($selected));
791 $text = str_replace('%d', $count, $this->lang['delete_ok']);
794 $part1 = str_replace('%d', $count, $this->lang['delete_ok']);
795 $part2 = str_replace('%d', (count($selected) - $count), $this->lang['delete_fail']);
812 msg($this->lang['notify_ok'], 1);
814 msg($this->lang['notify_fail'], -1);
822 if (empty($this->_filter)) return '';
823 return (isset($this->_filter[$key]) ? hsc($this->_filter[$key]) : '');
829 … $renderer->doc .= "<input type=\"hidden\" name=\"start\" value=\"" . $this->_start . "\" />";
831 foreach ($this->_filter as $key => $filter) {
863 $this->_filter = array();
870 list($user, $pass, $name, $mail, $grps) = $this->_retrieveUser(false);
871 if (!empty($user)) $this->_filter['user'] = str_replace(' ', '_', $user);
872 if (!empty($name)) $this->_filter['name'] = $name;
873 if (!empty($mail)) $this->_filter['mail'] = $mail;
874 if (!empty($grps)) $this->_filter['grps'] = str_replace(' ', '_', join('|', $grps));
878 $this->_filter['grps'] = $this->DefaultGroup;
904 if ($this->_start >= $this->_user_total) {
905 $this->_start = $this->_user_total - $this->_pagesize;
907 if ($this->_start < 0) $this->_start = 0;
909 $this->_last = min($this->_user_total, $this->_start + $this->_pagesize);
920 $buttons['start'] = $buttons['prev'] = ($this->_start == 0) ? $disabled : '';
922 if ($this->_user_total == -1) {
926 …$buttons['last'] = $buttons['next'] = (($this->_start + $this->_pagesize) >= $this->_user_total) ?…