Revision [4410]

This is an old revision of Mod043fCloneHandler made by DarTar on 2005-01-11 09:12:38.


Wikka Mod 042

Type: Feature Addition


- The author of WakkaWiki handlers/page/raw.php (assuming Hendrik Mans)
- JsnX (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
- GmBowen, for prompting the development


This modification adds a page handler that shows the raw code of a page, formatted somewhat for viewing.

Add /showcode to the end of any page URL.

For example:

if ($this->HasAccess("read") && $this->page) {
    // display raw page, slightly formatted for viewing
    print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki