HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/bsadmin-portal/change-password.php
<?php   
	include("../classes/site_class.php");
	$obj = new Site();
	if($_SESSION['admin']['user_id']=='')
	{
		echo "<script>window.location.href='index.php'</script>";
	}
	if(isset($_REQUEST['Submit']) and !empty($_REQUEST['Submit']) and ($_REQUEST['Submit']=='Submit'))
	{
		$resp = $obj->updatePassword();
		if($resp==0)
		{
			echo "<script>alert('Old password not match')</script>";
		}
		if($resp==5)
		{
			echo "<script>alert('Your password update Successfully')</script>";
			//echo "<script>window.location.href='change-password.php'</script>";
		}
		if($resp==1 )
		{
			echo "<script>alert('Your password is not save, Please try later')</script>";
			echo "<script>window.location.href='change-password.php'</script>";
		}
	}
?>
<!doctype html>
<html class="fixed">
	<head>
		<title>Change Password :: SBSC Admin</title>
		<?php include("inc-head.php");?>
	</head>
	<body>
		<section class="body">
			<!-- start: header -->
			<?php include("inc-header.php"); ?>
			<!-- end: header -->
			<div class="inner-wrapper">
				<!-- start: sidebar -->
				<?php include("inc-navigation.php"); ?>
				<!-- end: sidebar -->
				<section role="main" class="content-body">
					<header class="page-header">
						<h2>Change Password</h2>
						<div class="right-wrapper pull-right">
							<ol class="breadcrumbs">
								<li>
									<a href="dashboard.php">
										<i class="fa fa-home"></i>
									</a>
								</li>
								<li><span>Change Password</span></li>
							</ol>
							<!--<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>-->
						</div>
					</header>
					<!-- start: page -->
						<div class="row">
							<div class="col-lg-12">
								<section class="panel">
									<header class="panel-heading">
										<div class="panel-actions">
											<a href="#" class="panel-action panel-action-toggle" data-panel-toggle></a>
											<a href="#" class="panel-action panel-action-dismiss" data-panel-dismiss></a>
										</div>
										<h2 class="panel-title">Change Password</h2>
									</header>
									<div class="panel-body">
										<form class="form-horizontal form-bordered" name="password_form" method ="Post" action="" onsubmit="return Validate_password();" enctype="multipart/form-data">
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">Enter Old Password*</label>
												<div class="col-md-9">
													<input type="password" class="form-control" name="oldpassword" class="question">
												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">Enter New Password*</label>
												<div class="col-md-9">
													<input type="password" class="form-control" name="newpassword" class="question" id="password">
												</div>
											</div>
											<div class="form-group">
												<label class="col-md-3 control-label" for="inputDefault">Enter Conform Password*</label>
												<div class="col-md-9">
													<input type="password" class="form-control" name="conformpassword" class="question" id="confirm_password">
													<span id='message'></span>
												</div>
											</div>
											
											<div class="row">
												<div class="col-sm-1">
												</div>
												<div class="col-sm-9 text-center">
													 <input type="submit" class="btn btn-primary hidden-xs" name="Submit" value="Submit" onclick="return Validate_Passwords();"/>    
												</div>
											</div>
										</form>
									</div>
								</section> 
							</div>
						</div>
				</section>
			</div>
		</section>
		<script>
			$('#password, #confirm_password').on('keyup', function ()
			{
				if ($('#password').val() == $('#confirm_password').val())
				{
					$('#message').html('Matching').css('color', 'green');
				} else 
				$('#message').html('Not Matching').css('color', 'red');
			});
		</script>
<?php include("inc-footer.php"); ?>
</body>
</html>