summaryrefslogtreecommitdiff
path: root/inc
Commit message (Collapse)AuthorAge
* strip controlchars in fetch.php #935Andreas Gohr2006-10-08
| | | | | | Fixes a header injection/XSS vulnerability darcs-hash:20061008100523-7ad00-be06a942badb6a2a9ed862be003ee0050504b4b0.gz
* remove unused codeAndreas Gohr2006-10-08
| | | | | | | This patch removes some commented code fragments and alternative snippet generators darcs-hash:20061008090624-7ad00-14bfee2ded6c6c8ef43ad02a4c02a5d95ee9daf7.gz
* fixed images in email linksAndreas Gohr2006-10-08
| | | | darcs-hash:20061008074029-7ad00-8457873dd8ad2f5a36dc8f44eca42a4378e61e93.gz
* update p_get/set_metadata to use $INFO['meta']chris2006-10-04
| | | | | | | | | | | | | This patch updates p_get_metadata() to utilise the in memory copy copy of the current page's metadata ($INFO['meta']) when appropriate. The patch also updates p_set_metadata() to synchronise any changes to the current page's metadata with $INFO['meta']. $INFO hash is updated with two new elements: 'id' darcs-hash:20061004210030-9b6ab-7eab6f933a775fe350a1fb14d1118ea77d2db919.gz
* added draft-feature to tpl_actionlinkMichael Klier2006-10-06
| | | | darcs-hash:20061006113409-23886-166f573a8ae5c897011282ef22a581cea1dbce86.gz
* always bind as superuser for getting userinfo (LDAP) #751Andreas Gohr2006-10-03
| | | | | | | Rebind as superuser even on a previous successful bind as normal user, when superuser credentials are available. LDAP access restrictions may need it. darcs-hash:20061003153018-7ad00-16a69e99f93433bd9e999086f8757a56f975a1ef.gz
* use DOKU_URL as key for sessions and auth cookie #896 #581 #884Andreas Gohr2006-10-03
| | | | | | | | | | This patch changes the DOKU_COOKIE define to be based on the DOKU_URL define. DOKU_COOKIE is now used as session key as well, making sessions no longer dependend on the title option. This should fix problems with multiple wikis on the same host (using the same title) and wikis accessed through different URLs. darcs-hash:20061003121546-7ad00-aea4c256b7752815ed422ce74a659152a601d267.gz
* force rebind after opening new LDAP connection #751Andreas Gohr2006-10-03
| | | | | | | This patch sets the private bound variable back to false if a new connection is opened. darcs-hash:20061003104320-7ad00-24370bcdc7beff5db7d7f2e68ea180763699ca5c.gz
* install.php updateschris2006-09-30
| | | | | | | | | | - add retry button (as suggested by Diego Georgini) - correct error color, from green to red (spotted by Diego Georgini) - add utf8_decode and utf8_encode to required function list, when mb_string functions are not available. - remove extra backslash from reported file names. darcs-hash:20060930170121-9b6ab-d7b4a455b01d28f35b8c69385639439eaca8944e.gz
* fix relBen Coburn2006-09-30
| | | | darcs-hash:20060930143719-05dcb-251992d688e64ed221dbfe3d9c198fae603e2531.gz
* more utf8_substr improvements (re FS#891 and yesterday's patch)chris2006-09-28
| | | | | | | - rework utf8_substr() NOMBSTRING code to always use pcre - remove work around for utf8_substr() and large strings from ft_snippet() darcs-hash:20060928165122-9b6ab-0eefc216f07f9d7e7d8eb62ce26605c28ee340fa.gz
* Fix link in french translationGuy Brand gb@isis.u-strasbg.fr2006-09-27
| | | | darcs-hash:20060927091545-c47a2-f706a9e54e7450084ffb929b44c9a1b1707c4eef.gz
* utf8_substr fix for FS#891chris2006-09-27
| | | | darcs-hash:20060927033713-9b6ab-4b35e0a85b6d11d5a3a98858cd2f860b383ff153.gz
* wordblock enhancementAndreas Gohr2006-09-26
| | | | | | | | | | | | | | The default wordblock.conf provided by the guys at chonqed.org matches agaist URLS beginning with http. But DokuWiki also links simple www.example.com links. Spammers used this method to place blacklisted URLs in the Wiki. This patch constructs full URLs from these shortcut-URLs before applying the blacklist regexp. The patch also fixes a problem with the toolbar not appearing when the blacklist hit and denied saving. darcs-hash:20060926192420-7ad00-519df90a5953b690428bfa0928de37b3053031b0.gz
* amendments to previous patch updating rss & cachechris2006-09-25
| | | | | | | | | | | rss syntax extended to include a refresh parameter <digits><period> period can be d,h,m for days, hours, minutes respectively if not specified will default to 4 hours dokuwiki imposes a minimum of 10 minutes metadata now used "date valid age" (seconds) rather than "date valid end" darcs-hash:20060925201222-9b6ab-c8e6d8e40bb178295bab874fce5147ccff35fbbb.gz
* cache, metadata & purgefile updateschris2006-09-24
| | | | | | | | | | | | | | | | | | | Cache - add dependency for metadata renderer file - check metadata for end of page life, "date valid end". Metadata Renderer - RSS syntax mode now sets rendered page expiry, "date valid end" and includes the feed URL in "relation haspart". Purgefile For all wiki installations the purgefile records the earliest time before which no cache purge (based on data consistency) is required. Cache files older than this time MAY need to be purged. - remove purgeonadd configuration setting darcs-hash:20060924202157-9b6ab-4531e91411c41914eeab2b6a8160c3d46b001cee.gz
* remove metadebug again, improve doÞbug insteadAndreas Gohr2006-09-25
| | | | | | | This adds the complete $INFO array (contains the metadata) to the usual debug output and removes the metadebug parameter again. darcs-hash:20060925201052-7ad00-c9a15b921466803b3f2bd50b0d72211cf68658c5.gz
* metadebug parameter addedAndreas Gohr2006-09-25
| | | | | | | | With DokuWiki's reliance on certain page metadata, it is sometimes necessary to view the metadata of a page. This patch allows developers to append the parameter ?metadebug darcs-hash:20060925193202-7ad00-6a42c7458aaa1cc40df3c7a61ad70df5d64be152.gz
* don't link non-existing revisionsAndreas Gohr2006-09-25
| | | | | | | | The new changelog mechanism shows all revisions of a document, even if the old revisions are deleted (eg. by a maintenence script). This patch removes the links for non existing revisions. darcs-hash:20060925185434-7ad00-14a558ce69c4116e14d7fdfbaad052c6a7b0a4db.gz
* fix problem with timezone in feed #424Andreas Gohr2006-09-24
| | | | darcs-hash:20060924195618-7ad00-47d67044c2d03eb9d90a7209fd23ab6c151c5e00.gz
* progressbar script changeAndreas Gohr2006-09-24
| | | | | | | | The progressbar script used in the search accessed parts of the DOM before it was completely parsed which caused problems in IE. This patch moves back to document.write for outputting the image. darcs-hash:20060924170354-7ad00-1e0247b00fc4da4dd30301f4b9389ef727496c4a.gz
* fix for reversed RSS feeds #918Andreas Gohr2006-09-24
| | | | darcs-hash:20060924101329-7ad00-acff05b813c58ac7ddb98385c9970800af7aca6b.gz
* fix recent changes cache orderingchris2006-09-24
| | | | | | | | | | 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
* p_get_first_heading simplificationchris2006-09-23
| | | | darcs-hash:20060923204905-9b6ab-da3e9751c07c1bd07cf6583ecc5d92c2ce95097c.gz
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
* add authname memory cachechris2006-09-23
| | | | | | | | actions which concern multiple pages (e.g. search, backlinks, recents) end up repeatedly encoding the current user's name and groups. This change caches the results of the encoding allowing them to be reused. darcs-hash:20060923161206-9b6ab-a3ec8f1c2ec284d84b9ff85cba1e56165b2967a7.gz
* utf8_stripspecials optimizationchris2006-09-23
| | | | | | | | | | | | | | | Add preconverted utf-8 string of special characters. The (once only) conversion of the special character unicode array into utf-8 occurs on every DokuWiki page view, irrespective of action or caching, and takes about one third of the time involved in delivering a wiki page straight from cache. The original unicode array has been left in place in the file to make any future amendments easier. darcs-hash:20060923151937-9b6ab-cae0340a95d9596415ef71d7b7e67ef9daca84ef.gz
* GeSHi upgrade to 1.0.7.14Andreas Gohr2006-09-23
| | | | darcs-hash:20060923105545-7ad00-52ca67905f51cb7d4782ff87276c01164b52daec.gz
* croatian language filesAndreas Gohr2006-09-21
| | | | darcs-hash:20060921175655-7ad00-f4d1d9639928ead2840b2d9199503f46ef3260ca.gz
* Store cache hits only while debuggingBen Coburn2006-09-18
| | | | | | | Reduce overhead by only storing cache hit stats while the allowdebug option is enabled. darcs-hash:20060917230403-05dcb-92afea926b5a3fc302327f964e482787aec2d982.gz
* parser update, add 'rss' to block mode lists, see FS#888.chris2006-09-17
| | | | darcs-hash:20060917211445-9b6ab-ae454dbf55ef50d664a80afd32fd42667f438ba5.gz
* cache.php fixeschris2006-09-17
| | | | | | | - add code to ensure page metadata is refreshed along with cache - bug fix for missing global $conf darcs-hash:20060917193934-9b6ab-c53c8b6e4764d4c63014ecbaadf0797eb959224f.gz
* infoutils updatechris2006-09-17
| | | | | | minor modifications to avoid php warnings if msg file is missing. darcs-hash:20060917153009-9b6ab-4b6ee49d728e89c3427130c617b532cd23c680bb.gz
* update for updatecheck functionAndreas Gohr2006-09-17
| | | | | | | Messages are now displayed to all users if ACL is not enabled. The update-URL changed to http://update.dokuwiki.org/check/ darcs-hash:20060917145025-7ad00-1d64b90e51c1a49567a28b132caf79ae0f124c8e.gz
* event names renamedAndreas Gohr2006-09-17
| | | | | | | HTML_EDIT_PAGETEMPLATE becomes HTML_PAGE_FROMTEMPLATE TPL_METAHEADER_PRINT becomes TPL_METAHEADER_OUTPUT darcs-hash:20060917103450-7ad00-405f3533915b54ee4d4050cfccbf27d43ff7435f.gz
* updatecheck featureAndreas Gohr2006-09-16
| | | | | | | | | | | | | | | | | 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
* cleanID on passforgot action #861Andreas Gohr2006-09-16
| | | | darcs-hash:20060916194626-7ad00-2eeb07a509c95359a9bd1b164db4af7279b7f330.gz
* minor update to cache.phpchris2006-09-15
| | | | | | | | | | | this update changes the processing sequence slightly to make the cache item's dependencies ($this->depends) available before _useCache is called. ie. the dependencies will be available to and modifiable by handlers of the PARSER_USE_CACHE event. darcs-hash:20060915144735-9b6ab-b0db479f9ef305aed21ca291ea909002baae4e21.gz
* better getVersion when working on a darcs treeAndreas Gohr2006-09-16
| | | | | | | | 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
* TPL_METAHEADER_PRINT event hook addedAndreas Gohr2006-09-16
| | | | | | | | | | 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
* permission setting in io_rename fixed #912Andreas Gohr2006-09-16
| | | | darcs-hash:20060916145350-7ad00-cb78b531006e1f1875b2d8e8bc648740e5021736.gz
* fix for previous pagetemplate event patchAndreas Gohr2006-09-16
| | | | | | Sorry, did mess up in testing the last patch. darcs-hash:20060916000515-7ad00-3874991f9121ac80b2b3b66d4f5ac166702df1d1.gz
* HTML_EDIT_PAGETEMPLATE event addedAndreas Gohr2006-09-15
| | | | darcs-hash:20060915202321-7ad00-2f3440a36d7a41604c1cbfbc9633c898c7b9ff0e.gz
* fix for missing quotation mark in tpl_metaheadersAndreas Gohr2006-09-13
| | | | darcs-hash:20060913185921-7ad00-8ee85b4a39944484d660c8a1d710bd548feac26b.gz
* slovak language updateOndrej vegh2006-09-13
| | | | darcs-hash:20060913185616-f4aa4-49a3cfe651bdea99eab453b911a2ef49bf7d400a.gz
* reorganize changelog codeBen Coburn2006-09-11
| | | | | | | Moves changelog code to 'inc/changelog.php' and includes it from 'inc/common.php'. darcs-hash:20060911023822-05dcb-e727737011163cbf04f0a4c682cb9fd8a985e597.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
* clientIP() update + additional unit testchris2006-09-08
| | | | darcs-hash:20060908124315-9b6ab-7e4146e1068ab08d5539a7c573502d8373a0e524.gz