Cylul007 Webshell
Server :
Linux ip-148-66-134-25.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
php :
8.0.30
on
cgi-fcgi
Time
25 Nov 2024 17:49:24
Current Directory :
/
home
/
amvm
/
public_html
/
sangha
/
myadmin
/
Upload File :
Mass Deface
Home
Bypass Passwd
Current File : /home/amvm/public_html/sangha/myadmin/slide.php
<?php include('header.php');?> <!-- =============================================== --> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Slider </h1> <ol class="breadcrumb"> <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> <li><a href="#">Slider</a></li> <li class="active">View</li> </ol> </section> <!-- Main content --> <div class="callout callout-info"> <h4>Tip!</h4> <p>This page will show you all the Sliders upload by the user.</p> </div> <a href="add-slide.php" class="btn btn-info" style="margin-left:15px;">Add Slide</a> <!-- Default box --> <?php if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } $no_of_records_per_page = 10; $offset = ($pageno-1) * $no_of_records_per_page; $total_pages_sql = "SELECT COUNT(*) FROM slider WHERE status='active'"; $result = mysqli_query($mysql_con, $total_pages_sql); $total_rows = mysqli_fetch_array($result)[0]; $total_pages = ceil($total_rows / $no_of_records_per_page); $sql = "SELECT * FROM slider WHERE status= 'active' LIMIT $offset, $no_of_records_per_page"; $result = mysqli_query($mysql_con, $sql); if (isset($_GET['delete_id'])){ $page_id = $_GET['delete_id']; $sql = "UPDATE slider SET status='inactive' WHERE id = '$page_id' "; $query = mysqli_query($mysql_con, $sql); header ('location: slide.php'); } $counter=$offset+1; ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-xs-12"> <!-- /.box --> <div class="box"> <div class="box-header"> <h3 class="box-title">Data Table With Full Features</h3> </div> <!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Sr.No.</th> <th>Title</th> <th>Slides</th> <th>Action</th> </tr> </thead> <tbody> <?php $sr_no = 1; while($row = mysqli_fetch_array($result)) {?> <tr> <td><?php echo $sr_no ; ?></td> <td><?php echo $row['title'] ; ?></td> <td><img width="300" height="100" src="../myadmin/slider/<?php echo $row['picture'] ;?>"></td> <td> <a href="slide.php?delete_id=<?php echo $row["id"] ; ?> " class="btn btn-danger">Delete</a> </td> </tr> <?php $sr_no ++; }?> </tbody> </table> </div> <!-- /.box-body --> <!--Paging Start--> <ul class="pagination"> <li><a href="?pageno=1">First</a></li> <li class="<?php if($pageno <= 1){ echo 'disabled'; } ?>"> <a href="<?php if($pageno <= 1){ echo '#'; } else { echo "?pageno=".($pageno - 1); } ?>">Prev</a> </li> <li class="<?php if($pageno >= $total_pages){ echo 'disabled'; } ?>"> <a href="<?php if($pageno >= $total_pages){ echo '#'; } else { echo "?pageno=".($pageno + 1); } ?>">Next</a> </li> <li><a href="?pageno=<?php echo $total_pages; ?>">Last</a></li> </ul> <!--Paging End--> </div> <!-- /.box --> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- /.content-wrapper --> <?php include("footer.php"); ?>
./LuLlaby007 ♥ Tata Cantik - Copyright 2k18