Join Us Form

require_once ABSPATH . “wp-content\\themes\\lucasgroup\\job_search\\DBManager.php”;

$success = false;

if (isset($_POST[‘SubmitResume’]) && function_exists(‘cptch_check_custom_form’) && cptch_check_custom_form() !== true) {

$errorMsg = ‘

    1. CAPTCHA Equation is not correct

 

    1. Choose your resume again

 

  1. Re-enter Cover Letter / Additional Notes

‘;

}

if (isset($_POST[‘SubmitResume’]) && function_exists(‘cptch_check_custom_form’) && cptch_check_custom_form() === true) {

// removes wordpress formatting for this page
remove_filter (‘the_content’, ‘wpautop’);

// get
$errorMsg = “”;
$EmailFrom = ‘Webmaster@lucasgroup.com’;
$EmailTo = array(‘152126-32-MH537@apply.maxhire.net’,”);
$FromSubject = “Recruiter Website Application”;

//path to put resumes
$upload_folder = “D:\\WWW\\www.lucasgroup.com_Resumes_RecruiterApplyNow\\”;

if ( (isset($_FILES[‘ResumeFile’])) AND (strlen($_FILES[‘ResumeFile’][‘name’]) > 0) ) {

ini_set(‘SMTP’,’10.10.100.16′);
ini_set(‘sendmail_from’, $EmailFrom);

if ( (isset($_FILES[‘ResumeFile’])) AND (strlen($_FILES[‘ResumeFile’][‘name’]) > 0) ) {

//Get the uploaded file information
$name_of_uploaded_file = basename($_FILES[‘ResumeFile’][‘name’]);

//get the file extension of the file
$type_of_uploaded_file = substr($name_of_uploaded_file, strrpos($name_of_uploaded_file, ‘.’) + 1);

$size_of_uploaded_file = $_FILES[“uploaded_file”][“size”]/1024; //size in KBs

if ( (strcasecmp($type_of_uploaded_file, “doc”) != 0) AND
(strcasecmp($type_of_uploaded_file, “docx”) != 0) AND
(strcasecmp($type_of_uploaded_file, “txt”) != 0) ) {
$errorMsg = “Invalid file extension”;
} else {

//copy the temp. uploaded file to uploads folder
$path_of_uploaded_file = $upload_folder . $name_of_uploaded_file;
$tmp_path = $_FILES[“ResumeFile”][“tmp_name”];

if(is_uploaded_file($tmp_path)) {
//move file so we can email
if (!move_uploaded_file($tmp_path, $path_of_uploaded_file)) {
$errorMsg = “Error moving file.”;
} else {
$attachments = array($path_of_uploaded_file);

//define the headers we want passed. Note that they are separated with \r\n
$headers = “From: ” . $EmailFrom. “\r\nReply-To: ” . $EmailTo;
$message .= “Name: ” . $_POST[‘firstname’] . ” ” . $_POST[‘lastname’] . “\r\n\r\n”;
$message .= “Email Address: ” . $_POST[’emailAddress’] . “\r\n\r\n”;
$message .= “Phone: ” . $_POST[‘phone’] . “\r\n\r\n”;
$message .= “Military: ” . $_POST[‘military’] . “\r\n\r\n”;
$message .= “Additional Notes: \r\n\r\n”;
$message .= $_POST[‘AdditionalNotes’] . “\r\n\r\n”;
$message .= “Received via the Recruiters Apply Now web form \r\n”;
$message .= $_SERVER[‘HTTP_REFERER’] . “\r\n\r\n”;
$message .= “IP: ” . $_SERVER[‘REMOTE_ADDR’];

wp_mail($EmailTo, $FromSubject, $message, $headers, $attachments);

$success = true;

// renames resume with JobID and timestamp
rename ($path_of_uploaded_file, $path_of_uploaded_file . “_JobID_152126_Time_” . time());

}
}
}
} // is ResumeFile
} else {
echo ”;
echo ‘

Your resume has been received.Thank you for registering with Lucas Group. We look forward to the opportunity to help you build a rewarding career. We will review your resume over the next few days.

‘;

$errorMsg = ”;

}

} // if submit

?>

echo ‘

‘ . $errorMsg . ‘

‘;
}
?>

 

Please submit the form below, or call 844-234-9850.

(*) Required fields

[column width="300px" padding="5px"]


/> Yes
/> No

[/column]

[column width="350px" padding="5px"]

"; echo cptch_display_captcha_custom(); } ?>

[/column]

[end_columns]

Apply Now