|
Cookbook /
PHPScriptAsWikiMarkupSourceSummary: let PHP scripts generate parts of you wiki page content
Version: 1.2b
Prerequisites: none
Status: stable
Maintainer: Sven
Categories: Markup
Discussion: PHPScriptAsWikiMarkupSource-Talk?
Questions answered by this recipe
DescriptionThis receipe defines a markup for execution of PHP scripts and usage of their output as wiki markup. It natively supports paranoid permission policies. How to Install
Usage
Security: Execution PermissionsPermissions are defined in Site.PhpIncPermissions? in this style: :group.page: plugin1 plugin2 Each such line defines which plugins can be used by the specified wiki page. Instead of :group.page: you may write :*:, which will allow these plugins to be called from any page. Plugins that are not explicitly allowed will not be executed. Security: Direct ExecutionIn order to prevent plugins from direct execution, please deny web users access to your phpinc directory with an .htaccess file. Additionally, each plugin should itself check whether it is executed within PmWiki. Security: Restrict the ActionsIf you have a security policy based on the idea that only users with read access to the page can execute the plugins within, make very sure that they cannot view the page content in another way, e.g. using the "search" action. You can use Restrict Actions for this. CommentsSee Discussion at PHPScriptAsWikiMarkupSource-Talk?. Releases
Contributors
|