[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: share-details.php
<?php include 'settings/settings.php'; $oid=base64_decode($_REQUEST['order']); //echo $oid; ?> <link href="css/style.css" rel='stylesheet' type='text/css' /> <script type="text/javascript" src="js/jquery-2.2.3.min.js"></script> <!-- Sweet Alert --> <script src="admin@/assets/sweetalert-master/dist/sweetalert.min.js"></script> <link rel="stylesheet" type="text/css" href="admin@/assets/sweetalert-master/dist/sweetalert.css"> <script src="js/jquery-1.11.1.min.js"></script> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all" /> <!-- bootstrap css --> <div class="services-right"> <h6>Basic Shared Details:</h6> <?php $stmt =$show->readwithdata('orders','order_id',$oid); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $package_id=$row['package_id']; // echo $package_id; ?> <div class="log-input" id="b_name"> <span> Name <b>*</b></span> <label><i class="fa-solid fa-file-signature"></i></label> <input type="text" placeholder="Name" name="name" value="<?=$row['name']?>" required=""> </div> <div class="log-input" id="b_name"> <span> Phone No<b>*</b></span> <label><i class="fa fa-phone" aria-hidden="true"></i></label> <input type="text" placeholder="Candidate Phone No" id="phone" value="<?=$row['phone']?>" name="phone" maxlength="10" required=""> </div> <div class="log-input" id="b_name"> <span>Email ID<b>*</b></span> <label><i class="fa fa-solid fa-envelope"></i></label> <input type="email" placeholder="Email ID" id="phone" value="<?=$row['email']?>" name="email" required=""> </div> <div class="log-input" id="b_name"> <span> Enquiry By <b>*</b></span> <label><i class="fa-solid fa-user-plus"></i></label> <input type="text" placeholder="Email ID" id="other_name" value="<?=$row['other_name']?>" name="other_name" required=""> </div> <div class="log-input" id="b_name"> <span> Enquiry Relationship <b>*</b></span> <label><i class="fa-solid fa-user-plus"></i></label> <input type="text" placeholder="Email ID" id="enquiry_by" value="<?=$row['enquiry_by']?>" name="enquiry_by" required=""> </div> <div class="log-input" id="show_other" style="display:none"> <span>Relative/Friend Name<b>*</b></span> <label><i class="fa-solid fa-file-signature" aria-hidden="true"></i></label> <input type="text" placeholder="Relative/Friend Name" id="other_name" name="other_name"> </div> <?php } } ?> <h6>Kindly share details :</h6> <form method="post" id="form" class="form-share" enctype="multipart/form-data"> <div class="log-input" id="b_name"> <span> Type Matrimonial<b>*</b></span> <label><i class="fa-solid fa-ring"></i></label> <select name="marraige_type" required> <option value="">Choose</option> <option value="Pre Matrimonial">Pre Matrimonial</option> <option value="Post Matrimonial">Post Matrimonial</option> </select> </div> <div class="log-input" id="b_name"> <span> Date of Birth <b>*</b></span> <label><i class="fa-solid fa-calendar"></i></label> <input type="date" placeholder="Date of Birth" name="dob" required=""> <input type="hidden" name="tablename" value="user"> </div> <div class="log-input" id="b_name"> <span>Candidate Alt Phone No<b>*</b></span> <label><i class="fa-solid fa-mobile"></i></label> <input type="text" placeholder="Candidate Alt Phone No" id="phone" name="alt_phone" maxlength="10" required=""> </div> <div class="log-input" id="b_name"> <span> Candidate's Office Address <b>*</b></span> <label><i class="fa-solid fa-location-crosshairs"></i></label> <input type="text" placeholder="Candidate's Office Address" id="dob" name="office_address" required=""> </div> <div class="log-input" id="b_name"> <span>Office Pincode<b>*</b></span> <label><i class="fa fa-map" aria-hidden="true"></i></label> <input type="text" placeholder="Office Pincode" name="office_pincode" required=""> </div> <div class="log-input" id="b_name"> <span>Father's Name<b>*</b></span> <label><i class="fa-regular fa-user"></i></label> <input type="text" placeholder="Father's Name" id="phone" name="father" required=""> </div> <div class="log-input" id="b_name"> <span> Father's Contact No <b>*</b></span> <label><i class="fa-solid fa-mobile"></i></label> <input type="text" placeholder="Father's Contact No " name="father_phone" required=""> </div> <div class="log-input" id="b_name"> <span> Father's Office Address <b>*</b></span> <label><i class="fa fa-map" aria-hidden="true"></i></label> <input type="text" placeholder="Father's Office Address " name="father_office_address" required=""> </div> <div class="log-input" id="b_name"> <span>Mother’s Name <b>*</b></span> <label><i class="fa-solid fa-person-breastfeeding"></i></label> <input type="text" placeholder="Mother’s Name" name="mother" required=""> </div> <div class="log-input" id="b_name"> <span> Mother's Contact No <b>*</b></span> <label><i class="fa fa-phone" aria-hidden="true"></i></label> <input type="text" placeholder="Mother's Contact No" name="mother_phone" required=""> </div> <div class="log-input" id="b_name"> <span> Mother's Office Address <b>*</b></span> <label><i class="fa fa-map" aria-hidden="true"></i></label> <input type="text" placeholder="Mother’s Office Address" name="mother_office_address" required=""> </div> <div class="log-input" id="b_name"> <span> Brothers<b>*</b></span> <label><i class="fa-solid fa-person"></i></label> <input type="text" placeholder="Brothers" name="brothers" required=""> </div> <div class="log-input" id="b_name"> <span> Sisters<b>*</b></span> <label><i class="fa-solid fa-person-dress"></i></label> <input type="text" placeholder="Sisters" name="sisters" required=""> </div> <div class="log-input" id="b_name"> <span> Complete Residence Address <b>*</b></span> <label><i class="fa fa-map-marker" aria-hidden="true"></i></label> <input type="text" placeholder="Complete Residence Address" name="residential_address" required=""> </div> <div class="log-input" id="b_name"> <span> Pincode<b>*</b></span> <label><i class="fa-solid fa-map-pin"></i></label> <input type="text" placeholder="Pincode" name="pincode" required=""> </div> <div class="log-input" id="b_name"> <span> Nearest Landmark<b>*</b></span> <label><i class="fa-solid fa-map-location"></i></label> <input type="text" placeholder="Nearest Landmark" name="landmark" required=""> </div> <div class="log-input" id="b_name"> <span> Position or Designation<b>*</b></span> <label><i class="fa-solid fa-suitcase"></i></label> <input type="text" placeholder="Position or Designation" name="designation" required=""> </div> <div class="log-input" id="b_name"> <span> Image/Video<b>*</b></span> <label><i class="fa fa-file" aria-hidden="true"></i></label> <input type="file" name="image" required=""> </div> <div class="log-input" id="b_name"> <span> Add Documents<b>*</b></span> <div class='tr_input' id="tab" style="border:none !important;"> <div class="select2-input"> <input type='text' class="form-control" placeholder="Document Name" id='dtestcode_1' name='name[]'> <input type="file" class="btn btn-icon btn-secondary btn-round btn-xs" id="uploadImg" name="uploadImg[]" accept="image/*" required > <input type='button' class="btn btn-info" value='+' id='addmore'></td> </div> </div> </div> <div class="log-input" id="b_name"> <span>Please Share in Brief if you want to share something<b>*</b></span> <label><i class="fa-solid fa-keyboard"></i></label> <textarea name="content" class="form-control" placeholder="Text Something"></textarea> </div> <div class="log-input captcha" id="b_name"> <span>Captcha <b>*</b></span> <label><i class="fa fa-pen" aria-hidden="true"></i></label> <input type="text" name="captcha" id="captcha" style="" value="<?php echo rand(0,1999); ?>" readonly=""> </div> <div class="log-input" id="b_name"> <span>Captcha Places <b>*</b></span> <label><i class="fa fa-pen" aria-hidden="true"></i></label> <input type="text" name="put_captcha" id="put_captcha" placeholder="Captcha Please" required=""> </div> <div class="log-input checkboxbox" id="b_name"> <label style=""> <input type="checkbox" id="Terms" name="Terms" value="Terms" style="" required=""> I agree to the <a href="terms-conditions.php">Terms & Conditions</a> </label> </div> <div class="log-input submitbox" id="b_name"> <input type="submit" class="" name="sub" id="btn" value="submit"> </div> </form> <?php if(isset($_POST['sub'])){ if($_POST['captcha']!=$_POST['put_captcha']){ echo "<script>alert('Oops !! Captcha is invalid!!')</script>"; }else{ // $status='Active'; if(isset($_FILES['image']['name'])){ $img=$show->imageEdit($_FILES['image']['name']); move_uploaded_file($_FILES['image']['tmp_name'],"product_img/".$img); } $oid=$show->getid('ids','ORD'); $name=$_POST['name']; $number=$_POST['phone']; $data = array( 'order_id' => $oid, 'type' => htmlspecialchars($_POST['type']), 'marraige_type' => htmlspecialchars($_POST['marraige_type']), 'name' => htmlspecialchars($_POST['name']), 'phone' => htmlspecialchars($_POST['phone']), 'dob' => date('Y-m-d',strtotime($_POST['dob'])), 'father' => htmlspecialchars($_POST['father']), 'father_phone' => htmlspecialchars($_POST['father_phone']), 'father_office_address' => htmlspecialchars($_POST['father_office_address']), 'mother' => htmlspecialchars($_POST['mother']), 'mother_phone' => htmlspecialchars($_POST['mother_phone']), 'mother_office_address' => htmlspecialchars($_POST['mother_office_address']), 'brothers' => htmlspecialchars($_POST['brothers']), 'sisters' => htmlspecialchars($_POST['sisters']), 'residential_address' => htmlspecialchars($_POST['residential_address']), 'pincode' => htmlspecialchars($_POST['pincode']), 'landmark' => htmlspecialchars($_POST['landmark']), 'phone' => htmlspecialchars($_POST['phone']), 'alt_phone' => htmlspecialchars($_POST['alt_phone']), 'office_address' => htmlspecialchars($_POST['office_address']), 'office_pincode' => htmlspecialchars($_POST['office_pincode']), 'designation' => htmlspecialchars($_POST['designation']), 'image' =>$img, 'content' => htmlspecialchars($_POST['content']), 'status' => 'PENDING', 'pay_status' => 'PENDING', ); $no=rand(1,10000); $capcha=$no; if($show->insert('orders',$data)){ /* $site="https://thesajh.com/"; $today=date('d-m-Y'); $username="sajh"; $Password="test_123"; //Getting form data $sender='ITSITE'; $number=$_POST['phone']; //$message=$_POST['message']; $priority='ndnd'; $stype='normal'; //$message=urlencode("api test - BHASHSMS"); $otp=$capcha; //The OTP for Registration is {#var#}. The OTP is valid for 5mins. Thanks for visiting {#var#}. Regards ITSITE $message=urlencode("The OTP for Registration is $otp. The OTP is valid for 5mins. Thanks for visiting $site. Regards ITSITE"); $var="user=".$username."&pass=".$Password."&sender=".$sender."&phone=".$number."&text=".$message."&priority=".$priority."&stype=".$stype.""; $curl=curl_init('http://sms.incrementertech.com/api/sendmsg.php?'.$var); curl_setopt($curl, CURLOPT_RETURNTRANSFER,true); $response=curl_exec($curl); curl_close($curl); */ //window.location = "otp.php?id='.base64_encode($capcha).'&uid='.base64_encode($uid).'&m='.base64_encode($em).'&ph='.base64_encode($number).'&table='.base64_encode($table).'"; echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your Report is successful.Please login or sign up to continue.", type: "success" }, function() { window.location = "login.php?oid='.base64_encode($oid).'&n='.base64_encode($name).'&ph='.base64_encode($number).'"; }); }, 1000); </script>'; // echo "<script>swal('Thank you','Your registration is complete.Please login to continue.','success');window.location.href='login.php';</script>"; } } }?> </div> <script type="text/javascript"> $(document).ready(function(){ // Add more $('#addmore').click(function(){ // Get last id var lastname_id = $('.tr_input input[type=text]:nth-child(1)').last().attr('id'); alert(lastname_id); var split_id = lastname_id.split('_'); // alert('ss'); // New index var index = Number(split_id[1]) + 1; // Create row with input elements var html = "<div class='select2-input'><div class='new'><input type='text' class='form-control' placeholder='eg:Document Name' id='testcode_"+index+"' name='name[]'/><input type='file' class='btn btn-icon btn-secondary btn-round btn-xs' id='uploadImg"+index+"' name='uploadImg[]' accept='image/*' required ><a href='javascript:void(0);' id='remove_field' class='btn btn-danger remCF' >-</a></div></div>"; // Append data $('#tab').append(html); }); $("#tab").on('click','.remCF',function(){ $(this).parent().parent().remove(); }); }); </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server05.hostinghome.co.in
Server IP: 192.168.74.40
PHP Version: 7.4.33
Server Software: Apache
System: Linux server05.hostinghome.co.in 3.10.0-962.3.2.lve1.5.81.el7.x86_64 #1 SMP Wed May 31 10:36:47 UTC 2023 x86_64
HDD Total: 1.95 TB
HDD Free: 692.2 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Disabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: itsweb
User ID (UID): 1619
Group ID (GID): 1621
Script Owner UID: 1619
Current Dir Owner: 1619