From 0440ff150cefe9088c8aa126e646f901c69a7793 Mon Sep 17 00:00:00 2001 From: chris <chris@jalakai.co.uk> Date: Wed, 25 Jan 2006 01:07:31 +0100 Subject: [PATCH] user manager plugin darcs-hash:20060125000731-9b6ab-f42d90c270edd795038b814516a1da90c0824e71.gz --- lib/plugins/usermanager/admin.php | 420 +++++++++++++++++++ lib/plugins/usermanager/images/search.png | Bin 0 -> 733 bytes lib/plugins/usermanager/images/user_edit.png | Bin 0 -> 1058 bytes lib/plugins/usermanager/lang/de/add.txt | 1 + lib/plugins/usermanager/lang/de/delete.txt | 1 + lib/plugins/usermanager/lang/de/edit.txt | 1 + lib/plugins/usermanager/lang/de/intro.txt | 1 + lib/plugins/usermanager/lang/de/lang.php | 48 +++ lib/plugins/usermanager/lang/de/list.txt | 1 + lib/plugins/usermanager/lang/en/add.txt | 1 + lib/plugins/usermanager/lang/en/delete.txt | 1 + lib/plugins/usermanager/lang/en/edit.txt | 1 + lib/plugins/usermanager/lang/en/intro.txt | 1 + lib/plugins/usermanager/lang/en/lang.php | 49 +++ lib/plugins/usermanager/lang/en/list.txt | 1 + lib/plugins/usermanager/lang/fr/add.txt | 1 + lib/plugins/usermanager/lang/fr/delete.txt | 1 + lib/plugins/usermanager/lang/fr/edit.txt | 1 + lib/plugins/usermanager/lang/fr/intro.txt | 1 + lib/plugins/usermanager/lang/fr/lang.php | 25 ++ lib/plugins/usermanager/lang/fr/list.txt | 2 + 21 files changed, 558 insertions(+) create mode 100644 lib/plugins/usermanager/admin.php create mode 100644 lib/plugins/usermanager/images/search.png create mode 100644 lib/plugins/usermanager/images/user_edit.png create mode 100644 lib/plugins/usermanager/lang/de/add.txt create mode 100644 lib/plugins/usermanager/lang/de/delete.txt create mode 100644 lib/plugins/usermanager/lang/de/edit.txt create mode 100644 lib/plugins/usermanager/lang/de/intro.txt create mode 100644 lib/plugins/usermanager/lang/de/lang.php create mode 100644 lib/plugins/usermanager/lang/de/list.txt create mode 100644 lib/plugins/usermanager/lang/en/add.txt create mode 100644 lib/plugins/usermanager/lang/en/delete.txt create mode 100644 lib/plugins/usermanager/lang/en/edit.txt create mode 100644 lib/plugins/usermanager/lang/en/intro.txt create mode 100644 lib/plugins/usermanager/lang/en/lang.php create mode 100644 lib/plugins/usermanager/lang/en/list.txt create mode 100644 lib/plugins/usermanager/lang/fr/add.txt create mode 100644 lib/plugins/usermanager/lang/fr/delete.txt create mode 100644 lib/plugins/usermanager/lang/fr/edit.txt create mode 100644 lib/plugins/usermanager/lang/fr/intro.txt create mode 100644 lib/plugins/usermanager/lang/fr/lang.php create mode 100644 lib/plugins/usermanager/lang/fr/list.txt diff --git a/lib/plugins/usermanager/admin.php b/lib/plugins/usermanager/admin.php new file mode 100644 index 000000000..6952a6cf2 --- /dev/null +++ b/lib/plugins/usermanager/admin.php @@ -0,0 +1,420 @@ +<?php +/* + * User Manager + * + * Dokuwiki Admin Plugin + * + * This version of the user manager has been modified to only work with + * objectified version of auth system + * + * @author neolao <neolao@neolao.com> + * @author Chris Smith <chris@jalakai.co.uk> + */ +if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/'); +if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); +if(!defined('DOKU_PLUGIN_IMAGES')) define('DOKU_PLUGIN_IMAGES',DOKU_BASE.'lib/plugins/usermanager/images/'); +require_once(DOKU_PLUGIN.'admin.php'); + +/** + * All DokuWiki plugins to extend the admin function + * need to inherit from this class + */ +class admin_plugin_usermanager extends DokuWiki_Admin_Plugin { + + var $_auth = null; // auth object + var $_user_total = 0; // number of registered users + var $_filter = array(); // user selection filter(s) + var $_start = 0; // index of first user to be displayed + var $_last = 0; // index of the last user to be displayed + var $_pagesize = 20; // number of users to list on one page + var $_user_edit = null; // set to user selected for editing + + /** + * Constructor + */ + function admin_plugin_usermanager(){ + global $auth; + + $this->setupLocale(); + if (isset($auth)) $this->_auth = & $auth; + } + + /** + * return some info + */ + function getInfo(){ + $disabled = is_null($this->_auth) ? '(disabled)' : ''; + + return array( + 'author' => 'Chris Smith', + 'email' => 'chris@jalakai.co.uk', + 'date' => '2005-11-24', + 'name' => 'User Manager', + 'desc' => 'Manage users '.$disabled, + 'url' => 'http://wiki.splitbrain.org/plugin:user_manager', + ); + } + /** + * return prompt for admin menu + */ + function getMenuText($language) { + + if (!is_null($this->_auth)) + return parent::getMenuText($language); + + return $this->getLang["menu"]." (objectified auth only)"; + } + + /** + * return sort order for position in admin menu + */ + function getMenuSort() { + return 2; + } + + /** + * handle user request + */ + function handle() { + global $ID; + + if (is_null($this->_auth)) return false; + + // extract the command and any specific parameters + // submit button name is of the form - fn[cmd][param(s)] + $fn = $_REQUEST['fn']; + + if (is_array($fn)) { + $cmd = key($fn); + $param = is_array($fn[$cmd]) ? key($fn[$cmd]) : null; + } else { + $cmd = $fn; + $param = null; + } + + if ($cmd != "search") { + $this->_start = $_REQUEST['start']; + $this->_filter = $this->_retrieveFilter(); + } + + switch($cmd){ + case "add" : $this->_addUser(); break; + case "delete" : $this->_deleteUser(); break; + case "modify" : $this->_modifyUser(); break; + case "edit" : $this->_edit_user = $param; break; // no extra handling required - only html + case "search" : $this->_setFilter($param); + $this->_start = 0; + break; + } + + $this->_user_total = $this->_auth->getUserCount($this->_filter); + + // page handling + switch($cmd){ + case 'start' : $this->_start = 0; break; + case 'prev' : $this->_start -= $this->_pagesize; break; + case 'next' : $this->_start += $this->_pagesize; break; + case 'last' : $this->_start = $this->_user_total; break; + } + $this->_validatePagination(); + } + + /** + * output appropriate html + */ + function html() { + global $ID; + + if(is_null($this->_auth)) { + print $this->lang['badauth']; + return false; + } + + $user_list = $this->_auth->retrieveUsers($this->_start, $this->_pagesize, $this->_filter); + $users = array_keys($user_list); + + $page_buttons = $this->_pagination(); + $edit_disable = $this->_auth->canDo('modifyUser') ? '' : 'disabled="disabled"'; + $delete_disable = $this->_auth->canDo('deleteUsers') ? '' : 'disabled="disabled"'; + + print $this->locale_xhtml('intro'); + print $this->locale_xhtml('list'); + + ptln("<div class=\"level2\" style=\"margin-bottom: 2em;\">"); + + if ($this->_user_total) { + ptln("<p>".sprintf($this->lang['summary'],$this->_start+1,$this->_last,$this->_user_total,$this->_auth->getUserCount())."</p>"); + } else { + ptln("<p>".sprintf($this->lang['nonefound'],$this->_auth->getUserCount())."</p>"); + } + ptln("<form action=\"".wl($ID)."\" method=\"post\">"); + ptln(" <table class=\"inline\">"); + ptln(" <thead>"); + ptln(" <tr>"); + ptln(" <th colspan=\"2\"> </th><th>".$this->lang["user_id"]."</th><th>".$this->lang["user_name"]."</th><th>".$this->lang["user_mail"]."</th><th>".$this->lang["user_groups"]."</th>"); + ptln(" </tr>"); + + ptln(" <tr>"); +// ptln(" <td colspan=\"2\"><input type=\"submit\" name=\"fn[search][new]\" value=\"".$this->lang['search']."\" /></td>"); + ptln(" <td colspan=\"2\" style=\"vertical-align:middle; text-align:right;\"><input type=\"image\" src=\"".DOKU_PLUGIN_IMAGES."search.png\" name=\"fn[search][new]\" title=\"".$this->lang['search_prompt']."\" alt=\"".$this->lang['search']."\" /></td>"); + ptln(" <td><input type=\"text\" name=\"userid\" value=\"".$this->_htmlFilter('user')."\" /></td>"); + ptln(" <td><input type=\"text\" name=\"username\" value=\"".$this->_htmlFilter('name')."\" /></td>"); + ptln(" <td><input type=\"text\" name=\"usermail\" value=\"".$this->_htmlFilter('mail')."\" /></td>"); + ptln(" <td><input type=\"text\" name=\"usergroups\" value=\"".$this->_htmlFilter('grps')."\" /></td>"); + ptln(" </tr>"); + ptln(" </thead>"); + + if ($this->_user_total) { + ptln(" <tbody>"); + foreach ($user_list as $user => $userinfo) { + extract($userinfo); + $groups = join(', ',$grps); + ptln(" <tr valign=\"top\" align=\"left\">"); + ptln(" <td class=\"centeralign\"><input type=\"checkbox\" name=\"delete[".$user."]\" ".$delete_disable." /></td>"); +// ptln(" <td class=\"centeralign\"><input type=\"submit\" name=\"fn[edit][".$user."]\" ".$edit_disable." value=\"".$this->lang['edit']."\"/></td>"); + ptln(" <td class=\"centeralign\"><input type=\"image\" name=\"fn[edit][".$user."]\" ".$edit_disable." src=\"".DOKU_PLUGIN_IMAGES."user_edit.png\" title=\"".$this->lang['edit_prompt']."\" alt=\"".$this->lang['edit']."\"/></td>"); + ptln(" <td>".hsc($user)."</td><td>".hsc($name)."</td><td>".hsc($mail)."</td><td>".hsc($groups)."</td>"); + ptln(" </tr>"); + } + ptln(" </tbody>"); + } + + ptln(" <tbody>"); + ptln(" <tr><td colspan=\"6\" style=\"text-align:center\">"); + ptln(" <span style=\"float:left\">"); + ptln(" <input type=\"submit\" name=\"fn[delete]\" ".$delete_disable." value=\"".$this->lang['delete_selected']."\"/>"); + ptln(" </span>"); + ptln(" <span style=\"float:right\">"); + ptln(" <input type=\"submit\" name=\"fn[start]\" ".$page_buttons['start']." value=\"".$this->lang['start']."\" />"); + ptln(" <input type=\"submit\" name=\"fn[prev]\" ".$page_buttons['prev']." value=\"".$this->lang['prev']."\" />"); + ptln(" <input type=\"submit\" name=\"fn[next]\" ".$page_buttons['next']." value=\"".$this->lang['next']."\" />"); + ptln(" <input type=\"submit\" name=\"fn[last]\" ".$page_buttons['last']." value=\"".$this->lang['last']."\" />"); + ptln(" </span>"); + ptln(" <input type=\"submit\" name=\"fn[search][clear]\" value=\"".$this->lang['clear']."\" />"); + ptln(" </td></tr>"); + ptln(" </tbody>"); + ptln(" </table>"); + ptln(" <input type=\"hidden\" name=\"do\" value=\"admin\" />"); + ptln(" <input type=\"hidden\" name=\"page\" value=\"usermanager\" />"); + + $this->_htmlFilterSettings(2); + + ptln("</form>"); + ptln("</div>"); + + $style = $this->_edit_user ? " style=\"width: 46%; float: left;\"" : ""; + + if ($this->_auth->canDo('createUser')) { + ptln("<div".$style.">"); + print $this->locale_xhtml('add'); + ptln(" <div class=\"level2\">"); + + $this->_htmlUserForm('add',null,4); + + ptln(" </div>"); + ptln("</div>"); + } + + if($this->_edit_user && $this->_auth->canDo('modifyUser')){ + ptln("<div".$style.">"); + print $this->locale_xhtml('edit'); + ptln(" <div class=\"level2\">"); + + $this->_htmlUserForm('modify',$this->_edit_user,4); + + ptln(" </div>"); + ptln("</div>"); + } + } + + function _htmlUserForm($cmd,$user=null,$indent=0) { + + if ($user) { + extract($this->_auth->getUserData($user)); + $groups = join(',',$grps); + } else { + $user = $name = $mail = $groups = ''; + } + + ptln("<form action=\"".wl($ID)."\" method=\"post\">",$indent); + ptln(" <table class=\"inline\">",$indent); + ptln(" <thead>",$indent); + ptln(" <tr><th>".$this->lang["field"]."</th><th>".$this->lang["value"]."</th></tr>",$indent); + ptln(" </thead>",$indent); + ptln(" <tbody>",$indent); + ptln(" <tr><td><label for=\"".$cmd."_userid\" >".$this->lang["user_id"]." : </label></td><td><input type=\"text\" id=\"".$cmd."_userid\" name=\"userid\" value=\"".$user."\" /></td></tr>",$indent); + ptln(" <tr><td><label for=\"".$cmd."_userpass\" >".$this->lang["user_pass"]." : </label></td><td><input type=\"text\" id=\"".$cmd."_userpass\" name=\"userpass\" value=\"\" /></td></tr>",$indent); + ptln(" <tr><td><label for=\"".$cmd."_username\" >".$this->lang["user_name"]." : </label></td><td><input type=\"text\" id=\"".$cmd."_username\" name=\"username\" value=\"".$name."\" /></td></tr>",$indent); + ptln(" <tr><td><label for=\"".$cmd."_usermail\" >".$this->lang["user_mail"]." : </label></td><td><input type=\"text\" id=\"".$cmd."_usermail\" name=\"usermail\" value=\"".$mail."\" /></td></tr>",$indent); + ptln(" <tr><td><label for=\"".$cmd."_usergroups\" >".$this->lang["user_groups"]." : </label></td><td><input type=\"text\" id=\"".$cmd."_usergroups\" name=\"usergroups\" value=\"".$groups."\" /></td></tr>",$indent); + ptln(" </tbody>",$indent); + ptln(" <tbody>",$indent); + ptln(" <tr>",$indent); + ptln(" <td colspan=\"2\">",$indent); + ptln(" <input type=\"hidden\" name=\"do\" value=\"admin\" />",$indent); + ptln(" <input type=\"hidden\" name=\"page\" value=\"usermanager\" />",$indent); + + // save current $user, we need this to access details if the name is changed + if ($user) + ptln(" <input type=\"hidden\" name=\"userid_old\" value=\"".$user."\" />",$indent); + + $this->_htmlFilterSettings($indent+10); + + ptln(" <input type=\"submit\" name=\"fn[".$cmd."]\" value=\"".$this->lang[$cmd]."\" />",$indent); + ptln(" </td>",$indent); + ptln(" </tr>",$indent); + ptln(" </tbody>",$indent); + ptln(" </table>",$indent); + ptln("</form>",$indent); + } + + function _htmlFilter($key) { + if (empty($this->_filter)) return ''; + return (isset($this->_filter[$key]) ? hsc($this->_filter[$key]) : ''); + } + + function _htmlFilterSettings($indent=0) { + + ptln("<input type=\"hidden\" name=\"start\" value=\"".$this->_start."\" />",$indent); + + foreach ($this->_filter as $key => $filter) { + ptln("<input type=\"hidden\" name=\"filter[".$key."]\" value=\"".hsc($filter)."\" />",$indent); + } + } + + function _addUser(){ + + if (!$this->_auth->canDo('createUser')) return false; + + list($user,$pass,$name,$mail,$grps) = $this->_retrieveUser(); + if (empty($user)) return false; + + return $this->_auth->createUser($user,$pass,$name,$mail,$grps); + } + + /** + * Delete user + */ + function _deleteUser(){ + + if (!$this->_auth->canDo('deleteUsers')) return false; + + $selected = $_REQUEST['delete']; + if (!is_array($selected) || empty($selected)) return false; + $selected = array_keys($selected); + + $count = $this->_auth->deleteUsers($selected); + if ($count == count($selected)) { + $text = str_replace('%d', $count, $this->lang['delete_ok']); + msg("$text.", 1); + } else { + $part1 = str_replace('%d', $count, $this->lang['delete_ok']); + $part2 = str_replace('%d', (count($selected)-$count), $this->lang['delete_fail']); + msg("$part1, $part2",-1); + } + } + + /** + * Modify user + */ + function _modifyUser(){ + if (!$this->_auth->canDo('modifyUser')) return false; + + list($user,$pass,$name,$mail,$grps) = $this->_retrieveUser(); + if (empty($user)) return false; + + $changes = array(); + $user_old = cleanID(preg_replace('/.*:/','',$_REQUEST['userid_old'])); + if ($user != $user_old) { + // check $user doesn't already exist + if ($this->_auth->getUserData($user)) { + msg(sprintf($this->lang['update_exists'],$user),-1); + $this->_edit_user = $user = $user_old; + } else { + $changes['user'] = $user; + $user = $user_old; + } + } + + if (!empty($pass)) $changes['pass'] = $pass; + if (!empty($name)) $changes['name'] = $name; + if (!empty($mail)) $changes['mail'] = $mail; + if (!empty($grps)) $changes['grps'] = $grps; + + if ($this->_auth->modifyUser($user, $changes)) { + msg($this->lang['update_ok'],1); + } else { + msg($this->lang['update_fail'],-1); + } + } + + /* + * retrieve & clean user data from the form + * return an array(user, password, full name, email, array(groups)) + */ + function _retrieveUser($clean=true) { + + $user[0] = ($clean) ? cleanID(preg_replace('/.*:/','',$_REQUEST['userid'])) : $_REQUEST['userid']; + $user[1] = $_REQUEST['userpass']; + $user[2] = $_REQUEST['username']; + $user[3] = $_REQUEST['usermail']; + $user[4] = preg_split('/\s*,\s*/',$_REQUEST['usergroups'],-1,PREG_SPLIT_NO_EMPTY); + + if (is_array($user[4]) && (count($user[4]) == 1) && (trim($user[4][0]) == '')) { + $user[4] = null; + } + + return $user; + } + + function _setFilter($op) { + + $this->_filter = array(); + + if ($op == 'new') { + list($user,$pass,$name,$mail,$grps) = $this->_retrieveUser(false); + + if (!empty($user)) $this->_filter['user'] = $user; + if (!empty($name)) $this->_filter['name'] = $name; + if (!empty($mail)) $this->_filter['mail'] = $mail; + if (!empty($grps)) $this->_filter['grps'] = join('|',$grps); + } + } + + function _retrieveFilter() { + + $t_filter = $_REQUEST['filter']; + if (!is_array($t_filter)) return array(); + + // messy, but this way we ensure we aren't getting any additional crap from malicious users + $filter = array(); + + if (isset($t_filter['user'])) $filter['user'] = $t_filter['user']; + if (isset($t_filter['name'])) $filter['name'] = $t_filter['name']; + if (isset($t_filter['mail'])) $filter['mail'] = $t_filter['mail']; + if (isset($t_filter['grps'])) $filter['grps'] = $t_filter['grps']; + + return $filter; + } + + function _validatePagination() { + + if ($this->_start >= $this->_user_total) { + $this->_start = $this->_user_total - $this->_pagesize; + } + if ($this->_start < 0) $this->_start = 0; + + $this->_last = min($this->_user_total, $this->_start + $this->_pagesize); + } + + /* + * return an array of strings to enable/disable pagination buttons + */ + function _pagination() { + + $buttons['start'] = $buttons['prev'] = ($this->_start == 0) ? 'disabled="disabled"' : ''; + $buttons['last'] = $buttons['next'] = (($this->_start + $this->_pagesize) >= $this->_user_total) ? 'disabled="disabled"' : ''; + + return $buttons; + } +} diff --git a/lib/plugins/usermanager/images/search.png b/lib/plugins/usermanager/images/search.png new file mode 100644 index 0000000000000000000000000000000000000000..1aa445f037cbf2d88f9e0317d3e0824d6e0811e8 GIT binary patch literal 733 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJbFq_W2nPqp?T7vk7#J8W0(?ST z|NsC04~YK#|M&OL-#@?q{`vLy_pdMSo_~Gw`0=}6kKX-!^!DfHR}UY){dw=rulsL) zetdE7-s_)tU;VuK>d%c=e{Q|}ar4EG>(9Smd;a6v^Y53R{kZ(}`^Bf<FFpBw?#b^9 zkH1}b^!41MZ)YF<JoD(s*@s`xJp6Y0;kUC7zMgvU_2m7pC+~eeasTUydtZ;=`+DN; z=R<dY9lQJW=-sb}?|eCN`{R*2Uk={>ap?A!gSWmMxb<b<&Ch#peBOKg^X}`PcV7Fp z``YLISKjQs`eDbF&s#5ld2xF6_6u)!oqw_Q{F_bZ-mO3PVZ*5x>rTFSa&Ye5t(|js z-=DMV{>+{CudZvGwCVP-6^-YXl$}~qeP&T<`|9fxR~&C&ajA9LrG{mf56#J+xp3X_ znQ2F-r_?OGuxm=n)aeWM^oH(k4_IIAu(Z%{Zo1O+c!?h`<mLc_G@~TQFPH%si1YyM zk7T5Qc5)VYL>4nJaD4z_MyE9<Gk}5$C9V-A!TD(=<%vb948DoUMftg@DVd21Zka`? z<@rU~#R|R=yC-U?0M*X%ba4!+n3J4vfT`tc?p&Fxk`HSvE$!^=0@=mYG~!)m1_uQO z2A()8r<I_kv2xX_#fuj|;1?};6dHQ<s;Tj0j%Kck582t$l95qfu8ypCj)tB+vu4ei zElLZRj_D;?IqX}Luf*=saPo4nYgE*EeH(?D>{^ecBt+#Ug<r|cQEGS+Gi`#!`x_xC u{2ScVe=b>E(W$Gb%W-w`nKw7~@G-RMh?nx3N%H{R$>8bg=d#Wzp$P!v;muM2 literal 0 HcmV?d00001 diff --git a/lib/plugins/usermanager/images/user_edit.png b/lib/plugins/usermanager/images/user_edit.png new file mode 100644 index 0000000000000000000000000000000000000000..8ca490eaf4df5f93debd4270c1c844ad67be326a GIT binary patch literal 1058 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJbFq_W2nPqp?T7vk7#JA;1^9%x z{{R2~-@pHVe*gOW`}?ooe}De^`}OO$zu%Al|NQjtw?qFwJ^1_W$mdUAzQ2F^_3h(t zukL(*ar5WnO`o6a`t#t(wI|=MJo@tP{@EXoV!uC%{{ArP`~Bpv_oKhv&3SiY<JUWJ zU+=^(dGi1JmG$2)uX}ZQ*N016-d|et=~~sd3oE`|SpMz&(vMfF-(9KwaJlmJ<@y)r zx4gSt`Qyx-cW0NsI<xxSsbz03RQx<S@#pa=ACFFddn)(&>GByD|L-~Z@X5*0)hGTu zKhXVtPjk_g|L=A+J>OUUba&sA?Om@nSKQy)d2#!MSDQ*RPyWBWqwMOos@&uMmh8NL zdt+<M?yoyGZJxK~R>uB+ZM*khTv>l+Wx<W55y{*BUtgS@u>Jp|MS)iqWnW#CxnseE z6LSi0%nG?M*KOOJo`&TcZcKH*G%aw-yv=8(Mb<9fykmOJ(HWjsCc3Sf+O}kB$AKv> zRnsr+>T%lF<+Hy_?_{fE$)x4mJ3P-fnXKw`zF4PqzD|2}WAwRdjZ+ocrOgXYl<V%R zl3H2qx1!oNzW(@{0{!K=CW|uli?iyNBq>Lv&2LQ6?M%{+O_`RQ+%Z2wXm*6q%m^XV zg#D9)1t$f_O!F6-?#=HNI?*X)&IE6PRv%H9kgj%b!7eZUc5nW6Fa9nM{w7Z;d7mRi zE|S@<O6_($rH(=}9(#)H`STn^GwsEqoF!82WY*hH?F1%_RV6`w!3@BpFf_nr<qtQ2 zuI4Q8h%9Dc;Q9c<j81DzW&i~hN?apKg7ec#$`gxH8GI9yi}G_*Q!*13+%k(&%kzt} zixqq$c2Cq&0jj;}>EaktF(*0U0Gp7y-)w7r>4W`quiUmyJa<WE$AKsFA~&b`#_ti* z+n{k+HScCq>*<*ZOu9_Z&MD?4`8p-mac)v*^h#Fd<yAf$qb|yK)kI<b(q%Ut0s}V( zgkSLUw3yY{Xj;&jQCnNP&un{-s|$}l^Wyh4f~@T46KcyUIk#%mv9Z0D+!ki%=sE38 z(WIzIMh9W7m|$h)%X=-B9x0t<o7KqlwD0Y|qxasKT~gDG{dU!X@#(5}|BTlC*mY*o z%C$?Y6v7QQKP{axQ*^6u=99!W%Tm{LM-BNYybODmTKsv)(BcU6B!j1`pUXO@geCy? C3UsUh literal 0 HcmV?d00001 diff --git a/lib/plugins/usermanager/lang/de/add.txt b/lib/plugins/usermanager/lang/de/add.txt new file mode 100644 index 000000000..925fa5042 --- /dev/null +++ b/lib/plugins/usermanager/lang/de/add.txt @@ -0,0 +1 @@ +===== Benutzer hinzufügen ===== diff --git a/lib/plugins/usermanager/lang/de/delete.txt b/lib/plugins/usermanager/lang/de/delete.txt new file mode 100644 index 000000000..4f3bbbd03 --- /dev/null +++ b/lib/plugins/usermanager/lang/de/delete.txt @@ -0,0 +1 @@ +===== Benutzer löschen ===== diff --git a/lib/plugins/usermanager/lang/de/edit.txt b/lib/plugins/usermanager/lang/de/edit.txt new file mode 100644 index 000000000..9419200dd --- /dev/null +++ b/lib/plugins/usermanager/lang/de/edit.txt @@ -0,0 +1 @@ +===== Benutzer ändern ===== diff --git a/lib/plugins/usermanager/lang/de/intro.txt b/lib/plugins/usermanager/lang/de/intro.txt new file mode 100644 index 000000000..dab4d2a06 --- /dev/null +++ b/lib/plugins/usermanager/lang/de/intro.txt @@ -0,0 +1 @@ +====== Benutzer pflegen... ====== diff --git a/lib/plugins/usermanager/lang/de/lang.php b/lib/plugins/usermanager/lang/de/lang.php new file mode 100644 index 000000000..4ce96bc81 --- /dev/null +++ b/lib/plugins/usermanager/lang/de/lang.php @@ -0,0 +1,48 @@ +<?php +/** + * english language file + */ + +// settings must be present and set appropriately for the language +$lang['encoding'] = 'utf-8'; +$lang['direction'] = 'ltr'; + +// for admin plugins, the menu prompt to be displayed in the admin menu +// if set here, the plugin doesn't need to override the getMenuText() method +$lang['menu'] = 'Benutzer pflegen...'; + +// custom language strings for the plugin +$lang['badauth'] = 'Ungültiger Methode zur Autentifizierung'; + +$lang['user_id'] = 'Benutzer'; +$lang['user_pass'] = 'Passwort'; +$lang['user_name'] = 'Name'; +$lang['user_mail'] = 'Email'; +$lang['user_groups'] = 'Gruppen'; + +$lang['field'] = 'Feld'; +$lang['value'] = 'Wert'; +$lang['add'] = 'Hinzufügen'; +$lang['delete'] = 'Löschen'; +$lang['delete_selected'] = 'Ausgewählte löschen'; +$lang['edit'] = 'Ändern'; +$lang['edit_prompt'] = 'Benutzerdaten ändern'; +$lang['modify'] = 'Speichern'; +$lang['search'] = 'Suchen'; +$lang['search_prompt'] = 'Benutzerdaten filtern'; +$lang['clear'] = 'Filter zurücksetzen'; +$lang['filter'] = 'Filter'; + +$lang['summary'] = 'Zeige Benutzer %1$d-%2$d von %3$d gefundenen. %4$d Benutzer insgesamt.'; +$lang['nonefound'] = 'Keine Benutzer gefunden. %d Benutzer insgesamt.'; +$lang['delete_ok'] = '%d Benutzer gelöscht'; +$lang['delete_fail'] = '%d konnten nicht gelöscht werden.'; +$lang['update_ok'] = 'Benutzerdaten erfolgreich geändert.'; +$lang['update_fail'] = 'Änderung der Benutzerdaten fehlgeschlagen.'; + +$lang['start'] = 'Anfang'; +$lang['prev'] = 'Vorherige'; +$lang['next'] = 'Nächste'; +$lang['last'] = 'Ende'; + +?> diff --git a/lib/plugins/usermanager/lang/de/list.txt b/lib/plugins/usermanager/lang/de/list.txt new file mode 100644 index 000000000..8d6d5fb46 --- /dev/null +++ b/lib/plugins/usermanager/lang/de/list.txt @@ -0,0 +1 @@ +===== Benutzerliste ===== diff --git a/lib/plugins/usermanager/lang/en/add.txt b/lib/plugins/usermanager/lang/en/add.txt new file mode 100644 index 000000000..9afecb5cd --- /dev/null +++ b/lib/plugins/usermanager/lang/en/add.txt @@ -0,0 +1 @@ +===== Add user ===== diff --git a/lib/plugins/usermanager/lang/en/delete.txt b/lib/plugins/usermanager/lang/en/delete.txt new file mode 100644 index 000000000..c3ca90dbb --- /dev/null +++ b/lib/plugins/usermanager/lang/en/delete.txt @@ -0,0 +1 @@ +===== Delete user ===== diff --git a/lib/plugins/usermanager/lang/en/edit.txt b/lib/plugins/usermanager/lang/en/edit.txt new file mode 100644 index 000000000..4d02dfddc --- /dev/null +++ b/lib/plugins/usermanager/lang/en/edit.txt @@ -0,0 +1 @@ +===== Edit user ===== diff --git a/lib/plugins/usermanager/lang/en/intro.txt b/lib/plugins/usermanager/lang/en/intro.txt new file mode 100644 index 000000000..73bf55613 --- /dev/null +++ b/lib/plugins/usermanager/lang/en/intro.txt @@ -0,0 +1 @@ +====== User Manager ====== diff --git a/lib/plugins/usermanager/lang/en/lang.php b/lib/plugins/usermanager/lang/en/lang.php new file mode 100644 index 000000000..e76357872 --- /dev/null +++ b/lib/plugins/usermanager/lang/en/lang.php @@ -0,0 +1,49 @@ +<?php +/** + * english language file + */ + +// settings must be present and set appropriately for the language +$lang['encoding'] = 'utf-8'; +$lang['direction'] = 'ltr'; + +// for admin plugins, the menu prompt to be displayed in the admin menu +// if set here, the plugin doesn't need to override the getMenuText() method +$lang['menu'] = 'User Manager'; + +// custom language strings for the plugin +$lang['badauth'] = 'invalid auth mechanism'; + +$lang['user_id'] = 'User'; +$lang['user_pass'] = 'Password'; +$lang['user_name'] = 'Real Name'; +$lang['user_mail'] = 'Email'; +$lang['user_groups'] = 'Groups'; + +$lang['field'] = 'Field'; +$lang['value'] = 'Value'; +$lang['add'] = 'Add'; +$lang['delete'] = 'Delete'; +$lang['delete_selected'] = 'Delete Selected'; +$lang['edit'] = 'Edit'; +$lang['edit_prompt'] = 'Edit this user'; +$lang['modify'] = 'Save Changes'; +$lang['search'] = 'Search'; +$lang['search_prompt'] = 'Perform search'; +$lang['clear'] = 'Reset Search Filter'; +$lang['filter'] = 'Filter'; + +$lang['summary'] = 'Displaying users %1$d-%2$d of %3$d found. %4$d users total.'; +$lang['nonefound'] = 'No users found. %d users total.'; +$lang['delete_ok'] = '%d users deleted'; +$lang['delete_fail'] = '%d failed deleting.'; +$lang['update_ok'] = 'user updated sucessfully'; +$lang['update_fail'] = 'user update failed'; +$lang['update_exists'] = 'user name change failed, the specified user name (%s) already exists (any other changes will be applied).'; + +$lang['start'] = 'start'; +$lang['prev'] = 'previous'; +$lang['next'] = 'next'; +$lang['last'] = 'last'; + +?> diff --git a/lib/plugins/usermanager/lang/en/list.txt b/lib/plugins/usermanager/lang/en/list.txt new file mode 100644 index 000000000..54c45caf7 --- /dev/null +++ b/lib/plugins/usermanager/lang/en/list.txt @@ -0,0 +1 @@ +===== User List ===== diff --git a/lib/plugins/usermanager/lang/fr/add.txt b/lib/plugins/usermanager/lang/fr/add.txt new file mode 100644 index 000000000..e60b8b894 --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/add.txt @@ -0,0 +1 @@ +===== Ajouter un utilisateur ===== diff --git a/lib/plugins/usermanager/lang/fr/delete.txt b/lib/plugins/usermanager/lang/fr/delete.txt new file mode 100644 index 000000000..778f44192 --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/delete.txt @@ -0,0 +1 @@ +===== Supprimer un utilisateur ===== diff --git a/lib/plugins/usermanager/lang/fr/edit.txt b/lib/plugins/usermanager/lang/fr/edit.txt new file mode 100644 index 000000000..ec193eb5a --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/edit.txt @@ -0,0 +1 @@ +===== Modifier les informations d'un utilisateur ===== diff --git a/lib/plugins/usermanager/lang/fr/intro.txt b/lib/plugins/usermanager/lang/fr/intro.txt new file mode 100644 index 000000000..84987b0bf --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/intro.txt @@ -0,0 +1 @@ +====== Gestion des utilisateurs ====== diff --git a/lib/plugins/usermanager/lang/fr/lang.php b/lib/plugins/usermanager/lang/fr/lang.php new file mode 100644 index 000000000..5f64cc962 --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/lang.php @@ -0,0 +1,25 @@ +<?php +/** + * french language file + */ + +// settings must be present and set appropriately for the language +$lang['encoding'] = 'utf-8'; +$lang['direction'] = 'ltr'; + +// for admin plugins, the menu prompt to be displayed in the admin menu +// if set here, the plugin doesn't need to override the getMenuText() method +$lang['menu'] = 'Gestion des utilisateurs'; + +// custom language strings for the plugin +$lang["user_id"] = "Identifiant"; +$lang["user_pass"] = "Mot de passe"; +$lang["user_name"] = "Nom"; +$lang["user_mail"] = "E-mail"; +$lang["user_groups"] = "Groupes"; + +$lang["field"] = "Champ"; +$lang["value"] = "Valeur"; +$lang["add"] = "Ajouter"; +$lang["delete"] = "Supprimer"; +$lang["edit"] = "Modifier"; diff --git a/lib/plugins/usermanager/lang/fr/list.txt b/lib/plugins/usermanager/lang/fr/list.txt new file mode 100644 index 000000000..48804ddae --- /dev/null +++ b/lib/plugins/usermanager/lang/fr/list.txt @@ -0,0 +1,2 @@ +===== Liste ===== +La liste des utilisateurs -- GitLab