verifyResponse($_SERVER["REMOTE_ADDR"],$_POST["g-recaptcha-response"]); } if ($response != null && $response->success) { $fname=$_REQUEST['fname']; $emailid=$_REQUEST['emailid']; $mobileno=$_REQUEST['mobileno']; $to="satish@dotsindia.com"; $headers.="MIME-Version:1.0\r\n"; $headers.="Content-Type:text/html\r\n"; $headers.="Content-Transfer-Encoding: 8bit\r\n\r\n"; ini_set("include_path", "."); $mail->PluginDir = "/home/usename/www/"; include("class.phpmailer.php"); $mail=new PHPMailer(); $uploaddir = "upload/"; $log = "uploadlog.txt"; $blacklist = array(".php", ".phtml", ".php3", ".php4", ".php5", ".exe", ".js", ".inc"); $allowed_filetypes = array('.jpg','.gif','.bmp','.png',".html", ".htm",".doc",".txt",".docx"); if (!is_dir($uploaddir)){ die ("Upload directory does not exists."); } if (!is_writable($uploaddir)) { die ("Upload directory is not writable."); } if ($_POST['cmdupload']){ $ip = trim($_SERVER['REMOTE_ADDR']); if (isset($_FILES['file'])) { if ($_FILES['file']['error'] != 0) { switch ($_FILES['file']['error']) { case 1: print 'The file is to big.'; // php installation max file size error exit; break; case 2: print 'The file is to big.'; // form max file size error exit; break; case 3: print 'Only part of the file was uploaded'; exit; break; case 4: print 'No file was uploaded
'; exit; break; case 6: print "Missing a temporary folder."; exit; break; case 7: print "Failed to write file to disk"; exit; break; case 8: print "File upload stopped by extension"; exit; break; } } else { foreach ($blacklist as $item) { if (preg_match("/$item\$/i", $_FILES['file']['name'])) { echo "Invalid filetype !"; /* // Now log the uploaders IP adress date and time $date = date("m/d/Y"); $time = date("h:i:s A"); $fp = fopen($log,"a"); fwrite($fp,"$ip | ".$_FILES['file']['name']." | $date | $time | OK"."\r\n"); fclose($fp);*/ unset($_FILES['file']['tmp_name']); exit; } } // Get the extension from the filename. $ext = substr($_FILES['file']['name'], strpos($_FILES['file']['name'],'.'), strlen($_FILES['file']['name'])-1); // Check if the filetype is allowed, if not DIE and inform the user. if(!in_array($ext,$allowed_filetypes)){ /* // Now log the uploaders IP adress date and time $date = date("m/d/Y"); $time = date("h:i:s A"); $fp = fopen($log,"a"); fwrite($fp,"$ip | ".$_FILES['file']['name']." | $date | $time | OK"."\r\n"); fclose($fp);*/ die('The file you attempted to upload is not allowed.'); } if (!file_exists($uploaddir.$_FILES["file"]["name"])) { // Proceed with file upload if (is_uploaded_file($_FILES['file']['tmp_name'])) { //File was uploaded to the temp dir, continue upload process if (move_uploaded_file($_FILES['file']['tmp_name'], $uploaddir.$_FILES['file']['name'])) { //uploaded file was moved and renamed succesfuly. Display a message. //echo "Upload successful !"; $filePath = $uploaddir.$_FILES['file']['name']; /* // Now log the uploaders IP adress date and time $date = date("m/d/Y"); $time = date("h:i:s A"); $fp = fopen($log,"a"); fwrite($fp,"$ip | ".$_FILES['file']['name']." | $date | $time | OK"."\r\n"); fclose($fp);*/ } else { //echo "Error while uploading the file, Please contact the webmaster."; unset($_FILES['file']['tmp_name']); } } else { //File was NOT uploaded to the temp dir switch ($_FILES['file']['error']) { case 1: print 'The file is to big.'; // php installation max file size error break; case 2: print 'The file is to big.'; // form max file size error break; case 3: print 'Only part of the file was uploaded'; break; case 4: print 'No file was uploaded'; break; case 6: print "Missing a temporary folder."; break; case 7: print "Failed to write file to disk"; break; case 8: print "File upload stopped by extension"; break; } } } else { echo "Filename already exists, Please rename the file and retry."; unset($_FILES['file']['tmp_name']); } } } } else { // upload button was not pressed header("Location:join-us.php"); } $mybody =$smessage; $subject = "Dots India: Join Us Comments"; $mail->IsSMTP(); //IsSMTP(); // send via SMTP $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Host = "mail.dotsindia.com"; $tmpemail=$to; $mail = new phpmailer(); $mail->Mailer = "smtp"; $mail->WordWrap = 50; $mail->IsHTML(true); $mail->Subject = $subject; $mail->Body = $mybody; $mail->AltBody = $smessage; $mail->FromName = $fname; $mail->AddAddress("$tmpemail"); $mail->AddAttachment("$filePath"); if(!$mail->Send()) { echo "Message was not sent"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } flush(); header("location:thankyou.php"); /*End Mail Sending*/ } ?>
We are hiring for below positions: | |||
1. | Hardware & Network Engineer (Field Work) | 2. | Sr. Software Developer |
Experience: Min 2 yrs | Experience: Min. 2 years | ||
Qualification: Any Graduate | Qualification: Any graduate | ||
Job Description: | Job Description: | ||
|
|
||
3. | CCTV Surveillance Engineer | ||
Experience: Min 1 yrs | |||
Qualification: Any Graduate | |||
Job Description: | |||
|
|||