1 |
1546
|
Luisehahne
|
<?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@codeworxtech.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('@', '@', str_replace('.', '.', $param));
|
16 |
|
|
}
|