summaryrefslogtreecommitdiff
path: root/inc/common.php
Commit message (Collapse)AuthorAge
* Work around IIS bug for redirects FS#1576Andreas Gohr2009-01-27
| | | | | | | | | | | | | Ignore-this: 37b33f575e4c0b31e4af93185bf74f0f When IIS is running PHP in CGI mode it will not send cookie headers on 302 redirections. This is a known bug (KB176113). This patch will detect affected servers. Instead of a 302 redirect a Refresh: header is issued. This is supported by all known browsers should have the same effect as a real redirect. darcs-hash:20090127204506-7ad00-ce474f3b0db003e86e09d5e9a9bd7c96887ac01c.gz
* Media changelog addedmichael2009-01-18
| | | | | | | | There is a new media changelog now, with the flag RECENTS_MEDIA_CHANGES media changes can be requested from the getRecents()-function or the new getRecentsSince()-function, that returns all changes since a given timestamp and optionally before a given timestamp. The media upload and the XML-RPC-server have been changed to use these functions. Additionally, the event MEDIA_UPLOAD_FINISH has been extended, it has a new $data-attribute (the 5th), that contains a boolean if the file does already exist and will be overwritten. darcs-hash:20090118154345-074e0-5d9a90d269e86d8c6a156ecce5cf63115c827433.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* FS#630: allow $conf['useheading'] to individually apply to content links ↵Chris Smith2008-11-19
| | | | | | | | | | | | | | | | and/or navigation links $conf['useheading'] values are now: - 0 : off, use page name in link text - 'content' : use first heading text for links in wiki page content - 'navigation' : use first heading text for links in non-page content, e.g. breadcrumps, backlinks, search results, etc. - 1 : use first heading text in all links (for backwards compatibility, any other values are mapped to 0 or 1 by empty() function.) $conf['useheading'] value should now be checked using the useHeading($linktype) function, where linktype can be "content" or "navigation" darcs-hash:20081119140758-f07c6-6e26456d50dcecc949fada31b0d4e72877fde1cc.gz
* moved crop/resize functions out of fetch.php for reusabilityMichael Klier2008-10-26
| | | | darcs-hash:20081026135833-23886-a9c8e910571c6e7a4e1603a2ebd365b3ed37108a.gz
* more placeholders for namespace templatesAndreas Gohr2008-10-26
| | | | | | | | | | | This patch adds a @FILE@ placeholder for namespace templates which is similar to the @PAGE@ placeholder but keeps underscores intact. It also adds placeholder to insert the page name with a first uppercase character, all words uppercased or the whole string uppercased. The utf8 library was enhanced with utf8_ucfirst and utf8_ucwords functions darcs-hash:20081026084239-7ad00-1a4be6bb85280df025ca308d4ed2e50da1cbc9cf.gz
* Avoid editing sections of outdated pages FS#1513Andreas Gohr2008-10-16
| | | | darcs-hash:20081016181955-7ad00-5745635416542fd04dbdf67cbf043bf446e995bc.gz
* don't send subscriber mails to the editor herself FS#1450Andreas Gohr2008-10-12
| | | | darcs-hash:20081012212826-7ad00-0027ac926fdaa413521704536465bb83938a4366.gz
* Fix IPv4 regexp and add IPv6 regexp (clientIP)Guy Brand2008-10-12
| | | | darcs-hash:20081012192728-19e2d-5219ad7bf461a758b62ee311598937ecd958916b.gz
* FS#1024 new Event COMMON_WORDBLOCK_BLOCKEDMichael Klier2008-10-12
| | | | | | | | | | | | | | This event allows action plugins to take action if a wordblock occurs. Event data: data[matches] - array of wordblock matches data[userinfo] - detailed userinfo [ip] - ip address [user] - username (if logged in) [name] - real name (if logged in) [mail] - mail address (if logged in) darcs-hash:20081012174849-23886-0ac42addc14ee3e36e961272de229a6002d052e9.gz
* Make license selectable from config FS#312Andreas Gohr2008-10-12
| | | | darcs-hash:20081012113150-7ad00-6408da058bdb6c923159d445e03b76f54b579362.gz
* FS#1234: If useheading is enabled, purge the cache of backlinks upon saveGina Haeussge2008-10-11
| | | | darcs-hash:20081011164342-2b4f5-b2e26e17ce970927ddbc0c5b888815063d613b0e.gz
* editor_info_patchAndy Webber2008-10-01
| | | | | | | | | | | At present, DW shows the username on the bottom left under "logged in as", and the login name for "last modified", "locked by" and under revisions/recent changes. In a corporate environment, particularly when integrated with a Single Sign-On system, the login name may be somewhat unfriendly. This patch makes the "logged in as" the same as the value used elsewhere and also allows an admin to decide whether it should be the login name, username or e-mail address that is displayed. The e-mail address may also, optionally, be a mailto: link. E-mail addresses are obfuscated according to the 'mailguard' setting. The default behaviour is to show the login name which is no change from previous behaviour for the "last modified"/"locked by"/revisions/"recent changes", but is a change for the "logged in as". darcs-hash:20081001152914-6ad63-9cd7174068ac55de381f1318a4401f8c51de5b0c.gz
* mobile detection addedAndreas Gohr2008-08-23
| | | | | | | | This patch adds detection of mobile browsers to DokuWiki. $INFO[ismobile] will be set to true for mobile browsers. Template authos can use this to adapt their template dynamically. CSS support will follow. darcs-hash:20080823152454-7ad00-67e50139572a746d2b356bdbb2a53a3f21b53bcb.gz
* strip default parameters from media URLsAndreas Gohr2008-08-17
| | | | | | | Default parameters like cacheÊche or empty width or heights are stripped from media URLs now. darcs-hash:20080817134207-7ad00-4b53c1f9b121fcbb3e0c5cc38e672f1b20157956.gz
* display the (shortened) namespace for page quicksearchAndreas Gohr2008-08-14
| | | | | | | | | | | | | | | When displaying pagename matches in the Ajax quick search or normal search, the namespace of the page is shown behind the pagename. This makes it easier to distinguish the pages when the same namespace is used in different namespaces. To avoid breaking the layout in deep nested namespace hierarchies, the namespace is shortened in the middle when needed. This patch also disables the effect of the useheadings option in the Ajax quick search. After all the results should show what was found and since the search works on pagenames not headings it should show pagenames as result. darcs-hash:20080814194826-7ad00-9add9c1bbbb4f4ede3c6884d37427644b2cddc56.gz
* Explicite TypeCast for searchIndexgweissbach2008-08-04
| | | | | | | | | | | Running the /bin/indexer.php or the searchindex plugin fails in php5 with several type cast errors. This can be fixed using explicite type casts. Secondly the include plugin requires the auth.php to be present. As some other plugins might use quick-acl or the $auth too, indexer.php should require the auth.php just as the lib/exe/indexer.php does. darcs-hash:20080804112444-f4337-e12f25329236689b05e31f0db2119e47660a9404.gz
* Avoid double newlines on section edits FS#1221Andreas Gohr2008-04-07
| | | | darcs-hash:20080407175410-7ad00-4c782db8b3d806d8034140a2b3d7994f53b1e0fc.gz
* work around strftime character limit on parsing namespace templates FS#1366Andreas Gohr2008-04-06
| | | | darcs-hash:20080406174718-7ad00-89b3946e17ce49566c0f51f3194776a0bdb4768d.gz
* Notify subscribers to parent namespaces. And avoid redundant checks.Tom N Harris2008-04-05
| | | | darcs-hash:20080405031301-6942e-d1e4f344f5cf165f625104f214f2bfae595a6e20.gz
* fixed search engine referrer highlightingAndreas Gohr2008-03-31
| | | | darcs-hash:20080331175353-7ad00-85da7f10269ead76b0f081aa1668cc27840c3b2e.gz
* purge non-persistent meta data on page deletionMichael Klier2008-03-26
| | | | | | | | With this patch applied the persistent meta data of pages is kept when a page is deleted. This way the original page creator as well as the creation time of the page is preserved. darcs-hash:20080326200231-23886-ddb70151fadf25d0254d56408b71484047198096.gz
* 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