Server IP : 103.53.40.154 / Your IP : 3.147.205.19 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 $alert_msg=""; if(isset($_POST['Submit_details'])) { @extract($_REQUEST); $account_del_sql=db_query("select * from tbl_registration where 1 and reg_status='Active' and reg_id='$_SESSION[login_id]'"); $account_del_data=mysql_fetch_array($account_del_sql); if($account_del_data['reg_name']==$reg_name && $account_del_data['reg_email']==$reg_email && $account_del_data['reg_mobile_no']==$reg_phone && $account_del_data['reg_address']==$reg_address && $account_del_data['reg_zip_code']==$reg_zip_code && $account_del_data['reg_city']==$reg_city && $account_del_data['reg_state']==$reg_state && $account_del_data['reg_country']==$reg_country ) { $alert_msg="no_change"; }else{ if($account_del_data['reg_email']!=$reg_email) { $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 style="color:green; font-weight:bold;">Your Email ID has been changed successfully:</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>New Registered Email ID : </strong>'.$reg_email.'</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;">www.'.$hostName.'</a><span style="float:right;margin: -20px 0 0 0;"><strong>Email :</strong><a href="mailto:'.$compDATA['admin_email'].'" style="color:#00f;">'.$compDATA['admin_email'].'</a><br><strong>Mobile No:</strong> '.$compDATA['admin_mobile'].'</span></p></div></div></div></center></body></html>'; $toEmail = $reg_email; //$toEmail = "rehantki@gmail.com"; $subject = "Email Address Changed Of $hostName"; $from="$compDATA[admin_email]"; $Headers1 = "From: $compDATA[admin_company_name]<$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>"; $toEmail = $account_del_data['reg_email']; $subject = "Email Address Changed Of $hostName"; $from="$compDATA[admin_email]"; $Headers1 = "From: $compDATA[admin_company_name]<$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($reg_email){ @mail($msgmail,$sub_admin,$mail_admin_body,$headers_admin); /* $alert_msg="green"; $reg_id=db_scalar("select max(reg_id) from tbl_registration"); $_SESSION['login_id'] = $reg_id; header("location:dashboard.html");*/ } } if($account_del_data['reg_mobile_no']!=$reg_phone) { $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 style="color:green; font-weight:bold;">Your Mobile No. has been changed successfully:</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>New Mobile No. : </strong>'.$reg_phone.'</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;"><strong>Email :</strong><a href="mailto:'.$compDATA['admin_email'].'" style="color:#00f;">'.$compDATA['admin_email'].'</a><br><strong>Mobile No:</strong> '.$compDATA['admin_mobile'].'</span></p></div></div></div></center></body></html>'; $toEmail = $reg_email; //$toEmail = "rehantki@gmail.com"; $subject = "Mobile No. Changed Of $hostName"; $from="$compDATA[admin_email]"; $Headers1 = "From: $compDATA[admin_company_name]<$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($reg_email){ @mail($msgmail,$sub_admin,$mail_admin_body,$headers_admin); } } $sql_details="update tbl_registration set reg_name='$reg_name', reg_email='$reg_email', reg_mobile_no='$reg_phone', reg_address='$reg_address', reg_zip_code='$reg_zip_code', reg_city='$reg_city', reg_state='$reg_state', reg_country='$reg_country' where reg_id='$_SESSION[login_id]' "; if(db_query($sql_details)) { $alert_msg="done"; } else { $alert_msg="error"; } } } ?> <style> #error_style{ 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; } .error_email{ display:none; } .error_contact{ display:none; } </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"> Account Details </h1> <ul class="list-inline"> <li><a href="<?=$site_url?>/index.html">Home</a></li> <li>|</li> <li> Account Details </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-2"></div> <div class="col-md-8 "> <?php if($alert_msg=="no_change"){?> <div class="alert alert-warning" role="alert"> <i class="fa fa-warning fa-lg" aria-hidden="true"></i> You have made no changes. </div> <?}else if($alert_msg=="done"){ ?> <div class="alert alert-success" role="alert"> <i class="fa fa-check-circle fa-lg" aria-hidden="true"></i> Details updated successfully. </div> <?}else if($alert_msg=="error"){?> <div class="alert alert-danger" role="alert"> <i class="fa fa-times-circle fa-lg" aria-hidden="true"></i> Sorry ! Currently enable to update your details. </div> <?}?> <?php $account_sql=db_query("select * from tbl_registration where 1 and reg_status='Active' and reg_id='$_SESSION[login_id]'"); $account_data=mysql_fetch_array($account_sql); ?> <div class="p-a30 bg-gray clearfix m-b30 "> <h2>Account Details</h2> <div class="dzFormMsg"></div> <form action="" method="post" enctype="multipart/form-data" onsubmit="return checkValidationDet();" > <div class="row"> <div class="col-md-12"> <div class="form-group"> <div class="input-group"> <input type="text" readonly class="form-control" placeholder="Enter name" name="reg_name" id="reg_name" value="<?=$account_data['reg_name']?>"> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter email address" onkeyup="errEmail();" name="reg_email" id="reg_email" value="<?=$account_data['reg_email']?>"> </div> <p id="error_style" class="error_email" style="margin-top:10px; width:260px;"></p> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter mobile no." maxlength="10" onkeyup="errContact();" name="reg_phone" id="reg_phone" value="<?=$account_data['reg_mobile_no']?>" onkeydown="javascript: return event.keyCode == 69 ? false : true"> </div> <p id="error_style" class="error_contact" style="margin-top:10px; width:270px;"></p> </div> </div> <div class="col-md-12"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter address" name="reg_address" id="reg_address" value="<?=$account_data['reg_address']?>"> </div> </div> </div> <!-- <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <select name="reg_country" id="reg_country" onchange="selectCountryShip(this.value);"> <option value=""> --- Select Country * --- </option> <?php $sql_country=db_query("select * from countries order by id asc"); while($country_data=mysql_fetch_array($sql_country)) {?> <option value="<?=$country_data['name']?>" <?php if($account_data['reg_country']==$country_data['name']){ echo "selected"; }?> > <?=$country_data['name']?> </option> <?} ?> </select> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group" id="show_state"> <select name="reg_state" id="reg_state"> <option value=""> --- Select State * --- </option> <?php $sql_state=db_query("select * from states order by id asc"); while($state_data=mysql_fetch_array($sql_state)) {?> <option value="<?=$state_data['name']?>" <?php if($account_data['reg_state']==$state_data['name']){ echo "selected"; }?>> <?=$state_data['name']?> </option> <?} ?> </select> </div> </div> </div> --> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter country" name="reg_country" id="reg_country" value="<?=$account_data['reg_country']?>"> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter state" name="reg_state" id="reg_state" value="<?=$account_data['reg_state']?>"> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter city" name="reg_city" id="reg_city" value="<?=$account_data['reg_city']?>"> </div> </div> </div> <div class="col-md-6"> <div class="form-group"> <div class="input-group"> <input type="text" class="form-control" placeholder="Enter zip code" name="reg_zip_code" id="reg_zip_code" value="<?=$account_data['reg_zip_code']?>"> </div> </div> </div> <div class="col-md-12"> <button name="Submit_details" id="Submit_details" type="submit" value="Save" 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 selectCountryShip(country_name) { $.ajax({ type: "POST", url: "account-details-state-ajax.php", data: {country_name:country_name}, success: function(result){ document.getElementById('show_state').innerHTML=result; } }); }*/ function trimfield(str) { return str.replace(/^\s+|\s+$/g,''); } function checkValidationDet(){ var reg_email=document.getElementById("reg_email"); var reg_phone=document.getElementById("reg_phone"); if(reg_email.value==""){ $('#reg_email').css({"border-color":"red"}); reg_email.focus(); $(".error_email").html("Please enter your email !"); $('.error_email').fadeIn('slow'); return false; } if(!/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(reg_email.value)){ $('#reg_email').css({"border-color":"red"}); reg_email.focus(); $(".error_email").html("Please enter valid email address !"); $('.error_email').fadeIn('slow'); return false; } if(reg_phone.value==""){ $('#reg_phone').css({"border-color":"red"}); reg_phone.focus(); $(".error_contact").html("Please enter contact number !"); $('.error_contact').fadeIn('slow'); return false; } if(isNaN(reg_phone.value)){ $('#reg_phone').css({"border-color":"red"}); reg_phone.focus(); $(".error_contact").html("Please enter numeric value only !"); $('.error_contact').fadeIn('slow'); return false; } if(reg_phone.value.length<10 || reg_phone.value.length>10){ $('#reg_phone').css({"border-color":"red"}); reg_phone.focus(); $(".error_contact").html("Contact number should be 10 digit long !"); $('.error_contact').fadeIn('slow'); return false; } } function errEmail(){ $('#reg_phone').css({"border-color":"black"}); $('.error_email').css({"display":"none"}); } function errContact(){ $('#reg_phone').css({"border-color":"black"}); $('.error_contact').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>