Revision [16759]
This is an old revision of Mod042fShowPageCodeHandler made by PauNhv on 2007-05-31 10:44:54.
Wikka Mod 042
Type: Feature AdditionCredit
- 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
Description
This modification adds a page handler that shows the raw code of a page, formatted somewhat for viewing.
Usage:
Add /showcode to the end of any page URL.
For example:
http://wikka.jsnx.com/HomePage/showcode
handlers/page/showcode.php
%%(php) <?php
if ($this->HasAccess("read")