The mailform that gets created by phpwcms is great, but it shows the recipient address in the page. Spam bots can get the address.
I've changed the code a bit so the address get's "disguised".
in content.article.inc.php on 777, replace this
Code: Select all
$content["main"] .= "<input type=\"hidden\" name=\"recipient\" value=\"".$cform[2]."\">";
Code: Select all
$content["main"] .= "<input type=\"hidden\" name=\"recipient\" value=\"".str_replace("@", "OnFollowingServeR", $cform[2])."\">";
Code: Select all
$recipient = trim($_POST["recipient"]);
Code: Select all
$recipient = str_replace("OnFollowingServeR", "@", trim($_POST["recipient"]));
So what this hack does:
The mailform gets the recipient address from a hidden field in the page, like this:
Code: Select all
<input type="hidden" name="recipient" value="bert@someserver.ext">
This "hack" changes this hidden field in
Code: Select all
<input type="hidden" name="recipient" value="bertOnFollowingServeRsomeserver.ext">
Hope this helps

B.