Commit Graph

55 Commits

Author SHA1 Message Date
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
LarsDW223 37723cbe4a Minor adjustments for ODT redesign branch. 2016-09-01 21:32:41 +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 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 ea05a3a5c6 Added JavaScript zoom function for preview images. Fixes #19. 2016-05-07 14:50:33 +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
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
LarsDW223 b4c60681b1 Removed obsolete getInfo() method. 2016-05-05 12:11:45 +02:00
LarsDW223 95f84f105c Fixed code duplication for preview image rendering. 2016-05-05 11:04:42 +02:00
LarsDW223 69f6c00d52 Removed currently unused class 'preview' from preview image tags. 2016-05-05 10:45:47 +02:00
LarsDW223 76b639344d Set alignment for 'preview' table column to 'center'. 2016-05-05 10:24:12 +02:00
LarsDW223 3c09f83788 Added new config options 'preview', 'previewsize' and 'link':
- 'preview' and 'previewsize' allow to enable a previewimage and set the size of it
- 'link' controls if a link is created with icon or not or if just plain text is used
2016-05-05 10:11:29 +02:00
LarsDW223 2572618a34 Added option 'randlinks' to create random links with a timestamp attached to it as a URL parameter.
This prevents the referenced resource from being cached.
The user will see the latest version of a file if he clicks on it, at least after refreshing the page. See #9.
2016-05-03 19:39:56 +02:00
LarsDW223 7441ea06c0 Added ODT support. 2016-04-30 17:45:19 +02:00
LarsDW223 c26020c439 Small refactoring. 2016-04-30 15:01:15 +02:00
LarsDW223 99bbd1f698 Check if method '$renderer->getLastlevel()' exists or if '$renderer->lastlevel' is accessible.
If not for both then always use level 1 to prevent an error causing an empty page e.g. on "hrun" and "detritus". See #11.
2016-04-30 11:56:27 +02:00
Andreas Gohr 88000db20d Adjust method signatures to match parent 2016-02-02 13:09:53 +01:00
Andreas Gohr e09b6b93a1 fix handling of caching parameter 2014-05-26 14:29:16 +02:00
Andreas Gohr cedaaa981a use explode instead of deprecated split 2014-05-26 14:28:35 +02:00
Gina Häußge ff48d8f53a Moved media id conversion to utility function and called it at appropriate locations 2012-02-09 12:47:38 +01:00
Pavel Brych 31bcb667b3 Hope to solve ACL check problem 2012-02-09 12:05:22 +01:00
Andreas Gohr ff0348f9eb Added cache option 2010-06-30 16:20:49 +02:00
Andreas Gohr a269b44c6a added option to limit listings to certain file extensions 2010-06-30 16:20:31 +02:00
Andreas Gohr 30f6a886d8 allow direct=2 to treat pattern as relative to 1st path 2010-06-30 16:20:31 +02:00
Andreas Gohr 0809416694 Option for setting default parameters 2010-06-30 16:20:31 +02:00
Gina Haeussge 9544d867a4 Fixed argument count for table_open 2010-06-16 19:53:13 +02:00
Gina Haeussge 89486f7bc6 Only use titlefile if it is actually there and readable 2010-01-17 12:47:37 +01:00
Gina Haeussge 1bf1bc0512 Use $conf['mediadir'] as media dir instead of $conf['savedir'].'media' 2010-01-17 12:46:45 +01:00
Gina Haeussge 1365991082 Merge branch 'master' of git@devel.recluse.de:foosel/dokuwiki/filelist 2009-11-16 19:23:00 +01:00
Gina Haeussge 82b40784b7 Release preparations 2009-11-16 19:22:40 +01:00
Gina Haeussge 6b7c4df62c Added case insensitive sorting of filenames. 2009-11-04 21:51:14 +01:00
Gina Haeussge ba1a5c70a4 Release preparations: Adjusted date 2009-11-02 23:31:20 +01:00
Gina Haeussge ada0b6959f Implemented feature request: Recursive filelistings and new section-based display mode
Also implemented fixes for FS#37 and FS#26, did some cleanup and refactored a bit.
2009-11-02 23:14:55 +01:00
Gina Haeussge 04f673f8a6 Release preparations 2009-03-08 2009-03-08 16:11:27 +01:00
Gina Haeussge ca1d3432b1 Further windows fixes 2009-03-08 16:06:03 +01:00
Gina Haeussge ca9e2d8e43 Fix for windows issues (hopefully)
Now converting all \ in path names to / prior to further handling. That should make sure that pathnames in jailcheck actually match.
2009-03-08 15:58:38 +01:00
Gina Haeussge 44d8f28901 fixed missing parentheses 2009-03-08 15:57:50 +01:00
Gina Haeussge de99b7c740 tabs -> spaces 2009-03-08 15:57:33 +01:00
Gina Haeussge a69ad0ee57 release preparations
darcs-hash:20080404171449-2b4f5-b7c7e022f23f12eee820ddc3073d997755f057a3.gz
2008-04-04 19:14:49 +02:00
Gina Haeussge 1c399e5c01 added awareness of file permissions
Files as listed using the "direct" parameter now need to be readable to the
webserver to be part of the list.

darcs-hash:20080404171207-2b4f5-c72e39a8fa30b2629cef0330b1b6d1a6ce23413d.gz
2008-04-04 19:12:07 +02:00
Gina Haeussge 9940b5272a use strftime instead of date
darcs-hash:20080404170318-2b4f5-eed58af13ed81221ad51b4b100b93582b96c1322.gz
2008-04-04 19:03:18 +02:00
Gina Haeussge 3355008959 added ACL awareness for files in media mode
darcs-hash:20080404165413-2b4f5-d58e2cb2f88a5569333e85f3d43ede07072219ef.gz
2008-04-04 18:54:13 +02:00
Gina Haeussge 080a7fb0a4 Fix of FS24
darcs-hash:20080313224339-2b4f5-68180bd6e18cc57915297e37bde316ee897d6d67.gz
2008-03-13 23:43:39 +01:00