History log of /dokuwiki/inc/common.php (Results 401 – 425 of 526)
Revision Date Author Comments
# bb4866bd 23-Sep-2006 chris <chris@jalakai.co.uk>

minor bugfix and boring error removal

darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz


# c29dc6e4 16-Sep-2006 Andreas Gohr <andi@splitbrain.org>

updatecheck feature

This patch adds a feature to let DokuWiki automatically check if updates are
available or any other important messages (like security warnings) and then
display this info to the

updatecheck feature

This patch adds a feature to let DokuWiki automatically check if updates are
available or any other important messages (like security warnings) and then
display this info to the admin user.

DokuWiki will contact the URL http://www.splitbrain.org/lib/exe/msg.php
with a parameter telling it which messages it already know (read from
conf/msg) - the server side script then will return all new messages.

The messages will be displayed until DokuWiki was upgraded or conf/msg
was updated manually. Messages are cached and only checked once a day.

The messenger URL will probably change before the next release.

darcs-hash:20060916210229-7ad00-7ac592650e171ae4144b0eb47a751a4ca480f031.gz

show more ...


# 40a0d685 16-Sep-2006 Andreas Gohr <andi@splitbrain.org>

better getVersion when working on a darcs tree

getVersion tries to find the date of the latest applied patch from
_darcs/inventory - this patch makes it only read the last 2000 byte
of the file inst

better getVersion when working on a darcs tree

getVersion tries to find the date of the latest applied patch from
_darcs/inventory - this patch makes it only read the last 2000 byte
of the file instead of loading the whole file.

darcs-hash:20060916182955-7ad00-5a38de1ae4f1a206a8f62cc88551d4f0bc35340e.gz

show more ...


# 7bff22c0 16-Sep-2006 Andreas Gohr <andi@splitbrain.org>

TPL_METAHEADER_PRINT event hook added

This patch changes the tpl_metaheaders function to emit an event to intercept
the creation of HTML metadata.

The usually generated meta headers are passed in a

TPL_METAHEADER_PRINT event hook added

This patch changes the tpl_metaheaders function to emit an event to intercept
the creation of HTML metadata.

The usually generated meta headers are passed in an array structure for easy
modification and enhancement.

darcs-hash:20060916154722-7ad00-b22ab79803d1abad4ca579b84b6a3fa466403619.gz

show more ...


# b7d5a5f0 16-Sep-2006 Andreas Gohr <andi@splitbrain.org>

fix for previous pagetemplate event patch

Sorry, did mess up in testing the last patch.

darcs-hash:20060916000515-7ad00-3874991f9121ac80b2b3b66d4f5ac166702df1d1.gz


# 7d559c7f 11-Sep-2006 Ben Coburn <btcoburn@silicodon.net>

reorganize changelog code

Moves changelog code to 'inc/changelog.php'
and includes it from 'inc/common.php'.

darcs-hash:20060911023822-05dcb-e727737011163cbf04f0a4c682cb9fd8a985e597.gz


# e45b34cd 11-Sep-2006 Ben Coburn <btcoburn@silicodon.net>

changelog redesign update

- Improves handling of deleted revisions.
- Import plugin disables after import.
- Check act reports if plugin is still enabled after the import.
- Import correctly handles

changelog redesign update

- 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

show more ...


# d8186216 08-Sep-2006 Ben Coburn <btcoburn@silicodon.net>

suppress boring errors

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-05

suppress boring errors

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

show more ...


# 9eb7920d 08-Sep-2006 chris <chris@jalakai.co.uk>

clientIP() update + additional unit test

darcs-hash:20060908124315-9b6ab-7e4146e1068ab08d5539a7c573502d8373a0e524.gz


# 4ff28443 08-Sep-2006 chris <chris@jalakai.co.uk>

clientIP() update, data cleaning improvements

as per recent security warning, clientIP() could
return other arbitrary data along with an IP
address. This fix ensures only IP addresses can
be returne

clientIP() update, data cleaning improvements

as per recent security warning, clientIP() could
return other arbitrary data along with an IP
address. This fix ensures only IP addresses can
be returned by this function.

darcs-hash:20060908122744-9b6ab-8c90ca361b038a47b65f3f3dbf7228ae569f8c08.gz

show more ...


# 71726d78 30-Aug-2006 Ben Coburn <btcoburn@silicodon.net>

scalable changelog redesign

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

scalable changelog redesign

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

show more ...


# 02a498e7 22-Aug-2006 chris <chris@jalakai.co.uk>

bug #876, additional data for new user notification email

This patch updates only the english version of the localised
"registermail.txt" file. Other versions need to be updated also.

darcs-hash:2

bug #876, additional data for new user notification email

This patch updates only the english version of the localised
"registermail.txt" file. Other versions need to be updated also.

darcs-hash:20060822072444-9b6ab-ff6cb5bc78277c383e82c3986eeb16168e86c27b.gz

show more ...


# ff3ed99f 23-Aug-2006 marcel <marcel@rucksackreinigung.de>

Added bz2 compression support for Attic

darcs-hash:20060823211149-9c1ae-569f295c33dc798a429a373f48cb09122334ea29.gz


# 7ec553c4 11-Jul-2006 Andreas Gohr <andi@splitbrain.org>

bugfix for getRevisions

This fixes a bug where the list of old revisions isn't build correctly if
pagename exists within another one.

darcs-hash:20060711191433-7ad00-d8d2a1f072e5874f63a5d82c905920a

bugfix for getRevisions

This fixes a bug where the list of old revisions isn't build correctly if
pagename exists within another one.

darcs-hash:20060711191433-7ad00-d8d2a1f072e5874f63a5d82c905920a496d4212a.gz

show more ...


# cc7d0c94 05-Jul-2006 Ben Coburn <btcoburn@silicodon.net>

IO action events

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 ev

IO action events

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

show more ...


# c9b4bd1e 05-Jul-2006 Ben Coburn <btcoburn@silicodon.net>

refactor wiki page edit locking

- Adds a new function in 'inc/pageutils.php', wikiLockFN($id)
- All page edit locks should now be created with the file name
generated by wikiLockFN($id).

refactor wiki page edit locking

- Adds a new function in 'inc/pageutils.php', wikiLockFN($id)
- All page edit locks should now be created with the file name
generated by wikiLockFN($id).
- wikiLockFN
- Generates wiki page editing locks in the 'data/locks'
directory where they belong.
- This avoids polluting the 'data/pages' directory with lock files,
which were causing namespaces to be created before they logically
should exist.

darcs-hash:20060705033135-05dcb-8eac316587cd54c6ebd861fe7b15975d90b0e4dc.gz

show more ...


# 63cb5853 16-Jun-2006 Andreas Gohr <andi@splitbrain.org>

aspell fix #836

darcs-hash:20060616154906-7ad00-6ace887070a70fda5f898f241aebb639230b53d8.gz


# a06e4bdb 15-Jun-2006 Sebastian Harl <sh@tokkee.org>

register notify #826

A small patch for dokuwiki which enables dokuwiki to notify the
administrator about new user registrations

darcs-hash:20060615194419-022eb-51630aff3c6d93abc656742fc0bc723b93f97

register notify #826

A small patch for dokuwiki which enables dokuwiki to notify the
administrator about new user registrations

darcs-hash:20060615194419-022eb-51630aff3c6d93abc656742fc0bc723b93f97734.gz

show more ...


# 3b97c5ec 01-Jun-2006 chris <chris@jalakai.co.uk>

fix php warning in common.php during getRevisions

A php warning can occur when the page name used in a revision check clashes with
a namespace (sub-directory) in the same directory. The strpos() ca

fix php warning in common.php during getRevisions

A php warning can occur when the page name used in a revision check clashes with
a namespace (sub-directory) in the same directory. The strpos() call generates
the warning as the offset used is longer than the directory name.

darcs-hash:20060601212928-9b6ab-2d9399ba71fbfcae6e797977476e2f5daa50cf7f.gz

show more ...


# fb53bfe2 25-May-2006 Ben Coburn <btcoburn@silicodon.net>

getRevisionInfo much faster (cached)

Makes getRevisionInfo much faster when loading all the revisions of a page.
This is done by efficiently parsing the 'changes.log' data and caching the
results (i

getRevisionInfo much faster (cached)

Makes getRevisionInfo much faster when loading all the revisions of a page.
This is done by efficiently parsing the 'changes.log' data and caching the
results (in memory) so that future calls to getRevisionInfo return
immediately without reloading the 'changes.log' file.

(Note: the changelog system in DokuWiki should still be rewritten so
that changes are not logged into one huge file!)

darcs-hash:20060525083202-05dcb-8c0eea695055b51a218a0e311169cda0bb0d4363.gz

show more ...


# 6f6c2468 25-May-2006 Ben Coburn <btcoburn@silicodon.net>

makes getRevisions faster

Makes inc/common.php#getRevisions a little faster.
Takes about half as much time as the preg_match.

darcs-hash:20060525030452-05dcb-dbff9f9c134a425669ff6a477612737b022fb6b

makes getRevisions faster

Makes inc/common.php#getRevisions a little faster.
Takes about half as much time as the preg_match.

darcs-hash:20060525030452-05dcb-dbff9f9c134a425669ff6a477612737b022fb6bd.gz

show more ...


# 39a89382 15-Apr-2006 Esther Brunner <esther@kaffeehaus.ch>

new metadata renderer; functions p_get_metadata() and p_set_metadata()

darcs-hash:20060415104627-283c4-c7d35620fc9dbc21b8a47089692b76d35a9f9ca8.gz


# 7de6c234 14-Apr-2006 Andreas Gohr <andi@splitbrain.org>

magpie files removed

darcs-hash:20060414110517-7ad00-a942f845647f301255365b162a22826cd9a983f6.gz


# 2e2fda08 10-Apr-2006 Yann <yann.hamon@gmail.com>

small fix for getRevisionInfo

darcs-hash:20060410190409-919ab-f77447b1cb1b8de6e2a5790519d4aafc7baa577b.gz


# f5c2808f 05-Apr-2006 Ben Coburn <btcoburn@silicodon.net>

rewrite export URLs

This patch rewrites export urls so that robots.txt can be used
to request that some (or all) export types are ignored by
robots when indexing the wiki.

For example:
User-agent:

rewrite export URLs

This patch rewrites export urls so that robots.txt can be used
to request that some (or all) export types are ignored by
robots when indexing the wiki.

For example:
User-agent: *
Disallow: _export/

or for example:
User-agent: *
Disallow: _export/raw/

Note: This rewriting is only done when $conf['userewrite'] is
set to '1' for using the rewrite rules from '.htaccess.dist'.

darcs-hash:20060405025621-05dcb-b1b5f48681f78d75d25b1e75fab79346fcc8b84e.gz

show more ...


1...<<11121314151617181920>>...22