\n\n\n"; $eProtectFirstTime=false;} $html .= "\n\n"; $html .= ""; $html .= "\n\n"; return Keep($html); } //---------------------------------------------------------------------- function eProtectHandlePost ($pagename) { //---------------------------------------------------------------------- global $HandleActions, $UrlPathPattern, $KeepToken, $KPV; global $eProtectRedirect; $email_pattern = "mailto:(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,4})"; $text = $_POST['text']; $text = preg_replace_callback("/\\[\\=(.*?)\\=\\]/s", create_function('$str', 'return Keep($str[0]);'), $text); // extract the [= .. =] and temporarily store in $KPV[] $text = preg_replace_callback("/$email_pattern/s", create_function('$m','return "[[hidden-email:" . trim(str_rot13($m[1])) . "]]";'), $text); $text = preg_replace("/$KeepToken(\\d+)$KeepToken/e",'$KPV[$1]',$text); // put the [= .. =] back in to the text $_POST['text'] = $text; $eProtectRedirect($pagename); return; } ?>