- Oct 30, 2018
-
-
Andreas Gohr authored
This adds a new method that capsulates the access check that has to be done to decide if an admin plugin's page should be shown to the user. The default implementation is the same as before, relying only on the forAdminOnly() method and the users' isadmin or ismanager status. Admin plugins themselves can override the method to do additional checks. In this patch, I added that to the usermanager plugin which will only return true if the current auth backend can list users. However the real idea behind this change is that the new method emits a new event called ADMINPLUGIN_ACCESS_CHECK which would allow plugins to overwrite it. This way it could be possible to give certain user groups access to certain admin plugins without giving them admin or manager permissions. Note: this does not change how the "Admin" link is shown, it still depends on ismanager or isadmin. A plugin as mentioned above would need to influence the display via the MENU_ITEMS_ASSEMBLY event. Note: this only covers the basic access check. Admin plugins may need further adjustments for access to other parts of the plugin (like AJAX components). An additional commit will update this for the bundled plugins.
-
- Nov 10, 2017
-
-
Andreas Gohr authored
This allows for using the functionality in class hierarchies that can not inherit from DokuWiki_Plugin.
-
- May 16, 2015
-
-
Christopher Smith authored
This was previously carried out in three separate places. Refactor that code to use the new function. Update tpl_pageTitle test to use a manager level admin plugin.
-
- Oct 01, 2014
-
-
Gerrit Uitslag authored
-
- Feb 17, 2014
-
-
Gerrit Uitslag authored
-
- Oct 15, 2013
-
-
Gerrit Uitslag authored
-
Gerrit Uitslag authored
-
- Sep 10, 2012
-
-
Michael Hamann authored
-
- Sep 10, 2011
-
-
Hakan Sandell authored
Function get_plugin_components() moved to extantion manager
-
- Aug 20, 2011
-
-
Piyush Mishra authored
-
- Aug 29, 2010
-
-
Andreas Gohr authored
-
- Mar 26, 2010
-
-
Michael Klier authored
-
- Jan 31, 2010
-
-
Andreas Gohr authored
Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
-
- Oct 20, 2009
-
-
Andreas Gohr authored
Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
-
- Jan 22, 2009
-
-
Chris Smith authored
(this allows it to be include and extended in preload.php) darcs-hash:20090122065852-f07c6-4e5069f3100174a396627c486561ff079c7a02e1.gz
-
- Jan 18, 2009
-
-
Chris Smith authored
This patch completely reworks pluginutils to: - reduce the number of file accesses to enumerate and load plugins - change the way disabled plugins are recorded. a disabled plugin will now have ".disabled" added to its directory name (this halves the number of file accesses required to enumerate installed plugins) - place the guts of pluginutils code inside a class, Doku_Plugin_Controller, the existing access routines are preserved and no changes are required. - add two globals, $plugin_controller_class & $plugin_controller this allows preload.php to define its own plugin controller class - update config plugin to support new plugin structure config plugin now issues a PLUGIN_CONFIG_PLUGINLIST event before it finalizes the list of plugins it will be working with. Handlers of this event can remove plugins from the list. - update plugin manager plugin to support new plugin structure plugin manager now issues a PLUGIN_PLUGINMANAGER_PLUGINLIST event similarly to config plugin. - plugin manager updated to redirect after changes to plugins and to use msg() Finally, this patch contains a one-shot action plugin which will automatically convert a plugins directory from the old style disabled file to the new style. Note for darcs users, the new disabled format will mean a couple of old oneshot plugins, importoldchangelog and importoldindex, will have their directory names changed, which could lead to darcs wanting to record the change. darcs-hash:20090118190143-f07c6-d2e79af546a49a4af5817dd0c5cc27066e67c4d0.gz
-
- Aug 13, 2008
-
-
Chris Smith authored
darcs-hash:20080813125929-f07c6-4f20e147334ebc5be006ec9f260331950ac2e4cb.gz
-
- Jun 27, 2007
-
-
Chris Smith authored
darcs-hash:20070627184840-d26fc-4460e02bd480470a5cdbd2b826e12fb4e4bcc4bc.gz
-
- Feb 27, 2007
-
-
Esther Brunner authored
darcs-hash:20070227122635-20862-e10e801a5224585fa32d8dc3401fd5eb98d70930.gz
-
- Jan 19, 2007
-
-
Andreas Gohr authored
The namingscheme for renderer plugins now matches the other types, the plugin manager now returns info on renderer plugins, too darcs-hash:20070120002731-7ad00-fcea93a6a6da807103b6aa82d6472196125cb3ec.gz
-
- Oct 26, 2006
-
-
chris authored
darcs-hash:20061027004117-9b6ab-b7eda08e246e942a1ca4841b94abeda4c2ed722c.gz
-
- Sep 08, 2006
-
-
Ben Coburn authored
Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz
-
- Aug 04, 2006
-
-
chris authored
darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
-
- Apr 14, 2006
-
-
chris authored
This patch adds events and a third plugin type, "action" plugins, to DokuWiki. The patch doesn't include any event signalling, that will be added in later patches. Action plugins are loaded before most Dokuwiki processing takes place and at the same time are given the opportunity to register handlers (or hooks) to receive specific dokuwiki events. Other parts of Dokuwiki (e.g. templates and syntax plugins) can also register handlers to receive events. Any part of Dokuwiki can create and signal events, including templates and plugins. This patch also revises the admin plugin class by making it an extension of a new class, DokuWiki_Plugin. The DokuWiki_Plugin_Action class also extends this new class. Further details of events, their signalling and handling, and of action plugins will be added to wiki.splitbrain.org in due course :-) darcs-hash:20060414193737-9b6ab-f23d3d9b93e4c50a3ad97ced03eabc6c0363650b.gz
-
- Mar 11, 2006
-
-
chris authored
darcs-hash:20060311192655-9b6ab-c54d280d35b121730e2f8d50b15fe647d986574c.gz
-
- Feb 17, 2006
-
-
Andreas Gohr authored
This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
-
- Jan 25, 2006
-
-
chris authored
darcs-hash:20060126011342-9b6ab-40d04573bef34fa4012edac74186355b9a7ff0d9.gz
-
- Jan 14, 2006
-
-
Anika Henke authored
darcs-hash:20060114163558-d5083-0d8e27162de2b0bfe9783e31cf4ca45a99006dd5.gz
-
- Oct 29, 2005
-
-
Andreas Gohr authored
darcs-hash:20051029185222-7ad00-c184ab3496539f3027407c7d17e8770a1849546a.gz
-
- Sep 07, 2005
-
-
chris authored
darcs-hash:20050908000531-50fdc-f4542a4c6b597ffeaa8c81afd35a41e667f5fa52.gz
-
- Sep 02, 2005
-
-
Esther Brunner authored
darcs-hash:20050902145953-283c4-d03ea404000d8b307d91b678f3ed3fc1a0ebac15.gz
-
- Aug 24, 2005
- Aug 04, 2005
-
-
chris authored
darcs-hash:20050804235036-50fdc-1881a40da689bc5abbe608a2ce96a1ed192a43a4.gz
-
- Aug 03, 2005
-
-
Andreas Gohr authored
darcs-hash:20050803180226-7ad00-7bce1982ed6589511ce38e2e4e5e4cdf8640a0ae.gz
-
Esther Brunner authored
darcs-hash:20050803172402-283c4-7c735ba09b53950d122b319c92fd121192bc5a79.gz
-
- Aug 02, 2005
- Aug 01, 2005
-
-
Andreas Gohr authored
Javascript files from plugins called script.js are loaded automatically darcs-hash:20050801182242-7ad00-2bc839c92c54e641347ed1cbeadf8bba3ef6a7a8.gz
-
- Jul 31, 2005
-
-
Andreas Gohr authored
Plugins can use their own styleheets now. They are loaded in the tpl_metaheader function. The following files are used if existing in the plugin's directory: style.css - overall style used always screen.css - only used in normal view (media darcs-hash:20050731073521-7ad00-dcece7a255d3b08a1d2da9f2444b31e628ee76ea.gz
-