DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:groupusers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:groupusers [2014-02-07 10:10] – [Additional] 77.87.228.67plugin:groupusers [2024-01-07 14:03] (current) Aleksandr
Line 1: Line 1:
-====== groupusers plugin ======+====== groupusers Plugin ======
  
 ---- plugin ---- ---- plugin ----
Line 6: Line 6:
 email      : dokuwiki@cosmocode.de email      : dokuwiki@cosmocode.de
 type       : syntax type       : syntax
-lastupdate : 2009-07-09 +lastupdate : 2023-09-28 
-compatible : 2008-05-05+compatible : Greebo, Hogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 17: Line 17:
 bugtracker : https://github.com/cosmocode/groupusers/issues bugtracker : https://github.com/cosmocode/groupusers/issues
 ---- ----
 +
 +[[https://www.cosmocode.de/en/open-source/dokuwiki-plugins/|{{ https://www.cosmocode.de/static/img/dokuwiki/dwplugins.png?recache|A CosmoCode Plugin}}]]
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-[[http://www.cosmocode.de/en/wiki/dokuwiki/plugins|{{ http://www.cosmocode.de/_media/en/wiki/dokuwiki/cosmologo.png|A CosmoCode Plugin}}]] +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually. +
- +
-  * [[https://github.com/cosmocode/groupusers/zipball/master]]+
  
 === Changes === === Changes ===
Line 42: Line 41:
      
 ===== Additional ===== ===== Additional =====
 +
   * First Column User Link   * First Column User Link
   * Email to all   * Email to all
-Sea remarks in syntax.php+See remarks in syntax.php
  
 <file php syntax.php> <file php syntax.php>
Line 123: Line 123:
         global $lang;         global $lang;
  global $PetMail; //thorsten@th-petersen.de ergänzt  global $PetMail; //thorsten@th-petersen.de ergänzt
 +                global $conf; //elaubmeyer@gmx.de ergänzt
  
         if (!method_exists($auth,"retrieveUsers")) return false;         if (!method_exists($auth,"retrieveUsers")) return false;
Line 128: Line 129:
             $users = array();             $users = array();
             foreach ($data[0] as $grp) {             foreach ($data[0] as $grp) {
-                $getuser = $auth->retrieveUsers(0,-1,array('grps'=>'^'.preg_quote($grp,'/').'$'));+                if ($conf['authtype'] == "authplain"){ //elaubmeyer@gmx.de ergänzt 
 + $first = 0; 
 + $limit = -1; 
 + $filter = array('grps'=>'^'.preg_quote($grp,'/').'$'); 
 +  
 + } else {// Wenn in SQL-Statements kein Regexp angegeben ist, wird das Statement nicht verarbeitet. Auch mit $limit = -1 ist ebbe! 
 + $first = 0; 
 + $limit = 0; 
 + $filter = array('grps' => $grp); 
 +
 +  
 +                $getuser = $auth->retrieveUsers($first, $limit, $filter); 
 +                 
 +                 
 +                //$getuser = $auth->retrieveUsers(0,-1,array('grps'=>'^'.preg_quote($grp,'/').'$'));
                 $users = array_merge($users,$getuser);                 $users = array_merge($users,$getuser);
             }             }
plugin/groupusers.1391764224.txt.gz · Last modified: 2014-02-07 10:10 by 77.87.228.67

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki