fn_updatepassword();
break;
default:
$this->fn_default_pass();
break;
}
}
public function fn_default_pass()
{
echo $this->FN_CREATEHEADER();
echo "";
echo "";
echo $this->FN_CLOSEHEADER();
echo $this->FN_CREATEBODY("e8f1ff");
echo "
";
echo $this->FN_CREATEFOOTER();
}
public function fn_updatepassword()
{
$oldpass=$_REQUEST['txtpassold'];
$passnew=$_REQUEST['txtpassnew'];
// echo "failed|$oldpass";return false;
//return false;
$qry="update ".DB_APORTIL.".tbl_employee_accessibility
set pass='".$this->enc($passnew)."',maskpass='1234',uby='".$_SESSION['nik']."',udt=now()
where nik='".$_SESSION['nik']."'";
if(!$this->fn_row_isexists("select nik from ".DB_APORTIL.".tbl_employee_accessibility where nik='".$_SESSION['nik']."' and pass='".$this->enc($oldpass)."' and isdeleted=0"))
{
echo "failed|Password Lama anda tidak Match.TERIMA KASIH";return false;
}
if($this->executequery($qry))
{
echo 'ok';
//$msg="Menu baru ".strtoupper("$nmuser")." sudah berhasil ditambahkan
";
//$msg.="Klik ".$this->CREATE_LINK($this->fn_url_home(),"disini","javascript:void(0)","_self","Penambahan Menu Baru");
//$msg.=" untuk Penambahan Menu Baru. TERIMA KASIH";
//echo $this->SHOWMESSAGE($msg);
}else{echo "failed|".$this->getErrorQuery();}
}
}
?>