UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
mobileapp
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
gallery_category.php
<?php include "top.php";?> <style> /* pagination position styling */ .pagination { display: inline-block; } .pagination a { font-weight:bold; font-size:18px; color: black; float: left; padding: 8px 16px; text-decoration: none; border:1px solid black; } .pagination a.active { background-color: pink; } .pagination a:hover:not(.active) { background-color: skyblue; } </style> <!-- portfolio --> <section class="w3l-portfolio-8 py-5"> <div class="portfolio-main py-lg-3"> <div class="container"> <div class="title-content text-center"> <h6 class="sub-title">Gallery</h6> <h3 class="hny-title"><span>Gallery</span> Category</h3> </div> <div class="row galler-top mt-lg-5 mt-4"> <?php $limit=12; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT * FROM gallerycategorytb 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)) { ?> <div class="col-lg-4 col-12"> <a href="gallery.php?cat=<?php echo $row['gallerycategorytitle'];?>" class="mb-4" data-title="<?php $row['gallerycategorytitle'];?>"> <figure> <img src="../cpanel/gallery_category_images/<?php echo $row['image_name'];?>" alt="product" class="img-fluid "> </figure> </a> <p align="center" style="font-weight: bold"><a href="gallery.php?cat=<?php echo $row['gallerycategorytitle'];?>" style="text-align: center"><?php echo $row['gallerycategorytitle'];?></a></p> </div> <?php $serial++; } } ?> </div> <br><br> <!-- pagination elements --> <div align="center"> <div class="pagination"> <?php $pagLink=""; $sql1="SELECT * FROM gallerycategorytb"; $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); if($page>=2){ echo "<a href='gallery_category.php?page=".($page-1)."'> Prev </a>"; } for ($i=1; $i<=$total_page; $i++) { if ($i == $page) { $pagLink .= "<a class = 'active' href='gallery_category.php?page=" .$i."'>".$i." </a>"; } else { $pagLink .= "<a href='gallery_category.php?page=".$i."'> ".$i." </a>"; } }; echo $pagLink; if($page<$total_page){ echo "<a href='gallery_category.php?page=".($page+1)."'> Next </a>"; } } ?> </div> </div> </div> </div> </section> <!-- //portfolio --> <?php include "footer_all.php";?>
Copyright © 2025 - UnknownSec