Revision history for Mod042fShowPageCodeHandler
Revision [23270]
Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]Additions:
The author of WakkaWiki handlers/page/raw.php (assuming **[[http://web.archive.org/web/20040603152140/http://www.wakkawiki.com/HendrikMans | Hendrik Mans]]**)
**[[JsnX | Jason Tourtelotte]]** (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
**[[JsnX | Jason Tourtelotte]]** (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
Deletions:
**[[JsnX Jason Tourtelotte]]** (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
Revision [19293]
Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]No Differences
Additions:
http://wikkawiki.org/HomePage/showcode
Deletions:
Additions:
==== Wikka Mod 042 ====
Type: Feature Addition
----
===Credit===
The author of WakkaWiki handlers/page/raw.php (assuming **[[http://web.archive.org/web/20040603152140/http://www.wakkawiki.com/HendrikMans Hendrik Mans]]**)
**[[JsnX Jason Tourtelotte]]** (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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
Type: Feature Addition
----
===Credit===
The author of WakkaWiki handlers/page/raw.php (assuming **[[http://web.archive.org/web/20040603152140/http://www.wakkawiki.com/HendrikMans Hendrik Mans]]**)
**[[JsnX Jason Tourtelotte]]** (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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
Deletions:
Type: Feature Addition
----
===Credit===
- 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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
Additions:
==== Wikka Mod 042 ====
Type: Feature Addition
----
===Credit===
- 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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
%%
Type: Feature Addition
----
===Credit===
- 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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
%%
Deletions:
Type: Feature Addition
----
===Credit===
- 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")
Additions:
==== Wikka Mod 042 ====
Type: Feature Addition
----
===Credit===
- 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")
Type: Feature Addition
----
===Credit===
- 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")
Deletions:
Type: Feature Addition
----
===Credit===
- 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") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
?>
%%
Additions:
Add /showcode to the end of any page URL.
http://wikka.jsnx.com/HomePage/showcode
handlers/page/showcode.php
http://wikka.jsnx.com/HomePage/showcode
handlers/page/showcode.php
Deletions:
http://wikka.jsnx.com/HomePage/showpagecode
handlers/page/showpagecode.php
Additions:
- JsnX (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
- GmBowen, for prompting the development
- GmBowen, for prompting the development
Deletions:
- GmBowen for the prompting the development
Additions:
This modification adds a page handler that shows the raw code of a page, formatted somewhat for viewing.
Deletions:
Additions:
if ($this->HasAccess("read") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
Deletions:
if (!$this->page) {
return;
} else {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
} else {
return;
Additions:
This modification adds a page handler that shows the raw code of pages, formatted somewhat for viewing.