[pmwiki-users] View only alternative to e-protect
Stefan Schimanski
sts at 1stein.org
Mon Oct 3 15:35:39 CDT 2005
Hi!
I have written an alternative to the e-protect recipe which does not
change the wiki code, but only encodes emails during display. This makes
sense if only the view action is accessible without a password. You can
get it at
http://www.pmwiki.org/pmwiki/uploads/Cookbook/protectemail.php
I would be happy about some comments.
How it works:
[[mailto:bla at bla.com]]
is encoded during display into something like
<script type='text/JavaScript'>
<!--
Nix.decode("fpujvpug at zngurzngvx.hav-zhrapura.qr");
//-->
</script><
using the same technique as e-protect. But in your wiki source nothing
will change. To use it, just copy it into your cookbook directory and
include it from config.php.
Stefan
More information about the pmwiki-users
mailing list