career_cv_submission_save

“”){
if ($user_pass_value==$loginpassword){
//****************************************** close at the end

//******************************************

$target_dir = “cv/$value”;
$target_file = $target_dir . basename($_FILES[“fileToUpload”][“name”]);

$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image

// Allow certain file formats
if($imageFileType != “jpg” && $imageFileType != “JPG” && $imageFileType != “png” && $imageFileType != “PNG” && $imageFileType != “jpeg”
&& $imageFileType != “JPEG” && $imageFileType != “gif” && $imageFileType != “GIF” && $imageFileType != “docx” && $imageFileType != “DOCX” && $imageFileType != “doc” && $imageFileType != “DOC” && $imageFileType != “docm” && $imageFileType != “DOCM” && $imageFileType != “dotx” && $imageFileType != “DOTX” && $imageFileType != “PDF” && $imageFileType != “pdf”) {
echo “ Sorry, only JPG, JPEG, PNG & GIF files are allowed.“;
$uploadOk = 0;
}
// Check if $uploadOk is set to 0 by an error
if ($uploadOk == 0) {
echo “ Sorry, your file was not uploaded.“;
// if everything is ok, try to upload file
} else {
if (move_uploaded_file($_FILES[“fileToUpload”][“tmp_name”], $target_file)) {
echo “The file “. basename( $_FILES[“fileToUpload”][“name”]). ” has been uploaded.“;

//$sql=”INSERT INTO blog_picture SET user_login=’$userlogin’, path_pic=’$target_file_name_value’, picture_content=’$picturecontent’, p2=’$pictureheading’, p3=’$pictureheading2′, p4=’$pictureheading3′, p5=”, p6=’$postwidth’, p7=’$posttype’, p8=’$editpostpage’, delete_pic=”, date=’$date1′, ip=’$ip'”;
//$result=mysql_query($sql);

} else {
echo “Sorry, there was an error uploading your file.“;
}
}

//************************************* str from the first

}else {
echo “Error ! Wrong Username or Password
“;

}

} else {

//if ($picturecontent<>“”){

//$sql=”INSERT INTO blog_picture SET user_login=’$userlogin’, path_pic=’wline.gif’, picture_content=’$picturecontent’, p2=’$pictureheading’, p3=’$pictureheading2′, p4=’$pictureheading3′, p5=”, p6=’$postwidth’, p7=’$posttype’, p8=’$editpostpage’, delete_pic=”, date=’$date1′, ip=’$ip'”;
//$result=mysql_query($sql);

//echo “Only Text has been posted no picture has been found.“;

//} else {

//echo “Sorry, Filename cannot be empty, Please Choose a Picture or type text in Picture Content portion!“;

//}

}
}

$message=strip_tags($_POST[‘message’]);

if ($message<>“”){

$subject=”from “.$_POST[‘your_name’];
$headers= “From: “.$_POST[‘your_email’].”\n”;
$headers.=’Content-type: text/html; charset=iso-8859-1′;
mail(“ashfaqlilla@gmail.com”, $subject,



Contact Us


$website/contactus.php

To:
“.$_POST[‘to’].”

Name:
“.$_POST[‘your_name’].”

Email:
“.$_POST[‘your_email’].”

Phone:
“.$_POST[‘phone’].”

City:
“.$_POST[‘city’].”

Country:
“.$_POST[‘country’].”

Message:
“.$_POST[‘message’].”

CV:
Download CV

History:
Check History



” , $headers);

echo ”

  Message Sent Done   
  To:……………………………………………………………………….

  info@$website

 

“;

} else {

echo ”

  Message Sending fail Done  
  Error……………………………………………………………………….

Sorry, Message Box Empty.

 

“;
}
echo “

“;

?>