summaryrefslogtreecommitdiff
path: root/inc/search.php
Commit message (Collapse)AuthorAge
* search: pass empty $sort to skip sortingPhilipp A. Hartmann2013-01-29
|
* change to use natural order sortingChristopher Smith2013-01-27
|
* ensure parameter is passed down during recursionChristopher Smith2013-01-27
|
* add documentation for sort parameter, change false to 'natural'Christopher Smith2013-01-27
|
* sp.Christopher Smith2013-01-27
|
* If depth option is set to 0, we should recurse foreverGuillaume Turri2013-01-10
| | | | At least if we want to be consistent with search_universal
* Check search limit depth with an inequalityGuillaume Turri2013-01-09
| | | | | | | Otherwise, when we check for equality, the test fails if the search start beneath the max depth. Eg: if I have the page ns1:ns2:mypage in my wiki, and launch the xmlrpc query getPagelist("ns1", "depth => 1"), without this patch, it retrieves mypage
* Escape filename in regex in search_index()Michael Hamann2012-10-02
| | | | | | This problem was reported in https://forum.dokuwiki.org/thread/8143. Apart from warnings you could notice that when you have namespaces "foo" and "f.o" and you open the sitemap for "foo" that "f.o" is opened, too.
* replaced use of basename() with utf8_basename() FS#2015Andreas Gohr2012-07-28
|
* Merge branch 'master' of git://github.com/splitbrain/dokuwiki into ↵Kate Arzamastseva2011-09-05
|\ | | | | | | media-revisions
| * Revert tmp commitsAdrian Lang2011-09-04
| | | | | | | | | | This reverts commit ba6c070edd92ca0fc8a6ee85d51769d64a19ee7c. This reverts commit 923510088dda99cb2790b15308593e47369d4f01.
| * tmp: Introduce sneaky2Adrian Lang2011-09-04
| |
| * Use search_universal in search_indexAdrian Lang2011-09-04
| |
* | issue #39 sort by date desc, saved in cookieKate Arzamastseva2011-07-30
| |
* | mediamanager sort buttonKate Arzamastseva2011-07-25
|/
* Change when metadata is rendered - only when really neededMichael Hamann2011-05-08
| | | | | | | | | | | | | | | | | | | | | | This changes the cache logic for metadata. It introduces a new mode that tries to avoid rendering the page again for simple requests but still updates the metadata when the page has been changed (but not when the cache timeout has been reached or purge is used). It simply compares the time of the last rendering with the last modified time of the page. The old boolean $render parameter has been changed into an int with three possible values. Compatibility for the old parameter is provided using a check with is_numeric using the following mapping: - false is still don't render (0 is the new value for that) - true is using that new render logic which means that many plugins will still work unchanged even if they request a lot of data using $render=true (1 is the new value for that providing full compatibility in the case 1 has been used instead of true) The default value for p_get_first_heading is now that new simple cache logic, the default value for getting metadata is the cache logic which should be used with care but is the only way to request (rendered) metadata that can change because of plugin installations or upgrades.
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* Simpler ID trimmingAdrian Lang2010-11-13
|
* do not strip .txt in namespaces in indexAndreas Gohr2010-10-26
|
* Small fixes / cleanupAdrian Lang2010-09-28
|
* added missing keeptxt option to universal search FS#2014Andreas Gohr2010-08-29
|
* fixed hashing in mediaSearch()Andreas Gohr2010-03-22
| | | | | | The hash option did not hash the correct content for the found media files. This causes troubles in the sync plugin http://github.com/splitbrain/dokuwiki-plugin-sync/issues#issue/1
* removed more unneeded require_once() callsAndreas Gohr2010-02-01
|
* first attempt to centralize all include loadingAndreas Gohr2010-01-31
| | | | | | | | Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
* fixed level attribute in universal searchAndreas Gohr2009-12-16
| | | | | | Ignore-this: 2b76ec324372c93371793344e0dbadde darcs-hash:20091216152527-6e07b-7fc6fd3514cf42684d6dd95f419b709a9bdc0b94.gz
* Use correct variable name in search_universalAdrian Lang2009-11-24
| | | | darcs-hash:20091124105300-e4919-ab8161782c535b7336794404b770caf652cd1a15.gz
* Coding Standard CleanupAndreas Gohr2009-10-20
| | | | | | Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
* replaced two search_* funcs with calls to search_universalAndreas Gohr2009-08-28
| | | | | | Ignore-this: c22ff5dcffaf279b6c4397893d5e82af darcs-hash:20090828080240-7ad00-e36eb4f517af14202eed8bc9d432f636343af50f.gz
* universal callback for search()Andreas Gohr2009-08-12
| | | | | | | | | | | | | | | | | Ignore-this: 4d786345ea9bfb19fb6f8af9348f5248 This patch adds a callback for use with the search() function, that is flexible enough to replace many of the other specialized callbacks and opens up more possibilties to plugin authors without the need to write new callbacks. Existing callbacks need to be reexamined and rewritten to wrap around this callback instead. note: development was part of the ICKE 2.0 project see http://www.icke-projekt.de for info darcs-hash:20090812101653-6e07b-d578baff97a0e8720e468e238aec06109048c8b8.gz
* another attempt to fix recursion depth in media searchAndreas Gohr2009-06-05
| | | | | | Ignore-this: 7d58d0069959747b9e20eefaabb7e1d5 darcs-hash:20090605110519-7ad00-7f5c5e8e9fb342c4bad6bae87b5e4d6333b1dffb.gz
* fixed the media listing recursion limit check againAndreas Gohr2009-05-15
| | | | | | Ignore-this: c1b12d1fbde51ee80e24fcd9b731a161 darcs-hash:20090515101112-7ad00-83140ea1f10f80ee691b4a70c00b8f990119c9c2.gz
* fixed skipacl option in search_allpages()Andreas Gohr2009-03-08
| | | | darcs-hash:20090308171416-7ad00-c144ff2125b9abd9b99c3ad0b6a1c38a12bf55d9.gz
* removed leftover return pathAndreas Gohr2009-03-02
| | | | darcs-hash:20090302175515-7ad00-2be9b0e194acdc08606312bd9fd2a790565a0560.gz
* fixed depth checking in search_(media|allpages)Andreas Gohr2009-03-01
| | | | darcs-hash:20090301192434-7ad00-aa49d6b371e3832e4c45c89ac8ffd367d278c74c.gz
* streamlined media listingAndreas Gohr2009-02-23
| | | | | | | Some parameters of media_search where changed, parts using this function need to be identified and fixed. darcs-hash:20090223172746-7ad00-d07951739fba17d0c8925b28b947f7cbb7fc7e1a.gz
* more flexible page listing method in search.phpAndreas Gohr2009-02-19
| | | | darcs-hash:20090219214345-7ad00-2597a205c5dfae869defebe5f57d34a5f2fa3baf.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* Implementation of FS#872Gina Haeussge2008-10-12
| | | | darcs-hash:20081012140306-2b4f5-3fd4006f178e358be3d19be5c4244e56facd1b9a.gz
* Added option to make media search recursiveGina Haeussge2008-08-23
| | | | | | By providing a key 'recursive' in the opts array of the media search, the search recurses into namespaces. darcs-hash:20080823100126-2b4f5-62a051fc901d61158347a2e87181e21fda87471d.gz
* skip invalid filenames in media directory list (related to FS#1312 FS#1306)Andreas Gohr2008-01-18
| | | | | | | Invalid media files (like uppercase names) are no longer listed in the media manager. Instead a warning is shown. darcs-hash:20080118205511-7ad00-01625475e055be71628fd68aaaad786959420dce.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
* moved lockfile check out of search() to callback functionsMichael Klier2007-08-28
| | | | darcs-hash:20070828194406-23886-832f4a1222633b686cd8895eba00f1c895c5a992.gz
* FS#744 (template developers, heed the changes)Anika Henke2007-05-15
| | | | darcs-hash:20070514222527-d5083-53ed619daf07d0a84c52161465d163abf1400529.gz
* add sneaky_index optionAndreas Gohr2007-05-11
| | | | | | This disables the last patch and adds an option to enable it on demand. darcs-hash:20070511200235-7ad00-a3ea769bc4965710b7fd261d31e2c9f8a3d9d7f5.gz
* hide namespaces from index when no read permissions are available FS#427Andreas Gohr2007-05-11
| | | | | | | Note this wil also hide all namespaces below even if they have more relaxed permissions. darcs-hash:20070511192116-7ad00-90103a756a6f3011cfb60817ecc1906f639ce342.gz
* show lastmod datetime in mediamanager FS#964Andreas Gohr2007-01-06
| | | | darcs-hash:20070106125603-7ad00-a10d366e8a3c7d58aacbffbe333b4fccba340f4a.gz
* don't show .txt files as medianamespaces #963Andreas Gohr2006-11-03
| | | | darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
* new mediamanagerAndreas Gohr2006-05-19
| | | | | | | | | | | | | | | This patch adds a completely rewritten media popup. The following noteworthy changes were made: - media manager uses a collapsible namespace tree - media manager uses AJAX if available - media manager popup can be kept open when selecting a media file - only one template is used for the media manager :!: Template - Editable image metadata is configured in conf/mediameta.php now - The JS cookie mechanism was enhanced to store key/value pairs - Language strings can be exported to JS in js.php darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz
* Search index skips over hidden namespacesMartin Tschofen2006-04-29
| | | | darcs-hash:20060428233035-a265a-5b124304e8250f0c97bff5ce8fdc839170cc7f95.gz
* better callback handling in search() functionAndreas Gohr2006-04-28
| | | | | | | The search() function now accepts an array in $func for giving object methods as callback. darcs-hash:20060428184554-7ad00-2d1726d078683ea41c72f6ca67ded3e1eccfdf17.gz