Project

General

Profile

1
<?php
2
  /**
3
  * QuickSkin Extension hidemail
4
  * Protects email address from being scanned by spam bots
5
  *
6
  * Usage Example:
7
  * Content:  $template->assign('AUTHOR', 'andy@codeworxtech.com' );
8
  * Template: Author: {hidemail:AUTHOR}
9
  * Result Source:   Author: andy&#64;codeworxtech&#46;com
10
  * Result Display:  Author: andy@codeworxtech.com
11
  *
12
  * @author Andy Prevost andy@codeworxtech.com
13
  */
14
  function qx_hidemail ( $param ) {
15
    return str_replace('@', '&#64;', str_replace('.', '&#46;', $param));
16
  }
17

    
18
?>
(15-15/34)