head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 2006.03.12.18.36.58; author rse; state Exp; branches; next 1.1; commitid Cqg9O1Jqq5I2hVor; 1.1 date 2006.03.09.19.00.25; author rse; state Exp; branches; next ; commitid VYsLD712fl94vxor; desc @@ 1.2 log @move diversion stuff into canvas-php.php and HTML template into a new canvas-html.php @ text @ @ 1.1 log @reuseable PHP code for consumer side @ text @a25 1 d27 31 a57 16 # scramble an email address/link somewhat to prevent # trivial address crawlers from picking it up function email ($url, $link) { $html = $url; $html = preg_replace('/@@/', '@', $html); $html = preg_replace('/\./', '.', $html); if ($link) { $href = $url; $href = preg_replace('/@@/', '@', $href); $href = preg_replace('/\./', '.', $href); $html = "$html"; d59 1 a59 1 echo $html; a61 2 "; a62 1 @