Improve email encryption on changelog
authorx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Nov 2006 11:31:29 +0000 (11:31 +0000)
committerx2003bruneau <x2003bruneau@839d8a87-29fc-0310-9880-83ba4fa771e5>
Thu, 16 Nov 2006 11:31:29 +0000 (11:31 +0000)
git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1093 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/platal.php

index 1c16f85..4d8c391 100644 (file)
@@ -85,10 +85,12 @@ class PlatalModule extends PLModule
     function handler_changelog(&$page)
     {
         $page->changeTpl('changeLog.tpl');
+        $page->addJsLink('wiki.js');
 
         $clog = htmlentities(file_get_contents(dirname(__FILE__).'/../ChangeLog'));
         $clog = preg_replace('!(#[0-9]+(,[0-9]+)*)!e', 'bugize("\1")', $clog);
-        $clog = preg_replace('!([-a-z0-9_.]+)@([-a-z0-9_.]+)!i', '\1 AT \2', $clog);
+        $clog = preg_replace('!([-a-z0-9_.]+@[-a-z0-9_.]+)!ie',
+            '"<script type=\'text/javascript\'>Nix.decode(\"" . str_rot13("\1") . "\"); </script>"', $clog);
         $clog = preg_replace('!vim:.*$!', '', $clog);
         $page->assign('ChangeLog', $clog);
     }