'; }else if($post_email == '' || $post_text_msg == '' || $post_title_msg == ''){ $sendd .= "
".$lang->get_lang(alldata)."
"; } else if(!@filter_var($post_email,FILTER_VALIDATE_EMAIL)){ $sendd .= "
".$lang->get_lang(erroremail)."
"; } else if (strlen($post_text_msg) < 5 || strlen(strip_tags($post_text_msg)) > 20000){ $sendd .= "
".$lang->get_lang(inserttextmsg)."
"; } else if (strlen($post_title_msg) < 5 || strlen($post_title_msg) >600){ $sendd .= "
".$lang->get_lang(inserttitlemsg)."
"; } else{ $ip = htmlspecialchars($_SERVER['REMOTE_ADDR']); $time = time(); $insert = $q->Query("insert into send (title_send,text_send,ip_send,active_send,email_send,time_send) value ('$post_title_msg','$post_text_msg','$ip','1','$post_email','$time')") or die (mysql_error()); if($insert){ $sendd .= "
".$lang->get_lang(donesendmsg)."
"; echo''; setcookie('sendmsg','sendmsg',time()+60*15); } } } //$sendd2 = ib_des_blocks2($lang->get_lang(callme), $sendd); $template->get_template('PageSend'); $template->rep_template('{header}',$header); //$template->rep_template("rtl",$lang->langlist(dir));$template->rep_template("ltr",$lang->langlist(dir));$template->rep_template('{footer}',$footer); $template->rep_template('{block_right}',ib_blocks(1)); $template->rep_template('{block_left}', ib_blocks(3)); $template->rep_template('{send}',$sendd); $template->display(); #include footer site require_once 'inc/footer.php'; ?>