2000000 ) { $fileBadSize = true; } else{ $uploadFileName = $_FILES['fileUpload']['name']; $uploadFileName_lower = strtolower( $uploadFileName ); if( str_ends_with( $uploadFileName_lower, ".exe" ) || str_ends_with( $uploadFileName_lower, ".bat" ) || str_ends_with( $uploadFileName_lower, ".bin" ) || str_ends_with( $uploadFileName_lower, ".cmd" ) || str_ends_with( $uploadFileName_lower, ".msi" ) || str_ends_with( $uploadFileName_lower, ".reg" ) ) { $uploadFileName.= "_"; } $upload_folder = "/home/aroscill/tmp/"; $fullFileName = $upload_folder.basename( $uploadFileName ); if( move_uploaded_file( $_FILES["fileUpload"]["tmp_name"], $fullFileName ) ) { $uploadOk = true; } else{ $uploadOk = false; } } } else{ $uploadOk = false; } } if( $uploadOk && !$fileBadSize && $email_valid && !$empty_message && !$empty_subj ) { include( "/home/aroscill/www/Oscilloscope_sites/AR_Oscilloscope"."/../common/mail/osc_mail.php" ); include( "/home/aroscill/www/Oscilloscope_sites/AR_Oscilloscope"."/../common/mail/contact_mail.php" ); $mail_body=osc_get_contact_mail_body( $_POST['from'], $_POST['id_order'], $_POST['message'] ); try{ $emailSent = sendMail( "AR Osc", "sales@ar-oscilloscope.com", $_POST['id_contact'] == 1 ? "Customer service":"Webmaster", $mail_body, $fullFileName, true ) ? "true" : "false"; header( "Location: ?sent=" . $emailSent ); exit; } catch( Exception $ex ) { $message = "Email send error occured. ".$ex->getMessage(); setErrorMsg( $message ); osc_error_log( $message.$_POST['from']."\n".$_POST['message'] ); header( "Location: /error_occured.html"); exit; } } } function getPageSpecificStyle() { return " "; } include( "/home/aroscill/www/Oscilloscope_sites/AR_Oscilloscope"."/include/osc_header.html" ); ?>

Customer service - Contact us

Error(s)

    The message cannot be blank."; if( $empty_subj ) print "
  1. Please select a subject from the list provided.
  2. "; if( !$email_valid ) print "
  3. Invalid email address.
  4. "; if( !$uploadOk ) print "
  5. File upload error. Please try one more time.
  6. "; if( $fileBadSize ) print "
  7. File is too big. The size limit is 2M
  8. "; ?>

Message has been successfully sent.

Error occurred during message sending.

send a message