Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include 'core/init.php';
- $title="Acccount Disabler";
- protect_page();
- admin_protect();
- include 'includes/overall/headera.php'; ?>
- <h1>Account Disable System</h1>
- the current time is <?php date_default_timezone_set("America/New_York"); echo date("h:i:sa");
- ?>
- <hr>
- <style>
- table {
- border-collapse: collapse;
- text-align: center;
- margin: 0px auto;
- }
- table, td, th {
- border: 1px solid black;
- }
- </style>
- <?php
- include 'includes/admin/amenu.php';
- ?>
- <br/>
- <br/>
- <p style="font-size:16px;text-align:center;">ACCOUNT DISABLE SYSTEM V1.0<br>
- Please do not abuse this system any abuse of this system will automaticlly<br/> result in Account deletion and termination. <br/>
- <strong>for status 0 means acct is disabled 1 means acct is enabled
- </strong>
- </p>
- <table border="1" width="550" height="68">
- <tr><td width='120'>Users</td><td width='40'>Status</td><td width='50'>Rank</td><td>-</td><td width="102">Admin</td><td width="102">Moderator</td><td width="102">Builder</td></tr>
- <tr><td></td><td></td></tr>
- <?php
- $lquery = mysql_query("SELECT user_id, username, type, active FROM users");
- $lquery = mysql_query("SELECT user_id, username ,type, active FROM users WHERE active ='1'");
- while($run_list = mysql_fetch_array($lquery)){
- $id = $run_list['user_id'];
- $username = $run_list['username'];
- $type = $run_list['type'];
- $active = $run_list['active'];
- ?>
- <tr><td><?php echo $username ?></td>
- <td><?php echo $active ?></td>
- <td><?php echo $type ?></td><td>
- <?php
- echo "<td>";
- if($type == 'admin'){
- echo "<a href='updateusera.php?id=&type=$type'>Revoke Admin </a>";
- }else{
- echo "<a href='updateusera.php?id=$id&type=$type'>Grant Admin </a>";
- }?>
- <?php
- echo "</td><td>";
- //============================================================================
- if($type == 'moderator'){
- echo "<a href='updateusera.php?id=$id&type=$type'>Revoke Moderator </a>";
- }else{
- echo "<a href='updateusera.php?id=$id&type=$type'>Grant Moderator </a>";
- }
- ?>
- <?php
- echo "</td><td>";
- //============================================================================
- if($type == 'builder'){
- echo "<a href='updateusera.php?id=$id&type=$type'>Revoke Builder</a>";
- }else{
- echo "<a href='updateusera.php?id=$id&type=$type'>Grant Builder</a>";
- }
- echo "</td>";
- ?>
- </td></tr>
- <?php
- }
- ?>
- </table>
- <?php include 'includes/overall/footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement