[surforce-library commit] r49 - trunk/library/Zsurforce/View/Helper

1 view
Skip to first unread message

codesite...@google.com

unread,
Mar 1, 2009, 6:52:03 PM3/1/09
to surforce...@googlegroups.com
Author: enriqueplace
Date: Sun Mar 1 15:48:51 2009
New Revision: 49

Added:
trunk/library/Zsurforce/View/Helper/HtmlEmailOfuscado.php

Log:
Primera versión de un "ofuscador de email" para evitar el spam ;-)

Added: trunk/library/Zsurforce/View/Helper/HtmlEmailOfuscado.php
==============================================================================
--- (empty file)
+++ trunk/library/Zsurforce/View/Helper/HtmlEmailOfuscado.php Sun Mar 1
15:48:51 2009
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Generates a 'link' html.
+ *
+ * @category SURFORCE
+ * @package SURFORCE-LIBRARY
+ * @license GPL v2
+ */
+class Zsurforce_View_Helper_HtmlEmailOfuscado
+{
+ /**
+ * Generates a string email
+ *
+ * @param string $email
+ * @return string The element XHTML.
+ */
+ public function htmlEmailOfuscado($email)
+ {
+ $arr = explode('@', $email);
+
+ return $arr[0] .' en ' .$arr[1];
+ }
+}
\ No newline at end of file
Reply all
Reply to author
Forward
0 new messages