summaryrefslogtreecommitdiff
path: root/inc/common.php
Commit message (Collapse)AuthorAge
* stricter xhtml for revert, acl and sectok formsAnika Henke2008-03-13
| | | | darcs-hash:20080313012547-d5083-8d8f3c2ad62f08b9ed73827987d3b8be17f6b34b.gz
* another change in highlight handlingAndreas Gohr2008-03-10
| | | | | | | | | | Now higlighting phrases are passed as an array which then is quoted correctly when used in a regexp. This should make phrase highlighting work completely correct. Please everyone test it. darcs-hash:20080310214939-7ad00-1abefb02dde40edeead50b4fa5c866c46b95ca3a.gz
* Add namespace changes mail notificationsGuy Brand2008-02-27
| | | | | | | | This patch lets DokuWiki send mail notifications when any page inside a namespace gets modified. Two actions are introduced: subscribens and unsubscribens and two new buttons also appear in the bundled template. darcs-hash:20080227155024-19e2d-8ce5bd66f4e870db31d6b438516599f294365ce1.gz
* Check memory settings on ?doAndreas Gohr2008-02-23
| | | | | | This should help with diagnosing memory related problems darcs-hash:20080223180701-7ad00-1308829c3d7432b1d0c23c3f1acc8228c0a41e1e.gz
* wl(): don't include empty id parameter FS#1138Andreas Gohr2008-02-23
| | | | darcs-hash:20080223133200-7ad00-409ee76b0bb36a1dff7b6f09181692e0742a86fd.gz
* use strftime() instead of date() FS#1335 :!:Andreas Gohr2008-02-23
| | | | | | | | | | | | | | This patch replaces the use of the date() function with the strftime() function. The latter will respect a set locale and will use localized strings for things like month names. Because the format options for strftime differ from the ones used in date, DokuWiki will rest the value of $conf['dformat'] if it contains an old date format string (detected by missing % characters). Plugins or templates using the $conf['dformat'] need to be updated. darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
* fix highlighting of search engine referer keywords for recent highlight changeAndreas Gohr2008-02-15
| | | | darcs-hash:20080215175816-7ad00-f12f54210dceacf4b3580e78b2f86a21a23b4315.gz
* Support for deep namespace templates and strftime placeholdersAndreas Gohr2008-01-26
| | | | | | | | | | | This patch addes namespace templates will be used for all new namespaces in the same namespace and the namespaces below. They have to be named __template.txt Additionally can strftime() place holders be used in namespace templates to insert any part of the current time into a template. darcs-hash:20080126165959-7ad00-9a820e42d237e1aa0828996ebc9cf3d67d453128.gz
* typo fix FS#1316Andreas Gohr2008-01-22
| | | | darcs-hash:20080122222402-7ad00-436d561b2cc12a225c6f407540ba54268d6550d0.gz
* gethostsbyaddrs() must check if only one IP was suppliedMichael Klier2008-01-22
| | | | darcs-hash:20080122175535-23886-a6e9a9170bf23ebe460cccdbb06f97206d1d98eb.gz
* Show proxy path in notify mails FS#1308Glen Harris2008-01-18
| | | | darcs-hash:20080118201511-f6de1-13f0ffff4f546298cce1a4e3dcd2d9679217ace8.gz
* Trigger IO_WIKIPAGE_WRITE on page deleteGabriel Birke2007-12-21
| | | | | | | | | | | DokuWiki will fire two IO_WIKIPAGE_WRITE events instead of one when a page is deleted. The first event has no revision and empty text in the data. Now the code conforms with the documentation at http://wiki.splitbrain.org/wiki:events_list#io_wikipage_write Now action plugins can act on page delete. darcs-hash:20071221150130-79ce3-51092d13c2e29285e5580f704f409f25563134c6.gz
* getUserData should really be implemented always... (FS#1272)Andreas Gohr2007-12-03
| | | | | | | ... but with this patch DokuWiki will not break completely when left out for trustExternal() auth backends darcs-hash:20071203201532-7ad00-72dbc2d16e4c8c09cca9558286164f4d858c19ce.gz
* ptln parameter spelling correctionChris Smith2007-09-30
| | | | darcs-hash:20070930020815-d26fc-d9b3baf8c1bf0627dbdd011fd5791a3b11b09a82.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* CSRF prevention for admin pluginsAndreas Gohr2007-08-29
| | | | | | | | | | | | | | | 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
* generic search engines result highlightingAndreas Gohr2007-08-04
| | | | darcs-hash:20070804125124-7ad00-5558de577207bb63af7629f278c24991f23924bc.gz
* Skip only empty strings not 0 in buildAttributesAndreas Gohr2007-08-04
| | | | darcs-hash:20070804071749-7ad00-c7e718c2e24f4ded10b5780e2881e232fab8e48c.gz
* update breadcrumbs to generate metadata when necessary for use_first_headingChris Smith2007-08-02
| | | | darcs-hash:20070802174401-d26fc-d9a099773f08c1d85b4f481eb1b634d2e14eba86.gz
* skipempty parameter for buildAttributesAndreas Gohr2007-07-25
| | | | darcs-hash:20070725211324-7ad00-97ee12f6e28ab8298775218adbcb571a3b79c2d6.gz
* fix for rare wordblock fail FS#1179Andreas Gohr2007-07-16
| | | | darcs-hash:20070716201347-7ad00-0f9bd8c9a218cc880a7b4e00e0abc2dd4650f409.gz
* fixed URL in file upload notify mail FS#1160Andreas Gohr2007-06-13
| | | | darcs-hash:20070613191542-7ad00-0e72b3c40f9593838641be5c4e728a8e1a68d550.gz
* no ampersand encoding in URLs for emails FS#1157Andreas Gohr2007-06-13
| | | | darcs-hash:20070613152712-7ad00-903176f9d5632ab1f26a4d8849f7eb7523134874.gz
* don't capture blocked words in spam checkAndreas Gohr2007-04-22
| | | | | | | | | In the checkwordblock check, the blocked word isn't used, so there is no need to capture it. This might improve the spam check speed (untested). See http://forum.dokuwiki.org/thread/752 darcs-hash:20070422100519-7ad00-61e364816942afdd0f714a703f15ac75c838fccb.gz
* fix for old revisions showing "external edit" without reason FS#1092Andreas Gohr2007-04-11
| | | | darcs-hash:20070411193230-7ad00-95bf7919c303470ca0583d690a84522735974bb6.gz
* fix for breadcrumbs and "namespace:start" pages (FS#927) by Nathan Fritz ↵Anika Henke2007-03-31
| | | | | | <fritzn@crown.edu> darcs-hash:20070331213401-d5083-2c30028ab1c81465b0295106ce6a52ce18ad87cf.gz
* readded two changes from recent rollbackAndreas Gohr2007-01-06
| | | | darcs-hash:20070106111209-7ad00-2f632e44c6062d0c428269feb4276e83124eedad.gz
* UNDO: regex_simpler.patchhenning.noren2007-01-04
| | | | | | Replaces some simple regular expressions with standard (faster) string functions darcs-hash:20070104194953-d2a3e-8fd0c89812277467c5bce566dfc3fba6ce1c3981.gz
* faster_indent.patchhenning.noren2007-01-04
| | | | | | Replaces a print-loop with str_repeat concatenated with the final output darcs-hash:20070104195358-d2a3e-a1f74b5380e7426b3f7e61c76d58e36363971eee.gz
* regex_simpler.patchhenning.noren2007-01-04
| | | | | | Replaces some simple regular expressions with standard (faster) string functions darcs-hash:20070104194953-d2a3e-0b06e7a599a0177ad37a54497074893572e1cae2.gz
* changelog type strings replaced with constantsBen Coburn2006-12-07
| | | | | | | | Using more verbose constant names in the place of single character strings should make the code much more readable. This does not change the behavior of the changelog. darcs-hash:20061207074906-05dcb-0bdc35e7241bf14063b2b43a6ff26d8a3c307cb9.gz
* identify external edits in UIBen Coburn2006-12-07
| | | | | | | | | | | Some changes to clearly identify when wiki pages have been edited outside Dokuwiki. Also correctly attributes external changes from an unknown author. Avoids sending extra emails when recording old external edits. Adds a new language string: $lang['external_edit'] darcs-hash:20061207032825-05dcb-3234bee57cb165c848b33abb9251502589b0f3cb.gz
* recache and uncache the last_change from metadataBen Coburn2006-12-07
| | | | | | | | | | | | | | The most recent changelog entry is already cached in the metadata as 'last_change' to avoid reading the page changelog on every request. - Recache the last change if it is missing and still valid. This is needed for when the metadata has been rerendered. - Uncaches the last change when it has been invalidated by an external edit. Ensures that external edits are not credited to the wrong author. darcs-hash:20061207011005-05dcb-3b1749f6626d07c4cc3de9587c45765423e2e4d9.gz
* allow dynamic e-mail "from" addresses when doing notificationMike Frysinger2006-12-05
| | | | | | | this patch allows you to use @USER@ / @NAME@ / @MAIL@ in the "from" address when sending a mail notification e-mail darcs-hash:20061205201957-5224c-5637d6412106cb16af8817f07c8c02e95e4b3088.gz
* manager user/groupAndreas Gohr2006-12-03
| | | | | | | This patch adds support for a manager option as suggested in http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz
* $REV checking now works correctly with synced atticBen Coburn2006-10-31
| | | | darcs-hash:20061031224158-05dcb-0bf9505f51be5ab91f258254adfdded5f7087dcf.gz
* synchronize changelog, attic, and external edits - update 1Ben Coburn2006-10-27
| | | | | | | Removed a minor error that could be caused by a page back-dated into the past. Also, added some more code comments. darcs-hash:20061027000043-05dcb-1ccbb4c98b1b7b3358d99d8f097eb168d84259b7.gz
* synchronize changelog, attic, and external editsBen Coburn2006-10-23
| | | | | | | | The changelog list and the attic now are kept in sync. This allows a changelog entry to be automatically constructed for a page that was manually edited from outside dokuwiki. darcs-hash:20061023052133-05dcb-11b8dbaee1da07fb1875bbe530e88d94871ed65d.gz
* lower chunksize in wordblock #938Andreas Gohr2006-10-09
| | | | | | | There were recent reports of exceeded patternsize in the wordblock function when used with PHP5 darcs-hash:20061009165557-7ad00-f35d44da296caf6fd85431520d600033402d9b2f.gz
* strip controlchars in fetch.php #935Andreas Gohr2006-10-08
| | | | | | Fixes a header injection/XSS vulnerability darcs-hash:20061008100523-7ad00-be06a942badb6a2a9ed862be003ee0050504b4b0.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
* 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
* 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
* 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
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.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
* 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
* fix for previous pagetemplate event patchAndreas Gohr2006-09-16
| | | | | | Sorry, did mess up in testing the last patch. darcs-hash:20060916000515-7ad00-3874991f9121ac80b2b3b66d4f5ac166702df1d1.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