UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
gallery.php
<?php include "top.php"; ?> <br><br><br><br> <!--<div> <img src="assets/images/inner-banner.jpg" class="img-responsive"/> </div>--> <!--/gallery --> <section class="w3-gallery py-5"> <h3 class="title-big text-center">GALLERY IMAGES</h3> <div class="container py-md-5"> <ul class="portfolio-area clearfix p-0 m-0"> <?php $cat=$_GET['cat']; $limit=3; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT * FROM gallerytb WHERE gallerycategory='{$cat}' ORDER BY id DESC LIMIT {$offset},{$limit}"; $result = mysqli_query($conn,$sql); if(mysqli_num_rows($result)>0){ $serial=$offset + 1; while ($row=mysqli_fetch_assoc($result)) { ?> <li class="portfolio-item2 content" data-id="id-1" data-type="cat-item-1"> <span class="image-block"> <a class="image-zoom" href="cpanel/gallery_images/<?php echo $row['file_name'];?>" data-gal="prettyPhoto[gallery]"> <div class="content-overlay"></div> <img src="cpanel/gallery_images/<?php echo $row['file_name'];?>" class="img-fluid w3layouts agileits" alt="portfolio-img"> <div class="content-details fadeIn-bottom"> <h3 class="content-title"><?php $row['gallerycategory'];?></h3> </div> </a> </span> </li> <?php $serial++; } } ?> </ul> <!--end portfolio-area --> <!-- pagination --> <div class="pagination-style mt-5 pt-lg-4"> <?php $sql1="SELECT * FROM gallerytb WHERE gallerycategory='{$cat}'"; $result1=mysqli_query($conn,$sql1) or die("Query Failed."); if(mysqli_num_rows($result1)>0){ $total_record=mysqli_num_rows($result1); $total_page= ceil($total_record/$limit); echo '<ul>'; if($page > 1){ echo '<li> <a href="gallery.php?page='.($page - 1).'&cat='.$cat.'"> <span class="fas fa-angle-double-left" aria-hidden="true"></span> </a> </li>'; } for($i=1; $i<=$total_page; $i++){ if($i==$page) { $active="active"; }else { $active=""; } echo '<li><a class="'. $active .'" href="gallery.php?page=' .$i. '&cat='.$cat.'">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a href="gallery.php?page='.($page + 1).'&cat='.$cat.'"><span class="fas fa-angle-double-right" aria-hidden="true"></span></a></li>'; } echo '</ul>'; } ?> </div> <!-- //pagination --> </div> <!-- //gallery container --> </section> <!-- //gallery--> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec