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/(Del)gepgroup.hk/webadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)gepgroup.hk/webadmin//cms_user_form.php
<?php
require_once( realpath(dirname(__FILE__)) . '/../common/config.php');
require_once( realpath(dirname(__FILE__)) . '/function_is_login.php');
if (!is_login())
{
	header("Location: index.php");
	exit;
}

//----------------------------------------------------
// Submit information
//----------------------------------------------------
if (strtoupper($_SERVER['REQUEST_METHOD']) == 'POST')
{
	$id = $_POST['id'];
	$action = strlen($id) ? 'Modify' : 'Add';
	
	if (strlen($id))
	{
		$model = SysCmsUser::first($id);
	}
	else
	{
		$model = new SysCmsUser(array(
			'role' => 'user',
			'actived' => 1,
		));
	}
	
	$post = $_POST;
	unset($post['password']);
	if (!empty($_POST['password'])) {
		$post['password'] = md5($_POST['password']);
	}
	$model->safe_set_attributes($post);
	
	if ($model->save())
	{
		header("Location: cms_user_index.php?msg=" . $action . "%20Success");
		exit;
	}
}

//----------------------------------------------------
// Initialize
//----------------------------------------------------
$id = $_GET['id'];
$action = strlen($id) ? 'Modify' : 'Add';

if (isset($model))
{
	if ($model->is_new_record())
		$model->id = NULL;
}
else
{
	$model = strlen($id) ? SysCmsUser::first($id) : new SysCmsUser;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>Content Management System (CMS) - Powered by One Solution Limited</title>
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
	<script type="text/javascript" src="js/jquery.blockUI.js"></script>
	<script type="text/javascript" src="js/webadmin_common.js"></script>
</head>

<body>
<form action="<?=basename(__FILE__)?>?<?=htmlentities(http_build_query($_GET))?>" method="post" id="data_form" name="data_form" enctype="multipart/form-data">
	<?php $attribute = 'id'; ?>
	<input type="hidden" name="<?=$attribute?>" value="<?=$model->$attribute?>" />
	<table width="1000" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td height="70" align="right" valign="middle" class="icontxt"><table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="50" align="center"><a href="#" onclick="return submitFormOnClick('data_form');"><img src="images/iconSave.png" alt="Save" width="32" height="32" border="0" /><br />
							&nbsp;Save&nbsp;</a></td>
						<td width="50" align="center"><a href="cms_user_index.php"><img src="images/iconCancel.png" alt="Cancel" width="32" height="32" border="0" /><br />
							&nbsp;Cancel&nbsp;</a></td>
						<td>&nbsp;</td>
					</tr>
				</table></td>
		</tr>
		<tr>
			<td class="pagetitletxt">&nbsp;<strong><img alt="" src="images/iconList.jpg" width="48" height="48" style="vertical-align:middle" /> CMS Use Management </strong></td>
		</tr>
		<tr>
			<td align="left" valign="middle"><!-- Content -->
				
				<table border="0" cellpadding="0" cellspacing="0">
					<tr>
						<td width="120" align="right" valign="top" class="content">User Name</td>
						<td width="10" class="content" valign="top">:</td>
						<?php $attribute = 'user_name'; ?>
						<td class="content"><input type="text" class="content" name="<?=$attribute?>" value="<?=$model->$attribute?>" size="80" maxlength="80" />
							Max length: 80</td>
					</tr>
					<?php
					/*
					<tr>
						<td width="120" align="right" valign="top" class="content">Role</td>
						<td width="10" class="content" valign="top">:</td>
						<td class="content">
							<?php $attribute = 'role'; ?>
							<select name="<?=$attribute?>" class="content">
								<option value="1" <?php if($model->$attribute == '1') { echo 'selected'; } ?>>Admin</option>
								<option value="2" <?php if($model->$attribute == '2') { echo 'selected'; } ?>>User</option>
							</select>
						</td>
					</tr>
					*/
					?>
					<tr>
						<td width="120" align="right" valign="top" class="content">Login Name</td>
						<td width="10" class="content" valign="top">:</td>
						<?php $attribute = 'login_name'; ?>
						<td class="content"><input type="text" class="content" name="<?=$attribute?>" value="<?=$model->$attribute?>" size="50" maxlength="20" />
							Max length: 20</td>
					</tr>
					<tr>
						<td width="120" align="right" valign="top" class="content">Password</td>
						<td width="10" class="content" valign="top">:</td>
						<?php $attribute = 'password'; ?>
						<td class="content"><input type="password" class="content" name="<?=$attribute?>" size="50" maxlength="20" />
							Max length: 20</td>
					</tr>
				</table>
				
				<!-- End Content --></td>
		</tr>
		<tr>
			<td align="left" valign="middle">&nbsp;</td>
		</tr>
	</table>
</form>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit