Extension:Website in iFrame

From MediaWiki.org

Jump to: navigation, search

         

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
include

Release status: stable

Implementation  Tag
Description This simple extension will allow you to post a website in an iFrame in your MediaWiki articles.
Author(s)  Unknown
Last Version  Unknown (Unknown)
MediaWiki  1.5, 1.11.0 (confirmed)
License No license specified
Download http://mw-extensions.googlecode.com/svn/trunk/websiteFrame

check usage (experimental)

Zeichen 206.svg WARNING: the code or configuration described here poses a major security risk.

Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things.
Solution: strictly validate user input and/or apply escaping to all characters that have a special meaning in HTML
Signed: Duesentrieb 00:13, 15 December 2007 (UTC)

Contents

[edit] Description

This simple extension will allow you to post a website in an iFrame in your MediaWiki articles.

[edit] Installation

To install this extension, check out the file from the liked repository to your extensions directory. Finally, edit your LocalSettings.php file and add the following code to the bottom;

/* websiteFrame extension */
include("extensions/websiteFrame.php");

[edit] Usage

Be sure to use the full URL to your website; http://www.yourWebsite.com

<websiteFrame>
website=[website URL]
name=[string]
align=[top,middle,bottom,left,right]
height=[number]
width=[number,percentage]
border=[number]
scroll=[yes,no,auto]
longdescription=[long description URI]
</websiteFrame>

[edit] Example

<websiteFrame>
website=http://www.google.com
height=800
width=100%
border=0
scroll=yes
</websiteFrame>


[edit] See also