====== showfile plugin ====== ---- plugin ---- description: A basic plugin to display the content of files present on the server's disks author : GrdScarabe email : grdscarabe [at] grdscarabe [dot] net type : syntax lastupdate : 2008-05-13 compatible : devel > 2007-06-26 depends : conflicts : similar : source tags : filesystem, display, file, code, 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 [[plugin: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. --- //[[chris@jalakai.co.uk|Christopher Smith]] 2008/05/14 03:38// ^ Download | [[https://dev.fabienpoulard.info/dokuwikiplugins/attachment/wiki/showfile/plugin-showfile.tar.gz?format=raw|plugin-showfile.tar.gz]] | 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 developped 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 ===== Usage ===== /var/log/messages.log **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.