Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <!-- Meta, title, CSS, favicons, etc. -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>TheClansPvP | Home</title>
- <!-- Bootstrap -->
- <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
- <!-- Font Awesome -->
- <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
- <!-- iCheck -->
- <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
- <!-- bootstrap-progressbar -->
- <link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
- <!-- jVectorMap -->
- <link href="css/maps/jquery-jvectormap-2.0.3.css" rel="stylesheet"/>
- <!-- Custom Theme Style -->
- <link href="../build/css/custom.min.css" rel="stylesheet">
- </head>
- <?php
- ob_start();
- session_start();
- require_once 'dbconnect.php';
- // if session is not set this will redirect to login page
- if( !isset($_SESSION['user']) ) {
- header("Location: index.php");
- exit;
- }
- // select loggedin users detail
- $res=mysql_query("SELECT * FROM users WHERE userId=".$_SESSION['user']);
- $userRow=mysql_fetch_array($res);
- ?>
- <body class="nav-md">
- <div class="container body">
- <div class="main_container">
- <div class="col-md-3 left_col">
- <div class="left_col scroll-view">
- <div class="navbar nav_title" style="border: 0;">
- <a href="home.php" class="site_title"><span>TheClansPvP</span></a>
- </div>
- <div class="clearfix"></div>
- <?php include_once("profileinfo.php") ?>
- <br />
- <br />
- <?php include_once("sidebar.php") ?>
- <?php include_once("sidebarfooter.php") ?>
- </div>
- </div>
- <?php include_once("header.php") ?>
- <!-- page content -->
- <div class="right_col" role="main">
- <!-- STUFF GOES HERE -->
- <br>
- <br>
- <br>
- <h1>Welcome to TheClansPvP - Admin Panel</h1><hr>
- <div class="row">
- <div class="col-md-12">
- <div class="x_panel">
- <div class="x_title">
- <h2>Staff Users <small>All Staff Users Registered for The Admin Panel</small></h2>
- <ul class="nav navbar-right panel_toolbox">
- <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
- </li>
- <li><a class="close-link"><i class="fa fa-close"></i></a>
- </li>
- </ul>
- <div class="clearfix"></div>
- </div>
- <div class="x_content">
- <div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
- <div class="col-md-7" style="overflow:hidden;">
- <table class="table table-striped">
- <thead>
- <tr>
- <th>ID</th>
- <th>Username</th>
- <th>Email</th>
- <th>Dev Perms</th>
- <th>Admin Perms</th>
- <th>Mod Perms</th>
- <th>Helper Perms</th>
- </tr>
- </thead>
- <tbody>
- <?php
- require_once 'dbconnect.php';
- $sql=mysql_query("SELECT * FROM users");
- $userInfo=mysql_fetch_array($sql);
- echo "<tr>";
- echo "<td>".$userInfo['userId']."</td>";
- echo "<td>".$userInfo['userName']."</td>";
- echo "<td>".$userInfo['userEmail']."</td>";
- echo "<td>".$userInfo['Dev']."</td>";
- echo "<td>".$userInfo['Admin']."</td>";
- echo "<td>".$userInfo['Mod']."</td>";
- echo "<td>".$userInfo['Helper']."</td>";
- echo "</tr>";
- ?>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- STUFF ENDS HERE -->
- <?php include_once("footer.php") ?>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement