Advertisement
CaptainDan

Untitled

Aug 7th, 2017
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.30 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <!-- Meta, title, CSS, favicons, etc. -->
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9.  
  10. <title>TheClansPvP | Home</title>
  11.  
  12. <!-- Bootstrap -->
  13. <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
  14. <!-- Font Awesome -->
  15. <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  16. <!-- iCheck -->
  17. <link href="../vendors/iCheck/skins/flat/green.css" rel="stylesheet">
  18. <!-- bootstrap-progressbar -->
  19. <link href="../vendors/bootstrap-progressbar/css/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet">
  20. <!-- jVectorMap -->
  21. <link href="css/maps/jquery-jvectormap-2.0.3.css" rel="stylesheet"/>
  22.  
  23. <!-- Custom Theme Style -->
  24. <link href="../build/css/custom.min.css" rel="stylesheet">
  25. </head>
  26. <?php
  27. ob_start();
  28. session_start();
  29. require_once 'dbconnect.php';
  30.  
  31. // if session is not set this will redirect to login page
  32. if( !isset($_SESSION['user']) ) {
  33. header("Location: index.php");
  34. exit;
  35. }
  36. // select loggedin users detail
  37. $res=mysql_query("SELECT * FROM users WHERE userId=".$_SESSION['user']);
  38. $userRow=mysql_fetch_array($res);
  39. ?>
  40.  
  41. <body class="nav-md">
  42. <div class="container body">
  43. <div class="main_container">
  44. <div class="col-md-3 left_col">
  45. <div class="left_col scroll-view">
  46. <div class="navbar nav_title" style="border: 0;">
  47. <a href="home.php" class="site_title"><span>TheClansPvP</span></a>
  48. </div>
  49.  
  50. <div class="clearfix"></div>
  51.  
  52. <?php include_once("profileinfo.php") ?>
  53.  
  54. <br />
  55. <br />
  56.  
  57. <?php include_once("sidebar.php") ?>
  58.  
  59. <?php include_once("sidebarfooter.php") ?>
  60.  
  61. </div>
  62. </div>
  63.  
  64. <?php include_once("header.php") ?>
  65.  
  66. <!-- page content -->
  67. <div class="right_col" role="main">
  68.  
  69. <!-- STUFF GOES HERE -->
  70.  
  71. <br>
  72. <br>
  73. <br>
  74. <h1>Welcome to TheClansPvP - Admin Panel</h1><hr>
  75.  
  76.  
  77. <div class="row">
  78. <div class="col-md-12">
  79. <div class="x_panel">
  80. <div class="x_title">
  81. <h2>Staff Users <small>All Staff Users Registered for The Admin Panel</small></h2>
  82. <ul class="nav navbar-right panel_toolbox">
  83. <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
  84. </li>
  85. <li><a class="close-link"><i class="fa fa-close"></i></a>
  86. </li>
  87. </ul>
  88. <div class="clearfix"></div>
  89. </div>
  90. <div class="x_content">
  91.  
  92. <div class="row" style="border-bottom: 1px solid #E0E0E0; padding-bottom: 5px; margin-bottom: 5px;">
  93. <div class="col-md-7" style="overflow:hidden;">
  94. <table class="table table-striped">
  95. <thead>
  96. <tr>
  97. <th>ID</th>
  98. <th>Username</th>
  99. <th>Email</th>
  100. <th>Dev Perms</th>
  101. <th>Admin Perms</th>
  102. <th>Mod Perms</th>
  103. <th>Helper Perms</th>
  104. </tr>
  105. </thead>
  106. <tbody>
  107.  
  108. <?php
  109. require_once 'dbconnect.php';
  110. $sql=mysql_query("SELECT * FROM users");
  111. $userInfo=mysql_fetch_array($sql);
  112. echo "<tr>";
  113. echo "<td>".$userInfo['userId']."</td>";
  114. echo "<td>".$userInfo['userName']."</td>";
  115. echo "<td>".$userInfo['userEmail']."</td>";
  116. echo "<td>".$userInfo['Dev']."</td>";
  117. echo "<td>".$userInfo['Admin']."</td>";
  118. echo "<td>".$userInfo['Mod']."</td>";
  119. echo "<td>".$userInfo['Helper']."</td>";
  120. echo "</tr>";
  121. ?>
  122.  
  123. </tbody>
  124. </table>
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. </div>
  131.  
  132. <!-- STUFF ENDS HERE -->
  133.  
  134. <?php include_once("footer.php") ?>
  135.  
  136. </div>
  137. </div>
  138. </body>
  139. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement