[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: get_details.php
<?php include("header.php"); $pid=base64_decode($_REQUEST['pid']); ?> <script> $(document).ready(function () { $('#enquiry_by').change(function () { var selectedValue = $(this).val(); // $('#result').text(selectedValue); // alert(selectedValue); if(selectedValue=='Self'){ $('#show_other').hide(); $('#other_name').attr('required', false); }else{ $('#show_other').show(); $('#other_name').attr('required', true); } }); }); </script> <!-- Inner-Banner --> <!--<div class="inner-banner">--> <!-- <img src="images/Vivahsure-banner1.png" alt="" class="inner-banner-img">--> <!-- <div class="container">--> <!-- <ul>--> <!-- <li><a href="basic.php" class="active">Get Details </a></li> |--> <!-- <li><a href="index.php" class="">Home</a></li> --> <!-- </ul>--> <!-- </div>--> <!--</div>--> <!-- // Inner-Banner --> <!-- Services Start --> <div class="services" style="background: url(images/Vivahsure-banner1.png) no-repeat top right;background-size: cover; background-attachment: fixed;"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-xm-12"> <div class="services-left form-share-Basic"> <div class="inner-title"> <h2>Basic Details</h2> <h3>Individual/Subject Verification </h3> </div> <form method="post" id="form" class="form-share" enctype="multipart/form-data"> <?php $sr='package'; $stmt =$show->readwithdata($sr,'package_id',$pid); $num = $stmt->rowCount(); if($num>0){ $count=1; while ($row = $stmt->fetch(PDO::FETCH_ASSOC)){ $package_id=$row['package_id']; // echo $package_id; ?> <input type="hidden" name="package" value="<?=$row['title']?>"> <input type="hidden" name="price" value="<?=$row['price']?>"> <input type="hidden" name="discounted_price" value="<?=$row['discounted_price']?>"> <input type="hidden" name="discount" value="<?=$row['discount']?>"> <input type="hidden" name="no_of_days" value="<?=$row['no_of_days']?>"> <?php } } ?> <div class="log-input" id="b_name"> <span> Bride/Groom <b>*</b></span> <label><i class="fa-solid fa-user-plus"></i></label> <select name="type" required> <option value="">Choose</option> <option value="Bride">Bride</option> <option value="Groom">Groom</option> </select> </div> <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" 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=" Phone No" id="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" 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> <select name="enquiry_by" id="enquiry_by" required> <option value="">Choose</option> <option value="Self">Self</option> <option value="Father">Father</option> <option value="Mother">Mother</option> <option value="Sister">Sister</option> <option value="Brother">Brother</option> <option value="Uncle">Uncle</option> <option value="Friend">Friend</option> <option value="Other">Other</option> </select> </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> <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{ $oid=$show->getid('ids','ORD'); $name=$_POST['name']; $number=$_POST['phone']; $data = array( 'order_id' => $oid, 'user_id' => $_SESSION['login_id'], 'package_id' => $pid, 'package' => $_POST['package'], 'price' => $_POST['price'], 'discounted_price' => $_POST['discounted_price'], 'discount' => $_POST['discount'], 'no_of_days' => $_POST['no_of_days'], 'type' => htmlspecialchars($_POST['type']), 'name' => htmlspecialchars($_POST['name']), 'phone' => htmlspecialchars($_POST['phone']), 'enquiry_by' => htmlspecialchars($_POST['enquiry_by']), 'email' => htmlspecialchars($_POST['email']), 'other_name' => htmlspecialchars($_POST['other_name']), 'status' => 'ORDER PLACED', 'pay_status' => 'PENDING', ); $no=rand(1,10000); $capcha=$no; if($_POST['enquiry_by']=='Self'){ $other=$_POST['name']; }else{ $other=$_POST['other_name']; } if($show->insert('online_enquiry',$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).'"; $email_subject = "Consent Mail"; $em11='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content=" <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='https://www.w3.org/1999/xhtml'> <head> <title>Test Email Sample</title> <meta http–equiv='Content-Type' content='text/html; charset=UTF-8' /> <meta http–equiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, initial-scale=1.0 ' /> <style> h2{ color:#000; font-size:26px; } #b{ width:500px; font-size:15px; } th{ background-color:#fff; } </style> </head> <body style='background-color:f9f7f7; text-align:center;font-size:17px;'> <table style='margin-left: auto; margin-right: auto;border: 20px double #b5bcbf;width:600px; text-align:center;font-size:16px;'> <tr><td style='background-color:#e40046'> <img src='$company_logo' width='50%'></td></tr> <tr><td style='text-align:center;'> <h3 style='text-align: center;font-size: 17px; text-transform: uppercase;'>Welcome to <?=$company_name?></h3></td></tr> <tr><td text-align:center;font-size:14px;><br>Hi ".$_POST['name'].",<br><br> This mail is to inform you and get your consent for the verification on behalf of $other. <br><br> Please Fill up the form in the given link below for further verification.<br> <a href='https://itsweb.in/demobyITS/Vivahsure/loa.php?order=".base64_encode($oid)."' target='_blank'>Fill the form</a> <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>$company_name</b><br> Web : $website<br> Email : $email<br> Phone : $phone<br> </p> <small>Copyright ©<?=date('Y')?> $company_name,$address. All rights reserved. </small> </body></html>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; if(@mail($_POST['email'],$email_subject,$email_content,$headers)) { echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your enquiry is successful. You can track your order via profile.", type: "success" }, function() { window.location = "profile.php"; }); }, 1000); </script>'; // echo "<script>window.location.href='otp.php?id='.base64_encode($capcha).'&uid='.base64_encode($uid).'&m='.base64_encode($em).'&ph='.base64_encode($number).'&oid='.base64_encode($oid).'</script>"; } else { //echo "<script>alert('Registration is Complete. Login to continue shopping.')</script>"; } /*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>'; */ } } }?> </div> </div> </div> </div> </div> </div> <!--// terms End --> <style> .form-share-Basic { background: #ffffffe8;transition:all 600ms ease-in-out;} .form-share-Basic:hover { background: #fff;transition:all 600ms ease-in-out;} form.form-share { background: url(images/services-bg.png) no-repeat top left; background-attachment: scroll; background-attachment: fixed; } form.form-share .log-input { background: #fff0; border: 0.5px solid #cccccca3;} form.form-share .log-input input { background: #fff0;transition:all 600ms ease-in-out;} form.form-share .log-input select{ background: #fff0;transition:all 600ms ease-in-out;} form.form-share .log-input:hover input { background: #fff;transition:all 600ms ease-in-out;} form.form-share .log-input:hover select{ background: #fff;transition:all 600ms ease-in-out;} form.form-share .submitbox input { background: #155a9d;transition:all 600ms ease-in-out;} form.form-share .submitbox input:hover { background: #ee6002;transition:all 600ms ease-in-out;} form.form-share .captcha input{color: #fff !important; background: url(images/captcha.png) no-repeat top right; background-size: auto; background-size: auto; background-size: cover; letter-spacing: -1px; margin: 0 0 0 0; padding: 6px 0 6px 100px; font-family: "Abel-Regular"; font-weight: bold; font-size: 25px;} form.form-share .captcha input:hover{color: #fff !important; background: url(images/captcha.png) no-repeat center; background-size: auto; background-size: auto; background-size: cover; letter-spacing: -1px; margin: 0 0 0 0; padding: 6px 0 6px 100px; font-family: "Abel-Regular"; font-weight: bold; font-size: 25px;} </style> <?php include("footer.php"); ?>
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