summaryrefslogtreecommitdiff
path: root/lib/plugins/admin.php
diff options
context:
space:
mode:
authorEsther Brunner <esther@kaffeehaus.ch>2005-09-02 17:05:27 +0200
committerEsther Brunner <esther@kaffeehaus.ch>2005-09-02 17:05:27 +0200
commit00a7b5ad8c432fcfb4f394ab300d802a0fe4c35c (patch)
treeec04a0d2e917ddd25af245c4e75153e1f742d74e /lib/plugins/admin.php
parentda682d4efe15ba703873b4989e0fdb895dd3f140 (diff)
downloadrpg-00a7b5ad8c432fcfb4f394ab300d802a0fe4c35c.tar.gz
rpg-00a7b5ad8c432fcfb4f394ab300d802a0fe4c35c.tar.bz2
function obfuscate($email) moved to common.php; used in parser and some plugins
darcs-hash:20050902150527-283c4-dae58038c70aacb000f535e8173fa263ba774f52.gz
Diffstat (limited to 'lib/plugins/admin.php')
-rw-r--r--lib/plugins/admin.php23
1 files changed, 1 insertions, 22 deletions
diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php
index 9f8d2316e..52ac30647 100644
--- a/lib/plugins/admin.php
+++ b/lib/plugins/admin.php
@@ -127,27 +127,6 @@ class DokuWiki_Admin_Plugin {
function plugin_render($text, $format='xhtml') {
return p_render($format, p_get_instructions($text),$info);
}
-
- // return an obfuscated email address in line with $conf['mailguard'] setting
- // FIXME?? this should really be a common function, used by the renderer as well - no point maintaining two!
- function obfuscate($email) {
- global $conf;
-
- switch ($conf['mailguard']) {
- case 'visible' :
- $obfuscate = array('@' => '[at]', '.' => '[dot]', '-' => '[dash]');
- return strtr($email, $obfuscate);
-
- case 'hex' :
- $encode = '';
- for ($x=0; $x < strlen($email); $x++) $encode .= '&#x' . bin2hex($email{$x}).';';
- return $encode;
-
- case 'none' :
- default :
- return $email;
- }
- }
-
+
}
//Setup VIM: ex: et ts=4 enc=utf-8 :