1
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
use this
http://www.4homepages.de/forum/index.php?topic=10184.msg53697#msg53697
or upgrade your version of 1.7.4
greets ivan
Open and change all your lang/xxxxxx/main.php
add this:Code: [Select]$lang['secure_required'] = "You copied the secure code wrong.";
$lang['comment_secure_pleasecopy'] = "(Please copy!)";
$lang['comment_secure_scode'] = "Secure Code";
before ?>
Open contact.php
find:Code: [Select]if ($action == "") {
$action = "mailform";
}
add after:Code: [Select]/* ## Safety script ## */
mt_srand((double)microtime()*1000000);
$comment_sicherheit = mt_rand(000001,999999);
$comment_sicherheit = str_replace('=', '´|´', base64_encode(base64_encode($comment_sicherheit)));
/* ## Safety script ## */
find:Code: [Select]// if(!$error && $sender_email != "" && MailChek($sender_email, 2)) {
// $msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format'];
// $sendprocess = 1;
// $error = 1;
// }
add after:Code: [Select]if (($sicherheit_code == "") || ($sicherheit_code != str_replace('´|´', '=', base64_decode(base64_decode($sicherheit_dec))) )) {
$msg .= (($msg != "") ? "<br />" : "").$lang['secure_required'];
$error = 1;
}
find:Code: [Select]"sender_email" => $sender_email,
add after:Code: [Select]"comment_sicherheit" => $comment_sicherheit,
"comment_secure_scode" => $lang['comment_secure_scode'],
"comment_secure_pleasecopy" => $lang['comment_secure_pleasecopy'],
Open templates/xxxxxxxx/contact_mailform.html
find:Code: [Select]<tr>
<td align="right" valign="top"><b>{lang_message}</b></td>
<td align="left" valign="top"><textarea name="message" cols="60" rows="10" wrap="VIRTUAL" id="message" tabindex="4">{message}</textarea>
</td>
</tr>
add after:Code: [Select]<tr>
<td width="90" valign="top"><b>{comment_secure_scode}</b><br />{comment_secure_pleasecopy}</td>
<td><input type="text" name="sicherheit_code" size="15" class="commentinput" /> <img src="sicherheit.php?z={comment_sicherheit}" alt="{comment_secure_scode}" title="{comment_secure_pleasecopy}" /></td>
</tr>
find:Code: [Select]<input type="hidden" name="user_id" value="{user_id}" />
add after:Code: [Select]<input type="hidden" name="sicherheit_dec" value="{comment_sicherheit}" />