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)
Deletions:
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)


Revision [19293]

Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]

No Differences

Revision [17219]

Edited on 2007-07-07 15:06:20 by JavaWoman [fixed example URL]
Additions:
http://wikkawiki.org/HomePage/showcode
Deletions:
http://wikka.jsnx.com/HomePage/showcode


Revision [17218]

Edited on 2007-07-07 15:05:50 by JavaWoman [standardized credit links]
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)));
}
?>
Deletions:
==== 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)));
}
?>


Revision [16960]

Edited on 2007-05-31 23:27:31 by JsnX [Reverted]
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)));
}
?>
%%
Deletions:
==== 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")


Revision [16759]

Edited on 2007-05-31 10:44:54 by PauNhv [Reverted]
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")
Deletions:
==== 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)));
}
?>
%%


Revision [2943]

Edited on 2004-12-07 23:01:41 by JsnX [renamed handler to showcode]
Additions:
Add /showcode to the end of any page URL.
http://wikka.jsnx.com/HomePage/showcode
handlers/page/showcode.php
Deletions:
Add /showpagecode to the end of any page URL.
http://wikka.jsnx.com/HomePage/showpagecode
handlers/page/showpagecode.php


Revision [2657]

Edited on 2004-11-30 03:19:16 by JsnX [slight mod]
Additions:
- JsnX (slimmed it down, and added passing the output through nl2br and htmlspecialchars)
- GmBowen, for prompting the development
Deletions:
- JsnX (added passing the output through nl2br and htmlspecialchars)
- GmBowen for the prompting the development


Revision [2654]

Edited on 2004-11-30 01:29:42 by JsnX [slight mod]
Additions:
This modification adds a page handler that shows the raw code of a page, formatted somewhat for viewing.
Deletions:
This modification adds a page handler that shows the raw code of pages, formatted somewhat for viewing.


Revision [2652]

Edited on 2004-11-30 01:21:46 by JsnX [revised code]
Additions:
if ($this->HasAccess("read") && $this->page) {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
Deletions:
if ($this->HasAccess("read")) {
if (!$this->page) {
return;
} else {
// display raw page, slightly formatted for viewing
print(nl2br(htmlspecialchars($this->page["body"], ENT_QUOTES)));
}
} else {
return;


Revision [2651]

Edited on 2004-11-30 01:09:55 by JsnX [initial draft]
Additions:
This modification adds a page handler that shows the raw code of pages, formatted somewhat for viewing.
Deletions:
This modification adds a page handler that shows the raw code of pages, formatted somewhat to viewing.


Revision [2650]

The oldest known version of this page was created on 2004-11-30 01:08:26 by JsnX [initial draft]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki