".$_lang[FeedTitle]."
"; if ($do == 'send') { if (!$name) { $error = $_lang[FeedErrorNoName]; $do='';} else if (!valid_email($email)) {$error=$_lang[FeedErrorBadEmail]; $do='';} else if (!$to) {$error = $_lang[FeedErrorNoOtdel]; $do='';} else if (!$message) {$error = $_lang[FeedErrorNoMessage]; $do='';} else if (GetSetting("captcha_feedback") and $_SESSION['captchakey'] != $captchakeyin) {$error=$_lang[ErrorWrongCaptcha]; $do='';} else { if ($to == "testimonial") { @mysql_query("insert into testimonials (uid,dt,ip,name,company,dolzhnost,email,icq,message) VALUES('".$_SESSION['userId']."',NOW(),'$ip','$name','$company','$dolzhnost','$email','$icq','".addslashes($message)."')") or die("File: ".__FILE__."
Line: ".__LINE__."
MySQL Error: ".mysql_error()); print $_lang[FeedTestimonialSuccess]; } else { $to_email=GetSetting($to); $subject_msg = "[feedback] $subject"; $message_msg = $_lang[FeedName].": $name\r\n".$_lang[FeedCompany].": $company\r\n".$_lang[FeedDolzhnost].": $dolzhnost\r\n".$_lang[FeedEmail].": $email\r\n".$_lang[FeedICQ].": $icq\r\n\r\n".$_lang[FeedMessage].":\r\n\r\n$message\r\n\r\nIP: $ip"; WriteMailLog($subject_msg,$message_msg); sendmail($to_email,'',$to_email,$subject_msg,$message_msg); print $_lang[FeedSendSuccess]; } } } if (!$do) { $feedback_text=GetSetting("feedback_text"); if ($feedback_text) { $feedback_text = preg_replace("/\r\n/ui", "
", $feedback_text); print "
$feedback_text

"; } $phone=GetSetting("phone"); $phone2=GetSetting("phone2"); $phone3=GetSetting("phone3"); $phone4=GetSetting("phone4"); $phone5=GetSetting("phone5"); $phonec=GetSetting("phonec"); $phonec2=GetSetting("phonec2"); $phonec3=GetSetting("phonec3"); $phonec4=GetSetting("phonec4"); $phonec5=GetSetting("phonec5"); $icq1=GetSetting("icq"); $icq2=GetSetting("icq2"); $icq3=GetSetting("icq3"); $icq4=GetSetting("icq4"); $icq5=GetSetting("icq5"); $icqc1=GetSetting("icqc"); $icqc2=GetSetting("icqc2"); $icqc3=GetSetting("icqc3"); $icqc4=GetSetting("icqc4"); $icqc5=GetSetting("icqc5"); if ($icq1 or $icq2 or $icq3 or $icq4 or $icq5) { print "".$_lang[FeedContactViaICQ].":
"; if ($icq1) { print " $icq1"; if ($icqc1) { print " ($icqc1)"; } print "
"; } if ($icq2) { print " $icq2"; if ($icqc2) { print " ($icqc2)"; } print "
"; } if ($icq3) { print " $icq3"; if ($icqc3) { print " ($icqc3)"; } print "
"; } if ($icq4) { print " $icq4"; if ($icqc4) { print " ($icqc4)"; } print "
"; } if ($icq5) { print " $icq5"; if ($icqc5) { print " ($icqc5)"; } print "
"; } print "
"; } if ($phone or $phone2 or $phone3 or $phone4 or $phone5) { print "".$_lang[FeedContactPhones].":
"; if ($phone) { print "$phone"; if ($phonec) { print " ($phonec)"; } print "
"; } if ($phone2) { print "$phone2"; if ($phonec2) { print " ($phonec2)"; } print "
"; } if ($phone3) { print "$phone3"; if ($phonec3) { print " ($phonec3)"; } print "
"; } if ($phone4) { print "$phone4"; if ($phonec4) { print " ($phonec4)"; } print "
"; } if ($phone5) { print "$phone5"; if ($phonec5) { print " ($phonec5)"; } print "
"; } print "
"; } if ($error) {print "".$_lang[Error].": $error

";} ?>
* :
:
:
* :
:

* :

:
* :
* :

* - ".$_lang[Required].""; } foot('utf-8'); mclose();