Chop-Sui: PHP-Skript deaktiviert / Spam durch mail()-method !?!?!?

Beitrag lesen

Im Quelltext ist der Empänger und der Absender "hart-kodiert". Daher verstehe ich nicht, wo dort eine Lücke sein soll....

---------------------------------

Hallo, hier ist der Code:

function cms_send_mail($mail_to,$mail_subject,$mail_body,$mail_type,$reply_email)

{

$mail_parts["mail_type"] = $mail_type;
   $mail_parts["mail_to"] = $mail_to;

$mail_parts["mail_from"] = $reply_email;

$mail_parts["mail_reply_to"] = $reply_email;
   $mail_parts["mail_subject"] = trim($mail_subject);
   $mail_parts["mail_body"] = $mail_body;

if(cms_my_mail($mail_parts))
      return true;
   else
      return false;

}

function cms_my_mail($mail_parts)
{

$mail_to = $mail_parts["mail_to"];
   $mail_from = $mail_parts["mail_from"];
   $mail_reply_to = $mail_parts["mail_reply_to"];
   $mail_subject = $mail_parts["mail_subject"];
   $mail_body = $mail_parts["mail_body"];
   $mail_type = $mail_parts["mail_type"];
   $mail_to = str_replace(";", ",", $mail_to);
   $mail_headers = '';

if(!empty($mail_from)) $mail_headers .= "From: $mail_from\n";
   if(!empty($mail_reply_to)) $mail_headers .= "Reply-to: $mail_reply_to\n";
   if(!empty($mail_cc))
            $mail_headers .= "Cc: " . str_replace(";", ",", $mail_cc) . "\n";
   if(!empty($mail_bcc))
            $mail_headers .= "Bcc: " . str_replace(";", ",", $mail_bcc) . "\n";

$mail_subject = stripslashes($mail_subject);
   $mail_body = stripslashes($mail_body);

if($mail_type == "html")
   {
      $mail_headers .= "Content-type: text/html; charset=us-ascii\r\n";
   }
   return mail($mail_to,$mail_subject,$mail_body,$mail_headers,"-f ".$mail_from);
}