Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require ('steamauth/steamauth.php');
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>Exodus Gaming - Player Stats - Cicada</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
- <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
- <![endif]-->
- <style>
- .table {
- table-layout: fixed;
- word-wrap: break-word;
- }
- </style>
- <script src="https://use.fontawesome.com/6a191e13bf.js"></script>
- </head>
- <body style="background-color: #EEE;">
- <div class="container" style="margin-top: 30px; margin-bottom: 30px; padding-bottom: 10px; background-color: #FFF;">
- <h1>Player Stats</h1>
- <span class="small pull-left" style="padding-right: 10px;">Exodus Gaming - Cicada</span>
- <hr>
- <?php
- if(!isset($_SESSION['steamid'])) {
- ?>
- <?php
- $servername = "localhost";
- $username = "***********";
- $password = "************";
- $dbname = "************";
- // Create connection
- $conn = mysqli_connect($servername, $username, $password, $dbname);
- // Check connection
- if (!$conn) {
- die("Connection failed: " . mysqli_connect_error());
- }
- ?>
- <table class="table table-striped table-advance table-hover">
- <h4>
- <i class="fa fa-money fa-fw"></i> <?php echo "Cicada Rich List"; ?>
- </h4>
- <hr>
- <thead>
- <tr>
- <th><i class="fa fa-user"></i> <?php echo "Name"; ?></th>
- <th><i class="fa fa-money"></i> <?php echo "Cash"; ?></th>
- <th><i class="fa fa-bank"></i> <?php echo "Bank Account"; ?></th>
- </tr>
- </thead>
- <?php
- $sql = "SELECT `name`, `cash`, `bankacc` FROM `players` ORDER BY `bankacc` DESC, `cash` DESC LIMIT 10";
- $result = mysqli_query($conn, $sql);
- while ($row = mysqli_fetch_assoc($result)) {
- echo "<tr>";
- echo "<td>" . $row["name"] . "</td>";
- echo "<td>" . $row["cash"] . "</td>";
- echo "<td>" . $row["bankacc"] . "</td>";
- echo "</tr>";
- };
- mysqli_close($conn);
- ?>
- </table>
- <?php
- echo "<div align='center'>";
- loginbutton();
- echo "</div>";
- } else {
- include ('steamauth/userInfo.php');
- ?>
- <div style='float:left;'>
- <a href='http:www.exodusgaming.net/'>
- <button class='btn btn-success' style='margin: 2px 3px;' type='button'>Homepage</button>
- </a>
- <a href='https://www.facebook.com/exodusgamingcommunity/'>
- <button class='btn btn-warning' style='margin: 2px 3px;' type='button'>Facebook</button>
- </a>
- </div>
- <br>
- <br>
- <h4 style='margin-bottom: 3px; float:left;'><?=$steamprofile['personaname']?> Stats:</h4><span style='float:right;'><?php logoutbutton(); ?></span>
- <div style='margin: 30px auto; text-align: center;'>COMING SOON!</div><br>
- <?php
- }
- ?>
- <hr>
- <div class="pull-right">
- <i>This page is powered by <a href="http://steampowered.com">Steam</a></i>
- </div>
- Created by Paul Firmin<br>
- Exodus Gaming Founder
- </div>
- <!--Version 3.1.1-->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement