UnknownSec Bypass
403
:
/
var
/
www
/
santgyaneshwarji
/
cpanel
/ [
drwxr-xr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
message_list.php
<?php include "top.php"; include "header.php"; include "menu.php"; ?> <div class="table-agile-info"> <div class="panel panel-default"> <div class="panel-heading"> Faculty List </div> <div class="row w3-res-tb"> <div class="col-sm-5 m-b-xs"> <a href="add_message.php"><button class="btn btn-sm btn-default"><b>Add Message</b></button></a> </div> <div class="col-sm-4"> </div> <div class="col-sm-3"> <div class="input-group"> <!--<input type="text" class="input-sm form-control" name="search" id="search" placeholder="Search"> <span class="input-group-btn"> <button class="btn btn-sm btn-default" type="button">Go!</button> </span>--> </div> </div> </div> <div class="table-responsive"> <?php //include "config.php"; $limit=3; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT * FROM messagetb 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-striped b-t b-light"> <thead> <tr> <th style="width:20px;"> S.No. </th> <th>Message From</th> <th>Name</th> <th>Descripion</th> <th>Photo</th> <th style="width:30px;"></th> <th style="width:30px;"></th> </tr> </thead> <tbody> <?php $serial=$offset + 1; while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td><?php echo $serial; ?></td> <td><?php echo $row['messagefrom']; ?></td> <td><?php echo $row['messagename']; ?></td> <td> <?php echo mb_strimwidth($row['long_desc'], 0, 100, "..."); //echo $row['long_desc']; ?> </td> <td><img src='message_images/<?php echo $row['image_name']; ?>' width="100px" height="50px"></td> <td><a href='edit_message.php?id=<?php echo $row["id"]; ?>'><i class=" glyphicon glyphicon-pencil"></i></a></td> <td><a href='delete_message.php?id=<?php echo $row["id"]; ?> & file_name=<?php echo $row["image_name"]; ?>'><i class="glyphicon glyphicon-trash"></i></a></td> </tr> <?php $serial++;}?> </tbody> </table> <?php }?> </div> <footer class="panel-footer"> <div class="row"> <?php $sql1="SELECT * FROM messagetb"; $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 '<div class="col-sm-5 text-center"> <small class="text-muted inline m-t-sm m-b-sm">Showing '.($offset+1).' - '.($serial-1).' out of '.$total_record.' </small> </div> <div class="col-sm-7 text-right text-center-xs"> <ul class="pagination pagination-sm m-t-none m-b-none">'; if($page > 1){ echo '<li><a href="message_list.php?page='.($page - 1).'"><i class="fa fa-chevron-left"></i></a></li>'; } for($i=1; $i<=$total_page; $i++){ if($i==$page) { $active="active"; }else { $active=""; } echo '<li class="'. $active .'"><a href="message_list.php?page=' .$i. '">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a href="message_list.php?page='.($page + 1).'"><i class="fa fa-chevron-right"></i></a></li>'; } echo '</ul> </div> </div> </footer>'; } ?> </div> </div> <?php include "footer.php"; ?>
Copyright © 2025 - UnknownSec