require("config.inc");
include("chksession.php");
include("fclr.inc");
$OkMsg=false;
$mess="";
if (isset($_REQUEST['NPass']) && isset($_REQUEST['CPass'])) {
if($_REQUEST['NPass']==$_REQUEST['CPass']){
$qry=mysql_query("select * from tbl_admin where usrname='".$_SESSION['usrname']."' and password='".$_REQUEST["OPass"]."'") or die("Invalid SQL ".mysql_error());
if($qry){
if(mysql_num_rows($qry)>0){
$qryupd=mysql_query("update tbl_admin set password='".$_REQUEST["NPass"]."' where usrname='".$_SESSION['usrname']."' and password='".$_REQUEST["OPass"]."'") or die("Invalid Values: " . mysql_error());
if($qryupd){
$mess="Password changed successfully!";
$OkMsg=true;
}
}else{
$mess="Old password do not match!";
}
}
}else{
$mess="New & Confirm password do not match!";
}
}
?>
require("scripts.php");?>
include("topbar-inc.php") ?>
Manage Password
This is the Change Password panel of your website. Use the below text boxes to change your password to accessControl Panel.