Extension:SecureInclude

Warning Warning: Using this extension can result in severe security holes! Know what you are doing! Activating the feature noesc can result in XSS attacks. Activating local file sources can allow users to view local files of the web server, potentially containing confidential data and passwords. Allowing to shell or php code poses a security risk by itself.
Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
SecureInclude
Release status: experimentalCategory:Experimental extensions
Implementation Tag Category:Tag extensions
Description Include external static content from the local file system, a remote URL, or SVN. External content can be included or embedded as an iframe.
Author(s) Edesoltalk
Latest version 2.0 WIP (2021-11-14)
MediaWiki 1.21+Category:Extensions with manual MediaWiki version
Database changes No
License GNU General Public License 3.0 or later
Download Category:Extensions in GitHub version control
[see documentation]
Category:All extensionsCategory:Extensions not in ExtensionJson

A few introductory remarks

Be aware. This is work in progress.

SecureInclude is basically the original Include Extension fixed up to do Syntaxhighlighting again and some more. <include> should be stable while the new tags <shell>, <php> are experimental for now. Be patient.

The steps to enable SyntaxHighlighting differ slightly now.

Step 1.

install SyntaxHighlighting as described in Extension:SyntaxHighlight#Installation

Step 2.

add <include> tag using <syntaxhighlight> attributes (as documented on Extension:SyntaxHighlight#Parameters) eg.
<include src="./tmp/duply.sh" lang="bash" line nocache nopre/>

Documentation

The best documentation for now is in the header of secure-include.php.

Installation

Category:All extensions Category:Experimental extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:Tag extensions