summaryrefslogtreecommitdiff
path: root/inc/template.php
Commit message (Collapse)AuthorAge
...
* event names renamedAndreas Gohr2006-09-17
| | | | | | | HTML_EDIT_PAGETEMPLATE becomes HTML_PAGE_FROMTEMPLATE TPL_METAHEADER_PRINT becomes TPL_METAHEADER_OUTPUT darcs-hash:20060917103450-7ad00-405f3533915b54ee4d4050cfccbf27d43ff7435f.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 missing quotation mark in tpl_metaheadersAndreas Gohr2006-09-13
| | | | darcs-hash:20060913185921-7ad00-8ee85b4a39944484d660c8a1d710bd548feac26b.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
* keyword meta headerAndreas Gohr2006-09-03
| | | | | | The <meta name darcs-hash:20060903161204-7ad00-61c823d3806e6fdc2ffa3d4978a90dc9953ef9ce.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
* make image details indexableAndreas Gohr2006-08-07
| | | | darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz
* add button lables to title attribute #862Andreas Gohr2006-07-24
| | | | | | | Instead of only showing the accesskey in button's title tooltips now the button label is shown additionally. This helps blind users with screenreaders. darcs-hash:20060724165158-7ad00-056481f9120c383cac03b1b2c6c397e829b7d103.gz
* title attribute for search field #821Andreas Gohr2006-07-14
| | | | darcs-hash:20060714112025-7ad00-42f53ba7901132eb1fe6a3446c4d0a45ca5bb33c.gz
* fix for old revision button and action disablingAndreas Gohr2006-07-14
| | | | darcs-hash:20060714093028-7ad00-6d5a07d8bb7a21e315ee52da237085321be1a7a9.gz
* fixing undefined variablesBen Coburn2006-07-10
| | | | | | | Fixing undefined variable notices and sometimes the underlying error that produced them. darcs-hash:20060710114655-05dcb-073948171847f1f43f153e96c8382abd421da36a.gz
* cleanup undefined constant noticesBen Coburn2006-07-10
| | | | | | | Undefined constants replaced with strings, see http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar darcs-hash:20060710091820-05dcb-cfccff2bdd633b929470c60d8eee096f50ab4c18.gz
* disableactions supportAndreas Gohr2006-07-02
| | | | | | | | | | | | This patch adds a config option to disable certain internal action commands of DokuWiki's main dispatcher. The options resendpasswd and openregister were removed because they can now set through this new option. The config plugin needs to be adjusted. darcs-hash:20060702121622-7ad00-1e80e77bcfb0ae561fe7abd79cfbe1bb158be720.gz
* back button tear down wallsmatthiasgrimm2006-06-19
| | | | | | | | | | | | | | The 'back' currently works only inside a namespace and hide the button, if the namespace startpage has been reached. This patch tear down the namespace wall. Now the 'back' button of the namespace startpage addresses the start page of the parent namespace instead of being hidden. With this patch the 'back' button works as before the 'startpage' patch series. darcs-hash:20060619171023-7ef76-baac3ad5367d6c6397125401aa7d8beab5122faa.gz
* simplified tpl_getparentAndreas Gohr2006-06-18
| | | | | | 4th part of the global start series darcs-hash:20060618121521-7ad00-8ea574bdb2c8a12560cf892c7ed53a4972af998d.gz
* updated hierarchical breadcrumbsAndreas Gohr2006-06-18
| | | | | | Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz
* minor media manager tweaksAndreas Gohr2006-05-20
| | | | darcs-hash:20060520172118-7ad00-ad605bf51c8774d734012ece0071f70e6624788a.gz
* moved gzip compression to init.phpAndreas Gohr2006-05-19
| | | | darcs-hash:20060519212751-7ad00-ace54b61706fdf4f1b7c2abdbabee215a1e256ab.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
* gzip content-encoding optionBen Coburn2006-05-16
| | | | | | | | - Enables gzip compression of output xhtml for browsers that support it. For example the wiki:syntax page takes up 46.80KB raw, but only 9.88KB gzip encoded. - Setting is configurable through the config plugin. darcs-hash:20060516084132-05dcb-d8d1c7911a951b00e166c5a94f46a2cf1cfa5846.gz
* tpl_actionlink() reports if a link was printed #777Andreas Gohr2006-04-28
| | | | darcs-hash:20060428195153-7ad00-7104d2ffc54902e8969202a9a3ac93f7df5dcbf7.gz
* event system revisionchris2006-04-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a major revision of DokuWiki's event system. There are changes to class names, function names, function parameters and their order and event names. For action plugin writers the following changes are important: - <event_name> is no longer signalled, only <event_name>_BEFORE and <event_name>_AFTER. - note the case change for _BEFORE and _AFTER - calling stopPropagation while processing a _BEFORE signal no longer prevents an _AFTER signal. The events _continue value is reset before the _AFTER signal is made. - events have a new readonly property, canPreventDefault. This lets the event handling hook know whether or not the event honours preventDefault calls. - parameters have changed for the register_hook method, parameters are now $event_name, $advise (can be 'BEFORE' or 'AFTER') $object $method $param (this parameter is now optional) - parameter order has changed for the hook event handler callback functions &$event $param (can now be left off) Event names have changed, they are now structured <dokuwiki name>_<event data name>_<action_name or state if no action> DOKUWIKI_START darcs-hash:20060424220152-9b6ab-00e366288f7ec8a85b85dc83694a5f43a07aa082.gz
* event ACTION_TEMPLATE minor updatechris2006-04-15
| | | | darcs-hash:20060415162247-9b6ab-d6c05736c0e4fb05331bc1cf06e48c5d61c64d5b.gz
* events TPL_ACTION_HTML & TPL_DISPLAY_HTMLchris2006-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | event TPL_ACTION_HTML data $ACT action tpl_content_core (formerly tpl_content) This event is a wrapper for tpl_content() (now tpl_content_core()) and as such is a full trigger, meaning it issues three advises: - TPL_ACTION_HTML_before - TPL_ACTION_HTML - TPL_ACTION_HTML_after Event handlers can output HTML before and/or after the main Dokuwiki page output and can prevent the default dokuwiki page generation taking place. Example uses could include: - replacements for dokuwiki command handlers like index. - appending a discussion section to the page by handling TPL_ACTION_HTML_after event TPL_DISPLAY_HTML data html output produced by tpl_content_core[1] action send output to browser Event handlers can post process the HTML output before it is sent to the client browser. This is a full trigger, meaning it issues three advises - TPL_DISPLAY_HTML_before - TPL_DISPLAY_HTML - TPL_DISPLAY_HTML_after darcs-hash:20060415160847-9b6ab-d7affcb1aaf49aecfaf9bc1e78a82ceb8ae409f7.gz
* event ACTION_TEMPLATEchris2006-04-14
| | | | | | | | | | | | | This event is advisory only. Event data is the $ACT variable The default action is to display an "unknown action" message The event is triggered by tpl_content if it does not recognise the $ACT value. It is the complement to event 'ACTION_DISPATCH'. Handlers of this event can output XHTML which will be displayed in the main dokuwiki window - ie. where the wiki page would normally be displayed. darcs-hash:20060414201705-9b6ab-f8ede6a2fb601d734c115ee09bb57195ad7d1e2b.gz
* pagetitle as template pagenameBen Coburn2006-04-11
| | | | | | | | Uses the first heading as the page name in the default template if $conf['useheading'] is set. Updates tpl_pagetitle() so that it can return this value. darcs-hash:20060410234311-05dcb-b4636f7c0d8f98658a6097ea9ee4dff1ee2de8b4.gz
* rewrite export URLsBen Coburn2006-04-05
| | | | | | | | | | | | | | | | | | | This patch rewrites export urls so that robots.txt can be used to request that some (or all) export types are ignored by robots when indexing the wiki. For example: User-agent: * Disallow: _export/ or for example: User-agent: * Disallow: _export/raw/ Note: This rewriting is only done when $conf['userewrite'] is set to '1' for using the rewrite rules from '.htaccess.dist'. darcs-hash:20060405025621-05dcb-b1b5f48681f78d75d25b1e75fab79346fcc8b84e.gz
* move hsc() & ptln() functions from template.php to common.phpchris2006-04-03
| | | | darcs-hash:20060403202815-9b6ab-1b499148333458ee8acb68b5e38ca72d3b1c9b3c.gz
* fix for icons in mediamanager #771Andreas Gohr2006-03-31
| | | | darcs-hash:20060331080812-7ad00-45251cae2920cf73930be91f2b4f5768619b1b9c.gz
* functions for accessing template config variablesEsther Brunner2006-03-22
| | | | darcs-hash:20060322140200-283c4-c544d2dddf39a7d41c106a0d11d64d98fe8e8343.gz
* Automatic draft savingAndreas Gohr2006-03-11
| | | | | | | | DokuWiki now automatically creates a draft file of the currently edited page. In case of an editing interuption (eg. Browsercrash) the draftfile can be continued later. darcs-hash:20060311200148-7ad00-919337a51e001136178d175a1755cd26122e9726.gz
* unique id for top button, link and anchorAnika Henke2006-03-09
| | | | darcs-hash:20060308232857-d5083-f9aa3009a5b70cbcb14d66ae94deb3edf6da3693.gz
* ACL check for profile button #731Andreas Gohr2006-03-06
| | | | darcs-hash:20060306191714-7ad00-2d97a91607c30ca0ef912419a916b42dc4553e7b.gz
* added missing DOKU_INC in require callAndreas Gohr2006-03-06
| | | | darcs-hash:20060306112739-7ad00-ab5c8b7bb04f85800c5e087c0ad61f96abb8fd95.gz
* fixed html in mediapopupAndreas Gohr2006-03-05
| | | | darcs-hash:20060305121731-7ad00-2dcf0a4d457e14c2132bf4406d89041dc9653f42.gz
* SECURITY FIX - fix for a minor XSS vulnerability in image metadata handlingAndreas Gohr2006-03-05
| | | | | | | | Image meta data (from EXIF/IPTC fields) was not escaped correctly in the media select popup. This allowed to introduce malicious javascript code through EXIF tags. Only the media manager was affected. darcs-hash:20060305102810-7ad00-7d8c7c32b914ff9d9987da5c137d01e2153d569c.gz
* fix for mediaselection from root namespace #555Andreas Gohr2006-03-02
| | | | darcs-hash:20060302130917-6e07b-4b474a70371aaeb7d97d6c04ff84d77aa1415449.gz
* export_html instead of _xhtml in template.php FS#728Tim Weber2006-02-28
| | | | darcs-hash:20060228203550-565ca-39181e82452bd13cd490dd9eba722cdfca7087c1.gz
* changed IDs to avoid name clashesAndreas Gohr2006-02-26
| | | | darcs-hash:20060226172332-7ad00-f073117ba2f027935f87cf23106bf6a4316a5790.gz
* hierarchical breadcrumbsSean Coates2006-02-24
| | | | | | | | This patch adds optional hierarchical breadcrumbs. This was discussed last december in http://www.freelists.org/archives/dokuwiki/12-2005/msg00112.html and followups. Many people where in favour of this. darcs-hash:20060224155631-21b7e-10f25b7bdf60120ec99850afefd4d1662c5b87aa.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
* new way of auth module capability checkingAndreas Gohr2006-02-03
| | | | | | | | | | This changes the way of how the capabilities of the used auth module are checked as suggested as first option in http://www.freelists.org/archives/dokuwiki/01-2006/msg00267.html The MySQL backend WAS NOT TESTED and probably needs some work. darcs-hash:20060203150302-7ad00-c524cafe20499f32e76ad42b4e68d7c635f6a9e9.gz
* replaced form attr. 'name' by 'id' + prefixed values with 'dw__' for strictnessAnika Henke2006-01-27
| | | | darcs-hash:20060127112205-d5083-8020a108120f6f1baa68456dd509a13021320c21.gz
* oo auth update - remove legacy auth remnants, add auth->canDochris2006-01-25
| | | | darcs-hash:20060125000125-9b6ab-9853f11e04d8ea93235317fa8137cef079eb2641.gz
* urlencode -> rawurlencode (related to #685)Andreas Gohr2006-01-21
| | | | | | | | This changes nearly all occurences of urlencode to rawurlencode. The latter encodes spaces as %20 while the former uses a + sign. For the use in browser URLs %20 is the correct form. darcs-hash:20060121192747-7ad00-6563b77368a41f071609495c6a145982938a8301.gz
* removed graphical list bulletAndreas Gohr2006-01-21
| | | | | | | | | | | | | | | | | Unordered lists used a graphic for the list bullet. Using the same technique as in the ordered lists we don't need an image just to have the color. This has two advantages: 1. The list bullets still have the correct color when colors are adjusted in style.ini 2. List bullets grow and shrink correctly with the fontsize It has a disadvantage as well: All list items need to be marked up like this: <li><div class darcs-hash:20060121121435-7ad00-c6455f9b58c6e78b630c1121499e2052525fb556.gz
* stricter xhtml compliance -- part 2Anika Henke2006-01-15
| | | | darcs-hash:20060115183253-d5083-a343b935336bee053b99d75c7e3e72a296eb0099.gz
* better_xhtml_compliance_1.patchAnika Henke2006-01-14
| | | | darcs-hash:20060114163558-d5083-0d8e27162de2b0bfe9783e31cf4ca45a99006dd5.gz
* Automatic adding of feeds and alternative versions can be disabled in templateAndreas Gohr2005-11-25
| | | | darcs-hash:20051125123735-7ad00-78780796c46463692d5ae9310ddc7f136349380f.gz
* Display fileicons in Media DialogAndreas Gohr2005-11-18
| | | | darcs-hash:20051118154544-7ad00-44682b3e800a616d74eacb61dfa8c6dc5a1a336b.gz