-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit a49c8d1
Showing
26 changed files
with
1,182 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
groupmanager | ||
======== | ||
|
||
_groupmanager_ is a simple group manager plugin for dokuwiki. | ||
It is based on the original plugin _groupmgr_ by Alex Forencich. | ||
The original plugin has not been updated since 2010. | ||
It actually even never left the devel-zone, but the idea is great! | ||
|
||
_groupmgr_ allowed easy modification of group membership by non-admins. | ||
This greatly simplifies management of collaborative projects by group-admins. | ||
_groupmanager_ adds functionality from the _usermanager_ by Christopher Smith to the original code of Alex Forencich. | ||
This way users can easily be found and added in wikis with many users. | ||
Also _groupmanager_ can be configured to add or delete users altogether if they are no member of a group. | ||
|
||
Installation | ||
------------ | ||
|
||
Unzip into lib/plugins directory | ||
|
||
Syntax | ||
------ | ||
|
||
Syntax: | ||
~~groupmanager|[groups to manage]|[allowed users and groups]~~ | ||
|
||
Examples | ||
-------- | ||
|
||
~~groupmanager|posters|@moderators~~ | ||
Members of group 'posters' can be managed by group 'moderators' | ||
|
||
~~groupmanager|groupa, groupb|joe, @admin~~ | ||
Members of 'groupa' and 'groupb' can be managed by user 'joe' | ||
and members of the group 'admin' | ||
|
||
Notes: | ||
|
||
1. Super user groups can only be managed by super users | ||
2. forbidden_groups configuration setting specifies groups that cannot be | ||
edited with the plugin | ||
3. Users cannot remove themselves from the group that grants them access | ||
to the group manager (including admins) | ||
4. The conf_namespace option specifies a separate namespace for configuration. | ||
When the config namespace is used, a placeholder tag (~~groupmanager~~) can be | ||
used in the actual page while the full tag is placed in the configuration | ||
namespace at config_namespace:ID | ||
5. If require_conf_namespace is set, all configuration options placed in the | ||
page are ignored, necesitating the use of the configuration namespace. | ||
For security reasons, this is the default configuration. | ||
|
||
|
||
|
||
|
||
|
||
This file was modified by IntelliJ IDEA 11.1.3 for binding GitHub repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
/** | ||
* Default settings for the groupmanager plugin | ||
* | ||
* @author Harald Ronge <[email protected]> | ||
* original author Alex Forencich <[email protected]> | ||
*/ | ||
|
||
$conf['forbidden_groups'] = ""; | ||
$conf['require_conf_namespace'] = 1; | ||
$conf['conf_namespace'] = "groupmanager"; | ||
$conf['allow_add_user'] = "0"; | ||
$conf['allow_delete_user'] = "0"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
/** | ||
* Options for the groupmanager plugin | ||
* | ||
* @author Harald Ronge <[email protected]> | ||
* original author Alex Forencich <[email protected]> | ||
*/ | ||
|
||
|
||
$meta['forbidden_groups'] = array('string'); | ||
$meta['require_conf_namespace'] = array('onoff'); | ||
$meta['conf_namespace'] = array('string'); | ||
$meta['allow_add_user'] = array('onoff'); | ||
$meta['allow_delete_user'] = array('onoff'); | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
===== Add user ===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
===== Delete user ===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
===== Edit user ===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
====== User Manager ====== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<?php | ||
/** | ||
* English language file for groupmanager plugin | ||
* | ||
* @author Harald Ronge <[email protected]> | ||
* base on groupmgr by Alex Forencich <[email protected]> | ||
*/ | ||
|
||
// menu entry for admin plugins | ||
$lang['menu'] = 'Group Manager'; | ||
|
||
// custom language strings for the plugin | ||
$lang['notauthorized'] = 'Error: not authorized'; | ||
$lang['updatesuccess'] = 'Updated successfully'; | ||
$lang['updatefailed'] = 'Update failed'; | ||
$lang['menu'] = 'User Manager'; | ||
$lang['btn_update_group'] = 'Update group'; | ||
|
||
//stolen from usermanager | ||
// custom language strings for the plugin | ||
$lang['noauth'] = '(user authentication not available)'; | ||
$lang['nosupport'] = '(user management not supported)'; | ||
|
||
$lang['badauth'] = 'invalid auth mechanism'; // should never be displayed! | ||
|
||
$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 User'; | ||
$lang['delete'] = 'Delete'; | ||
$lang['delete_selected'] = 'Delete selected user'; | ||
$lang['edit'] = 'Edit user'; | ||
$lang['edit_prompt'] = 'Edit this user'; | ||
$lang['modify'] = 'Save changes to user'; | ||
$lang['search'] = 'Search for user'; | ||
$lang['search_prompt'] = 'Search with filter-values'; | ||
$lang['search_default_group'] = 'Show only group members'; | ||
$lang['clear'] = 'Show everybody'; | ||
$lang['filter'] = 'Filter list with criteria'; | ||
|
||
$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 successfully'; | ||
$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['add_without_form'] = 'Trying to add user without form!'; | ||
$lang['cant_delete_yourself'] = "You can't delete yourself!"; | ||
$lang['cant_delete_if_more_groups'] = "User is part of other groups outside of this working group and can not be deleted"; | ||
|
||
$lang['start'] = 'start'; | ||
$lang['prev'] = 'previous'; | ||
$lang['next'] = 'next'; | ||
$lang['last'] = 'last'; | ||
|
||
// added after 2006-03-09 release | ||
$lang['edit_usermissing'] = 'Selected user not found, the specified user name may have been deleted or changed elsewhere.'; | ||
$lang['user_notify'] = 'Notify user'; | ||
$lang['note_notify'] = 'Notification emails are only sent if the user is given a new password.'; | ||
$lang['note_group'] = 'New users will be added to the default group (%s)'; | ||
$lang['note_pass'] = 'The password will be autogenerated if the field is left empty and notification of the user is enabled.'; | ||
$lang['add_ok'] = 'User added successfully'; | ||
$lang['add_fail'] = 'User addition failed'; | ||
$lang['notify_ok'] = 'Notification email sent'; | ||
$lang['notify_fail'] = 'Notification email could not be sent'; | ||
|
||
// required fields | ||
$lang['mail_required'] = "Mail is required field!"; | ||
$lang['user_must_be_notified_with_generated_pwd'] = "When generating a password the user must be notified! Choose a password yourself or check '".$lang['user_notify']."'."; | ||
|
||
//Setup VIM: ex: et ts=4 enc=utf-8 : |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
===== User List ===== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
/** | ||
* English language file for groupmanager plugin | ||
* | ||
* @author Harald Ronge <[email protected]> | ||
* original author Alex Forencich <[email protected]> | ||
*/ | ||
|
||
// for the configuration manager | ||
$lang['forbidden_groups'] = "List of forbidden groups"; | ||
$lang['require_conf_namespace'] = "Require configuration namespace"; | ||
$lang['conf_namespace'] = "Configuration namespace prefix"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
installed=Wed, 15 Aug 2012 10:59:03 +0200 | ||
url=http://github.com/haraldronge/groupmanager/zipball/master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
base groupmanager | ||
author Harald Ronge | ||
email [email protected] | ||
date 2010-11-28 | ||
name groupmanager plugin | ||
desc Embeddable group manager | ||
url http://www.turtur.nl/ | ||
original author Alex Forencich | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* Add JavaScript confirmation to the User Delete button | ||
*/ | ||
jQuery(function(){ | ||
jQuery('#usrmgr__del').click(function(){ | ||
return confirm(LANG.del_confirm); | ||
}); | ||
}); | ||
|
||
function MM_swapImgRestore() { //v3.0 | ||
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; | ||
} | ||
function MM_preloadImages() { //v3.0 | ||
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); | ||
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) | ||
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} | ||
} | ||
|
||
function MM_findObj(n, d) { //v4.01 | ||
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { | ||
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} | ||
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; | ||
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); | ||
if(!x && d.getElementById) x=d.getElementById(n); return x; | ||
} | ||
|
||
function MM_swapImage() { //v3.0 | ||
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) | ||
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* User Manager specific styles */ | ||
#user__manager tr.disabled { | ||
color: #6f6f6f; | ||
background: #e4e4e4; | ||
} | ||
#user__manager tr.user_info { | ||
vertical-align: top; | ||
} | ||
#user__manager div.edit_user { | ||
width: 46%; | ||
float: left; | ||
} | ||
#user__manager table { | ||
margin-bottom: 1em; | ||
} | ||
#user__manager input.button[disabled] { | ||
color: #ccc!important; | ||
border-color: #ccc!important; | ||
} | ||
/* IE won't understand but doesn't require it */ | ||
|
||
#nested { | ||
border-collapse: collapse; | ||
} | ||
|
||
#nested td { | ||
border-bottom: 5px solid #ccc; | ||
} |
Oops, something went wrong.