GIF89a;
| Direktori : /home/serb/public_html/m/ |
| Current File : /home/serb/public_html/m/passwordsettings.php |
<?
session_start();
//include("config.php");
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
/*$sql="SELECT * FROM page_content WHERE id='45'";
$res=execute_query($sql);
$row=mysql_fetch_array($res);*/
$page='join';
?>
<?
if ($_POST)
{
$oldpass=$_POST['oldPassword'];
$sql_oldpass="SELECT * FROM user_info WHERE userid='".$_SESSION['userid']."'";
$res_oldpass=execute_query($sql_oldpass);
$row_oldpass=mysql_fetch_array($res_oldpass);
if($row_oldpass['password']==$_POST['oldPassword'])
{
$sql_updatepass="UPDATE user_info SET password='".$_POST['newPassword']."' WHERE userid='".$_SESSION['userid']."'";
execute_query($sql_updatepass);
?>
<script language="javascript">
location.href="passwordsettings.php?msg=2";
</script>
<?
}
else
{
?>
<script language="javascript">
location.href="passwordsettings.php?msg=1";
</script>
<?
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="height=device-height,width=device-width,initial-scale=1.0,maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>jQuery Mobile Web App</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="themes/escserve.css" />
<link rel="stylesheet" href="themes/jquery.mobile.icons.min.css" />
<link rel="stylesheet" href="jMobile.css" />
<script src="jquery.min.js"></script>
<script src="jqueryMobile.js"></script>
<script language="javascript">
function validate()
{
if(document.f22.oldPassword.value=="")
{
alert("Enter your Old Password");
document.f22.oldPassword.focus();
return false;
}
if(document.f22.newPassword.value=="")
{
alert("Enter Your New Password");
document.f22.newPassword.focus();
return false;
}
if(document.f22.newPassword.value!=document.f22.passwordAgn.value)
{
alert("Password Not Match");
document.f22.passwordAgn.focus();
return false;
}
}
</script>
</head>
<body>
<div data-role="page" id="page" data-theme="d" data-transition="flip">
<div id="headerTop"></div>
<? include "includes/header.php";?>
<div data-role="content" id="searchboxx">
<span style="float:left !important; margin-top:-5px !important;"><a style="float:left;" href="index.php" class="ui-btn ui-shadow ui-corner-all ui-icon-home ui-btn-icon-notext" data-iconpos="right" title="Go Home">Home</a></span>
<span style="float:right !important; margin-top:-5px !important;"><a style="float:right;" href="my-account.php" class="ui-btn ui-shadow ui-corner-all ui-icon-back ui-btn-icon-notext" data-iconpos="right" title="Go Dashboard">back</a></span>
</div>
<div data-role="content">
<!--<p id="alsignup">You can change your password from here</p>-->
<h2 id="loginheadertext">Password Setting</h2>
<!--<p id="alsignup">Do you have a promo code? <a href="#" data-transition="flip" id="loginnow">Redeem it now, before you register!</a></p>-->
<!-- <p id="loginalertmsg">
Please use your EscortService username and password to login bellow.
</p>
<p id="loginalertmsg">
Need to Register? <a href="join.html" id="jointextcolor" data-transition="flip" data-prefetch>Get Started Now!</a>
</p>-->
<?
if($_GET['msg']==1)
{?>
<p id="loginnow">Wrong Old Password</p>
<? } ?>
<?
if($_GET['msg']==2)
{?>
<p id="alsignup">Your Password Has Been Changed Successfully.</p>
<? } ?>
<form action="<?=$_SERVER['PHP_SELF']?>" method="post" name="f22" id="frm" data-ajax="false" onSubmit="return validate();">
<input name="submit_form" value="1" type="hidden">
<label for="txt-username">Old-password:<span id="starcolor">*</span></label>
<input type="text" name="oldPassword" id="txt-username" value="">
<label for="txt-password">Password:<span id="starcolor">*</span></label>
<input type="password" name="newPassword" id="txt-password" value="">
<label for="txt-cfpassword">Confirm Password:<span id="starcolor">*</span></label>
<input type="password" name="passwordAgn" id="txt-cfpassword" value="">
<input type="image" src="continue.png" style="height:35px; margin-top:10px;">
</form>
<!--<a href="#dlg-invalid-credentials" data-rel="popup" data-transition="pop" data-position-to="window" id="btn-submit" ><img src="continue.png" style="height:35px; margin-top:10px;"></a>-->
<div data-role="popup" id="dlg-invalid-credentials" data-dismissible="false" style="max-width:400px;">
<div role="main" class="ui-content">
<h3 class="mc-text-danger">Login Failed</h3>
<p>Did you enter the right credentials?</p>
<div class="mc-text-center"><a href="#" data-rel="back" class="ui-btn ui-corner-all ui-shadow ui-btn-b mc-top-margin-1-5">OK</a></div>
</div>
</div>
</div>
<div data-role="panel" data-display="push" data-position="right" data-theme="d" id="navMenu">
<? include "includes/right-menubar.php";?>
</div><!-- /panel -->
<div data-role="footer" >
<div id="footerTop">
<? include "includes/footer.php";?>
</div>
<div id="footerBottom"><p>Copyright 2015 ESCORTSERVICE.ORG | All Rights reserved.</p></div>
</div>
</div>
</body>
</html>