summaryrefslogtreecommitdiff
path: root/lib/plugins/plugin/admin.php
Commit message (Collapse)AuthorAge
* Honor conf[pluginmanager] again (closes FS#1856)Adrian Lang2011-02-06
|
* plugin related autoloadingAndreas Gohr2010-02-01
| | | | | This patch moved the place where DOKU_PLUGIN is defined. It no longer can be set from a normal config (only via preload)
* more deprecated new by reference code fixedAndreas Gohr2010-01-17
|
* More flexible plugin packages FS#1746Andreas Gohr2009-11-11
| | | | | | Ignore-this: 252bb5a42965ed045221c0544136aa62 darcs-hash:20091111203437-7ad00-86f06d842b3bec22641a637cb09dbc666a42ca2d.gz
* restructured plugin managerAndreas Gohr2009-07-25
| | | | | | | | | | Ignore-this: 4007248aa01f09990612c844c8a83900 This patch moves the different classes of the plugin manager into their own files and moves formerly global utility functions into the appropriate class scopes. darcs-hash:20090725152105-7ad00-89801e811b7eb0d0db25a825d6065aed8ef95c33.gz
* reverted plugin disabling method back to old behaviourAndreas Gohr2009-01-27
| | | | | | | | | | | | | | | | | | Ignore-this: b5fadadeee9de8e52c41c056cf62be6d With this patch plugins are now disabled by placing a disabled file in the plugin directory again. Even though renaming plugin directories is the method with the fewest disk accesses it makes a lot of trouble with code revision control systems and, more important, Linux package management systems. Future versions of DokuWiki may use a central config file instead. This patch also fixes the problem with the plugin manager not checking the return values of the pugin_(dis|en)able functions correctly. darcs-hash:20090127182521-7ad00-62018a546d49d57582d93298c8228fd71601a5e8.gz
* further updates to config_cascade patchChris Smith2009-01-22
| | | | | | | | | | - add mediameta and license config files into the cascade - update the cache validity code in cache.php, css.php & js.php to use config_cascade - redo inclusion of main config files to avoid suppression of errors in config files - add getConfigFiles($type) function - minor updates elsewhere to use config_cascade rather than hardcoded config file names darcs-hash:20090122114457-f07c6-98ad5627fd5df93edf8dd03289b9cf6d81962afe.gz
* Major rework of pluginutilsChris Smith2009-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* more verbose errors in tarlib when needed ext is missingAndreas Gohr2008-08-23
| | | | darcs-hash:20080823111603-7ad00-8c6f664b96fa6c959f77965d0d1b721aecedc92c.gz
* Be more verbose on errors in plugin managerAndreas Gohr2008-08-23
| | | | | | | handle "unknown" errors from TarLib and print all errors when allowdeug is set darcs-hash:20080823092642-7ad00-f2c827b422c9d49784c343804af2a0d71fb275ad.gz
* fixed all remaining links to wiki.splitbrain.org and to restructured pagesAnika Henke2008-08-15
| | | | darcs-hash:20080815134211-f7d6d-61f4f4fa1c5f62832d7cc5ad3e3a7a78460d2981.gz
* FS#1361 - fix missing error message (also remove a couple of extraneous slashes)Chris Smith2008-04-08
| | | | darcs-hash:20080408022118-f07c6-c04712bd424d1bf8ff8db3fee8514bf0a145311e.gz
* FS#1360 - Update Plugin Manager to use $conf['tmpdir'] rather than its own.Chris Smith2008-04-08
| | | | | | Also remove ap_mkdir(), io_mkdir_p() is a drop in replacement darcs-hash:20080408014747-f07c6-69aee0bb73167fd39d6224c4fde63e56596e2646.gz
* fix for plugin manager breaking multibyte charsAndreas Gohr2008-02-15
| | | | darcs-hash:20080215214857-7ad00-066c28dc5cdb3551673a63cb9536507f5e4bd8c1.gz
* Add revert plugin to protected plugins listChris Smith2008-01-16
| | | | darcs-hash:20080116152844-d26fc-8d936fe9235ddc0b5d092f3de25c9b3ec789c028.gz
* fixed URLs in plugin and user managerAndreas Gohr2007-10-13
| | | | | | | For the new plugin repository, plugins should use a page named after their class at wiki.splitbrain.org darcs-hash:20071013191842-7ad00-0580762663329d4f21e6996748117987438c953f.gz
* CSRF prevention for admin pluginsAndreas Gohr2007-08-29
| | | | | | | | | | | | | | | This patch adds a session based token to all form in the default action plugins. The validity of the token is checked before any administrative function is executed aiming to protect DokuWiki's admin functions from Cross-site request forgery (CSRF) attacks. Another patch will follow to add the same functionality on other, less critical functions. More details on CSRF attacks can be found at http://en.wikipedia.org/wiki/Cross-site_request_forgery darcs-hash:20070829201538-7ad00-d0770224a3351fd8e38968e3a9d8e73520482445.gz
* typo fix for plugin manager which caused blank error message FS#1216Andreas Gohr2007-08-10
| | | | darcs-hash:20070809221830-7ad00-601fe9bef16ae512262c40feadbb07af512b0ef1.gz
* move tar and zip libs to incAndreas Gohr2007-01-15
| | | | | | | Move the compression libs of the plugin manager toa mre common place to make them available to plugin authors. darcs-hash:20070115192414-7ad00-0d53e8faf26fa1eeb1026ffab8e0593f015147de.gz
* renamed tar and zip libraries in plugin manager #974Andreas Gohr2006-11-18
| | | | | | | The zip class was renamed to avoid name clashes with a certain PHP extension the tar lib was renamed to make it match the zip naming ;-) darcs-hash:20061118161242-7ad00-c50173d8b240d81455b48d2904c353c3e7e4a9a0.gz
* plugin manager updateschris2006-10-27
| | | | | | | - add $conf['fmode'] support, fixes bug #939 - fix problem with plugin list not being updated after download darcs-hash:20061027013208-9b6ab-1a7640b40b5448a7afad42064fd00c2ccf743af0.gz
* changelog redesign updateBen Coburn2006-09-11
| | | | | | | | | | | - Improves handling of deleted revisions. - Import plugin disables after import. - Check act reports if plugin is still enabled after the import. - Import correctly handles summaries without the minor prefix. - Newlines and tabs are now striped out of type, sum, and extra in the changelog. darcs-hash:20060911014738-05dcb-2f6c9fdffb6346f7d3190610a72b290090b28097.gz
* suppress boring errorsBen Coburn2006-09-08
| | | | | | | | 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
* parser caching updatechris2006-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch primarily updates p_cached_xhtml() and p_cached_instructions() to allow their caching logic to be surrounded by an event trigger. p_cached_xhtml() has been rewritten as the more general p_cached_output() to support other render output formats besides 'xhtml'. All calls to p_cached_xhtml() have been changed to refer to the new function. New event: name: PARSER_CACHE_USE data: cache object (see below) action: determine if cache file can be used preventable: yes result: bool, true to use cache file, false otherwise Cache operations have been generalised in a new class, cache, extended to cache_parser, cache_renderer & cache_instructions. Details can be found in inc/cache.php For handling of above event, key properties are: - page, if present the wiki page id, may not always be present, e.g. when called for locale xhtml files - file, source file - mode, renderer mode (e.g. 'xhtml') or 'i' for instructions Other changes: - cache class counts cache hits against attempts, results are stored in {cache_dir}/cache_stats.txt - adds metadata dependency to renderer page cache - replaces purgefile dependency for renderer cache with metadata 'relation references' (internal link) dependency for wiki pages only darcs-hash:20060911021418-9b6ab-19601ed194b8c8e45236ab72c3e23d78bf777e6c.gz
* scalable changelog redesignBen Coburn2006-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch provides a rewritten changelog system that is designed to run efficiently on both small and large wikis. The patch includes a plugin to convert changelogs from the current format. The conversion is non-destructive and happens automatically. For more information on the new changelog format see "http://wiki.splitbrain.org/wiki:changelog". Structure In short the changelog is now stored in per-page changelog files, with a recent changes cache. The recent changes cache is kept in "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve revision information for revisions stored in the attic, the "*.changes" files are not removed when their page is deleted. This allows the full life-cycle of page creation, deletion, and reversion to be tracked. Format The changelog line format now uses a general "line type" field in place of the special "minor" change syntax. There is also an extra field that can be used to store arbitrary data associated with special line types. The reverted line type (R) is a good example. There the extra field holds the revision date used as the source for reverting the page. See the wiki for the complete syntax description. Code Notes The changelog functions have been rewritten to load the whole file only if it is small. For larger files, the function loads only the relevant chunk(s). Parsed changelog lines are cached in memory to speed future function calls. getRevisionInfo A binary search is used to locate the chunk expected to contain the requested revision. The whole chunk is parsed, and adjacent lines are optimistically cached to speed consecutive calls. getRevisions Reads the changelog file backwards (newest first) in chunks until the requested number of lines have been read. Parsed changelog lines are cached for subsequent calls to getRevisionInfo. Because revisions are read from the changelog they are no longer guaranteed to exist in the attic. (Note: Even with lines of arbitrary length getRevisionInfo and getRevisions never split changelog lines while reading. This is done by sliding the "file pointer" forward to the end of a line after each blind seek.) isMinor Removed. To detect a minor edit check the type as follows: $parsed_logline['type'] darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
* plugin manager update - another fix for php5chris2006-08-08
| | | | darcs-hash:20060808131143-9b6ab-1bf57f66c6d1b10305f1bf190c7d507130f84eaa.gz
* plugin manager updatechris2006-08-07
| | | | | | fix ordering of plugins for php5 darcs-hash:20060807132242-9b6ab-2dc8e4508dc721908ec6453fc09acec1de23687d.gz
* add missing closing parenthesis from yesterday's patchchris2006-07-25
| | | | darcs-hash:20060725123522-9b6ab-d4351e484bbd0d23d0b2d8b23c51368e1b64cbcb.gz
* minor fix in plugin managerchris2006-07-24
| | | | darcs-hash:20060724193727-9b6ab-e1e9368fc18d674bd027bbfd03245e7b52944e67.gz
* cleanup undefined constant noticesBen Coburn2006-07-10
| | | | | | | Undefined constants replaced with strings, see http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar darcs-hash:20060710091820-05dcb-cfccff2bdd633b929470c60d8eee096f50ab4c18.gz
* pluginmgr independent from tpl style.iniAnika Henke2006-06-18
| | | | darcs-hash:20060618173540-d5083-6dc05adbf702b2a9ba0fc1ea9421d8450fe2e013.gz
* plugin manager fix, add error suppression operator to touch call.chris2006-04-30
| | | | darcs-hash:20060430153000-9b6ab-0918d41e77e897d3b14c91de822567f8a3007779.gz
* Bug#680chris2006-04-10
| | | | | | | Update default plugins to ensure they exit immediately if not called from within Dokuwiki darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
* plugin manager update, fix for php warning if all plugins disabledchris2006-04-10
| | | | darcs-hash:20060409232533-9b6ab-13b2065c81b857a73b8e1175c9371978f8f76ab5.gz
* plugin manager update / will now expire page, css & js caches after a plugin ↵chris2006-03-26
| | | | | | change darcs-hash:20060326122952-9b6ab-f6aef3c5b2f9e936d2f32ed148d19bbd8a9da2da.gz
* plugin manager upate: protect default plugins, add enable/disable functionalitychris2006-03-11
| | | | darcs-hash:20060311192655-9b6ab-c54d280d35b121730e2f8d50b15fe647d986574c.gz
* changed styling for plugin managerAnika Henke2006-03-03
| | | | darcs-hash:20060303170956-d5083-8c31aee7c077b7aa4bf49f4449e40cb5f522f357.gz
* changed IDs to avoid name clashesAndreas Gohr2006-02-26
| | | | darcs-hash:20060226172332-7ad00-f073117ba2f027935f87cf23106bf6a4316a5790.gz
* Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct ↵Troels Liebe Bentsen2006-02-24
| | | | | | | | | | | permissions, this should also fix problems with dokuwiki making setuid files on some umasks. * Don't set the umask() anymore, this is not good form and we don't really know what is it in the old code anyway as it was not done properly. * Retire the dmask config option introduce 2 new ones called fmode and dmode, this is more in line with posix and should make more sense. * Use chmod for setting the correct permissions but only if it's needed. * Set changing of permissions off by default as i should work properly in most Apache setups without and it does not make sense on windows anyway. darcs-hash:20060224211655-ee6b9-68f7bb59417d6f0033cfd3764146923daa4dcf1b.gz
* Fix wrong umask usage and so we set the correct file premissions.Troels Liebe Bentsen2006-02-18
| | | | darcs-hash:20060218183753-ee6b9-1a3dab069a868e3f5e10e9dd6af14fefd0d8b730.gz
* fix for PHP5/Win, avoid initialising an array as a function parameterchris2006-02-03
| | | | darcs-hash:20060202232249-9b6ab-714f97dd150f2e0e7bef5458ab74f5336a1e5f8c.gz
* plugin manager fix for php5/win bugchris2006-02-02
| | | | darcs-hash:20060202022424-9b6ab-36275dd4c71c272d332de76dd39cc45024c6cc18.gz
* plugin manager update - remove refresh command, strings & associated htmlchris2006-01-30
| | | | darcs-hash:20060130222720-9b6ab-2c71b10602e0052050c5813f5b7b6c02d386b229.gz
* config plugin update & removal of $conf['pluginmanager'] optionchris2006-01-26
| | | | darcs-hash:20060126011342-9b6ab-40d04573bef34fa4012edac74186355b9a7ff0d9.gz
* removed graphical list bulletAndreas Gohr2006-01-21
| | | | | | | | | | | | | | | | | Unordered lists used a graphic for the list bullet. Using the same technique as in the ordered lists we don't need an image just to have the color. This has two advantages: 1. The list bullets still have the correct color when colors are adjusted in style.ini 2. List bullets grow and shrink correctly with the fontsize It has a disadvantage as well: All list items need to be marked up like this: <li><div class darcs-hash:20060121121435-7ad00-c6455f9b58c6e78b630c1121499e2052525fb556.gz
* plugin manager update, remove js & css file aggregation, improve error handlingchris2006-01-13
| | | | darcs-hash:20060113023414-9b6ab-76bd7b12af34e8f32135c32c22403bd0fb14c98a.gz
* plugin manager fix: include some missing global $IDchris2005-09-22
| | | | darcs-hash:20050922154548-9b6ab-5dd76b0175dfbd72910795cea430999e54bbb768.gz
* plugin manager: remove settings buttonchris2005-09-19
| | | | darcs-hash:20050919163618-9b6ab-1c1ccc9103bf1f82e62aba97a244bba787679e28.gz
* plugin manager plugin: remove unneeded global declarationchris2005-09-19
| | | | darcs-hash:20050919153110-9b6ab-799ea7bd45d48f64fc26c6e86fe7fb6678173912.gz
* plugin manager update, improved compression type detectionchris2005-09-15
| | | | darcs-hash:20050915005634-9b6ab-37a0f62cb856f0bdd30956074fabd9c225d926a1.gz