| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The include syntax was changed and enhanced by a include_once statement.
Syntax:
/* DOKUWIKI:include somefile.js */
/* DOKUWIKI:include_once someotherfile.js */
Note: include_once uses the basename of the inlcuded file to determine if
it was previously loaded. You need to use something unique for it to
make sure it is correctly loaded.
Note: included files are not checked for updates by the cache logic. You
need to touch the master file for updating the cache
Note: includes are *not* supported inside included files to avoid any
circular references
darcs-hash:20070513222421-7ad00-d99d717ba8a428d0af2b3f7d593897e0467cb9c9.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds support for include calls in JavaScript files as discussed in [1]
The syntax looks like this:
/* !!include script.js */
All whitespaces are optional (except between !!include and script of course)
[1] http://www.freelists.org/archives/dokuwiki/01-2007/msg00121.html
darcs-hash:20070513123230-7ad00-71a1081aaef1e8f6bc909820927f17d0be71b74e.gz
|
|
|
|
| |
darcs-hash:20070504183227-8a46b-9fb829ff4b337dace67070e41afc6573c07a3312.gz
|
|
|
|
| |
darcs-hash:20070408144321-23886-266b4fec7c4d292f830689cced19798cd00d1422.gz
|
|
|
|
|
|
| |
A rtl.css file is loaded for plugins when the language direction is right to left.
darcs-hash:20070407165027-7ad00-1580a9d2af3f64f13780b4e243e53b44c7c5add2.gz
|
|
|
|
| |
darcs-hash:20070402043249-6942e-c69c700456d6feb5d275f3fab46bdba82505e30f.gz
|
|
|
|
|
|
| |
This may fix https://bugzilla.mozilla.org/show_bug.cgi?id16033
darcs-hash:20070308224331-7ad00-e5ef018706062baf6bec2bd11dfb318e0fe4b1f6.gz
|
|
|
|
|
|
|
| |
This ports the fixes from the original python code to DokuWiki's js_compress
functions. The unit tests now pass.
darcs-hash:20070308223644-7ad00-56ea99689a62e9752f4814b5dc7ada02eae59089.gz
|
|
|
|
| |
darcs-hash:20070303192836-7ad00-fe821c42ba7541f58ab52b9d8d11b3241bc90b65.gz
|
|
|
|
|
|
|
|
|
| |
This patch includes
- several helper functions - is* checks
- hasOwnProperty method emulator
- checks for .hasOwnProperty in all for..in loops
darcs-hash:20070111114236-00f02-50a71681e5d04faf086f1b8032a384648378b744.gz
|
|
|
|
| |
darcs-hash:20070211024110-7f317-c094764db4d4c9b7e1cad01fc016f354d91aa39e.gz
|
|
|
|
|
|
|
|
|
| |
On certain platforms the ignore_user_abort function does not work as expected, resulting
in a non working indexer webbug. Users with such a broken system (IIS+PHP as CGI) can
enable this option to work around the problem (resulting in longer load times for the
webbug).
darcs-hash:20070208195145-7ad00-8fc14f9da535a70fa837066773e15a3926b077c7.gz
|
|
|
|
| |
darcs-hash:20070124232113-23886-5fdea45dec232c6a94995d83439f1c05beb33c6e.gz
|
|
|
|
| |
darcs-hash:20061207165258-5224c-8b65b6bd08d123fae7e141fd1b1ff497a0e3c1ce.gz
|
|
|
|
| |
darcs-hash:20061206231114-6942e-bdfa008fde5fac8b437b26abc2583f38f8254c38.gz
|
|
|
|
| |
darcs-hash:20061207075815-05dcb-81fad7f4e40142e01f9f1aaa56f47fa51f978186.gz
|
|
|
|
|
|
|
|
|
|
|
| |
This adds experimental XMLRPC support to DokuWiki. A subset of the
Wiki XMLRPC API v2 [1] is implemented.
You need to remove the die() call in lib/exe/xmlrpc.php to use it.
[1] http://www.jspwiki.org/wiki/WikiRPCInterface2
darcs-hash:20061124232744-7ad00-fdaccc68787c3b0349b155a94a1a56003560c5d8.gz
|
|
|
|
|
|
|
| |
plugins can include styles with feed.css,
templates can use the media type feed in style.ini
darcs-hash:20061115101549-6942e-d1de56b343ce0cc11ca6b911c444197316f4a4eb.gz
|
|
|
|
|
|
|
|
|
| |
Make Chinese and Japanese work better with the new indexer.
Some missing punctuation added to utf8_stripspecials.
Misc. other changes to make indexing faster. The indexes will expire on
backend upgrades, so you don't have to delete *.indexed
darcs-hash:20061117123032-6942e-774b38e08234928c49b37e40addba375acf67ac0.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The Google sitemap protocol was recently adopted by Yahoo and Microsoft and
made a common standard. This patch changes the XML namespace URL to the new
sitmaps.org site and ups the version to 0.9
Pinging of Yahoo and Microsoft was added to the existing Google ping. The
microsoft ping currently fails with a "Bad format" error for unknown reason.
This will hopefully change when either Microsoft fixes their URL or releases
some documentation.
darcs-hash:20061117150030-7ad00-0fac1cba07926c3ffe687a8cbaf465e8de3abcd7.gz
|
|
|
|
| |
darcs-hash:20061113122645-9b6ab-e5f5be2e88eea7eb00643e6a5210086f46191c30.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A modification to the indexer that sorts words based on length. This should make
searching a little bit more efficient. After the patch is applied, your old index
will be automatically converted to the new format (when you visit a page). The
new index format is:
1. Index files are stored in savedir/index
2. Word lists are stored as wlen.idx. This used to be word.idx.
3. Word indexes are stored as ilen.idx. This used to be index.idx.
4. The page list, page.idx, is simply copied to the new location.
Any plugins you have, such as the blog plugin, that read the index files need to
be updated.
darcs-hash:20061112194900-2b9f0-a975498ccf0a1d39c6df73b79bcd028d5e81c389.gz
|
|
|
|
|
|
| |
adding ?purge
darcs-hash:20061112143440-7ad00-436a63c8ee0279a9aa0423c389967418f8528656.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The DOMlib javascript library was removed. It was only used for
footnote tooltips and access key fixup.
Removing the library creates a much smaller JavaScript footprint. The
size of the compacted non-edit Javascript output was reduces from 56110
bytes down to 29296 bytes.
The footnote tooltip was completely rewritten and tested in FireFox
2.0, IE 6 and Opera 9.02. Please test other browsers as well.
The acces key fixup might beahve different now on Mac platforms.
darcs-hash:20061110201541-7ad00-0dffad095193bc7e7c505796a99b0a0a010a6b0d.gz
|
|
|
|
|
|
|
|
|
| |
This adds support for the OpenSearch specification to autodetect
DokuWiki's search engine. The patch was submitted by Mike Frysinger
some time ago.
Some changes were made to the original patch. Only tested in FireFox 2.0
darcs-hash:20061110151453-7ad00-298ad77603854a604a642c0afd3975a997b8dc09.gz
|
|
|
|
| |
darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
|
|
|
|
|
|
|
|
| |
This patch is an enhancement to yesterday's changes. The ability to download
external content could be used for XSS attacks, when faking the sent MIME
type. This patch adds a check on the received data for valid images.
darcs-hash:20061018124942-7ad00-4e8bca7d3877e6a10c348b5d45499cf8adf8b087.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch changes fetch.php ability to download external files. It now checks
for the returned MIME type and will only download images. For all other
MIME types a redirect is sent back to the browser. This reduces the risc of
being misused as open proxy.
Additionally the download facility is disabled completly by default by setting
the fetchsize option to 0. Users who want the feature need to overwrite the option
in their local.php.
Background: The ability to download external files is needed to resize external
images on the server side. When disabled, a redirect is sent to the browser which
will download the fullsize image and rescale it on the client side which is more
bandwidth and CPU intensive.
darcs-hash:20061017175329-7ad00-cd1b1bfa043a04540c51ca8380d28deaa14147d1.gz
|
|
|
|
|
|
| |
Fixes a header injection/XSS vulnerability
darcs-hash:20061008100523-7ad00-be06a942badb6a2a9ed862be003ee0050504b4b0.gz
|
|
|
|
|
|
|
| |
This patch removes some commented code fragments and alternative
snippet generators
darcs-hash:20061008090624-7ad00-14bfee2ded6c6c8ef43ad02a4c02a5d95ee9daf7.gz
|
|
|
|
|
|
| |
Fixes a shell injection and a DOS vulnerability
darcs-hash:20060926200551-7ad00-5ef27940dda6e48e7e2f8743fc90fa80b7b5cdff.gz
|
|
|
|
|
|
|
|
| |
- fix potential array key collisions
- restore ability to keep a minimum number ($conf['recent']) of recent changes
irregardless of date of change
darcs-hash:20060924162105-9b6ab-06350f04f9d9ac4c362f13787b682ef70887a1fc.gz
|
|
|
|
| |
darcs-hash:20060924100606-7ad00-7e0bc1fa7778669ac352f8d8994acbb7517323cd.gz
|
|
|
|
|
|
|
|
|
|
| |
This patch fixes a bug in indexer.php which resulted in the order
of the recent changes cache being reversed each time it was trimmed.
It also adds sorting to both getRecents() and runTrimRecentChanges()
as a defensive measure against the order of the file being corrupted.
darcs-hash:20060923235109-9b6ab-0f4062c1b02449cce9382426174cd22d71387e5a.gz
|
|
|
|
| |
darcs-hash:20060917140718-7ad00-ab1b95974ad63966c770f787112bc7c2e285c394.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 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
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allows action plugins to support custom ajax calls.
The event data is the call name from $_POST['call'].
When handling a custom ajax call, remember to use
$event->preventDefault();
to avoid having the
'AJAX call <call> unknown!'
message appended to the output.
darcs-hash:20060809194501-05dcb-0082e4f2a83fc8657fc7cdcf32d44aac8d1a6b99.gz
|
|
|
|
| |
darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz
|
|
|
|
|
|
|
| |
This fixes a problem with escaped backslashes in single and double quote
strings.
darcs-hash:20060731223008-7ad00-ebae61a00115b7f32c12eb9355059a1ecf467cd3.gz
|
|
|
|
|
|
|
|
| |
This patch now assigns the needed proprietary CSS attributes for the spellchecker
through JavaScript. This makes the CSS valid again (at least it appears to be ;-))
I also fixed a problem with leading single spaces in IE
darcs-hash:20060731192807-7ad00-b82bdcae9a0c8cf063c3a1e985dbfd1dfdee7b06.gz
|
|
|
|
|
|
|
| |
Fixing undefined variable notices and sometimes
the underlying error that produced them.
darcs-hash:20060710114655-05dcb-073948171847f1f43f153e96c8382abd421da36a.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds page and namespace events:
IO_WIKIPAGE_READ
IO_WIKIPAGE_WRITE
IO_NAMESPACE_CREATED
IO_NAMESPACE_DELETED
The namespace events are purely advisory,
while the wikipage events allow page content
to be modified between DokuWiki and the disk.
These events are primarily intended to simplify
keeping other tools in sync with the semantic
structure of a DokuWiki site. As an added benefit,
the events allow plugins to conduct automated
processing of raw wiki page content.
The namespace events cover the separate namespace
trees for both pages and media. The "name" of the
tree that the event belongs to is included in the
event data.
darcs-hash:20060705105652-05dcb-f44024e852a2adf1a14b8a7d69c46db067e72307.gz
|
|
|
|
| |
darcs-hash:20060701120325-7ad00-07efe9cacd51043ad95d8d2d71d8680036721286.gz
|
|
|
|
| |
darcs-hash:20060628094419-484ab-148d62ec3e29deb7ca9fa9b787c238a1d73bc4e3.gz
|
|
|
|
|
|
|
|
| |
- correct begin/end comment, plugin filename wasn't being used
- add file exists check, to avoid bloating js with comments for non-existent plugin js.
Many (most?) plugins don't have javascript.
darcs-hash:20060619104613-9b6ab-08a570cdbb0d6441f1caa71766d4c59c73828835.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch improves the way the window.oninit JavaScript function is
called. This function is used to initialiaze all JavaScript funcions
attached to the DOM so it needs to be executed **after** the full DOM
was parsed by the browser. Unfortunately currently only Mozilla supports
a DOMContentLoaded event. In all other browsers we had to wait for
the window.onload event which will only be called after **all** content
(including images) was loaded - this caused a visible delay on all
JavaScript generated content (like the toolbar) in non-Mozilla browsers.
Dean Edwards now presented a solution [1] which will work for all the bigger
Browsers and is used in this patch.
The following browsers now should fire the init event right after parsing
the DOM:
All Mozilla based browsers
Internet Explorer
Safari
Opera >
darcs-hash:20060616104539-7ad00-db70d31fcb21cb812cf4982fe80a7d649e2daa1c.gz
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds an option to configure the maximum size for files the fetch.php
will ever download. Setting this to 0 completely turns of the caching of external
media files.
Disadvantages of setting a low or zero fetchsize:
* fetch.php needs to download images to be able to resize them. When the used
fetchsize prevents the downloading the images can only be resized by the
browser which means the browser will need to download the fullsized image first.
* If the linked external media files vanishes it will no longer display in the
wiki because it is not cached.
Advantages of setting a low or zero fetchsize:
* fetch.php may be used for a possible denial of service attack by requesting
many big external files.
* The created cache files may take a lot of space on the server
I recommend to leave the setting at 2MB for internal and private wikis and lower
the setting to about 200 to 500 Kb for bigger public Wikis.
Note: the caching of files uploaded through the media manager is not affected by
this setting.
darcs-hash:20060615184847-7ad00-04fc39928f7d72e56f5c5e271013ef265436e6c9.gz
|
|
|
|
| |
darcs-hash:20060604175833-7ad00-cd96ba6a7db7211082ff82e189828e2e11a6f566.gz
|
|
|
|
| |
darcs-hash:20060529183003-7ad00-de0e3acac75a9f94f6c27f67651eeabe40411d7a.gz
|