Commit Graph

48 Commits

Author SHA1 Message Date
Phy 462a3baef9
fix slash regression in toolbar signature #3045 2020-04-13 22:49:50 -04:00
Andreas Gohr 98169a0fec properly encode signature code
This addresses the XSS vulnerability mentioned in #3044
2020-04-12 15:40:34 +02:00
Andreas Gohr e1d9dcc8b4 First go at moving the plugin classes into their own namespace 2019-04-20 21:33:23 +02:00
Andreas Gohr d443762baf deprecated JSON class
JSON is natively supported since years. This makes
2145bd4c56 obsolete again.
2018-07-27 15:10:49 +02:00
Andreas Gohr 64159a61e9 line lengths shortened
This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.
2018-04-27 19:07:43 +02:00
Andreas Gohr b4f2363aa1 remove DOKU_INC checks
There is no need for this check, since these files should not have any
main code that is executed on direct call.

Fixes PSR1.Files.SideEffects.FoundWithSymbols
2018-04-27 14:32:42 +02:00
Christopher Smith 585bf44e2b amend $_SERVER to $INPUT->server 2014-03-06 19:55:56 +00:00
Andreas Gohr 2bc9e7932f renamed code button to monospace FS#2934 and many others
Let's stop confusing people with what this button does
2014-02-05 22:28:56 +01:00
Andreas Gohr 7883d066bc use dformat in toolbar build of the signature string 2012-03-16 10:41:12 +01:00
Anika Henke fbe7c76fbe added solidus to character picker and moved multiplication sign to other mathmatical symbols 2011-07-30 12:43:51 +01:00
Michael Hamann e3776c06c3 Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3
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.
2010-11-29 16:19:49 +01:00
Adrian Lang de3eb1d7f9 Small fixes / cleanup 2010-09-28 16:42:43 +02:00
Andreas Gohr d7879495ee Merge branch 'requireall'
Conflicts:
	inc/fulltext.php
2010-03-12 14:11:50 +01:00
Adrian Lang c4ba149a58 Allow filtering of block buttons in initToolbar 2010-03-09 09:51:16 +01:00
Andreas Gohr 1690534421 first attempt to centralize all include loading
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.
2010-01-31 19:02:14 +01:00
Andreas Gohr af14334b1f Added access keys for new headline buttons FS#1780
Ignore-this: d776532c15c27963b51ba6d8138815ef

darcs-hash:20091128094916-7ad00-d5d6f8d8ce7f2b23ae370cf141174c52eca75e5b.gz
2009-11-28 10:49:16 +01:00
Andreas Gohr db959ae307 Coding Standard Cleanup
Ignore-this: 259cb5773c3144c6c706d87298dcf674

darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
2009-10-20 23:23:38 +02:00
Andreas Gohr f22635779b New dformat() function for fuzzy date support
Ignore-this: 7193cd788fee2c05a9068bf6edd5dc17

It is now possible to use the %f placeholder in $conf['dformat']
to add a fuzzy age string.

Template developers and plugin authors should replace their strftime +
$conf['dformat'] calls with calls to the new dformat() function.

Example:

   %Y/%m/%d %H:%M (%f) produces dates like this:

   2009/09/16 10:36 (3 weeks ago)

darcs-hash:20091007133614-6e07b-677108d1b43928ef8fd886813e43514507b5e073.gz
2009-10-07 15:36:14 +02:00
matthiasgrimm 7ba342d552 new headline icons for the editor toolbar
The old icons weren't very clear and confused many people. This set
of icons describe more clearly what the buttons will do. Furthermore
the sequence of the buttons changed to put the most used bottons in
front.

darcs-hash:20090904164002-7ef76-d4d5514edbdcb1dfb85c10833367dce785b0aca7.gz
2009-09-04 18:40:02 +02:00
Andreas Gohr 73a509d7d1 added class for headline picker
Ignore-this: 6aee01f1e872490512480ff8cac566be

darcs-hash:20090827142929-6e07b-2aba4d2ac75c870f0c6e4ec903ec3c9ce5863842.gz
2009-08-27 16:29:29 +02:00
Andreas Gohr 977306d576 removed obsolete internal link toolbar button
Ignore-this: 62264fd057c80fb8fa70f53481f2875b

darcs-hash:20090827124504-6e07b-fdaca499874511bf1f262cc65fb194d1083db1e8.gz
2009-08-27 14:45:04 +02:00
Andreas Gohr 56dfcc12d4 Link Wizard added
Ignore-this: c15561aa909f921f7845576378851b93

This adds a new link wizard to the toolbar which helps users to find the page the want to link to.

Pages can be found by a simple page name search or by browsing the
existing namespaces.

This is the first checkin. Some cleanup and MSIE compatibility checks
remain.

note: development was part of the ICKE 2.0 project see
      http://www.icke-projekt.de for info

darcs-hash:20090812102302-6e07b-fcc564fcaf2ed6aa832918870dd0f92607748687.gz
2009-08-12 12:23:02 +02:00
Andreas Gohr 201ea5f389 improved list handling
Ignore-this: 2e4f3fbfb28917ee66cf3e1925c806d3

This patch adds multiple enhancements to handling lists and indented
code blocks in the editor.

1. Pressing enter when in a list item or code block will keep the indention
   and adds a new list point
2. Pressing space at the start of a list item will indent the item to the
   next level
3. Pressing bckspace at the start of a list item will outdent the item
   to the previous level or delete the list bullet when you are at the
   1st level already
4. A new type of formatting button called formatln is added. It applies
   formatting to several lines. It's used for the list buttons currently
   and makes it possible to convert mutiple lines to a list

This enhncement are currently only tested in Firefox are most likely to
break IE compatibility. A compatibility patch will be submitted later

note: development was part of the ICKE 2.0 project see
      http://www.icke-projekt.de for info

darcs-hash:20090804095707-7ad00-e565c66087c7121188ad7ece8265d9f64f7e6947.gz
2009-08-04 11:57:07 +02:00
Andreas Gohr a4b53097ed accesskeys for list items
Ignore-this: 321cb1598c9aacaf00e21f5a54d1a1cc

darcs-hash:20090603092328-6e07b-460c69393d6c486bb534400b9dcb0ddcacf74b92.gz
2009-06-03 11:23:28 +02:00
Andreas Gohr a2be6cd992 new headline mechanism in the toolbar
Ignore-this: f87882b727bcf6ea067945eea0f158b1

The toolbar now features three new buttons to insert a headline. Instead of
asking the user for the headline level it asks if she wants a higher, lower
or equally leveled section (relative to the current one).

This means the user no longer has to count in which section she currently is
and encourages users to use the proper order of headline levels.

To make room in the toolbar, the old buttons have been moved in a picker.

darcs-hash:20090528155327-7ad00-e384cd7e45cb192657e29c875f46e3676d47f367.gz
2009-05-28 17:53:27 +02:00
Andreas Gohr 6b6da7f587 more javascript refactoring
Ignore-this: 10badc0f97ef80fcd366ae4622c43ff1

darcs-hash:20090528121543-7ad00-df34efabe84c632df9ef0c6fd691c991d2c3ac82.gz
2009-05-28 14:15:43 +02:00
Andreas Gohr de4e429de2 late add DOKU_BASE for media popup
Ignore-this: 172ae2884fca0ee74d3b9c88c829dabe

darcs-hash:20090415185449-7ad00-f9689ddbb2cc4a77aeb7a0cde338ca107187c0d5.gz
2009-04-15 20:54:49 +02:00
Andreas Gohr 03c89b2456 back to "normal" greek letters + common wiki markup in charpicker FS#1537
This changes the greek letters in the char picker from the more correct
mathematical symbols back to the "normal" ones covered in more fonts.

It also adds a few common chars used in wiki markup. This is handy when
having to edit a page from a foreign computer with an unknown charmap
(ie. a PC user at a Apple keyboard ;-))

darcs-hash:20090112190254-7ad00-81596ef2f56a7f2bdbe2cb812d9defaad1f4396a.gz
2009-01-12 20:02:54 +01:00
Andreas Gohr fa8adffee3 removed some illogical path setups
darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
2008-12-13 10:04:00 +01:00
Andreas Gohr 83434a91e2 missing toolbar changes for FS#1492
darcs-hash:20081012170133-7ad00-6f9ddb04e9c00341691b2339c3aedfa79e59d565.gz
2008-10-12 19:01:33 +02:00
Gina Haeussge d27d0a5a11 Insert horizontal rule on a newline (FS#1402)
darcs-hash:20081011170252-2b4f5-7a68add2ec378c1be08be11c630f0ebca2b7c388.gz
2008-10-11 19:02:52 +02:00
Andreas Gohr e656dcd46a use strftime() instead of date() FS#1335 :!:
This patch replaces the use of the date() function with the strftime()
function. The latter will respect a set locale and will use localized
strings for things like month names.

Because the format options for strftime differ from the ones used in date,
DokuWiki will rest the value of $conf['dformat'] if it contains an old
date format string (detected by missing % characters).

Plugins or templates using the $conf['dformat'] need to be updated.

darcs-hash:20080223124045-7ad00-6afb2b839afc58781463e25577e06adb675fff79.gz
2008-02-23 13:40:45 +01:00
Andreas Gohr 1b2abcf93c construct toolbar signature from $INFO (FS#1274)
darcs-hash:20071203191945-7ad00-76968829ba4b20bf10e453eadaed0216e05e61de.gz
2007-12-03 20:19:45 +01:00
Andreas Gohr 009768124d don't use realpath() anymore (FS#1261 and others)
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
2007-09-30 20:42:50 +02:00
Anika Henke 014b95e78b some additional chars for the picker
darcs-hash:20070331195443-d5083-36f61ad612294808fe50c70b820fe0d33d232a65.gz
2007-03-31 21:54:43 +02:00
Esther Brunner 8b3b5ebbb2 TOOLBAR_DEFINE event
darcs-hash:20070227124005-20862-312600c2763c491bed9c0cbf6e6b5e7b680dda15.gz
2007-02-27 13:40:05 +01:00
Anika Henke 71b40da279 language-specific quotation marks (FS#438)
darcs-hash:20070211172015-d5083-2cab923b001391012a0a469746438d4d4087a718.gz
2007-02-11 18:20:15 +01:00
Andreas Gohr e71ce681bd use DOKU_URL as key for sessions and auth cookie #896 #581 #884
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
2006-10-03 14:15:46 +02:00
Ben Coburn 746855cf48 cleanup undefined constant notices
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
2006-07-10 11:18:20 +02:00
Andreas Gohr 3df72098bb new mediamanager
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
2006-05-19 18:50:23 +02:00
Andreas Gohr 8a2d2176a4 just a few symbols in the picker added
darcs-hash:20060424214448-7ad00-9ddb03ba739930555538c942de12cd28b5ac7097.gz
2006-04-24 23:44:48 +02:00
Andreas Gohr 1db2d4661e added two french special chars to char picker
darcs-hash:20060307203700-7ad00-2980f281c7bd4ddc30dddf63c5602a34a32fccbf.gz
2006-03-07 21:37:00 +01:00
Andreas Gohr 98c868589e file cleanups
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
2006-02-17 23:20:40 +01:00
Andreas Gohr 31b47a2e76 added greek character to special char picker
darcs-hash:20051126143544-7ad00-8bbceecac51498aaf707b130457616d9d2232943.gz
2005-11-26 15:35:44 +01:00
Andreas Gohr c591aabe4b JavaScript Fixes for the toolbar #628
darcs-hash:20051111200142-7ad00-158925aee01bc24378a8bd99ad27a6173ea085dd.gz
2005-11-11 21:01:42 +01:00
Andreas Gohr 78a6aeb15a More work on Javascript and CSS dispatchers
darcs-hash:20051029185222-7ad00-c184ab3496539f3027407c7d17e8770a1849546a.gz
2005-10-29 20:52:22 +02:00
Andreas Gohr b0bf105a1e small toolbar fixes
darcs-hash:20051024211946-7ad00-58921b2df3e1db30fd3aa37719858f31d9115e46.gz
2005-10-24 23:19:46 +02:00
Andreas Gohr 20d062ca52 first go on unobstrusive javascript, new toolbar
darcs-hash:20051008175404-7ad00-cd640de7660825b19d5e863cc8caf5467d59b055.gz
2005-10-08 19:54:04 +02:00