Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/moryanew/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<h1>Data Uploading...</h1> <?php include("Admin/Includes/db.php"); extract($_POST); // print_r($_POST); // exit; $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img1']['name']; if($_FILES['img1']['error'] > 0) { $fgr1=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img1"]; $thumb = $_FILES['img1']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img1']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr1 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img2']['name']; if($_FILES['img2']['error'] > 0) { $fgr2=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img2"]; $thumb = $_FILES['img2']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img2']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr2 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img3']['name']; if($_FILES['img3']['error'] > 0) { $fgr3=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img3"]; $thumb = $_FILES['img3']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img3']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr3 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img4']['name']; if($_FILES['img4']['error'] > 0) { $fgr4=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img4"]; $thumb = $_FILES['img4']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img4']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr4 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img5']['name']; if($_FILES['img5']['error'] > 0) { $fgr5=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img5"]; $thumb = $_FILES['img5']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img5']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr5 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img6']['name']; if($_FILES['img6']['error'] > 0) { $fgr6=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img6"]; $thumb = $_FILES['img6']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img6']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr6 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img7']['name']; if($_FILES['img7']['error'] > 0) { $fgr7=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img7"]; $thumb = $_FILES['img7']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img7']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr7 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img8']['name']; if($_FILES['img8']['error'] > 0) { $fgr8=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img8"]; $thumb = $_FILES['img8']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img8']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr8 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img9']['name']; if($_FILES['img9']['error'] > 0) { $fgr9=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img9"]; $thumb = $_FILES['img9']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img9']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr9 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img10']['name']; if($_FILES['img10']['error'] > 0) { $fgr10=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img10"]; $thumb = $_FILES['img10']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img10']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr10 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img11']['name']; if($_FILES['img11']['error'] > 0) { $fgr11=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img11"]; $thumb = $_FILES['img11']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img11']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr11 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img12']['name']; if($_FILES['img12']['error'] > 0) { $fgr12=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img12"]; $thumb = $_FILES['img12']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img12']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr12 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img13']['name']; if($_FILES['img13']['error'] > 0) { $fgr13=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img13"]; $thumb = $_FILES['img13']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img13']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr13 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img14']['name']; if($_FILES['img14']['error'] > 0) { $fgr14=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img14"]; $thumb = $_FILES['img14']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img14']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr14 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img15']['name']; if($_FILES['img15']['error'] > 0) { $fgr15=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img15"]; $thumb = $_FILES['img15']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img15']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr15 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img16']['name']; if($_FILES['img16']['error'] > 0) { $fgr16=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img16"]; $thumb = $_FILES['img16']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img16']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr16 = $thumb; } $allowed_type = array('gif','png','jpg','jpeg'); //doctor photo $dr_photo = $_FILES['img17']['name']; if($_FILES['img17']['error'] > 0) { $fgr17=''; //echo "<script>alert('no aviyu');</script>"; }else{ // include("compression.php"); $thumb = $_FILES["img17"]; $thumb = $_FILES['img17']['name']; @$thumbpath = "loan_document/". $thumb; move_uploaded_file($_FILES['img17']['tmp_name'], @$thumbpath); // compress($thumbpath, $thumbpath, 90); $fgr17 = $thumb; } if($ptype == '7' || $ptype == '10' || $ptype == '11') { $SQL = "INSERT INTO tbl_apply set loan_type='$ptype',type='$type',fname='$fname',lname='$lname',email='$email',mobile='$phone',dob='$dob',city='$city',a_anual_profit='$aap',ob='$ob',monthly_inc='$minc',salary_mode='$salmod',addhar='$fgr1',pan='$fgr2', aproof='$fgr3',3_m_s_slip='$fgr4',l6_bank_stat='$fgr5',2y_form_16='$fgr6',id_card='$fgr7',photo='$fgr8',property_paper='$fgr15',chaque_photo='$fgr16',3y_itr='$fgr9',1y_bank_stat='$fgr10',gst_reg='$fgr11',gst_ret='$fgr12',business_proof='$fgr13',owner_prrof='$fgr14',pre_card='$fgr17'"; } elseif($ptype == '9' ) { $SQL = "INSERT INTO tbl_apply set loan_type='$ptype',type='$types',fname='$fname',lname='$lname',email='$email',mobile='$phone',dob='$dob',city='$city',a_anual_profit='$aap',ob='$ob',monthly_inc='$minc',salary_mode='$salmod',addhar='$fgr1',pan='$fgr2', aproof='$fgr3',3_m_s_slip='$fgr4',l6_bank_stat='$fgr5',2y_form_16='$fgr6',id_card='$fgr7',photo='$fgr8',property_paper='$fgr15',chaque_photo='$fgr16',3y_itr='$fgr9',1y_bank_stat='$fgr10',gst_reg='$fgr11',gst_ret='$fgr12',business_proof='$fgr13',owner_prrof='$fgr14',pre_card='$fgr17'"; } $result = mysqli_query($con,$SQL); if( $result == true ) { echo "<script>; alert('Data Added Succesfully'); window.location.href='index.php'; </script>"; }else { echo "<script>; alert('Data Not Properly '); window.location.href='index.php'; </script>"; } ?>