403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/hkosl.com/littleark/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hkosl.com/littleark/webadmin//sys_cms_user_modifypwform.php
<?php
	$page_settings = array(
		'formid'     => 'Sys_cms_user', // for permission
		'section'    => 'System Setting', // parent/page title
		'subsection' => 'User Management', // page title
		'domain'     => 'sys_cms_user', // table/model name
		'access'     => 'GNr', // for permission
	);

	require_once "check_login.php";

	$action = 'Modify'; // Add or Modify

	if (isset($_POST['cmsloginid']) && isset($_POST['originalpw']) && isset($_POST['cmsloginpw']) && isset($_POST['cmsloginpw_confirm'])) {

		if (Sys_user::changePassword((int)$_POST['cmsloginid'], $_POST['originalpw'], $_POST['cmsloginpw'], $_POST['cmsloginpw_confirm'])) {
			header('Location: index.php');
			exit;
		} else {
			header('Location: sys_cms_user_modifypwform.php?msg=' . _lang('Failed to modify password'));
			exit;
		}
	}

	$row = SysCmsLogin::where('cmsloginid', '=', $_SESSION["cmsloginid"])->first();
?>
<!DOCTYPE html>
<html>
<head>
	<?php require_once "_html_head.php"; ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

	<?php require_once "_header.php"; ?>

	<?php require_once "_menu.php"; ?>

	<!-- Content Wrapper. Contains page content -->
	<div class="content-wrapper">
		<!-- Content Header (Page header) -->
		<section class="content-header">

			<h1>
				<?= _lang($page_settings['subsection']) ?>
				<small><?=_lang("Update")?></small>
			</h1>

			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-dashboard"></i> <?= _lang($page_settings['section']) ?></a></li>
				<li class="active">
					<a href="<?= $page_settings['domain'] ?>_index.php"><?= _lang($page_settings['subsection']) ?></a>
				</li>
			</ol>

		</section>

		<!-- Main content -->
		<section class="content">

			<!-- Your Page Content Here -->

			<!-- main form -->
			<form action="" class="myform" method="POST" enctype="multipart/form-data">
				<input type="hidden" name="cmsloginid" value="<?= $row{'cmsloginid'}; ?>">
				<input type="hidden" class="content" name="cmsloginname" value="<?= $row{'cmsloginname'} ?>" id="cmsloginname"/>

				<div class="row">
					<div class="col-xs-12">
						<div class="box">

							<div class="box-header">
								<div class="col-md-3">
									<div class="btn-group">
										<a href="<?= $page_settings['domain'] ?>_index.php" class="btn btn-default"><i class="fa fa-chevron-left" aria-hidden="true"></i> <?= _lang('Cancel') ?>
										</a>

										<button type="submit" class="btn btn-primary">
											<i class="fa fa-floppy-o" aria-hidden="true"></i> <?= _lang('Save') ?>
										</button>
									</div>
								</div>

								<div class="col-md-12 msg">
									<?php if (isset($_GET["msg"])) echo $_GET['msg']; ?>
								</div>
							</div>

							<!-- /.box-header -->
							<div class="box-body">

								<div class="col-md-12 form-group">
									<label for="" class="col-sm-2 control-label required_field"><?= _lang("Current Password") ?>
									</label>

									<div class="col-sm-10 form-group">
										<input type="password" name="originalpw" id="originalpw" class="form-control input-sm" autofocus="">

										<p class="help-block">
											<?= _lang("Length:8-15") ?>
										</p>

									</div>
								</div>

								<div class="col-md-12 form-group">
									<label for="" class="col-sm-2 control-label required_field"><?= _lang("Password") ?>
									</label>

									<div class="col-sm-10 form-group">
										<input type="password" name="cmsloginpw" id="cmsloginpw" class="form-control input-sm" autofocus="">

										<p class="help-block">
											<?= _lang("Length:8-15") ?>
										</p>

									</div>
								</div>

								<div class="col-md-12 form-group">
									<label for="" class="col-sm-2 control-label required_field"><?= _lang("Confirm New Password") ?>
									</label>

									<div class="col-sm-10 form-group">
										<input type="password" name="cmsloginpw_confirm" id="cmsloginpw_confirm" class="form-control input-sm" autofocus="">

										<p class="help-block">
											<?= _lang("Length:8-15") ?>
										</p>

									</div>
								</div>

							</div>
							<!-- /.box-body -->
						</div>
						<!-- /.box -->
					</div>
					<!-- /.col -->
				</div>
				<!-- /.row -->
			</form>

			<!-- End of Your Page Content Here -->

		</section><!-- /.content -->
	</div><!-- /.content-wrapper -->

	<?php require_once "_footer.php"; ?>

	<?php require_once "_aside.php"; ?>

</div><!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->
<?php require_once "_html_script.php"; ?>

<script src="js/jquery.validate.min.js"></script>
<script type="text/javascript">
	$(document).ready(function (e) {
		$("#myform").validate({
			rules: {
				cmsloginpw_confirm: {
					equalTo: "#cmsloginpw"
				}
			}
		});
	});
</script>
<?php Password::ajax_validate('cmsloginpw', 'ajax_passwordChecker.php', 'cmsloginname') ?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit