403Webshell
Server IP : 122.155.17.190  /  Your IP : 18.188.103.74
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 : t1bnc ( 1042)
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/t1bnc/domains/t1bnc.ac.th/public_html/travels/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/t1bnc/domains/t1bnc.ac.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;?> สำนักงานเทศบาลตำบลห้วยใหญ่  เลขที่  59  หมู่ที่ 3 ตำบลห้วยใหญ่ อำเภอบางละมุง จังหวัดชลบุรี 20150 : www.huayyai.go.th/>
<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" />

<link href="../css/Image-Slider2.css" rel="stylesheet" type="text/css"/>
<link  href="../css2/menu-left.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="../css2/imgSlider.css">


<link rel="stylesheet" href="../css-top/topmenu.css">
 <script src="../css-top/src_rmenu.js"></script>
 

<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;	
}
-->
</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;
}
.style7 {font-size: 18px}
.style8 {
	color: #FFFFFF;
	font-size: 20px;
}
-->
</style>


  <!-- Theme style  -->
	<link rel="stylesheet" href="../css4/style.css">
	<!-- -->
<!-- topmenu1-->
<link rel="stylesheet" href="../css4/topmenu1.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,700' rel='stylesheet' type='text/css'>
<!-- -->	


<style type="text/css">
<!--
body,td,th {
	color: #000000;
}
-->
</style>

</head>

<body  background="../images/0bg3.png" style="background-repeat:no-repeat; background-position:top">









<!-- content -->
<div align="center">
  <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
    
	
	   <tr>
      <td height="224" align="center" valign="top"><img src="../images/01logo.png" width="980" height="224" class="btn-animated1"/></td>
	</tr>
      <tr>
        <td height="900" align="center" valign="top">&nbsp;</td>
      </tr>
      
      <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 height="100" 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>
          <th height="5" align="center" valign="top" scope="col">&nbsp;</th>
        </tr>
        <tr>
          <td align="center" valign="top">
            <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <th valign="top" scope="col"><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"><style>
			  .bn632-hover {
  width: 400px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  margin: 20px;
  height: 55px;
  text-align:center;
  border: none;
  background-size: 300% 100%;
  border-radius: 50px;
  moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.bn632-hover:hover {
  background-position: 100% 0;
  moz-transition: all .4s ease-in-out;
  -o-transition: all .4s ease-in-out;
  -webkit-transition: all .4s ease-in-out;
  transition: all .4s ease-in-out;
}

.bn632-hover:focus {
  outline: none;
}

.bn632-hover.bn22 {
  background-image: linear-gradient(
    to right,
    #0ba360,
    #3cba92,
    #30dd8a,
    #2bb673
  );
  box-shadow: 0 4px 15px 0 rgba(23, 168, 108, 0.75);
}</style></td>
			  </tr>
			<tr>
			   <td class="title2"><div align="center"><div align="center"><a href="/"><button class="bn632-hover bn22"> ศูนย์ข้อมูลสำหรับนักท่องเที่ยว </button></a></div></div></td>
			</tr>
			</table>
		  </div></th>
              </tr>
              <tr>
                <td valign="top">
				
				<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="อัลบั้มภาพแหล่งท่องเที่ยว" 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>				</td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td valign="top"><table width="1000" align="center" cellpadding="0" cellspacing="0">
              
            </table></td>
              </tr>
            </table>          </td>
        </tr>
      </table>				  </th>
                </tr>
              </table></th>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
  </table>
  <span class="style7"><br />
  </span></div>
<!-- end_content -->

<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>
</body>
</html>




Youez - 2016 - github.com/yon3zu
LinuXploit