summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
Commit message (Collapse)AuthorAge
* add page_exists function (inc/pageutils.php)Chris Smith2007-09-30
| | | | | | bool page_exists($id, $rev darcs-hash:20070930021040-d26fc-e3847bfdd20a36154685262eca94211cfd461e83.gz
* fix ID resolving with useslash FS#1176Andreas Gohr2007-07-09
| | | | darcs-hash:20070709183346-7ad00-1bac56195b99f05017a2c3623ae84b61769da85b.gz
* Fix infinite page redirects in getIDBen Coburn2007-05-26
| | | | | | | | | Fix infinite page redirects in getID Loading "start:" was causing a loop of page redirects. Page IDs like "start:" now resolve correctly to an ID like "start". darcs-hash:20070526094501-05dcb-eac8e908ecda8820aa0ef66760786b2094395fe2.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
* Namespace autolinking from URL (FS#991 fix)Guy Brand2007-03-30
| | | | | | You can now request doku.php?id darcs-hash:20070330212802-19e2d-d1988ade1a9cd5f898ecb0a55d09860d0193a84d.gz
* return time in GMT for conditional requests #1081Andreas Gohr2007-02-24
| | | | darcs-hash:20070224122418-7ad00-df595caf9d861bc6b4e5bf2d478df890b6f5bf7a.gz
* Fix namespace links and titles (FS 1005, 1006)Guy Brand2007-02-17
| | | | darcs-hash:20070217220746-19e2d-76c857902d24301707eb783ced96f25c00526659.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
* further update to global memory cache arrayschris2006-08-29
| | | | | | | | | | | | | - remove initialisation of caches in inc/pageutils.php - add global declaration to init.php to support init.php being included from within a function, e.g. unit testing ;-) - minor change to utf8_substr, remove non-essential brackets added as part of an earlier patch darcs-hash:20060829134806-9b6ab-ab15191344a83be664c412403dc84a24fa2253a2.gz
* init global memory cache arraysBen Coburn2006-08-28
| | | | | | | | Update to 'add function result caching for cleanID and wikiFN'. Makes certain that arrays exist for the caches, without checking on each function call. Properly create multidimensional arrays in wikiFN(). darcs-hash:20060828071205-05dcb-7c8dbdb5ea4e7b73808ec3bd9222df1b837d3a1f.gz
* update cleanID and wikiFN result caches to support unit testingchris2006-08-27
| | | | | | | - move caches into global scope (they were static in function scope) - add teardown() method to clean_id unit test - to clear its cache darcs-hash:20060827183327-9b6ab-cf9beb2ca6c47142dfaad3117d7c86748a54312c.gz
* add function result caching for cleanID and wikiFNchris2006-08-27
| | | | darcs-hash:20060827153352-9b6ab-651decb2566f16334218c6782edc6c7d47b41e13.gz
* update wikiFN with third paramter, $cleanchris2006-08-25
| | | | | | | | | | value defaults to true patch also includes an update to idx_parseIndexLine to make use of the new parameter - the index file (if built by DokuWiki's methods) will contain already "clean" IDs. darcs-hash:20060825144112-9b6ab-55adc71cf55bb58468fb3f0b03b9001ab149a82b.gz
* Added bz2 compression support for Atticmarcel2006-08-23
| | | | darcs-hash:20060823211149-9c1ae-569f295c33dc798a429a373f48cb09122334ea29.gz
* unittest fixeschris2006-08-04
| | | | darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
* http_conditionalRequest clean-upoliver2006-08-01
| | | | darcs-hash:20060801041118-b3fbc-9240577694a28b3d4829a9c7ae1014f69d6422a9.gz
* using md5 in wikiLockFNAndreas Gohr2006-07-07
| | | | | | sha1 may not be available in all installs and md5 is sufficient for the job darcs-hash:20060707115543-7ad00-c7216f7c5f5a3908124c8cc13a06e31cb1eb883d.gz
* optimize noNSBen Coburn2006-07-05
| | | | darcs-hash:20060705114601-05dcb-e8fda6653d8d085591d578f24d3677b29f09fa01.gz
* refactor wiki page edit lockingBen Coburn2006-07-05
| | | | | | | | | | | | | | - 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
* updated hierarchical breadcrumbsAndreas Gohr2006-06-18
| | | | | | Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz
* namespace linking first partAndreas Gohr2006-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds namespace linking - formerly known as globalstart patch. It differs somewhat from the original patch. It is not implemented in getID() but in resolve_pageid(). It is now possible to link to a "default" file of a namespace ending the linkid with a colon: [[foo:bar:]] To which page the link links is dependent on the xistance of certain named files. For the above mentioned link [[foo:bar:]] the following pages are checked: foo:bar:start foo:bar:bar foo:bar The pages are checked in the order above whatever page is found first will be linked to. If no page is found foo:bar:start will be chosen. BTW: 'start' is the value configured in $conf['start'] Note: autoplural linking is not done for those links This is just the first patch. Several other locations of the code need to be adjusted to reflect this change and some testing needs to be done (first test cases are supplied within the patch bundle) Things that maybe need adjustment: - tpl_youarehere (hierarchical breadcrumbs) - tpl_button back - maybe others (search?) Patches would be welcome. The best aproach to fix things that don't work is probably making calls to resolve_pageid() instead of simple cleanID() calls. darcs-hash:20060611184453-7ad00-ba70b0fcf2cb64d4d4f0ce6bd6e437595cd947d3.gz
* relative upper linksAndreas Gohr2006-04-14
| | | | | | Now allows links like [[..:..:page]] darcs-hash:20060414150358-7ad00-88394caabc6ee2ce7137694e2a0c0c98e7534ea5.gz
* refactored http_conditionalRequest($timestamp) to inc/pageutils.phpBen Coburn2006-03-15
| | | | darcs-hash:20060315064506-05dcb-92833a95f37a43ef50e6b993930ac9d25caed81f.gz
* file cleanupsAndreas Gohr2006-02-17
| | | | | | | | | | This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
* romanization support in utf8 libraryAndreas Gohr2006-02-10
| | | | | | | | | | | | | | | | | This patch addes basic romanization support to the utf-8 library. It converts non-latin languages to ASCII. The transliteration tables used where gathered from various places on the net. I do not speak any of those languages so I can't say how good they are. Any recommendations and fixes are welcome! This can be enabled for ID cleaning by setting the deaccent option to 2. It is also used in the XHTML renderer to generate section ids based on the header titles. Leading digits and any remaining non-ASCII chars are removed as well. This is the first step to make section ID always XHTML compatible. Making sure they are unique is not implemented yet. darcs-hash:20060210200627-7ad00-61a633563bb92a00ef4a3f699d73117139cbf367.gz
* fix special char ID handlingAndreas Gohr2006-02-03
| | | | | | | A given ID consisting of special chars only (either added manually in the URL or in the search box) will be ignored correctly now. darcs-hash:20060203153945-7ad00-60fc38b49604f45bb2ca912a9c76c619ad60ac44.gz
* Wildcardsearch added #552 #632Andreas Gohr2005-11-27
| | | | | | | | | | | Now searching for word parts is possible by adding or prepending a * character to the searchword: 'foo*' searches for words beginning with 'foo' eg. 'foobar' '*foo' looks for words ending in 'foo' eg. 'barfoo' '*foo*' gets anything with 'foo' in it eg. 'barfoobaz' darcs-hash:20051127180723-7ad00-1eb29e812ddaf38d9812697bb1cffffe9a5fb330.gz
* hidepages configoptionAndreas Gohr2005-11-03
| | | | | | | | | | | | | This new option accepts a RegExp to filter certain pages from all automatic listings (RSS, recent changes, search results, index). This is useful to exclude certain pages like the ones used in the sitebar templates. The regexp is matched against the full page ID with a leading colon. If it matches the page is assumed to be a hidden one. IMPORTANT: this is not related to ACL. A hidden page is still visible to all users (if not restricted by ACL) when linked or called directly. darcs-hash:20051103101726-6e07b-8d45912a1b4f6cfc9e3fce147c15f84a58ea7ca2.gz
* some fixes for getID and the detail pageAndreas Gohr2005-10-21
| | | | darcs-hash:20051021212304-7ad00-f01b3954b6b71ecc9e0cf899ed62bfb33e0c437e.gz
* fix script url for basedir and urlrewritejan2005-10-18
| | | | darcs-hash:20051018093844-45605-3e2e726159a92f328a5ea61d295bf7d42a3e7e2e.gz
* make sure $conf['start'] is a valid pagename #567Andreas Gohr2005-09-30
| | | | darcs-hash:20050930160928-7ad00-d3b2e2d7447eb93b6a39262221b8dbb131c698c9.gz
* basename instead of basedirjan2005-09-20
| | | | darcs-hash:20050920151530-45605-53d07bfd3467f40f809296d983676b6e7c1a7756.gz
* small fix for sepchar patch if useslash is disabledAndreas Gohr2005-09-15
| | | | darcs-hash:20050915150613-7ad00-8a42bb1d0eb5926ebc2f273d8416df87acfc6a11.gz
* $conf['sepchar'] supportjoe.lapp2005-09-15
| | | | | | Allows user to select the word separation character in page names. darcs-hash:20050915012947-36b45-3d6b53cda05a7d7c2eb3497f4732f7492a63e9aa.gz
* small fix for metaFiles() functionEsther Brunner2005-08-27
| | | | darcs-hash:20050827113345-283c4-39bc5ad9653004d709c5ec37deccb10c78cc2cfc.gz
* fix for incorrect comparison in metaFiles()Esther Brunner2005-08-18
| | | | darcs-hash:20050818181531-283c4-10490cd5bf3e8ecaa73673f67c3001c3c2230c78.gz
* cleanID fixchris2005-08-18
| | | | darcs-hash:20050818150303-50fdc-6428afd27509ca3d10aa887ab8925fc82f6943ba.gz
* delete meta files on page deletionEsther Brunner2005-08-16
| | | | darcs-hash:20050816182201-283c4-75638010c1f75cfb7e905bca5647253084e69323.gz
* fix for external images and the media rewrite patchAndreas Gohr2005-08-14
| | | | darcs-hash:20050814124731-7ad00-9ec2fa2e3a188e3d0b06fc3f15135a05dc99d3dd.gz
* URL rewriting for media filesAndreas Gohr2005-08-14
| | | | | | | | | | This patch adds nicer URLs for media files (for fetch.php and detail.php) !IMPORTANT! Users of rewrite mode 1 need to adjust their .htaccess See .htaccess.dist for an example darcs-hash:20050814101834-7ad00-37ef1dea00affc9d808d9ee1289fa7454199cd24.gz
* changes to the page subscription featureAndreas Gohr2005-08-06
| | | | darcs-hash:20050806212000-7ad00-c5ab54a33289f8be0ce99443f82f0b3cf1bdbf0d.gz
* track_changes.patchSteven Danz2005-06-27
| | | | | | | | Second go at including changes to allow users to sign up on mailing lists so they may receive emails each time the page they are interested in is updated. darcs-hash:20050627021748-3ed6d-5f6993f51ab649e3928a513b0fbe7c421d880325.gz
* directory cleanupandi2005-06-26
| | | | | | | | This cleans up the directory structure as discussed on the mailning list. Users should delete their previous _cache directories to recover diskspace. darcs-hash:20050626100913-9977f-83c0fdc32047db2090fc52a843ffae50cbf12248.gz
* moved lang directory into inc dirandi2005-06-05
| | | | darcs-hash:20050605110714-9977f-e974278576a74db3ffb46647411dd68f96f517ca.gz
* fix for internal rewrites #332andi2005-05-21
| | | | darcs-hash:20050521104930-9977f-f93dd746cbb3db2ebda43a044198c2eb0aa4152b.gz
* local links added #297andi2005-05-04
| | | | darcs-hash:20050504192203-9977f-004cc04b0753fc5d36d4515519c54039e73e77de.gz
* performance enhancement for utf8_stripspecialsandi2005-04-29
| | | | darcs-hash:20050429211602-9977f-70bda6c598e239d227663a6c2ff1c19fbf069bb8.gz
* added internal rewritingandi2005-04-29
| | | | darcs-hash:20050429205320-9977f-6bf54f3b022104a0a9aefa882dfba09a98bc9c2a.gz
* fixed hashlinksandi2005-04-29
| | | | darcs-hash:20050429161807-9977f-45bc378f7ce4dc77a214474de81caa2c3cabd154.gz
* merge multiple _ in pagenames #271andi2005-04-25
| | | | darcs-hash:20050425165146-9977f-cc38b541646f653a4d9a4958ee82ae5fa85bb1ed.gz