Sollte hier eine Anzeige erscheinen, deren Anliegen dem unseren entgegensteht, benachrichtigen Sie uns bitte unter Angabe der URL dieser Anzeige, damit diese Werbung nicht mehr erscheint.
Lesen Sie vorher bitte unsere Erläuterungen auf der Seite Warum Werbung und wie sie funktioniert.


 


Falscher Referer! Wrong referer!

Bitte tragen Sie in der Konfigurationsdatei Ihren Server (".$strip_referer.") als moeglichen Referer ein.

"; exit; } // load the mail template and read the server name $mail_content = join ("", file ("templates/mail.tpl.txt")); $server = "http://".getenv ("SERVER_NAME")."/"; $self = $PHP_SELF; // register the referring page if (empty ($referer)) { $referer = getenv ("HTTP_REFERER"); } // line break or cut if the url is too long if (!empty ($link_length) and $link_length != "0") { if ($link_action == "break") { $referer_html = wordwrap ($referer, $link_length, "
", 1); } else if ($link_action == "cut") { $referer_html = substr ($referer, 0, $link_length)."…"; } } else { $referer_html = $referer; } if ($url == $referer) { $check_referer = "checked"; } else if ($url == $server) { $check_server = "checked"; } else { $check_referer = "checked"; } // check the required fields if (is_array ($required) and $_POST) { reset ($required); while (list ($key, $val) = each ($required)) { if (empty ($_POST[$val])) { $err_msg .= "\"".$txt[$val]."\"
"; } } } // check the e-mail format if (is_array ($check_email) and $_POST) { reset ($check_email); while (list ($key, $val) = each ($check_email)) { if (!empty ($_POST[$val]) and !eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,9}$", $_POST[$val])) { $err_msg_email .= "\"".$txt[$val]."\"
"; } } } // check whether the user is allowed to send e-mails based on the configuration and the log file if ($_POST) { if (is_file ($path["logfile"])) { $read_logfile = fopen ($path["logfile"], "r"); while ($data = fgetcsv ($read_logfile, 4096, "-")) { // check the sender if (!empty ($_POST["sender"]) and $_POST["sender"] == $data[4] and $data[1] > mktime ()-$sender_duration*60*60) { $check_sender++; } // check the recipient if (!empty ($_POST["recipient"]) and $_POST["recipient"] == $data[5] and $data[1] > mktime ()-$recipient_duration*60*60) { $check_recipient++; } // check the ip address if (getenv ("REMOTE_ADDR") and getenv ("REMOTE_ADDR") == $data[0] and $data[1] > mktime ()-$ip_address_duration*60*60) { $check_ip_address++; } } fclose ($read_logfile); // error message sender if ($sender_count > 0 and !empty ($sender_count) and $check_sender >= $sender_count) { $err_msg_safety .= "\"".$txt["sender_expiration"]."\"
"; $limit_errors_flag = "true"; } // error message recipient if ($recipient_count > 0 and !empty ($recipient_count) and $check_recipient >= $recipient_count) { $err_msg_safety = "\"".$txt["recipient_expiration"]."\"
"; $limit_errors_flag = "true"; } // error message ip address if ($ip_address_count > 0 and !empty ($ip_address_count) and $check_ip_address >= $ip_address_count and !$err_msg) { $err_msg_safety = "\"".$txt["ip_address_expiration"]."\"
"; $limit_errors_flag = "true"; } // hide limit errors and go back to referer if ($limit_errors_flag == "true" and $show_limit_errors != "yes") { header ("Location: ".$referer); } } } // send the e-mail if (empty ($err_msg) and empty ($err_msg_email) and empty ($err_msg_safety) and $_POST) { while (list ($key, $val) = each ($_POST)) { $mail_content = str_replace ("{".$key."}", $val, $mail_content); } $mail_content = wordwrap ($mail_content, 65); //echo ("
".$mail_content."
"); if ($send_bcc == "yes") { $if_bcc = "BCC: ".$admin_email; } //$php_version = explode ("php/", $_SERVER["SERVER_SOFTWARE"]); //if ($php_version[1] >= "4.0.5") //{ // $sendmail_param = ", -f ".$admin_email; //} mail ($_POST["recipient"], $txt["mail_subject"].$_POST["senders_name"], $mail_content, "From: ".$_POST["sender"]."\n".$if_bcc.$sendmail_param); header ("Location: ".$referer); // write to the log file - logfile format: IP - Unix timestamp - date - time - sender e-mail - recipient e-mail - sender name - recommended url $logfile = fopen ($path["logfile"], "a"); flock ($logfile, 2) or die ("Kann die Zieldatei ".$logfile." nicht locken."); fputs ($logfile, getenv ("REMOTE_ADDR")." - ".mktime ()." - ".date ("d/M/Y - H:i:s", mktime ())." - ".$_POST["sender"]." - ".$_POST["recipient"]." - ".$_POST["senders_name"]." - ".$referer."\n"); fclose ($logfile); echo '


Danke für Ihre Empfehlung des Ökumenischen Heiligenlexikons


eine weitere Empfehlung versenden

'; include ("../footerbasis.php"); die; } // generate the error messages if (!empty ($err_msg)) { $message .= $txt["please_fill_in"]."
"; $message .= $err_msg; } if (!empty ($err_msg_email)) { $message .= $txt["correct_email_syntax"]."
"; $message .= $err_msg_email; } if (!empty ($err_msg_safety)) { $message .= $err_msg_safety; } // parse the template include ("inc/template.class.inc.php"); $tpl = new template; $tpl->load_file('recom', $path["templates"]); $tpl->parse_loop('recom', 'data_list'); $tpl->pprint('recom', array ('referer', 'referer_html', 'server', 'senders_name', 'recipient', 'sender', 'comment', 'message', 'check_referer', 'check_server', 'self')); include ("../footerbasis.php"); ?>