[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: signup.php
<?php include('header.php'); include('map/token.php'); ?> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk?layer=vector&v=3.0&callback=initMap1"></script> <script src="https://apis.mappls.com/advancedmaps/api/<?=$token?>/map_sdk_plugins?v=3.0"></script> <meta name="google-signin-client_id" content="122332322499-67ptisuqnhip3a9gtlf0vjj0hti7ov5l.apps.googleusercontent.com"> <script src="https://apis.google.com/js/platform.js" async defer></script> <script> $(document).ready(function(){ $('#phn').blur(function(){ var phn1=$('#phn').val(); //alert(phn1); $.ajax({ type:"POST", url:"ajax_check1.php", data:$('#form').serialize(), success: function (response){ //alert(response); if(response>0){ $('#error').show(); $('#phn').val(''); document.getElementById("btn").disabled = true; }else{ $('#error').hide(); document.getElementById("btn").disabled = false; } } }); }); }); $(document).ready(function(){ $('#email').blur(function(){ var em=$('#email').val();//alert(em); $.ajax({ type:"POST", url:"ajax_check1.php", data:$('#form').serialize(), success: function (response){ if(response>0){ $('#error1').show(); $('#email').val(''); document.getElementById("btn").disabled = true; }else{ $('#error1').hide(); document.getElementById("btn").disabled = false; } } }); }); }); function checkPass() { var pass1 = document.getElementById('pass1'); var pass2 = document.getElementById('pass2'); var message = document.getElementById('error-nwl'); var goodColor = "#66cc66"; var badColor = "#ff6666"; if(pass1.value.length > 7) { message.style.color = goodColor; message.innerHTML = "character number ok!" } else { message.style.color = badColor; message.innerHTML = " you have to enter at least 8 digit!" return; } if(pass1.value == pass2.value) { message.style.color = goodColor; message.innerHTML = "ok!" document.getElementById("btn").disabled = false; } else { message.style.color = badColor; message.innerHTML = " These passwords don't match" document.getElementById("btn").disabled = true; } } </script> <script> /*function fill_location(Value,Value1) { $('#loc').val(Value); $('#pin').val(Value1); $('#display_loc').hide(); //window.location.href='product1.php?cate='+Value+''; } $(document).ready(function(){ $("#loc").keyup(function() { var search = $('#loc').val(); var city = $('#city').val(); //alert(search); if(search=="") { $("#display").html(""); } else { $.ajax({ type: "POST", url: "ajax_check.php", data: "search_loc="+ search+"&city="+city , beforeSend: function(){ /* Show image container */ $("#loader").show(); }, success: function(html){ //alert(html); $("#display_loc").html(html).show(); $("#loader").hide(); } }); } }); }); */ </script> <script> function get_sub_category_name() { var pincode = $('#pincode').val(); if(pincode!=""){ document.getElementById("map_hide").style.display="none"; } } </script> <style type="text/css"> #fli,#fli1{ width: 79%; height: 42px; } #display{ position:absolute; width:303; margin-left:0; margin-top:0; padding:2px; display:none; border-top:0px; overflow:auto; border:1px #CCC solid; background-color: white; z-index:1000;} .show11,.show12{ padding:7px; border-bottom:1px #999 dashed; font-size:13px; } .show11:hover,.show1:hover{ background:#1da1f2; color:#000; cursor:pointer; } .widget{ overflow:visible !important; } .pPsubm{display:none;} input[type="checkbox"] { margin: 4px 10px 0 0; margin-top: 1px\9; line-height: normal; } </style> <!-- Sign Up --> <div class="sing-up" style=" background: url(../images/login-bg-new.png) repeat, #03143e;"> <div class="container"> <div class="sing-up-text" style="width:65%;"> <div class="sing-up-text-bg"> <h3>Sign <span>Up</span></h3> <h5>Already have an account? <a href="login.php" target="_blank" ><b>Log In</b></a></h5> </div> <div class="sing-up-social" style="float: none; width: 25%; margin: 10px auto;"> <div class="g-signin2" data-onsuccess="onSignIn"> </div> <script> function onSignIn(googleUser) { var profile = googleUser.getBasicProfile(); var em=profile.getEmail(); var name=profile.getName(); // $('#id').val(profile.getId()); // $('#name').val(profile.getName()); // $('#img').attr("src", profile.getImageUrl()); // $('#getEmail').val(profile.getEmail()); $.ajax({ type:"POST", url:"ajax_check.php", data:"email_id="+em+"&name="+name, success: function (response){ if(response=='L'){ window.location.href="index.php"; }else{ setTimeout(function() { swal({ title: "Thank You ", text: "Your Registration is successful.You are being redirected to profile, please complete the profile information", type: "success" }, function() { window.location.href= "profile.php"; }); }, 1000); } } }); } </script> </div> <!--sing-up-form--> <div class="sing-up-form" style="width: 100%;"> <div class="row"> <form method="post" id="form" method="post" enctype="multipart/form-data" > <div class="col-md-5 col-sm-5 col-sx-12"> <div class="form-left-to-w3l " id="b_name"> <input type="text" placeholder="Full Name" name="name" required=""> <input type="hidden" name="tablename" value="customers"> </div> <div class="form-left-to-w3l"> <input type="email" name="email" id="email" placeholder=" Email " required> <small class="text-warning" id="error1" style="display:none;color:red">Email ID already in use.Please Give another Email ID</small> </div> <div class="form-left-to-w3l " id="b_name"> <input type="text" id="phn" name="phone" placeholder="Enter Phone" required> <small class="text-warning" id="error" style="display:none;color:red">Phone Number already in use.Please Give another Phone Number</small> </div> <div class="form-left-to-w3l"> <input type="password" placeholder="Password" id="pass1" onkeyup="checkPass(); return false;" name="password" required=""> </div> <div class="form-left-to-w3l"> <input type="password" placeholder="Confirm Password" id="pass2" onkeyup="checkPass(); return false;" name="cpassword1" required=""> <div id="error-nwl"></div> </div> <div style="position: relative;"> <img src="images/captcha_background.png" class="captcha-hed"><span class="captcha-text"> <input type="text" name="captcha" style="color:#000 !important" value="<?php echo rand(0,1999); ?>" readonly> </span> </div> <div class="form-left-to-w3l"> <input type="text" name="put_captcha" placeholder="Captcha Please" required=""> </div> <p id="demo"></p> </div> <div class="col-md-7 col-sm-7 col-sx-12"> <div id="map"></div> <script> /*Map Initialization*/ var map,picker; function initMap1(){ map = new mappls.Map('map', { center: [22.5726, 88.3639], zoom: 5 }); map.addListener('load',function(){ /*Place Picker plugin initialization*/ var options = { map: map, header:true, closeBtn:true, }; mappls.placePicker(options,callback); function callback(data) { picker=data; console.log(picker); } }); map.addListener('dragend', function(e){ var res = picker.getLocation(); var j=JSON.stringify(res); // alert(j); console.log(res); data_show(j); }); } function data_show(value){ $.ajax({ type:"POST", data:{data:value}, url:"map/getdata.php", success: function(html){ //alert(html); $('#demo').html(html).show(); get_sub_category_name(); // $('#data').val(result.pincode); // $('#data2').val(result.state); // console.log(html); } }); } </script> <div id="map_hide"></div> <span class="T-conditions"> <input type="checkbox" id="terms" name="terms" value="terms and conditions" required>By continuing, you agree to Thesajh <a href="terms.php">Terms & Conditions</a> </span> <div class="form-sub-acc" style="margin: 10px 0 0;width: 35%;"> <div class="form-sub"> <input type="submit" class="" name="sub_reg" id="btn" value="Sign in"> </div> </div> </div> </div> </form> <?php if(isset($_POST['sub_reg'])){ if($_POST['captcha']!=$_POST['put_captcha']){ echo "<script>alert('Oops !! Captcha is invalid!!')</script>"; }else{ // $status='Active'; $uid=$show->getid('ids','CM'); $table='customers'; $data = array( 'customer_id' => $uid, 'name' => htmlentities(strip_tags($_POST['name'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'password' =>md5(htmlentities(strip_tags($_POST['cpassword1']))), 'address'=>htmlentities(strip_tags($_POST['formatted_address'])), 'state'=>htmlentities(strip_tags($_POST['state1'])), 'city'=>htmlentities(strip_tags($_POST['city1'])), 'pincode'=>htmlentities(strip_tags($_POST['pincode1'])), 'locality'=>htmlentities(strip_tags($_POST['locality1'])), 'district'=>htmlentities(strip_tags($_POST['district1'])), 'latitude'=>htmlentities(strip_tags($_POST['lat'])), 'longitude'=>htmlentities(strip_tags($_POST['lng'])), 'created_at'=>date('d-m-Y'), 'update_by'=>'SELF', 'status'=>'INACTIVE' ); // print_r($data); $no=rand(1,10000); $capcha=$no; $em=htmlentities(strip_tags($_POST['email'])); $data1 = array( 'customer_id' => $uid, 'district'=>htmlentities(strip_tags($_POST['district1'])), 'address'=>htmlentities(strip_tags($_POST['formatted_address'])), 'state'=>htmlentities(strip_tags($_POST['state1'])), 'city'=>htmlentities(strip_tags($_POST['city1'])), 'pincode'=>htmlentities(strip_tags($_POST['pincode1'])), 'locality'=>htmlentities(strip_tags($_POST['locality1'])), 'latitude'=>htmlentities(strip_tags($_POST['lat'])), 'longitude'=>htmlentities(strip_tags($_POST['lng'])), ); if($show->insert($table,$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); // echo "mm"; $r2=$show->insert('customer_address',$data1); echo '<script> setTimeout(function() { swal({ title: "Thank You ", text: "Your Registration is successful. OTP has been sent to your mail id. Please verify to continue.", type: "success" }, function() { window.location = "otp.php?id='.base64_encode($capcha).'&uid='.base64_encode($uid).'&m='.base64_encode($em).'&ph='.base64_encode($number).'&table='.base64_encode($table).'"; }); }, 1000); </script>'; // echo "<script>swal('Thank you','Your registration is complete.Please login to continue.','success');window.location.href='login.php';</script>"; $_SESSION['trans']=$a; $email_subject = "Registration Confirmation"; $em11='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">'; $email_content1="<!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 Admin,<br><br> New registration is been confirmed. <br> <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>Stay in touch with Us</b></p> <p><a href='$fb' target='_blank'><img src='$link_url/images/fb.png' width='50px'></a> <a href='$insta' target='_blank'><img src='$link_url/images/insta.png' width='55px'></a> </p> <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>"; $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 The Sajh</h3></td></tr> <tr><td text-align:center;font-size:14px;><br>Hi ".$_POST['name'].",<br><br> Your Registration with email id ".$em." has been successful.This is your OTP for verification. <br><br> <b>OTP :$capcha</b> <br><br><br><br> <br> </td></tr> </tr> </table> <p><b>Stay in touch with Us</b></p> <p><a href='$fb' target='_blank'><img src='$link_url/images/fb.png' width='50px'></a> <a href='$insta' target='_blank'><img src='$link_url/images/insta.png' width='55px'></a> </p> <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($email,$email_subject,$email_content1,$headers) && @mail($_POST['email'],$email_subject,$email_content,$headers)) { // echo "<script>window.location.href='otp.php?id=".base64_encode($capcha)."&uid=".base64_encode($id)."&m=".base64_encode($mail_id)."'</script>"; } else { //echo "<script>alert('Registration is Complete. Login to continue shopping.')</script>"; } } } }?> </div> </div> </div> </div> </div> <style> #map {width: 100%; height: 300px; margin: 0 0 30px; padding: 0; background: #fff; border: 5px solid #e4eaec; } .abcRioButtonLightBlue { background-color: #fff; color: #757575; height: 36px; width: 100% !important; } .abcRioButtonContents { font-family: Roboto,arial,sans-serif; font-size: 17px !important; font-weight: 500; letter-spacing: .21px; margin-left: 6px; margin-right: 6px; vertical-align: top; } </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: 677.52 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