0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.223.238.150


Current Path : /proc/thread-self/root/var/www/html/demo/qptran/admin/
Upload File :
Current File : //proc/thread-self/root/var/www/html/demo/qptran/admin/changepass.php

<?php require_once('auth.php'); ?>
<?php include("header.php"); ?>
<style type="text/css">
<!--
.style2 {color: #FFFFFF; font-weight: bold; font-size: 14px; }
-->
</style>

<script language="javascript">

message = ("Sorry, you are not allowed to enter any spaces");
function nospaces(which) {
x = which.value
if (navigator.appName == "Netscape" ) {
if (e.which == 32) {
alert (message);
return false
}
}
if (navigator.appName == "Microsoft Internet Explorer") {
if (event.keyCode == 32) {
alert (message);
return false;
}
}
x = x.replace(/\s/g,""); // remove the unwanted space
document.signupForm.txtp.value = x;
}
</script>

<script language="JavaScript">

<!--
function Check_form() {

// Check Password 
		if ( signupForm.txtp.value == "" )
		{
			alert( "Kindly enter a new password." );
			signupForm.txtp.focus( );
			return false;
		}

		if ( signupForm.txtp.value.length < 4 )
		{
			alert( "Password must be atleast 4 characters." );	
			signupForm.txtp.focus( );
			return false;
		}


		if ( signupForm.txtp.value.length > 20 )
		{
		alert( "Password must be Max 20 characters." );	
		signupForm.txtp.focus( );
		return false;
		}

		if ( signupForm.txtcp.value == "" )
		{
			alert( "Kindly enter a confirm password." );
			signupForm.txtcp.focus( );
			return false;
		}

		if ( signupForm. txtp.value != signupForm. txtcp.value )
		{
			alert( "Password and Confirm password must be same." );
			signupForm.txtp.value = "";
			signupForm.txtcp.value = "";

			signupForm.txtp.focus( );

			return false;
		}

		tmpPass = signupForm.txtp.value;

		goodPasswd = 1;

		for( var idx=0; idx< tmpPass.length; idx++ )
		{
			ch = tmpPass.charAt(idx);

			if( !((ch>='a') && (ch<='z')) && !((ch>='A') && (ch<='Z')) && !((ch>=0) && (ch <=9)) )
			{
				goodPasswd = 0;
				break;
			}
		}

		if( goodPasswd ==0 )
		{
			alert( "Password must contains only letters and digits." );
			signupForm. txtp.value="";
			signupForm. txtcp.value="";
			signupForm. txtp.focus();
			return false;
		}

	

return true;
}

//-->
</script>

<div class="cont">
<p>&nbsp;</p>
<div style="width:600px; height:30px; text-align:center; margin:0 auto; padding-top:10px;"><h3>CHANGE PASSWORD</h3><p>&nbsp;</p></div>
<!--- Header Over -->
<?php
$a_id=$_SESSION['SESS_MEMBER_ID'];

?>

  <table width="600" border="0" align="center" cellpadding="4" cellspacing="1">
    <tr>
	  <td width="684"></td>
      <td width="40" height="36" style="padding-left:5px;"><a href="adminfunction.php">Home</a></td>
       <td width="40" height="36"  style="padding-left:5px;"><a href="logout.php">Logout</a></td>
	</tr>
</table>

<form name="signupForm" id="signupForm" action="changepassword_submit.php" method="post"  onSubmit="return Check_form();"> 
  <table width="600" border="0" align="center" cellpadding="4" cellspacing="1" bordercolor="#999999" bgcolor="#999999">

		
		<input type="hidden" name="a_id1" value="<?= $a_id; ?>" />
		


			
 
  <tr>
      <td width="252" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><div align="left"><font size="2" style="padding-left:5px;">Enter New Password</font></div></td>
      <td width="329" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><input name="txtp" type="password" Class="forminput" id="txtp" maxlength="50" onKeyDown="nospaces(this)" style="border:1px solid #000000; font-family: Verdana; font-size: 12px; background-color:#F8F7FD;" /></font></td>
    </tr>
	

  <tr>
      <td width="252" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><div align="left"><font size="2" style="padding-left:5px;">Enter New Confirm Password</font></div></td>
      <td width="329" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><input name="txtcp" type="password" Class="forminput" id="txtcp" maxlength="50" onKeyDown="nospaces(this)" style="border:1px solid #000000; font-family: Verdana; font-size: 12px; background-color:#F8F7FD" /></font></td>
    </tr>

        <tr>
      <td height="36" bgcolor="#f4f2f3"  style="padding-left:5px;">&nbsp;</td>
      <td height="36" valign="middle" bgcolor="#f4f2f3" style="padding-left:5px;"><input type="image" src="images/submit.jpg" name="submit"/>
      &nbsp;&nbsp; <a href="javascript:document.signupForm.reset()"><img src="images/reset.jpg" border="0" alt="Reset" /></a></td>
    </tr>
  </table>
</form>