DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:showfile

Table of Contents

showfile plugin

Compatible with DokuWiki

2007-06-26

plugin A basic plugin to display the content of files present on the server's disks

Last updated on
2008-05-13
Provides
Syntax

The missing download url means that this extension cannot be installed via the Extension Manager. Please see Publishing a Plugin on dokuwiki.org. Recommended are public repository hosts like GitHub, GitLab or Bitbucket.

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Security warning (please read plugin security guidelines): This extension exposes information that might be valuable to a hacker. It is not recommended in a public installation.

Similar to displayfile, source, src

Tagged with code, display, file, include

:!: This plugin should never be used in an open environment as it allows to read arbitrary files from the webserver, including security sensitive files like /etc/passwd, .htaccess or DokuWiki's own conf/users.auth.php :!:

NOTE: I can't see what advantages this has over the source plugin. Amongst other things the source plugin includes:

  • security options to restrict the files that can be displayed, and
  • provides dependency checking to work with DokuWiki's caching, thereby allowing the rendered wiki page to be cached.

Christopher Smith 2008/05/14 03:38

:!: Link is down – 2011-02-23/O.Geisen

A basic plugin for displaying file contents, for file located on the server's disks. It's a first time experiment as DokuWiki plugin developer and the plugin was developed in like 10 minutes … so feel free to improve …

Of course the files must be readable by the Apache user or group for the content to be displayed.

-GrdScarabe

Development

There is a dedicated Trac at : https://dev.fabienpoulard.info/dokuwikiplugins/wiki/showfile

FIXME The link is not accessable

Usage

<showfile>/var/log/messages.log</showfile>

Where

  • /var/log/messages.log is the file to display ;)

It is recommended (mandatory) to add the ~~ NOCACHE ~~ directive to have the content refreshed each time the page is displayed.

plugin/showfile.txt · Last modified: 2023-10-31 00:23 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki