[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sign-up.php
<!-- Header include --> <?php include("header.php"); ?> <!-- Inner-banner --> <div class="inner-banner"> <img src="images/inner-banner-6.png"> <div class="container"> <h1>Signup</h1> </div> </div> <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_phn').show(); $('#phn').val(''); // sweetAlert('Phone no given is already in use'); document.getElementById("btn").disabled = true; }else{ // sweetAlert('Oops','Phone no given is already in use','error'); $('#error_phn').hide(); document.getElementById("btn").disabled = false; } } }); }); }); $(document).ready(function(){ $('#email').blur(function(){ var em=$('#email').val(); $.ajax({ type:"POST", url:"ajax_check1.php", data:$('#form').serialize(), success: function (response){ if(response>0){ $('#error_em').show(); $('#email').val(''); document.getElementById("btn").disabled = true; }else{ $('#error_em').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> <div class="log-in-block"> <div class="container"> <div class="log-in-box-content"> <div class="log-left"> <form id="form" method="post"> <h4>Signup Now</h4> <p>Signup now to become a member</p> <div class="fill-form"> <i class="fa-solid fa-user"></i> <input type="hidden" name="tablename" value="user"> <input type="text" name="name" placeholder="Full Name"> </div> <div class="fill-form"> <i class="fa-solid fa-phone"></i> <input type="text" name="phone" id="phn" required pattern="[0-9]{10}" title="Please give correct phone number" placeholder="Contact Number"> <small class="text-error" id="error_phn" style="display:none;color:red;font-size:11px">Phone Number already in use.Please Give another Phone Number</small> </div> <div class="fill-form"> <i class="fa-regular fa-envelope"></i> <input type="email" name="email" id="email" required placeholder="Enter Your Email"> <small class="text-warning" id="error_em" style="display:none;color:red;font-size:11px">Email ID already in use.Please Give another Email ID</small> </div> <!-- <div class="fill-form"> <i class="fa-solid fa-rotate"></i> <input type="text" name="number" placeholder="Age"> </div> <div class="fill-form"> <i class="fa-solid fa-venus-mars"></i> <select> <option>Gender</option> <option>Male</option> <option>Female</option> <option>Other</option> </select> </div> --> <div class="fill-form"> <i class="fa-solid fa-key"></i> <input type="password" id="pass1" onkeyup="checkPass(); return false;" name="password" placeholder="Password"> </div> <div class="fill-form"> <i class="fa-solid fa-key"></i> <input type="password" id="pass2" onkeyup="checkPass(); return false;" name="cpassword1" placeholder="Confirm Password"> <div id="error-nwl"></div> </div> <div class="fill-form log-in-btn"> <input type="submit" value="Sign up" name="sub_user"> </div> </form> <?php if(isset($_POST['sub_user'])){ $table='user'; echo 'ok'; $user_id=$show->getid('ids','USR'); $data = array( 'user_id' => $user_id, 'name' => htmlentities(strip_tags($_POST['name'])), 'phone' => htmlentities(strip_tags($_POST['phone'])), 'email' => htmlentities(strip_tags($_POST['email'])), 'password' =>md5($_POST['password']), 'status' =>'INACTIVE', ); //print_r($data); $no=rand(1,10000); $capcha=$no; $em=htmlentities(strip_tags($_POST['email'])); $phn=htmlentities(strip_tags($_POST['phone'])); if($show->insert($table,$data)){ $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='https://itsweb.in/demobyITS/YaarYards7/images/logo.png' 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>$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='https://itsweb.in/demobyITS/YaarYards7/images/logo.png' 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> 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($em,$email_subject,$email_content,$headers)) { /* echo "<script>alert('Thank you mail has been sent. We will contact you soon.'); </script>";*/ } else { // echo "<script>alert('Message not sent!')</script>"; } echo '<script> setTimeout(function() { swal({ title: "Thank You!", text: "Your registration has been confirmed. An OTP has been sent to your registered mail id please verify to confirm", type: "success" }, function() { window.location = "verify_otp.php?id='.base64_encode($capcha).'&uid='.base64_encode($aid).'&m='.base64_encode($em).'&ph='.base64_encode($phn).'&t='.base64_encode($table).'"; }); }, 1000); </script>'; } } ?> </div> <div class="log-right"> <img src="images/sign-up.gif"> </div> <div class="clearfix"></div> <p> By submitting this form, you accept and agree to being contacted by email, SMS and phone by YaarYards and agree to our. <a href="terms-condition.php">Terms and Condition </a></p> </div> </div> </div> <!-- Footer include --> <?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.71 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