"; $config = $kb->getConfig(); if ( isset( $_POST['killmail'] ) ) { if ( $_POST['password'] == $config->getPostPassword() ) { $parser = new Parser( $_POST['killmail'] ); $killid = $parser->parse( true ); if ( $killid == 0 || $killid == -1 || $killid == -2 || $killid == -3) { if ( $killid == 0 ) $html = "Killmail is malformed."; if ( $killid == -1 ) $html = "That killmail has already been posted."; if ( $killid == -2 ) $html = "You are not authorized to post this killmail."; if ($killid == -3) { $filterdate = date("j F Y",$config->getConfig("filter_date")); $html = "You are not allowed to post killmails older than $filterdate."; } $html .= "

Try again"; } else { if ( $config->getPostMailTo() != "" ) { $mailer = new PHPMailer(); $kill = new Kill( $killid ); $mailer->From = "mailer@eve-killboard.net"; $mailer->FromName = "eve-killboard.net"; $mailer->Subject = "Killmail #".$killid; $mailer->Host = "localhost"; $mailer->Port = 25; $mailer->Helo = "localhost"; $mailer->Mailer = "smtp"; $mailer->AddReplyTo( "no_reply@eve-killboard.net", "No-Reply" ); $mailer->Sender = "mailer@eve-killboard.net"; $mailer->Body = $kill->getRawMail(); $mailer->AddAddress( $config->getPostMailto() ); $mailer->Send(); } $qry = new DBQuery(); $qry->execute( "insert into kb3_log values( ".$killid.", '".KB_SITE."', '".$_SERVER['REMOTE_ADDR']."', now() )" ); $html .= "Killmail posted successfully.

"; $html .= "Post another killmail"; } } else { $html .= "Invalid password."; $html .= "

Try again"; } } else { $html .= "Paste the killmail from your EVEMail inbox into the box below. Make sure you post the ENTIRE mail.
Posting fake or otherwise edited mails is not allowed. All posts are logged."; $html .= "

Remember to post your losses as well.

"; $html .= "Killmail:
"; $html .= "
"; $html .= ""; $html .= "

Password:
"; $html .= "     "; $html .= "
"; } $html .= ""; echo $html; ?> >>>>>>> .r23