Skip to content
Snippets Groups Projects
  1. Nov 19, 2018
  2. Oct 30, 2018
    • Andreas Gohr's avatar
      add reerence to the actual plugin to ADMINPLUGIN_ACCESS_CHECK · f429aff5
      Andreas Gohr authored
      Otherwise it's a bit ahrd to decide if access should be granted ;-)
      f429aff5
    • Andreas Gohr's avatar
      add event to check access to admin plugins · 64cdf779
      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.
      64cdf779
  3. Jan 21, 2017
    • Andreas Gohr's avatar
      increased the default limit for embedded SVGs to 2kb · 1935f902
      Andreas Gohr authored
      more complex material design icons can be somewhat larger than 1kb
      1935f902
    • Andreas Gohr's avatar
      Use inline SVG for Admin Plugin icons and style them via CSS · 3c27983b
      Andreas Gohr authored
      This introduces an embedSVG() function that can be used at other places.
      3c27983b
    • ThisNameIsNotAllowed's avatar
      Provide icons for plugins in admin menu · 3b93167c
      ThisNameIsNotAllowed authored
      Squashed commit of the following:
      
      commit 86183b66c5b53b47e5ddb1e0d1c155c06c331d35
      Merge: ebfb1ab1 4a8f4288e
      Author: Andreas Gohr <andi@splitbrain.org>
      Date:   Sat Jan 21 11:20:32 2017 +0100
      
          Merge branch 'master' of git://github.com/ThisNameIsNotAllowed/dokuwiki into pull-request-1767
      
          * 'master' of git://github.com/ThisNameIsNotAllowed/dokuwiki:
            Update admin.php
            Update admin.php
            Update _admin.css
            Update admin.php
            Update html.php
            Update _admin.css
            Update html.php
            Update html.php
            Update html.php
            Update.html
            Update html.php
            Update admin.php
      
      commit 4a8f4288e61d48156bf9c4a7c49756912e4dac25
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Fri Jan 20 09:25:52 2017 +0100
      
          Update admin.php
      
          Changed the code to check for icons being SVG files.
          This should fix php5.3 errors for using method returns straight on.
      
      commit e43b6cae1e12c1d24efae301e6b25f79a660f353
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Fri Jan 20 08:22:41 2017 +0100
      
          Update admin.php
      
          Removed elements that could lead to behaviors that shouldn't occure.
      
      commit 9af82fb6f43a5ce10ba9b54f1d5f5cac644c7611
      Merge: b99c67797 0b8d1871c
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Jan 19 16:22:02 2017 +0100
      
          Merge pull request #1 from ThisNameIsNotAllowed/add-c
      
          Added css, forced the author to use ".svg"-files for plugin icons.
      
      commit 0b8d1871c8bd0a02aca3ff56128465e8739c96ea
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Jan 19 16:17:34 2017 +0100
      
          Update _admin.css
      
          fixed some aligning for plugin names.
      
      commit 9158649de99867574471a2b894f8611bb99b9a7f
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Jan 19 15:49:20 2017 +0100
      
          Update admin.php
      
          Added method to return menu icons only in case their mime type matches svg files.
      
          Added warning to getMenuIcon comments telling the user to provide svg only.
      
      commit 6df4e0f41880d40f0e7b1882d26fc647d6d2188e
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Jan 19 15:46:17 2017 +0100
      
          Update html.php
      
          Added code to accept svg files only.
          Also changed names of css classes to suit dokuwiki style.
      
      commit 3435abc52ac1dbd4e0cea291a8b30bef722638a6
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Jan 19 15:41:06 2017 +0100
      
          Update _admin.css
      
          Added css for displaying plugin icons.
      
      commit b99c67797eafdb73351f62d2db4c206426b9f828
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Nov 24 14:16:23 2016 +0100
      
          Update html.php
      
          Changed the list of admin plugins.
      
          The icons and plugin names appearance can now be influenced by css.
      
      commit 479c6517ff6fc6010c24b2a285249f3600bc3248
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Thu Nov 24 13:45:08 2016 +0100
      
          Update html.php
      
          Cleaned, due to too much duplicated code.
      
      commit e621fd9788c064cc22385cfa4999a9be588bedc2
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Wed Nov 23 16:26:14 2016 +0100
      
          Update html.php
      
          Changed class name for images shown before plugin names.
      
      commit 9099dac8483fc1aa5a875755ba3dea6e7eb3f280
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Wed Nov 23 16:24:01 2016 +0100
      
          Update.html
      
          Added icon to plugin array
      
      commit faea3ceb7986ecd6d6bad3d8055a388f3810c4b1
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Wed Nov 23 15:56:40 2016 +0100
      
          Update html.php
      
          Added support to display plugin icons in admin menu.
      
      commit 539e60be075ab060d7d57beadc74d94606262a2e
      Author: ThisNameIsNotAllowed <ThisNameIsNotAllowed@users.noreply.github.com>
      Date:   Wed Nov 23 15:51:39 2016 +0100
      
          Update admin.php
      
          Add support for icons in admin menu.
      3b93167c
  4. Dec 10, 2014
  5. Oct 02, 2014
  6. Nov 29, 2010
  7. Feb 01, 2010
    • Andreas Gohr's avatar
      plugin related autoloading · c2a6d816
      Andreas Gohr authored
      This patch moved the place where DOKU_PLUGIN is defined. It no longer
      can be set from a normal config (only via preload)
      c2a6d816
  8. Aug 05, 2007
    • Andreas Gohr's avatar
      separated TOC from page · b8595a66
      Andreas Gohr authored
      This patch introduces a tpl_toc() function which can be used to freely place
      the Table of Contents in a template. When used, tpl_content should be called
      with a parameter of false to supress the automatic TOC placement.
      
      Note: if tpl_toc() us run *before* tpl_content(), TOCs will not work in the
      preview. A work around is to run tpl_content() in a output buffer first.
      
      This patch also adds a getTOC() function for admin plugins which allows plugin
      authors to put create their own TOC which will be placed correctly in the
      template. A convenience function html_mktocitem() is available.
      
      The config manager was adjusted to make ue of this new feature, but some bugs
      might remain.
      
      darcs-hash:20070805132405-7ad00-77d2c3cdf66cc62b2d408cc6580f938636a109af.gz
  9. Jan 19, 2007
  10. Dec 03, 2006
  11. Apr 14, 2006
    • chris's avatar
      action plugins · f65bfee1
      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
      f65bfee1
  12. Apr 09, 2006
    • chris's avatar
      Bug#680 · e04f1f16
      chris authored
      Update default plugins to ensure they exit immediately
      if not called from within Dokuwiki
      
      darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
      e04f1f16
  13. Mar 26, 2006
  14. Mar 22, 2006
  15. Jan 27, 2006
  16. Sep 07, 2005
  17. Sep 04, 2005
  18. Sep 02, 2005
  19. Aug 29, 2005
  20. Aug 24, 2005
Loading