📁 File Manager
Editing:
/home/wedigitalindia/public_html/demo.wedigitalindia.com/befikr.live/career.php
<!DOCTYPE html> <html lang="en"> <head> <?php include_once("assets/include/head.php")?> <?php ?> <?php if(isset($_POST['submit']) && isset($_FILES['resume'])) { $from_email = 'bebefikr@befikr.in'; //from mail, sender email address $recipient_email = 'bebefikr@befikr.in'; //recipient email address //Load POST data from HTML form $sender_name = $_POST["career"]; //sender name $reply_to_email = $_POST["email"]; //sender email, it will be used in "reply-to" header $subject = $_POST["mobile"]; //subject for the email $message = $_POST["whatsapp"]; //body of the email $linkedin = $_POST['linkedin']; $city = $_POST['city']; /*Always remember to validate the form fields like this if(strlen($sender_name)<1) { die('Name is too short or empty!'); } */ //Get uploaded file data using $_FILES array $tmp_name = $_FILES['resume']['tmp_name']; // get the temporary file name of the file on the server $name = $_FILES['resume']['name']; // get the name of the file $size = $_FILES['resume']['size']; // get size of the file for size validation $type = $_FILES['resume']['type']; // get type of the file $error = $_FILES['resume']['error']; // get the error (if any) //validate form field for attaching the file if($error > 0) { die('Upload error or No files uploaded'); } //read from the uploaded file & base64_encode content $handle = fopen($tmp_name, "r"); // set the file handle only for reading the file $content = fread($handle, $size); // reading the file fclose($handle); // close upon completion $encoded_content = chunk_split(base64_encode($content)); $boundary = md5("random"); // define boundary with a md5 hashed value //header $headers = "MIME-Version: 1.0\r\n"; // Defining the MIME version $headers .= "From:".$from_email."\r\n"; // Sender Email $headers .= "Reply-To: ".$reply_to_email."\r\n"; // Email address to reach back $headers .= "Content-Type: multipart/mixed;"; // Defining Content-Type $headers .= "boundary = $boundary\r\n"; //Defining the Boundary //plain text $body = "--$boundary\r\n"; $body .= "Content-Type: text/plain; charset=ISO-8859-1\r\n"; $body .= "Content-Transfer-Encoding: base64\r\n\r\n"; $body .= chunk_split(base64_encode('WhatsApp No'.$message.'\r\n\r\n')); $body .= chunk_split(base64_encode('Mobile No'.$subject.'\r\n\r\n')); $body .= chunk_split(base64_encode('City '.$city.'\r\n\r\n')); $body .= chunk_split(base64_encode('Linked In '.$linkedin.'\r\n\r\n')); $body .= chunk_split(base64_encode('Career '.$career)); //attachment $body .= "--$boundary\r\n"; $body .="Content-Type: $type; name=".$name."\r\n"; $body .="Content-Disposition: attachment; filename=".$name."\r\n"; $body .="Content-Transfer-Encoding: base64\r\n"; $body .="X-Attachment-Id: ".rand(1000, 99999)."\r\n\r\n"; $body .= $encoded_content; // Attaching the encoded file with email $sentMailResult = mail($recipient_email, $subject, $body, $headers); if($sentMailResult ){ // echo "<h3>File Sent Successfully.<h3>"; // unlink($name); // delete the file after attachment sent. } else{ die("Sorry but the email could not be sent. Please go back and try again!"); } } ?> </head> <body oncontextmenu="return false;"> <?php include_once("assets/include/header.php")?> <!-- section subbanner started... --> <section class="sub-banner"> <picture> <source media="(max-width:767px)" srcset="assets/images/about/Careers-banner.png"> <source media="(min-width:768px)" srcset="assets/images/about/Careers-banner.png"> <img src="#" alt="banner-img"> </picture> <nav aria-label="breadcrumb"> <div class="container"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php path();?>">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Career </li> </ol> </div> </nav> </section> <!-- section subbanner ended... --> <!-- mission started... --> <section class="py-40"> <div class="container-fluid"> <div class="row align-items-center"> <div class="col-md-6 text-justify"> <h4 class="title text-center"><span>befikr </span>Success Story</h4> <p> befikr was launched in 2016 with a humble beginning as a B2C venture. We continued to grow rapidly across home services. By 2020, we were a one-stop for home maintenance sedrvices through our in-house team of professionally trained & groomed befikr brothers. Today, we have successfully evolved into a full scale B2B venture with market dominance in the areas of risk based inspection & audits, consumer services, master service partnerships & energy audits, and we continue to grow & evolve. </p> <h3 class="title text-center">opportunities at befikr: <br><span>What you can look forward to?</span></h3> <ul> <li class="mb-2"><img src="https://demowdi.xyz/befikr/assets/images/icon-footer.png" style="width: 2%;"> Professional yet friendly culture</li> <li class="mb-2"><img src="https://demowdi.xyz/befikr/assets/images/icon-footer.png" style="width: 2%;"> A supportive working environment</li> <li class="mb-2"><img src="https://demowdi.xyz/befikr/assets/images/icon-footer.png" style="width: 2%;"> Enriching learning experience</li> <li class="mb-2"><img src="https://demowdi.xyz/befikr/assets/images/icon-footer.png" style="width: 2%;"> An Opportunity to grow while you learn</li> <li class="mb-2"><img src="https://demowdi.xyz/befikr/assets/images/icon-footer.png" style="width: 2%;"> A fulfilling career</li> </ul> </div> <div class="col-md-6"> <div class="form-border"> <h3 class="title text-center">Want to work with befikr! <br><font style="font-size: 28px; color: #000;">Come & Join Us</font></h3> <?php echo((!empty($errorMessage)) ? $errorMessage : '') ?> <form method="post" enctype="multipart/form-data"> <div class="form-group"> <select class="form-control" name="career"> <option>You can make your career in</option> <option>Sales</option> <option>Marketing</option> <option>HR</option> <option>Operations</option> <option>Finance</option> <option>Business Development</option> <option>Electrical Engineering</option> <option>Elecgronics & Systems Engineering</option> <option>Energy Inspection & Analysis</option> <option>Environment Science</option> <option>ESG Compliance</option> </select> </div> <div class="form-group"> <input type="email" class="form-control" placeholder="Enter your email id" name="email"> <span class="text-danger" style="display:none">Please enter a valid email.</span> </div> <div class="form-group"> <input type="tel" class="form-control" placeholder="Enter your Mobile Number" name="phone"> <span class="text-danger" style="display:none">Please enter a valid phone number.</span> </div> <div class="form-group"> <input type="tel" class="form-control" placeholder="Enter your WhatsApp Number" name="whatsapp"> <span class="text-danger" style="display:none">Please enter a valid subject.</span> </div> <div class="form-group"> <input type="text" class="form-control" placeholder="Enter your LinkedIn Link" name="linkedin"> <span class="text-danger" style="display:none">Please enter a valid file.</span> </div> <div class="form-group"> <label for="" style="color: #000;">Upload Resume</label> <input type="file" class="form-control" placeholder="Enter your linkedIn Link" name="resume"> </div> <div class="form-group"> <input type="text" class="form-control" placeholder="Enter your Current City" name="city"> <span class="text-danger" style="display:none">Please enter a valid file.</span> </div> <button type="submit" class="btn btn-primary w-100" style="background-color: #009bcb;" name="submit">Submit Now</button> </form> </div> </div> </div> </div> </section> <!-- mission ended... --> <?php include_once("assets/include/footer.php")?> </body> </html>
Save
Cancel