Commit Graph

106 Commits

Author SHA1 Message Date
Andreas Gohr
e82754c523 prevent access of wiki files
This prevents the crawler to descent into the wiki directory or data
directory, even when for some reason a higher up directory was made
accessible. This should prevent the circumvention of ACLs and prevent
access to sensitive data like user password hashes etc.
2024-04-03 14:23:53 +02:00
Andreas Gohr
55e6f8f9aa fix default list separator. fixes #43 2024-04-03 13:58:32 +02:00
Andreas Gohr
e208762bee Version upped 2024-03-13 12:25:20 +01:00
Andreas Gohr
48ecd4d450 Merge pull request #40 from dokufreaks/bot/autofix
🤖 Automatic code style fixes
2024-03-13 12:15:00 +01:00
splitbrain
46bd41a864 🤖 Automatic code style fixes 2024-03-13 11:14:07 +00:00
Andreas Gohr
d6a45e5c9f ignore typical temporary files when listing directories
Operating systems love to cluter the file system with all kinds of
cruft. This adds a gitignore like config to skip those files when
listing files.
2024-03-13 12:12:51 +01:00
Andreas Gohr
5a77ba3af8 Version upped 2024-03-04 15:13:44 +01:00
Andreas Gohr
ea0fa0cd96 Merge pull request #39 from cosmocode/refactor
Major Refactoring, Clean-Up and Simplification
2024-03-04 14:30:49 +01:00
Andreas Gohr
1d52ebc355 fix mail in plugin.info 2024-02-27 17:00:11 +01:00
Andreas Gohr
d64cc5d9b5 added deleted.files 2024-02-27 16:04:21 +01:00
Andreas Gohr
e9fa344990 removed obsolete javascript 2024-02-27 16:03:09 +01:00
Andreas Gohr
afea422661 removed obsolete configs and language strings 2024-02-27 16:02:02 +01:00
Andreas Gohr
75a1469d5a readme cleanup 2024-02-27 15:58:41 +01:00
Andreas Gohr
05f444a487 style cleanup 2024-02-27 15:57:33 +01:00
Andreas Gohr
1eeb87d74f adjust tests
This could really use some more tests but this has to suffice for now.
2024-02-27 15:54:14 +01:00
Andreas Gohr
28af4b6776 Major Refactoring (will need some cleanup)
This refactors the plugin from one mega syntax file into multiple
classes.

The plugin now focuses on one usecase: listing files that are external
to the wiki and making them downloadable. All other usecases have been
dropped. Also a bunch of other options have been dropped.

A new dispatcher makes it possible to deliver files without the need to
have the webserver pointing at them.
2024-02-27 14:49:08 +01:00
Andreas Gohr
1c9be8254b initial automatic cleanup 2024-02-26 11:58:11 +01:00
Andreas Gohr
31b4eb67ba Version upped 2020-11-09 11:39:38 +01:00
Gerrit Uitslag
6c842602ea Merge pull request #32 from dokufreaks/cleanup
Removed useless/deprecated code
2020-09-27 15:30:15 +02:00
lpaulsen93
5cdac8ec6a Removed useless/deprecated code 2020-09-27 11:59:14 +02:00
Gerrit Uitslag
5c86675f14 Merge pull request #31 from dokufreaks/use-nocache
Use '$renderer->nocache()'
2020-09-22 21:44:43 +02:00
lpaulsen93
41ca2bd314 Use '$renderer->nocache()' 2020-09-19 13:54:27 +02:00
Lars Paulsen
6ddd45c38b Added new option 'showcreator'. See #28.
If activated an additional column will be displayed showing the DokuWiki user which created the file.
Only works if option 'direct' is set to '0'.
2018-05-31 16:35:56 +02:00
LarsDW223
bfd71e37a5 Corrected image link generation for image preview.
This fixes broken preview images if media ids are used in the file pattern
(parameter 'direct=0'). Fixes #27.
2018-04-07 12:55:36 +02:00
LarsGit223
ed94025e20 Added screenshot via upload 2016-09-10 15:14:17 +02:00
LarsDW223
d6b2e685a5 Fixed missing language strings for 'preview' and 'filetype'. Upped version. 2016-09-10 14:14:42 +02:00
LarsGit223
63b3a261cb Merge pull request #26 from LarsGit223/master
Minor adjustments for ODT redesign branch.
2016-09-01 21:37:19 +02:00
LarsDW223
37723cbe4a Minor adjustments for ODT redesign branch. 2016-09-01 21:32:41 +02:00
LarsDW223
9750d364c3 Upped version, added Dokufreaks 2016-05-14 14:51:24 +02:00
LarsDW223
ec306048e5 Fixed _realpath() for UNC pathes like '\\examplepath\mypath' (will become '//examplepath/mypath'). See #1.
Here is a comparison between the output of the old and new version of _realpath():

Input: '/a/b/c/' Output old: '/a/b/c/' Output new: '/a/b/c'
Input: '//a/b/c' Output old: '/a/b/c'  Output new: '//a/b/c'
Input: 'a//b'    Output old: 'a/b'     Output new: 'a//b'
2016-05-13 22:05:24 +02:00
LarsDW223
64cebf9c73 Preview image path are always direct. Fixes #24. 2016-05-13 19:33:15 +02:00
LarsDW223
4d798e23d2 Adjusted _path_is_absolute() to also recognize a path like '\\mypath' as absolute under windows. See #1. 2016-05-13 19:00:31 +02:00
LarsDW223
0dc06c1a89 Out commented travis ci tests for PHP version 5.3 to 5.5 as the test code is currently incompatible to this versions. 2016-05-12 20:31:41 +02:00
LarsGit223
2199420462 Merge pull request #23 from LarsGit223/master
Added option for generating ftp links.
2016-05-11 22:16:23 +02:00
LarsDW223
ca75fd34f2 Minor code improvement. 2016-05-11 22:11:11 +02:00
LarsDW223
738390afa9 Added option for generating ftp links. Fixes #18. 2016-05-11 22:03:46 +02:00
LarsDW223
530bbb1685 On ODT export call _odtAddImage() to insert image. Fixes #22. 2016-05-11 20:33:26 +02:00
LarsDW223
737905fb5e Fixed ODT export for style=table:
- Count table columns for table_open()
- Open and close table row before table heading
Fixes #21.
2016-05-11 20:29:06 +02:00
LarsDW223
7b9a2ebee7 Fixed deprecated constructor. 2016-05-09 18:56:20 +02:00
LarsDW223
204dee0e6f Corrected '.travis.yml' file: there is no directory '.gitignore' in the plugin filelist directory. 2016-05-09 18:53:35 +02:00
LarsGit223
e9591647ab Merge pull request #20 from LarsGit223/master
Added JavaScript zoom function for preview images. Fixes #19.
2016-05-09 18:42:35 +02:00
LarsDW223
4366c8ab3f Adjusted CSS id. 2016-05-09 18:35:58 +02:00
LarsDW223
2d0fd400c0 Added missing COPYING and README file. 2016-05-08 12:10:41 +02:00
LarsDW223
d8da66761e Added test code (incomplete) and travis-ci config file. 2016-05-08 11:59:49 +02:00
LarsDW223
ea05a3a5c6 Added JavaScript zoom function for preview images. Fixes #19. 2016-05-07 14:50:33 +02:00
LarsGit223
00ee8d3fdd Merge pull request #17 from LarsGit223/master
Added new options 'showsize', 'showdate' and 'listsep':
2016-05-07 10:23:57 +02:00
LarsDW223
00ae752f49 Added new options 'showsize', 'showdate' and 'listsep':
- 'showsize' shows the filesize for lists and table mode
- 'showdate' shows the last modified date for lists and table mode
- 'listsep' specifies the separator between the link, size and date.
  Default is ", ".
'tableshowsize' and 'tableshowdate' are still supported for backwards compatibility.
Fixes #16.
2016-05-06 20:03:39 +02:00
LarsGit223
8e034a213c Merge pull request #15 from LarsGit223/master
Minor code cleanup
2016-05-06 19:22:21 +02:00
LarsDW223
0654dfec92 Replaced all occurences of '&$renderer' with 'Doku_Renderer $renderer'.
Moved function 'render_preview_image()' to section 'Render functions'.
2016-05-05 21:18:20 +02:00
LarsDW223
116e03df92 Fixed code duplication for the link's URL generation. 2016-05-05 12:33:40 +02:00