summaryrefslogtreecommitdiff
path: root/inc/init.php
Commit message (Collapse)AuthorAge
...
* metadata update to support both persistent and non-persistent metadatachris2006-11-26
| | | | | | | | | | | | | | | | Key changes: - metadata stored on disk in two arrays, 'current' & 'persistent' - p_set_metadata has an additional parameter, $persistent, which defaults to true - metadata set within the renderer defaults to non-persistent - new event hook, PARSER_METADATA_RENDER, which wraps around metadata rendering process. For full details of this event refer to the event list documentation at splitbrain. The patch includes automatic conversion of metadata in current form to the new format For more details also see http://www.freelists.org/archives/dokuwiki/11-2006/msg00221.html and any follow-up messages. darcs-hash:20061126152144-9b6ab-a4e40c221e0274b13da07dc2fc1d2100f5f3a50e.gz
* Word-Length IndexerTNHarris2006-11-12
| | | | | | | | | | | | | | | | | A modification to the indexer that sorts words based on length. This should make searching a little bit more efficient. After the patch is applied, your old index will be automatically converted to the new format (when you visit a page). The new index format is: 1. Index files are stored in savedir/index 2. Word lists are stored as wlen.idx. This used to be word.idx. 3. Word indexes are stored as ilen.idx. This used to be index.idx. 4. The page list, page.idx, is simply copied to the new location. Any plugins you have, such as the blog plugin, that read the index files need to be updated. darcs-hash:20061112194900-2b9f0-a975498ccf0a1d39c6df73b79bcd028d5e81c389.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
* 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
* 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
* conflict resolution for memory cache initAndreas Gohr2006-08-30
| | | | darcs-hash:20060830210459-7ad00-8f7a2ae826d5f893d3e48f41c8ae868987ec0dd2.gz
* scalable changelog redesignBen Coburn2006-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* typo fix for compression checkAndreas Gohr2006-08-25
| | | | darcs-hash:20060825174755-7ad00-e67f267dd1552ba22b01662de6dbb84faf33e5f8.gz
* compression fallbackAndreas Gohr2006-08-25
| | | | | | | This updates the availability check of the choosen compression method. If bzip2 is configured but not available it falls back to gzip if available. darcs-hash:20060825144739-7ad00-9f7ce54fd1dbf0d7a8272393e9bc02d862b28fff.gz
* unittest fixeschris2006-08-04
| | | | darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
* init_paths points to the installer nowAndreas Gohr2006-07-29
| | | | darcs-hash:20060729144035-7ad00-41ec3091bfda9bded254bd5a1ca7d3a4003a0116.gz
* error reporting E_ALL switchBen Coburn2006-07-08
| | | | | | | | | | | - Adds a constant DOKU_E_LEVEL for globally overriding the error reporting level. - Adds a file based switch for enabling E_ALL errors without changing the code. This is convenient for developers debugging new patches. It also ensures that the new patch will not accidentally record manual changes to the error reporting level. To enable E_ALL errors globally, create the file 'conf/report_e_all'. darcs-hash:20060707232525-05dcb-0f24e53783f546a83268fe40b0d8b68f4d6ccfa6.gz
* enhanced getBaseURL()Michael Klier chi@chimeric.de2006-05-29
| | | | darcs-hash:20060529154201-484ab-42382d9bd2bac83f84226209027001ca1f6deff0.gz
* moved gzip compression to init.phpAndreas Gohr2006-05-19
| | | | darcs-hash:20060519212751-7ad00-ace54b61706fdf4f1b7c2abdbabee215a1e256ab.gz
* changed all occurances of rename() to io_rename()Andreas Gohr2006-05-07
| | | | darcs-hash:20060507101333-7ad00-e687d797fbee26e0b0bc7741ff8a1af496c101bf.gz
* show page generation timeBen Coburn2006-03-24
| | | | darcs-hash:20060324032426-05dcb-cca609254cfef5b583510b86904f1656dea98fc7.gz
* fallback if umask() call doesn't work FS#736Andreas Gohr2006-03-07
| | | | darcs-hash:20060307184135-7ad00-9acd0c9e78976d348ae728dc491a7b7cebf5dd9d.gz
* simplified file permission handlingAndreas Gohr2006-03-04
| | | | | | | | | | This patch simpliefies the configuration of the file and directory creation modes. There is no need to set the umask anymore. Only the wanted permissions for files and directories are set. An init function compares the wanted modes with the ones that would be choosen by the system automatically (consulting the system's umask) and sets the modes for chmod when needed. darcs-hash:20060304154038-7ad00-5ef1db3a87e42563a602f9d050c681d2ea74682f.gz
* make umask an empty string for system defaultAndreas Gohr2006-03-04
| | | | darcs-hash:20060304001433-7ad00-51931e5a0eccec14b63ef215b0fa535bb2484a29.gz
* punbb backend dies when magic quotes enabledAndreas Gohr2006-03-03
| | | | darcs-hash:20060303214459-7ad00-17f399257acafed5914eeb727b45b2fa984f00e8.gz
* nicer error messages for fatal errorsAndreas Gohr2006-03-03
| | | | darcs-hash:20060303180548-7ad00-db294c2c5c10c8df69ebae7596e64e1af4d9bc35.gz
* better permission checkingAndreas Gohr2006-03-03
| | | | | | | init.php now checks for the accessability of the data directories (executebit on UNIX systems) darcs-hash:20060303173252-7ad00-7ce3281926ac93f282d9865e9617ec4d179c2c23.gz
* removed obsolete toc unit testAndreas Gohr2006-02-25
| | | | darcs-hash:20060225162230-7ad00-3694f6e8d8ae36a3814d2ce09bc400a33a0d89c5.gz
* Fix umask bug and do a code cleanup of chmod/mkdir usage so set the correct ↵Troels Liebe Bentsen2006-02-24
| | | | | | | | | | | permissions, this should also fix problems with dokuwiki making setuid files on some umasks. * Don't set the umask() anymore, this is not good form and we don't really know what is it in the old code anyway as it was not done properly. * Retire the dmask config option introduce 2 new ones called fmode and dmode, this is more in line with posix and should make more sense. * Use chmod for setting the correct permissions but only if it's needed. * Set changing of permissions off by default as i should work properly in most Apache setups without and it does not make sense on windows anyway. darcs-hash:20060224211655-ee6b9-68f7bb59417d6f0033cfd3764146923daa4dcf1b.gz
* Fix wrong umask usage and so we set the correct file premissions.Troels Liebe Bentsen2006-02-18
| | | | darcs-hash:20060218183251-ee6b9-798ab2994526311b1e58f04e7684b39b51426887.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
* remove error supression for local.php (related to #659)Andreas Gohr2005-12-07
| | | | darcs-hash:20051207194400-7ad00-2b0cb5baec92b9cdf40ad7e3e429de0b34aa9f2a.gz
* fixed two bugs reported by Timo FalkAndreas Gohr2005-11-08
| | | | darcs-hash:20051108195013-7ad00-f2b2b6d955e64fe2d2abfc1d9421ed619f70abd3.gz
* get_tests_running_1hfuecks2005-11-07
| | | | darcs-hash:20051106233800-e96b6-90328f1b6cc5c8b25c6e02f113cf80475789d297.gz
* some fixes in the testmanagementAndreas Gohr2005-11-02
| | | | darcs-hash:20051102222604-7ad00-f8f3ae8435f8d6f6d738daaec205c541a371e9c7.gz
* More work on Javascript and CSS dispatchersAndreas Gohr2005-10-29
| | | | darcs-hash:20051029185222-7ad00-c184ab3496539f3027407c7d17e8770a1849546a.gz
* JavaScript refactoringAndreas Gohr2005-10-29
| | | | | | | | This patch addes a first go on a central javascript and CSS dispatcher which builds a single script from all needed scripts, does optimizing and caching. darcs-hash:20051029002652-7ad00-7558b569c2bf65f5e41820644580d97c62edd0d6.gz
* improvement for baseurl detection tests addedAndreas Gohr2005-10-16
| | | | darcs-hash:20051015221719-7ad00-efd98fdcf381ae38186578a16159ad2d279cf5af.gz
* option for setting baseurl #523Andreas Gohr2005-09-12
| | | | darcs-hash:20050912173116-7ad00-d342f7b065591097b19966e4650192d449a6039e.gz
* fixed handling of non standard portsAndreas Gohr2005-09-07
| | | | darcs-hash:20050907213543-7ad00-c411e9f5788bf2629ba8529c46d7247aff1a2305.gz
* Constant DOCU_CONF corrctly initialisied (had a slash to much)Esther Brunner2005-09-02
| | | | darcs-hash:20050902133442-283c4-5793471583d07fe58e652f40f485508d239e84cc.gz
* added stopword support to the indexer, added indexer webbugAndreas Gohr2005-08-14
| | | | darcs-hash:20050814181035-7ad00-ed5d879d29fcee7f925f806456675605b058966a.gz
* DOKU_CONF define for config directory #479Andreas Gohr2005-07-29
| | | | darcs-hash:20050729155457-7ad00-94554865259e4cbd6a1c75bb62a93f37304adbf0.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
* fix for broken realpath on windows #404 #417andi2005-06-24
| | | | darcs-hash:20050624114602-9977f-153f5270fe88112bf347098468ccad03904a645c.gz
* moved lang directory into inc dirandi2005-06-05
| | | | darcs-hash:20050605110714-9977f-e974278576a74db3ffb46647411dd68f96f517ca.gz
* directory layout cleanup !IMPORTANTandi2005-06-05
| | | | | | | | | | | | | This patch changes the directory structure of dokuwiki as suggested in http://www.freelists.org/archives/dokuwiki/06-2005/msg00045.html As the changes.log is not managed through darcs you need to move it your self to the new location in data/changes.log I think I modified the code at all nessessary places, but I may have forgotten a few things. darcs-hash:20050605103842-9977f-af20f63c1d604888375d175d89ac6bd71566d47d.gz
* UNDO: added cache_limiter command as suggested in #94andi2005-05-23
| | | | darcs-hash:20050523182304-9977f-69b49f7f2cd637686e999fda9e3281d2f6d9bbd8.gz
* added cache_limiter command as suggested in #94andi2005-05-23
| | | | darcs-hash:20050523182304-9977f-9011c7f882139b00333feaa625a25650bedf6f86.gz
* moved loading of languages to init.php - fixes #346andi2005-05-23
| | | | darcs-hash:20050523174804-9977f-a49e154bb89357d39eb8ddb3273650759cd74114.gz
* first attempt of syntax pluginsandi2005-05-19
| | | | | | | | | | | | | | | | The first version of the new plugin system. Syntax plugins only yet. A very simple example plugin called info (doing nothig useful yet) is included. Missing Features - Doku_Block_Handler needs work (doesn't honur plugins yet) - there is no way to specify the order of plugins and other modes yet - useful output from the info plugin - bug testing and fixing - code cleanup - documentation darcs-hash:20050519201009-9977f-f793dbfc6a39d8a9643b610927d93cd3288bdd6b.gz
* let scriptify move the old file away after copyandi2005-05-13
| | | | darcs-hash:20050513151255-9977f-ff7a5e5984c8e419654950bfb56b1d42b31937d5.gz