summaryrefslogtreecommitdiff
path: root/inc/html.php
Commit message (Collapse)AuthorAge
* show diff between arbitrary revisions FS#14Andreas Gohr2007-07-18
| | | | | | | | You can now compare any choosen revision of a page to any other. Todo: add some JavaScript to avoid choosing more than two revisions darcs-hash:20070718102204-7ad00-b66c7d82d688c05bfd86e0c7dfe6d283ad555bf8.gz
* AJAX for the index viewAndreas Gohr2007-07-16
| | | | | | | | | | This makes the index view much more responsive by loading sub namespaces through AJAX if JavaScript is available. The used throbber image probably looks bad on dark backgrounds. If someone could provide a better one it would be greatly appreciated. darcs-hash:20070716184605-7ad00-adf298ee3303d50f2b4b6b66e5ea3ff8d8c2bf9a.gz
* correct hilighting of empty summary on previewTom N Harris2007-07-05
| | | | darcs-hash:20070705215447-6942e-d3e1124a3cfec6661a7077bc0d9707b156bc2313.gz
* check for auth object at certain functionsAndreas Gohr2007-06-27
| | | | | | | | This is a follow up on the previous patch to disable authtentication without disabling ACL on backend problems. It fixes a few errors that might occour in this rare situation. darcs-hash:20070627194910-7ad00-de5ac10e0d36ecf8906c080e1d3dc1b2fd85b45d.gz
* fix for former patch (FS#744)Anika Henke2007-05-15
| | | | darcs-hash:20070514224419-d5083-7f072fa6f2b3100adbeecc856f1babd2b9919186.gz
* FS#744 (template developers, heed the changes)Anika Henke2007-05-15
| | | | darcs-hash:20070514222527-d5083-53ed619daf07d0a84c52161465d163abf1400529.gz
* deleted obsolete backtomedia functionsAnika Henke2007-05-13
| | | | darcs-hash:20070513124655-d5083-7ffc212357be18a5f889c85736d7c97946b5c899.gz
* HTML_PROFILEFORM_INJECTION eventEsther Brunner2007-02-27
| | | | darcs-hash:20070227123428-20862-cc92070d15b116d6865eab3acc0a210ab17755f8.gz
* alter search callback to use call_user_func()chris2007-02-06
| | | | darcs-hash:20070206014428-9b6ab-1bcc1a005850b2048b49a7667dd25905f8a79ae2.gz
* HTML_LOGINFORM_INJECTION eventAndreas Gohr2007-01-09
| | | | | | | Another injection event similar to the existing ones to insert custom HTML into the login form. darcs-hash:20070109213258-7ad00-2d8b59c6a83b42231cdba845263b09821e2b0400.gz
* changelog type strings replaced with constantsBen Coburn2006-12-07
| | | | | | | | Using more verbose constant names in the place of single character strings should make the code much more readable. This does not change the behavior of the changelog. darcs-hash:20061207074906-05dcb-0bdc35e7241bf14063b2b43a6ff26d8a3c307cb9.gz
* identify external edits in UIBen Coburn2006-12-07
| | | | | | | | | | | Some changes to clearly identify when wiki pages have been edited outside Dokuwiki. Also correctly attributes external changes from an unknown author. Avoids sending extra emails when recording old external edits. Adds a new language string: $lang['external_edit'] darcs-hash:20061207032825-05dcb-3234bee57cb165c848b33abb9251502589b0f3cb.gz
* manager user/groupAndreas Gohr2006-12-03
| | | | | | | This patch adds support for a manager option as suggested in http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz
* fix for date display when diffing a deleted revision #983David Lorentsen2006-11-18
| | | | darcs-hash:20061118155255-ce218-73128d52594c55887b4680b95fe7c8fdaf9d689c.gz
* hide inline scripts from XML parsersAndreas Gohr2006-11-18
| | | | | | | This patch addes some comment magic to inline scripts to hide them from XML parsers (like the W3C CSS validator). darcs-hash:20061118154333-7ad00-c24bc36192080fe34f232c5ec2df3f494993f2fe.gz
* two more event hooksAndreas Gohr2006-11-16
| | | | darcs-hash:20061116212937-7ad00-2ac647a9040f75650bdbe1047e76370f9c900dff.gz
* HTML_EDITFORM_INJECTION event addedAndreas Gohr2006-11-14
| | | | | | | A simple event to inject additional HTML into the editform. This probably needs to be improved. darcs-hash:20061114220825-7ad00-ce868b8d8a25f5120c49dc018b8fd1024aff6e12.gz
* fix Old Revisions more and less buttonsBen Coburn2006-10-27
| | | | darcs-hash:20061027174549-05dcb-fbb0d0433aec19579b5da609b44c122754b2e30b.gz
* used named submitbuttons instead of localized labelsAndreas Gohr2006-10-20
| | | | darcs-hash:20061020164148-7ad00-6bb857729d9004b0f9b865410c1c666e07cc03aa.gz
* fix diff view for new pagesAndreas Gohr2006-10-19
| | | | darcs-hash:20061019104917-7ad00-c284fd3336850a18b633bbc3a49375f59edba3c7.gz
* a bit of strictness for mediamgr + login formAnika Henke2006-10-16
| | | | darcs-hash:20061015222040-d5083-afb1c38f5bb2610260bbc51fbff816a8ed2e5f49.gz
* remove metadebug again, improve doÞbug insteadAndreas Gohr2006-09-25
| | | | | | | This adds the complete $INFO array (contains the metadata) to the usual debug output and removes the metadebug parameter again. darcs-hash:20060925201052-7ad00-c9a15b921466803b3f2bd50b0d72211cf68658c5.gz
* don't link non-existing revisionsAndreas Gohr2006-09-25
| | | | | | | | The new changelog mechanism shows all revisions of a document, even if the old revisions are deleted (eg. by a maintenence script). This patch removes the links for non existing revisions. darcs-hash:20060925185434-7ad00-14a558ce69c4116e14d7fdfbaad052c6a7b0a4db.gz
* progressbar script changeAndreas Gohr2006-09-24
| | | | | | | | The progressbar script used in the search accessed parts of the DOM before it was completely parsed which caused problems in IE. This patch moves back to document.write for outputting the image. darcs-hash:20060924170354-7ad00-1e0247b00fc4da4dd30301f4b9389ef727496c4a.gz
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
* 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
* fix for previous pagetemplate event patchAndreas Gohr2006-09-16
| | | | | | Sorry, did mess up in testing the last patch. darcs-hash:20060916000515-7ad00-3874991f9121ac80b2b3b66d4f5ac166702df1d1.gz
* HTML_EDIT_PAGETEMPLATE event addedAndreas Gohr2006-09-15
| | | | darcs-hash:20060915202321-7ad00-2f3440a36d7a41604c1cbfbc9633c898c7b9ff0e.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
* 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
* two-stage password resetAndreas Gohr2006-07-14
| | | | | | | | | | This patch changes the password reset function to a two-stage process. After requesting a new password a confirmation email is sent first, only if the link contained in this mail is used the password is changed for real. This makes sure malicious people can't reset passwords for other users. darcs-hash:20060714110548-7ad00-c1e23fd51cc2d2f16473914421ebe0f9c3b2ba8c.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
* 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
* 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
* usability enhancements for the loginform #803Andreas Gohr2006-05-27
| | | | darcs-hash:20060527185238-7ad00-1593c8b25d7f870c8a0b3017fbcf29c4e047f52c.gz
* resolve darcs conflict 20060526Ben Coburn2006-05-26
| | | | darcs-hash:20060526144958-05dcb-4e04cb5cc9d9f60180f867a12957ceda9ae963b4.gz
* decouple section edit from header in rendererBen Coburn2006-05-22
| | | | | | | | | | | | | | | | | | | | This patch achieves a partial decoupling of the section edit buttons from the header syntax. A new 'section_edit' instruction is added to the instruction list. The default set of these instructions is generated from the header handler and the _finalize function. A generic 'section_edit' renderer is now part of the renderer. To rewrite the section semantics, add, or remove section edit buttons the header handler and renderer no longer need to be modified. Changes can be dynamically made to the section edit buttons through the 'PARSER_HANDLER_DONE' action event. An action plugin that registers this event can then modify the calls list of the handler object before it is rendered. In short, this patch makes it possible to change the behavior of the section edit buttons without having to change unrelated code. This patch should be entirely transparent to DokuWiki users and cleanly written plugins. darcs-hash:20060522060004-05dcb-8e6b5215e1b610877f126ca0b9e1e5bc21cc6469.gz
* getRevisionInfo much faster (cached)Ben Coburn2006-05-25
| | | | | | | | | | | | Makes getRevisionInfo much faster when loading all the revisions of a page. This is done by efficiently parsing the 'changes.log' data and caching the results (in memory) so that future calls to getRevisionInfo return immediately without reloading the 'changes.log' file. (Note: the changelog system in DokuWiki should still be rewritten so that changes are not logged into one huge file!) darcs-hash:20060525083202-05dcb-8c0eea695055b51a218a0e311169cda0bb0d4363.gz
* fix: wrong secedit when page changesDenis Simakov2006-05-22
| | | | | | Binds secedit buttons to file modification stamp ('lastmod'), so that if the page changes in between, editing of the old revision starts. darcs-hash:20060522182043-3c565-17e6ac5d018300dd009c24218f4b1b8c8ae80363.gz
* media manager fixesAndreas Gohr2006-05-21
| | | | darcs-hash:20060521213334-7ad00-d3bdc1fbce1b904d3f939197bae0b811aa5bbac3.gz
* link to media managerAndreas Gohr2006-05-19
| | | | | | | | This patch add a link to the media manager when no JavaScript is available. Users can upload and browse for pictures now without the need for JavaScript only inserting has to be done manually then. darcs-hash:20060519175959-7ad00-5ee77fd00d20bef9a36eee632a1c5897097ba4a8.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
* namespace restricted fulltext-searchMichael Klier chi@chimeric.de2006-05-18
| | | | | | | - The fulltext-search can now be restricted to a given namespace seperated by an "@" darcs-hash:20060518161855-484ab-1617b6d2c3593525f4d29a789b0a32ebf414b9ae.gz
* accesskey tooltip rewritingBen Coburn2006-04-28
| | | | | | | | Does client-side rewriting of accesskey tooltip text so that it will be more OS and browser specific. Dokuwiki should output all accesskey tooltips as [ALT+<key>] because this patch matches on "[ALT+". darcs-hash:20060428015158-05dcb-0102a1b2068c053e81dd21ad3927c78b6c9f349e.gz
* moved toolbar out of form scope #757Andreas Gohr2006-03-31
| | | | | | | This ensures that the save button stays the default button of the form again. darcs-hash:20060331085543-7ad00-8db519b51a7bc65479ebc6b303f3cf016f8088be.gz
* 'Back to top' style bug fixBen Coburn2006-03-21
| | | | | | Removes some link underlining that would appear around the 'Back to top' button. darcs-hash:20060321020948-05dcb-e0e5f2d30bd05bad37ad64d587fc4dc29abcb30b.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
* killed some borders, widths and other strictness bugsAnika Henke2006-03-08
| | | | darcs-hash:20060308225006-d5083-d273d41551fee37d28442beef847eb57891ba73e.gz