403Webshell
Server IP : 119.59.102.212  /  Your IP : 3.133.157.170
Web Server : Apache/2
System : Linux narin 2.6.32-042stab142.1 #1 SMP Tue Jan 28 23:44:17 MSK 2020 x86_64
User : yangkam ( 1022)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/user/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/user/edit_user.php
<?php
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","10");
if($status_module[0]!=1)	{	
	fieldset_no_module();
}
import_request_variables('pG', 'p_');
if($p_id_user!="")							{	     $id_user=trim($p_id_user);		}

$navig['manage_user']="ระบบสมาชิก";
$navig['edit_user']="แก้ไขข้อมูล";

navigator($navig);
echo "<br>";
bar_header("แก้ไขข้อมูล"); // Bar_Header
fieldset_top("จัดการระบบสมาชิก");
$data_profile = select_query_object("*","cms_user_profile","id_user",$id_user);
$name_profile = $data_profile->name;
$surname_profile = $data_profile->surname;
$email_profile = $data_profile->email;
$addres_profile = $data_profile->address;
$telephone_profile = $data_profile->telephone;
$picure_profile = $data_profile->picture;
$id_user = $data_profile->id_user;
$sex = $data_profile->sex;
?>
<form name="edit_form" method="post" action="index.php?mod=edit_user_output&path=user" enctype="multipart/form-data" />
<table align="center" width="98%" border="0">

	<tr height='30'>
		<td width="6%">
			
		</td>
		<td width="29%">
		<?php print_arr1(); ?>
		 รูปภาพ
		</td>
		<td>
		<?php
			
			if (file_exists("$_SESSION[web_name]/users/$id_user/user_picture/$picure_profile"))
				echo "<img src='$_SESSION[web_name]/users/$id_user/user_picture/$picure_profile' />";
			else
				print_nopic();
		?>
		</td>
	</tr>

	<tr height='30'>		<td width="6%">
			
		</td>
		<td width="29%">
		<?php print_arr1(); ?>
		 อัพรูปภาพใหม่
		</td>
		<td>
		<input name="picture_file" type="file" size="50px" >
		</td>
	</tr>
	
	<tr height='30'>		<td width="6%">
			
		</td>
		<td width="29%">
		<?php print_arr1(); ?>
		 ชื่อ
		</td>
		<td width="100%" align="left"> <input type="text" name="name" value="<?php echo $name_profile?>" />
		</td>
	</tr>
	
		<tr height='30'>		<td width="6%">
			
		</td>
		<td width="29%">
		<?php print_arr1(); ?>
		 เพศ
		</td>
		<td width="100%" align="left">
			<select name="sex">
				<?php
					if($sex==M)
						echo "<option value='M' selected='selected'>ชาย</option>";
					else
						echo "<option value='M'>ชาย</option>";
						
					if($sex==F)
						echo "<option value='F' selected='selected'>หญิง</option>";
					else
						echo "<option value='F'>หญิง</option>";
				?>
			</select>
		</td>
	</tr>
	
		<tr height='30'>
		<td>
			
		</td>
		<td>
		<?php print_arr1(); ?>
		 นามสกุล
		</td>
		<td> <input type="text" name="surname" value="<?php echo $surname_profile?>" />
		</td>
	</tr>
		<tr height='30'>		<td width="6%">
			
		</td>
		<td width="">
		<?php print_arr1(); ?>
		 อีเมลล์
		</td>
		<td> <input type="text" name="email" value="<?php echo $email_profile?>" />
		</td>
	</tr>
		<tr height='30'>		<td width="6%">
			
		</td>
		<td width="">
		<?php print_arr1(); ?>
		 ที่อยู่
		</td>
		<td> <input type="text" name="address" value="<?php echo $address_profile?>" />
		</td>
	</tr>
		<tr height='30'>		<td width="6%">
			
		</td>
		<td width="">
		<?php print_arr1(); ?>
		 เบอร์โทรศัพท์
		</td>
		<td> <input type="text" name="tel" value="<?php echo $telephone_profile?>" />
		</td>
	</tr>
	
	<tr height='30'>		<td width="6%">
			
		</td>
		<td>
		<?php print_arr1(); ?>
		 คลิกเพื่อเปลี่ยนรหัสผ่าน
		</td>
		<td> <input type="checkbox" name="change_pass" onclick="enable_pass()"/>
		</td>
	</tr>
	
		</tr>
		
		<tr height='30'>		<td width="6%">
			
		</td>
		<td>
		<?php print_arr1(); ?>
		รหัสผ่านใหม่
		</td>
		<td> <input type="password" name="new_pass" disabled="disabled"/>
		</td>
	</tr>
	<tr height='30'>		<td width="6%">
			
		</td>
		<td>
		<?php print_arr1(); ?>
		ยืนยันรหัสผ่านใหม่
		</td>
		<td> <input type="password" name="new_pass2" disabled="disabled"/>
		</td>
	</tr>
	
		<tr height='30'>		<td width="6%">
			
		</td>
		<td width="">
		
		 
		</td>
		<td> <input type="submit" name="btn_submit" value="แก้ไขข้อมูล" / onmouseover=this.style.cursor='hand'>
		<input type="hidden" name="id_user_edit" value="<?php echo $id_user;?>" />
		</td>
	</tr>
</table>
</form>
<?echo fieldset_down();?>
<script language="javascript">
	function enable_pass(){	
			document.edit_form.new_pass.disabled = false;
			document.edit_form.new_pass2.disabled = false;
	}
	
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit