if _POST send_email die script language JavaScript alert lang 182 hist

1
2
3
4
5
6
7
8
9
if (!$_POST['send_email']) die("<script language='JavaScript'>alert('".$lang[182]."'); history.back(1)</script>");
if (!$_POST['send_title']) die("<script language='JavaScript'>alert('".$lang[1833]."'); history.back(1)</script>");
if (!$_POST['send_text']) die("<script language='JavaScript'>alert('".$lang[184]."'); history.back(1)</script>");
$query_mail = mysql_query ("SELECT email FROM jb_board WHERE id = '".intval($_GET['id_mess'])."' LIMIT 1");cq();
if ($query_mail) $mail = mysql_fetch_assoc ($query_mail);
$to = $mail['email'];
$from = substr($_POST['send_email'],0,64);
if (!preg_match('/^[-0-9\.a-z_]+@([-0-9\.a-z_]+\.)+[a-z]{2,6}$/i',$from)) die("<script language='JavaScript'>alert('".$lang[185]."'); history.back(1)</script>");