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 = "