Preview: change-password.php
Size: 6.47 KB
//home/justbyquicklly-old/public_html/change-password.php
<?php
include("include/config.php");
include("include/functions.php");
if ($_SESSION['value_user_id'] == '') {
header("location:" . SITE_URL);
exit();
}
if ($_REQUEST['submitForm'] == 'yes') {
$old_password = mysqli_real_escape_string($GLOBALS['conn'], $_REQUEST['old_password']);
$new_password = mysqli_real_escape_string($GLOBALS['conn'], $_REQUEST['new_password']);
$confirm_password = mysqli_real_escape_string($GLOBALS['conn'], $_REQUEST['confirm_password']);
$responce = callAPI('POST', WEBAPI_URL_NEW.'miniuser/change-pass',array("uid"=>$_SESSION['value_user_id'], "oldPass"=>$old_password,"newPass"=>$new_password,'callFrom'=>'JUSTBYQUICKLLY','sitename'=>'justbyquicklly.com'));
$_SESSION['sess_msg'] = $responce->msg;
}
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Just By Quicklly</title>
<?php //include_once("metas.php") ?>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#form").validate();
});
</script>
<link rel="stylesheet" type="text/css" href="css/stylesheet/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/stylesheet/font-awesome.css">
<link rel="stylesheet" type="text/css" href="css/stylesheet/style.css?ver=1.1">
<?php include_once("css.php") ?>
<?php //include("common-head.php"); ?>
<style type="text/css">
button.button:hover {
-webkit-transition: all .4s cubic-bezier(.8,0,0,1);
-o-transition: all .4s cubic-bezier(.8, 0, 0, 1);
transition: all .4s cubic-bezier(.8,0,0,1);
/* box-shadow: inset 0 -45px 0 0 #ed6663; */
/* border: 2px solid #e0403d; */
color: #fff;
}
button.button {
display: inline-block;
background: #9b2e84;
padding: 8px 15px;
font-size: 12px;
text-align: center;
font-weight: 400;
border: 2px solid #9b2e84;
transition: all .4s cubic-bezier(.8,0,0,1);
b
.new-style select {
margin-top: 20px;
width: 100%;
height: 40px;
padding: 10px 15px;
border-radius: 5px;
outline: 0;
border: 0;
background: #e8ebed;
color: #576366;
font-size: 14px;
}
form#form h1 {
font-size: 15px;
font-weight: 600;
text-transform: uppercase;
margin: 0 0 10px;
}
</style>
</head>
<body>
<?php include("header.php"); ?>
<?php include("cart.php"); ?>
<div id="searchhide" >
<!-- BEGIN Main Container col2-right -->
<section class="main-container col2-right-layout" style="background-color: #F4F4F4;">
<div class="main container">
<div class="row">
<?php
if ($_SESSION['value_user_type'] != 1) {
include("myaccount-left.php");
}
?>
<section class="col-main col-sm-9 col-xs-12 wow bounceInUp animated animated" style="visibility: visible;">
<div class="my-account">
<form name="frm" method="post" id="form" action="">
<input type="hidden" name="submitForm" value="yes" />
<h1>Change Password</h1><hr>
<div style="color:#FF3300" ><?php echo $_SESSION['sess_msg'];
$_SESSION['sess_msg'] = '';
?></div><br>
<div class="col-md-6"><input name="old_password" id="old_password" type="password" class="form-control" required maxlength="50" placeholder="Old Password" style="border:1px solid #ccc; height:30px" /><br><br>
<input name="new_password" id="new_password" type="password" class="form-control" required maxlength="50" minlength="6" value="" placeholder="New Password" style="border:1px solid #ccc; height:30px" /> <em style="color:#09F">Note: Minimum 6 characters</em><br><br>
<input name="confirm_password" id="confirm_password" type="password" class="form-control" required minlength="6" equalTo="#new_password" maxlength="50" value="" placeholder="Confirm Password" style="border:1px solid #ccc; height:30px" /><br><br>
<div class="col-md-6 col-sm-12">
<div class="form-footer">
<button type="submit" class="button login">
<span style="color:#fff;">Change Password</span>
</button>
</div></div>
<div class="col-md-6 col-sm-12"></div>
</div>
<div class="col-md-6"></div>
<div class="clearfix"></div>
</form>
</div>
</section>
</div>
<!--row-->
</div>
<!--main container-->
</section>
<div class="clearfix"></div><br><br>
<?php include("footer.php"); ?>
</div>
</div>
<!-- JavaScript -->
<?php include_once("js.php") ?>
<script type="text/javascript" src="<?php echo getFileVer('js/cart.js'); ?>" ></script>
<script defer="defer" type="text/javascript" src="js/js/bootstrap.min.js"></script>
<script defer="defer" type="text/javascript" src="js/custom.js"></script>
<script defer="defer" type="text/javascript" src="js/js/parallax.js"></script>
<script defer="defer" type="text/javascript" src="js/js/revslider.js"></script>
<script defer="defer" type="text/javascript" src="js/js/common.js"></script>
<script defer="defer" type="text/javascript" src="js/js/jquery.bxslider.min.js"></script>
<script defer="defer" type="text/javascript" src="js/js/owl.carousel.min.js"></script>
<script defer="defer" type="text/javascript" src="js/js/jquery.mobile-menu.min.js"></script>
</body>
</html>
Directory Contents
Dirs: 12 × Files: 59