UnknownSec Bypass
403
:
/
var
/
www
/
stsupport
/
admin
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
users.php
<?php include "header.php"; if($_SESSION["user_role"]=='0'){ header("Location: {$hostname}/admin/license.php"); } ?> <div id="admin-content"> <div class="container"> <div class="row"> <div class="col-md-10"> <h1 class="admin-heading">All Users</h1> </div> <div class="col-md-2"> <a class="add-new" href="add-user.php">add user</a> </div> <div class="col-md-12"> <?php include "config.php"; $limit=10; if(isset($_GET['page'])){ $page=$_GET['page']; }else{ $page=1; } $offset= ($page-1)*$limit; $sql="SELECT * FROM user ORDER BY user_id LIMIT {$offset},{$limit}"; $result=mysqli_query($conn,$sql) or die("Query Failed."); if(mysqli_num_rows($result)>0){ ?> <table class="content-table"> <thead> <th>S.No.</th> <th>Full Name</th> <th>User Name</th> <th>Role</th> <th>Edit</th> <th>Delete</th> </thead> <tbody> <?php $serial=$offset+1; while ($row = mysqli_fetch_assoc($result)) { ?> <tr> <td class='id'><?php echo $serial; ?></td> <td><?php echo $row['first_name']. " ".$row['last_name']; ?></td> <td><?php echo $row['username']; ?></td> <td> <?php if($row['role']==0){ echo "Normal User"; }else { echo "Admin"; } ?> </td> <td class='edit'><a href='update-user.php?id=<?php echo $row["user_id"]; ?>'><i class='fa fa-edit'></i></a></td> <td class='delete'><a href='delete-user.php?id=<?php echo $row["user_id"]; ?>'><i class='fa fa-trash-o'></i></a></td> </tr> <?php $serial++; } ?> </tbody> </table> <?php } $sql1="SELECT * FROM user"; $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 href="users.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 href="users.php?page=' .$i. '">' .$i. '</a></li>'; } if($total_page>$page){ echo '<li><a href="users.php?page='.($page + 1).'">Next</a></li>'; } echo "</ul>"; } ?> </div> </div> </div> </div> <?php include "header.php"; ?>
Copyright © 2025 - UnknownSec