Server IP : 103.53.40.154 / Your IP : 3.147.62.5 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/adisgauges.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("site-header.php");?> <?php $invalid_email=""; $alert_msg=""; $account_inactive=""; if(isset($_POST['forget_submit'])) { @extract($_REQUEST); $email=$_REQUEST['forget_email']; //echo $email; //echo $password; $reg_id=db_scalar("select reg_id from tbl_registration where 1 and reg_email='$email'"); if($reg_id!="") { $acc_st=db_scalar("select reg_status from tbl_registration where 1 and reg_id='$reg_id'"); if($acc_st!="Active") { $account_inactive="<p style='color:red;'>Your account has been deactivated by admin due to our policies</p> <p style='color:red;'>Please contact to $compDATA[admin_mobile] / $compDATA[admin_email]</p>"; } else { $reg_name=db_scalar("select reg_name from tbl_registration where 1 and reg_id='$reg_id'"); $reg_email=db_scalar("select reg_email from tbl_registration where 1 and reg_id='$reg_id'"); $reg_password=db_scalar("select reg_pass from tbl_registration where 1 and reg_id='$reg_id'"); $im=$site_url."/header_files/".$DATALOGO['header_logo']; ///////////////****** Mailer to client start here **********************////////////// $hostName = $_SERVER['HTTP_HOST']; $msgmail = '<html><head><title>'.$compDATA[admin_company_name].'</title></head><body><center><div style="width:710px;padding:2px 2px 2px 2px;font-family:Arial, Helvetica, sans-serif;text-align:left;font-size:14px;border-radius:5px;" ><div style="border: outset thin #dadada70;background-color: #dadada8a;padding: 6px 10px 5px 10px;border-radius: 6px;"> <div style="text-align: left;padding: 14px 0 14px 5px;background-color: black;border-radius: 6px 6px 0 0;color:white;"> <img src="'.$im.'" border="0" alt="'.$compDATA[admin_company_name].'"> </div> <div style="margin-top:20px;"><span style="font-weight:bold;">Dear</span><span style="color:#e8410d;font-weight:bolder;"> '.ucfirst($reg_name).'</span>,</div><br><div style="margin:0px;padding:0px;line-height:20px;">Welcome to '.$compDATA[admin_company_name].'.<br><br></div><div style="border-radius:10px; padding:0 0 0 0;"><div>Your '.$compDATA[admin_company_name].' login details are:</div><br><table width="100%" border="0" cellspacing="0" cellpadding="0"><tbody style="border-radius:10px;"><tr ><td width="100%" style="line-height:25px;font-size: 13px;"><strong>User Name : </strong>'.$reg_email.'<br><strong>Password :</strong> '.$reg_password.'</td></tr></tbody></table></div><br> <div style="padding-top:0;" ><p style="border-top:1px solid #ebebeb;padding-top:10px;"><b>Website</b><br> <a href="'.$site_url.'" target="_blank" style="color:#00f;"> '.$hostName.' </a> <span style="float:right;margin: -20px 0 0 0;"><b>Email:</b> <a href="mailto:'.$compDATA['admin_email'].'" style="color:#00f;">'.$compDATA['admin_email'].'</a><br> <b>Mobile:</b> '.$compDATA['admin_mobile'].'</span> <br> <form action="'.$site_url.'/login.html" method="post" > <input type="hidden" name="login_email" id="login_email" value="'.$reg_email.'"> <input type="hidden" name="login_password" id="login_password" value="'.$reg_password.'"> <button type="submit" name="login_submit" id="login_submit" style="border-style:none; font-weight:bold; cursor:pointer; outline:none; color:green;"> Login Now ! </button> </form> </p></div></div></div></center></body></html>'; /////////////// Mail to user /////////////////// $toEmail = $email; $subject = "$hostName login details"; $from="$compDATA[admin_email]"; $Headers1 = "From: $hostName<$from>\n"; $Headers1 .= "X-Mailer: PHP/". phpversion(); $Headers1 .= "X-Priority: 3 \n"; $Headers1 .= "MIME-version: 1.0\n"; $Headers1 .= "Content-Type: text/html; charset=iso-8859-1\n"; @mail("$toEmail", "$subject", "$msgmail","$Headers1","-fenquiry@tradekeyindia.com"); //@mail("amitabh.tradekeyindia@gmail.com", "Subject", "Msg1","$Headers1","-fenquiry@tradekeyindia.com"); $toEmail."<br>"; if($email){ @mail($mail_to_admin,$sub_admin,$mail_admin_body,$headers_admin); $alert_msg="Your login details has been sent to your registered email address, please check your mail box. "; } } } else { $invalid_email="Email address does not exist !"; } } ?> <style> #error_style_forget{ color:white; font-size:13px; font-family:arial; background-color:#c32323; border-radius:7px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-sizing: border-box; padding:7px; position:relative; top: 5px; } .error_email_forget{ display:none; text-align:left; } </style> <div class="page-content"> <div class="dlab-bnr-inr overlay-black-middle" style="background:url(<?=$site_url?>/images/inner-banner.jpg) no-repeat center; background-size:cover;"> <div class="container"> <div class="dlab-bnr-inr-entry"> <h1 class="text-white"> Forgot Password </h1> <ul class="list-inline"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <li>|</li> <li> Forgot Password </li> </ul> </div> </div> </div> <div class="section-full content-inner bg-white contact-style-1"> <div class="container"> <div class="row"> <div class="col-md-3"></div> <div class="col-md-6 "> <?php if($invalid_email!=""){?> <div class="alert alert-primary" role="alert"> <i class="fa fa-exclamation-triangle fa-lg" aria-hidden="true"></i> <?=$invalid_email?> </div> <?}?> <?php if($account_inactive!=""){?> <div class="alert alert-danger" role="alert"> <?=$account_inactive?> </div> <?}?> <?php if($alert_msg!=""){?> <div class="alert alert-success" role="alert"> <i class="fa fa-check-circle fa-lg" aria-hidden="true"></i> <?=$alert_msg?> </div> <?}?> <div class="p-a30 bg-gray clearfix m-b30 "> <h2>To recover your password, Please enter your registered email below :-</h2> <div class="dzFormMsg"></div> <form action="" method="post" enctype="multipart/form-data" onsubmit="return checkValidationForget();" > <div class="row"> <div class="col-md-12"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" name="forget_email" id="forget_email" onkeyup="errEmailForget();" placeholder="Enter Email *"> </div> <p id="error_style_forget" class="error_email_forget" style="width:250px;"></p> </div> </div> <div class="col-md-6"> <button onclick="window.location.href='<?=$site_url?>/login.html'" type="button" class="site-button btn "> <i class="fa fa-arrow-left"></i><span> Back</span> </button> </div> <div class="col-md-6"> <button name="forget_submit" id="forget_submit" type="submit" value="Submit" class="site-button "> <span>Submit</span> </button> </div> </div> </form> </div> </div> </div> </div> </div> </div> <?php include("site-footer.php");?> </div> </div> <script> function trimfield(str) { return str.replace(/^\s+|\s+$/g,''); } function checkValidationForget(){ var forget_email=document.getElementById("forget_email"); if(forget_email.value==""){ $('#forget_email').css({"border-color":"red"}); forget_email.focus(); $(".error_email_forget").html("Please enter your email !"); $('.error_email_forget').fadeIn('slow'); return false; } if(!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(forget_email.value)){ $('#forget_email').css({"border-color":"red"}); forget_email.focus(); $(".error_email_forget").html("Please enter valid email address !"); $('.error_email_forget').fadeIn('slow'); return false; } } function errEmailForget(){ $('#forget_email').css({"border-color":"#A89842"}); $('.error_email_forget').css({"display":"none"}); } </script> <script src="<?=$site_url?>/js/jquery.min.js"></script> <script src="<?=$site_url?>/js/bootstrap.min.js"></script> <script src="<?=$site_url?>/js/bootstrap-select.min.js"></script> <script src="<?=$site_url?>/js/jquery.bootstrap-touchspin.js"></script> <script src="<?=$site_url?>/js/magnific-popup.js"></script> <script src="<?=$site_url?>/js/waypoints-min.js"></script> <script src="<?=$site_url?>/js/imagesloaded.js"></script> <script src="<?=$site_url?>/js/masonry-3.1.4.js"></script> <script src="<?=$site_url?>/js/masonry.filter.js"></script> <script src="<?=$site_url?>/js/owl.carousel.js"></script> <script src="<?=$site_url?>/js/custom.js"></script> <script src="<?=$site_url?>/js/dz.carousel.js"></script> <script src="<?=$site_url?>/js/switcher.min.js"></script> </body> </html>