post_toHTML($_POST['comment'], TRUE, 'retain_nl, emotes_off, no_make_clickable'); $author = $tp->post_toHTML($_POST['author_name'],FALSE,"emotes_off, no_make_clickable"); $email_send = check_email($_POST['email_send']); if (isset($_POST['emailsubmit'])) { if (!$email_send) { $error .= LAN_EMAIL_106; } if($use_imagecode) { if(!isset($_POST['code_verify']) || !isset($_POST['rand_num'])) { header("location:".e_BASE."index.php"); exit; } if (!$sec_img->verify_code($_POST['rand_num'], $_POST['code_verify'])) { header("location:".e_BASE."index.php"); exit; } } if ($comments == "") { $message = LAN_EMAIL_188." ".SITENAME." (".SITEURL.")"; if (USER == TRUE) { $message .= "\n\n".LAN_EMAIL_1." ".USERNAME; } else { $message .= "\n\n".LAN_EMAIL_1." ".$author; } } else { $message .= $comments; } $ip = $e107->getip(); $message .= "\n\n".LAN_EMAIL_2." ".$ip."\n\n"; if(strpos($source,'plugin:') !== FALSE) { $plugin = substr($source,7); $text = ""; if(file_exists(e_PLUGIN.$plugin."/e_emailprint.php")) { include_once(e_PLUGIN.$plugin."/e_emailprint.php"); $text = email_item($parms); $emailurl = SITEURL; } if($text == "") { header("location:".e_BASE."index.php"); exit; } $message .= $text; } elseif($source == "referer") { if(!isset($_POST['referer']) || $_POST['referer'] == '') { header("location:".e_BASE."index.php"); exit; } $message .= $_POST['referer']; $emailurl = $_POST['referer']; } else { $emailurl = $_POST['referer']; $message = ""; if($sql->db_Select("news", "*", "news_id='".intval($parms)."'")) { list($news_id, $news_title, $news_body, $news_extended, $news_datestamp, $news_author, $news_source, $news_url, $news_category, $news_allow_comments) = $sql->db_Fetch(); $message = "

".$news_title."


".$news_body."
".$news_extended."

{e_BASE}news.php?extend.".$parms."
"; $message = $tp->toEmail($message); } if($message == "") { header("location:".e_BASE."index.php"); exit; } } if ($error == "") { // Load Mail Handler and Email Template. require_once(e_HANDLER."mail.php"); $email_body = $EMAIL_HEADER; $email_body .= (trim($comments) != "") ? $tp->toEmail($comments)."
" : ""; $email_body .= $tp->toEmail($message).$EMAIL_FOOTER; if (sendemail($email_send, LAN_EMAIL_3.SITENAME,$email_body)) { $text = "
".LAN_EMAIL_10." ".$email_send."
"; } else { $text = "
".LAN_EMAIL_9."
"; } $ns->tablerender(LAN_EMAIL_11, $text); } else { $ns->tablerender(LAN_EMAIL_12, "
".$error."
"); } } // --------------------- Form ------------------------------------------------- $text = "
\n "; if (USER != TRUE) { $text .= ""; } $text .= " "; if($use_imagecode) { $text .= ""; } $text .= "
".LAN_EMAIL_15."
".LAN_EMAIL_8."
".LAN_EMAIL_187."
".LAN_EMAIL_190.""; $text .= $sec_img->r_image(); $text .= "
"; $ns->tablerender(LAN_EMAIL_5, $text); require_once(FOOTERF); ?>