summaryrefslogtreecommitdiff
path: root/lib/plugins/plugin
Commit message (Collapse)AuthorAge
* 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
* slovak language updateAndreas Gohr2006-08-18
| | | | darcs-hash:20060818142400-7ad00-b90e76acbfc37f99d4317fea26d063f67ffb4488.gz
* plugin manager update - another fix for php5chris2006-08-08
| | | | darcs-hash:20060808131143-9b6ab-1bf57f66c6d1b10305f1bf190c7d507130f84eaa.gz
* japanese language updateAndreas Gohr2006-08-07
| | | | darcs-hash:20060807200813-7ad00-ca46ec6eca59cc368fbace6f7de337e4d1e997a5.gz
* plugin manager updatechris2006-08-07
| | | | | | fix ordering of plugins for php5 darcs-hash:20060807132242-9b6ab-2dc8e4508dc721908ec6453fc09acec1de23687d.gz
* various language fixesAndreas Gohr2006-08-06
| | | | | | | This patch makes sure all languages files have UNIX style line endings and use correct UTF-8 encoding darcs-hash:20060806143836-7ad00-2d9c48c5be303565ce461ec977c8792df61fbdd1.gz
* Missing Spanish translationsmiguel.pagano2006-08-01
| | | | darcs-hash:20060731224944-072b4-a965cc88f22614bde7d57fa2d714c749933d66f8.gz
* polish lang updateGrzegorz Zur2006-08-02
| | | | darcs-hash:20060802132121-e561a-20e7882da3fe22eb06598a52d4e80fe64af441f0.gz
* ukrainian translation additions and correctionsOleksiy Voronin2006-08-01
| | | | | | Added missing files and strings for ukrainian translation. darcs-hash:20060801083018-71672-0eccf6e76ae33374b964666e753b5f7a40710789.gz
* French lang updateGuy Brand2006-07-29
| | | | darcs-hash:20060729182720-19e2d-9adbc9aaf5bcb637a8765e4658a216b7fcc375eb.gz
* ukrainian_translationOleksiy Voronin2006-07-28
| | | | darcs-hash:20060728201449-71672-da3bb0b702f89ad1f24526e592755f0f43c89850.gz
* german language updateAndreas Gohr2006-07-28
| | | | darcs-hash:20060728103450-7ad00-02001d13abc3808272ebe0ca5090f77ec8a831bb.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
* greek language updateAndreas Gohr2006-07-13
| | | | darcs-hash:20060713204609-7ad00-541e0203b571ee94a735938affeeb408fde7deb7.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
* Czech lang update, added czech to configBohumir Zamecnik2006-06-08
| | | | darcs-hash:20060608085236-9be09-3142ff6fd2a13cd03205a6703b3fd22bddf5e078.gz
* Lithuanian updateAndreas Gohr2006-05-22
| | | | darcs-hash:20060522181314-7ad00-7830b7819a770628c6e63f9d294292a876575ac7.gz
* plugins.lang.itpolinnia2006-05-07
| | | | | | | added all missing translations for plugins acl, config, plugin, usermanager darcs-hash:20060507160954-57bea-73636f302bdf9ae5ec48242732b6051dea461784.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
* spanish language updateAndreas Gohr2006-04-09
| | | | darcs-hash:20060409115740-7ad00-dd6cb62ccd4e0947ccb7566b0c0010eb807585e3.gz
* plugin manager update / will now expire page, css & js caches after a plugin ↵chris2006-03-26
| | | | | | change darcs-hash:20060326122952-9b6ab-f6aef3c5b2f9e936d2f32ed148d19bbd8a9da2da.gz
* Danish lang updatelarsch82006-03-12
| | | | darcs-hash:20060312214049-a08f5-181fb8115f702521bab9f2e95700f8bd9ab7316d.gz
* plugin manager upate: protect default plugins, add enable/disable functionalitychris2006-03-11
| | | | darcs-hash:20060311192655-9b6ab-c54d280d35b121730e2f8d50b15fe647d986574c.gz
* Danish language updatelarsch82006-03-07
| | | | darcs-hash:20060307104925-a08f5-02519a166e99d5545ace1f519688a526b018a911.gz
* Czech language update, added czech to plugin and user managert.valenta2006-03-07
| | | | darcs-hash:20060307003942-1ee1a-d34fdd63c768d0f71cd3a545e09390bc14a1ed2a.gz
* changed styling for plugin managerAnika Henke2006-03-03
| | | | darcs-hash:20060303170956-d5083-8c31aee7c077b7aa4bf49f4449e40cb5f522f357.gz
* russian translation - pluginsDenis Simakov2006-03-03
| | | | darcs-hash:20060303005940-3c565-feb6ff910d556d9fe3e71fc059f97b538828483f.gz
* polish lang updateGrzegorz Zur2006-03-02
| | | | darcs-hash:20060302105617-e561a-b29d3fcfb7765125ab22ee293c5d4bf8a3b2e969.gz
* more Danish translationlarsch82006-03-02
| | | | darcs-hash:20060302161308-a08f5-673e78a5ae45bde4208a1f348b8dd48fd165b510.gz
* Preliminary Danish localization for the rest of the plugins. Too tired to ↵larsch82006-03-01
| | | | | | complete it right now... darcs-hash:20060301003307-a08f5-68dde44c8a9be592d8823a1a5e24538f813e1133.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
* conflict resolving for plugin manager updateAndreas Gohr2006-01-31
| | | | darcs-hash:20060131211639-7ad00-910dc1d06c7375284fc351376c4a6af49dc41c27.gz
* plugin manager update - remove refresh command, strings & associated htmlchris2006-01-30
| | | | darcs-hash:20060130222720-9b6ab-2c71b10602e0052050c5813f5b7b6c02d386b229.gz
* language updatesAndreas Gohr2006-01-30
| | | | darcs-hash:20060130214840-7ad00-ef1974692b64d4e4f7420d5c68f70f113630957b.gz
* Several more french updates (UI and plugins)gb2006-01-29
| | | | darcs-hash:20060129001120-2060e-aca189a18e75d422619f8c4e66d0abceaaf76593.gz
* config plugin update & removal of $conf['pluginmanager'] optionchris2006-01-26
| | | | darcs-hash:20060126011342-9b6ab-40d04573bef34fa4012edac74186355b9a7ff0d9.gz
* plugin manager styles update for css substitutionschris2006-01-24
| | | | darcs-hash:20060124145255-9b6ab-6d89986c1f867975cd8ebd7f538a6fb7829a053d.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, polish locale files (thanks Michal Tkacz)chris2005-11-20
| | | | darcs-hash:20051120173922-9b6ab-c7cb962e1b5c90e19176fb073b6a8b9040ade920.gz
* remove compress detection changes from tarlib, its handled in the wrapperchris2005-09-28
| | | | darcs-hash:20050927223208-9b6ab-dffa89c68fd62072e5da60133ce3e49cc524966f.gz
* plugin manager fix: include some missing global $IDchris2005-09-22
| | | | darcs-hash:20050922154548-9b6ab-5dd76b0175dfbd72910795cea430999e54bbb768.gz