Advertisement
Guest User

Paul's thing

a guest
May 14th, 2016
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. <?php
  2. require ('steamauth/steamauth.php');
  3. ?>
  4. <!DOCTYPE html>
  5. <html lang="en">
  6. <head>
  7. <meta charset="utf-8">
  8. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  9. <meta name="viewport" content="width=device-width, initial-scale=1">
  10. <title>Exodus Gaming - Player Stats - Cicada</title>
  11. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
  12. <!--[if lt IE 9]>
  13. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  14. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  15. <![endif]-->
  16. <style>
  17. .table {
  18. table-layout: fixed;
  19. word-wrap: break-word;
  20. }
  21. </style>
  22. <script src="https://use.fontawesome.com/6a191e13bf.js"></script>
  23. </head>
  24. <body style="background-color: #EEE;">
  25. <div class="container" style="margin-top: 30px; margin-bottom: 30px; padding-bottom: 10px; background-color: #FFF;">
  26. <h1>Player Stats</h1>
  27. <span class="small pull-left" style="padding-right: 10px;">Exodus Gaming - Cicada</span>
  28. <hr>
  29. <?php
  30. if(!isset($_SESSION['steamid'])) {
  31. ?>
  32. <?php
  33. $servername = "localhost";
  34. $username = "***********";
  35. $password = "************";
  36. $dbname = "************";
  37.  
  38. // Create connection
  39. $conn = mysqli_connect($servername, $username, $password, $dbname);
  40. // Check connection
  41. if (!$conn) {
  42. die("Connection failed: " . mysqli_connect_error());
  43. }
  44. ?>
  45. <table class="table table-striped table-advance table-hover">
  46. <h4>
  47. <i class="fa fa-money fa-fw"></i> <?php echo "Cicada Rich List"; ?>
  48. </h4>
  49. <hr>
  50. <thead>
  51. <tr>
  52. <th><i class="fa fa-user"></i> <?php echo "Name"; ?></th>
  53. <th><i class="fa fa-money"></i> <?php echo "Cash"; ?></th>
  54. <th><i class="fa fa-bank"></i> <?php echo "Bank Account"; ?></th>
  55. </tr>
  56. </thead>
  57. <?php
  58. $sql = "SELECT `name`, `cash`, `bankacc` FROM `players` ORDER BY `bankacc` DESC, `cash` DESC LIMIT 10";
  59.  
  60. $result = mysqli_query($conn, $sql);
  61. while ($row = mysqli_fetch_assoc($result)) {
  62. echo "<tr>";
  63. echo "<td>" . $row["name"] . "</td>";
  64. echo "<td>" . $row["cash"] . "</td>";
  65. echo "<td>" . $row["bankacc"] . "</td>";
  66. echo "</tr>";
  67. };
  68. mysqli_close($conn);
  69.  
  70. ?>
  71. </table>
  72. <?php
  73. echo "<div align='center'>";
  74. loginbutton();
  75. echo "</div>";
  76. } else {
  77. include ('steamauth/userInfo.php');
  78.  
  79. ?>
  80.  
  81. <div style='float:left;'>
  82. <a href='http:www.exodusgaming.net/'>
  83. <button class='btn btn-success' style='margin: 2px 3px;' type='button'>Homepage</button>
  84. </a>
  85.  
  86. <a href='https://www.facebook.com/exodusgamingcommunity/'>
  87. <button class='btn btn-warning' style='margin: 2px 3px;' type='button'>Facebook</button>
  88. </a>
  89. </div>
  90. <br>
  91. <br>
  92. <h4 style='margin-bottom: 3px; float:left;'><?=$steamprofile['personaname']?> Stats:</h4><span style='float:right;'><?php logoutbutton(); ?></span>
  93.  
  94. <div style='margin: 30px auto; text-align: center;'>COMING SOON!</div><br>
  95. <?php
  96. }
  97. ?>
  98. <hr>
  99. <div class="pull-right">
  100. <i>This page is powered by <a href="http://steampowered.com">Steam</a></i>
  101. </div>
  102. Created by Paul Firmin<br>
  103. Exodus Gaming Founder
  104. </div>
  105.  
  106. <!--Version 3.1.1-->
  107. </body>
  108. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement