Şuanki Dizin: /home/wwwdreamtechnolo/www/spmsolapur.org/insert/user/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/spmsolapur.org/insert/user/change-password.php |
<?php require_once("../lib/functions.php"); $db = new db_function(); $flag = 0; $current_password_error=""; $password_error=""; $confirm_password_error=""; $success_msg =0; $current_password =""; $email=$_SESSION['email']; if(isset($_POST['add_btn'])) { $current_password = $_POST['curr_password']; $password = $_POST['new_password']; $confirm_password = $_POST['repassword']; if($current_password=="") { $current_password_error = "Please enter current password"; $flag = 1; } if($password=="") { $password_error = "Please enter new password"; $flag = 1; } if($confirm_password=="") { $confirm_password_error = "Please enter confirm password"; $flag = 1; } if($confirm_password!=$password) { $confirm_password_error = "Entered password not match"; $flag = 1; } if($flag==0) { $result_password = $db->get_user_password($email); if($result_password==$current_password) { $db->change_user_password($email,$password); $success_msg = 1; echo "Success"; } else { $current_password_error = "Please enter correct current password"; } } } ?> <html> <head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="Shoppy Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" /> <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all"> <!-- Custom Theme files --> <link href="css/style.css" rel="stylesheet" type="text/css" media="all"/> <!--js--> <script src="js/jquery-2.1.1.min.js"></script> <!--icons-css--> <link href="css/font-awesome.css" rel="stylesheet"> <!--Google Fonts--> <link href='//fonts.googleapis.com/css?family=Carrois+Gothic' rel='stylesheet' type='text/css'> <link href='//fonts.googleapis.com/css?family=Work+Sans:400,500,600' rel='stylesheet' type='text/css'> <!--static chart--> </head> <body> <form action="change-password.php" method="post" class="form_container" style="height:300px; margin-top:40px;" > <div class="login-page"> <div class="login-main"> <div class="login-head"> <h1>Change Password</h1> </div> <div class="login-block"> <form> <input type="password" name="curr_password" class="lock" placeholder="Current Password"> <p style="color:red;"><?php echo $current_password_error; ?></p> <input type="password" name="new_password" class="lock" placeholder="New Password"> <p style="color:red;"><?php echo $password_error; ?></p> <input type="password" name="repassword" class="lock" placeholder="Re-Enter Password"> <p style="color:red;"><?php echo $confirm_password_error; ?></p> <div class="forgot-top-grids"> <div class="forgot-grid"> <ul> <li> <input type="checkbox" id="brand1" value=""> <label for="brand1"><span></span>Remember me</label> </li> </ul> </div> <div class="forgot"> <a href="#">Forgot password?</a> </div> <div class="clearfix"> </div> </div> <input type="submit" value="submit" name="add_btn"> <h3>Not a member?<a href="signup.html"> Sign up now</a></h3> <h2>or login with</h2> <div class="login-icons"> <ul> <li><a href="#" class="facebook"><i class="fa fa-facebook"></i></a></li> <li><a href="#" class="twitter"><i class="fa fa-twitter"></i></a></li> <li><a href="#" class="google"><i class="fa fa-google-plus"></i></a></li> </ul> </div> </form> <h5><a href="index.html">Go Back to Home</a></h5> </div> </div> </div> <?php include("sidebar1.php"); ?> <!--inner block end here--> <!--copy rights start here--> <!--COPY rights end here--> <!--scrolling js--> <script src="js/jquery.nicescroll.js"></script> <script src="js/scripts.js"></script> <!--//scrolling js--> <script src="js/bootstrap.js"> </script> <!-- mother grid end here--> </form> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4