[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.7,1.8
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: wiki/parse html.php,1.7,1.8 |
Date: |
Wed, 19 Mar 2003 17:55:15 -0500 |
Update of /cvsroot/phpgroupware/wiki/parse
In directory subversions:/tmp/cvs-serv28848
Modified Files:
html.php
Log Message:
spamsaver email-addresses
Index: html.php
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/parse/html.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** html.php 7 Mar 2003 00:19:14 -0000 1.7
--- html.php 19 Mar 2003 22:55:12 -0000 1.8
***************
*** 112,116 ****
return "<img src=\"$url\" alt=\"" . basename($url) . "\" />";
}
! return "<a href=\"$url\">$text</a>";
}
function html_ref($page, $appearance, $hover = '', $anchor = '',
$anchor_appearance = '')
--- 112,122 ----
return "<img src=\"$url\" alt=\"" . basename($url) . "\" />";
}
! if (preg_match('/^mailto:(address@hidden)@(.*)$/i',$url,$matchs)) //
spamsaver emailaddress
! {
! $url = "mailto:$matchs[1] at $matchs[2]";
! $onClick = "
onClick=\"document.location='mailto:$matchs[1]'+'@'+'$matchs[2]'; return
false;\"";
! $text = str_replace('@',' at ',str_replace('mailto:','',$text));
! }
! return "<a href=\"$url\"$onClick>$text</a>";
}
function html_ref($page, $appearance, $hover = '', $anchor = '',
$anchor_appearance = '')
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: wiki/parse html.php,1.7,1.8,
Ralf Becker <address@hidden> <=