| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
This patch moved the place where DOKU_PLUGIN is defined. It no longer
can be set from a normal config (only via preload)
|
| |
|
|
|
|
|
|
| |
Ignore-this: 252bb5a42965ed045221c0544136aa62
darcs-hash:20091111203437-7ad00-86f06d842b3bec22641a637cb09dbc666a42ca2d.gz
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20080823111603-7ad00-8c6f664b96fa6c959f77965d0d1b721aecedc92c.gz
|
|
|
|
|
|
|
| |
handle "unknown" errors from TarLib and print all errors when
allowdeug is set
darcs-hash:20080823092642-7ad00-f2c827b422c9d49784c343804af2a0d71fb275ad.gz
|
|
|
|
| |
darcs-hash:20080815134211-f7d6d-61f4f4fa1c5f62832d7cc5ad3e3a7a78460d2981.gz
|
|
|
|
| |
darcs-hash:20080408022118-f07c6-c04712bd424d1bf8ff8db3fee8514bf0a145311e.gz
|
|
|
|
|
|
| |
Also remove ap_mkdir(), io_mkdir_p() is a drop in replacement
darcs-hash:20080408014747-f07c6-69aee0bb73167fd39d6224c4fde63e56596e2646.gz
|
|
|
|
| |
darcs-hash:20080215214857-7ad00-066c28dc5cdb3551673a63cb9536507f5e4bd8c1.gz
|
|
|
|
| |
darcs-hash:20080116152844-d26fc-8d936fe9235ddc0b5d092f3de25c9b3ec789c028.gz
|
|
|
|
|
|
|
| |
For the new plugin repository, plugins should use a page named after their
class at wiki.splitbrain.org
darcs-hash:20071013191842-7ad00-0580762663329d4f21e6996748117987438c953f.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20070809221830-7ad00-601fe9bef16ae512262c40feadbb07af512b0ef1.gz
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
- add $conf['fmode'] support, fixes bug #939
- fix problem with plugin list not being updated after download
darcs-hash:20061027013208-9b6ab-1a7640b40b5448a7afad42064fd00c2ccf743af0.gz
|
|
|
|
|
|
|
|
|
|
|
| |
- 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 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060808131143-9b6ab-1bf57f66c6d1b10305f1bf190c7d507130f84eaa.gz
|
|
|
|
|
|
| |
fix ordering of plugins for php5
darcs-hash:20060807132242-9b6ab-2dc8e4508dc721908ec6453fc09acec1de23687d.gz
|
|
|
|
| |
darcs-hash:20060725123522-9b6ab-d4351e484bbd0d23d0b2d8b23c51368e1b64cbcb.gz
|
|
|
|
| |
darcs-hash:20060724193727-9b6ab-e1e9368fc18d674bd027bbfd03245e7b52944e67.gz
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060618173540-d5083-6dc05adbf702b2a9ba0fc1ea9421d8450fe2e013.gz
|
|
|
|
| |
darcs-hash:20060430153000-9b6ab-0918d41e77e897d3b14c91de822567f8a3007779.gz
|
|
|
|
|
|
|
| |
Update default plugins to ensure they exit immediately
if not called from within Dokuwiki
darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
|
|
|
|
| |
darcs-hash:20060409232533-9b6ab-13b2065c81b857a73b8e1175c9371978f8f76ab5.gz
|
|
|
|
|
|
| |
change
darcs-hash:20060326122952-9b6ab-f6aef3c5b2f9e936d2f32ed148d19bbd8a9da2da.gz
|
|
|
|
| |
darcs-hash:20060311192655-9b6ab-c54d280d35b121730e2f8d50b15fe647d986574c.gz
|
|
|
|
| |
darcs-hash:20060303170956-d5083-8c31aee7c077b7aa4bf49f4449e40cb5f522f357.gz
|
|
|
|
| |
darcs-hash:20060226172332-7ad00-f073117ba2f027935f87cf23106bf6a4316a5790.gz
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060218183753-ee6b9-1a3dab069a868e3f5e10e9dd6af14fefd0d8b730.gz
|
|
|
|
| |
darcs-hash:20060202232249-9b6ab-714f97dd150f2e0e7bef5458ab74f5336a1e5f8c.gz
|
|
|
|
| |
darcs-hash:20060202022424-9b6ab-36275dd4c71c272d332de76dd39cc45024c6cc18.gz
|
|
|
|
| |
darcs-hash:20060130222720-9b6ab-2c71b10602e0052050c5813f5b7b6c02d386b229.gz
|
|
|
|
| |
darcs-hash:20060126011342-9b6ab-40d04573bef34fa4012edac74186355b9a7ff0d9.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
darcs-hash:20060113023414-9b6ab-76bd7b12af34e8f32135c32c22403bd0fb14c98a.gz
|
|
|
|
| |
darcs-hash:20050922154548-9b6ab-5dd76b0175dfbd72910795cea430999e54bbb768.gz
|
|
|
|
| |
darcs-hash:20050919163618-9b6ab-1c1ccc9103bf1f82e62aba97a244bba787679e28.gz
|
|
|
|
| |
darcs-hash:20050919153110-9b6ab-799ea7bd45d48f64fc26c6e86fe7fb6678173912.gz
|
|
|
|
| |
darcs-hash:20050915005634-9b6ab-37a0f62cb856f0bdd30956074fabd9c225d926a1.gz
|