<th class="header"><abbr title="Server">Srv.</abbr></th> </tr> </thead> <tbody> <?php $playercount = 1; foreach ($db->query("SELECT * FROM accounts ORDER BY aliveFame DESC LIMIT 100;") as $rupee) { update($rupee['id']); $name = $rupee['name']; $guild = guild($rupee['id']); $guildname = guildname($guild); $alivefame = alivefame($rupee['id']); $aliveexp = aliveexp($rupee['id']); $characters = alivechars($rupee['id']); $stars = stars($rupee['id']); $lastseen = lastseen($rupee['id']); ?> <tr> <td><?php echo $playercount; ?> .</td> <td> <div class="star-container"> <a href="player.php?name=<?php echo $name; ?> "><?php echo $name; ?> </a>
<?php session_name('TF2MM'); session_start(); //$_SESSION gets set right here, if a previous page created session vars require_once './config.php'; require_once 'classes.php'; lastseen($_SESSION['id']); updateLocation($_SESSION['id'], $_SERVER['REMOTE_ADDR']);