'; } function header() { // to not confuse you i renamed it from loggedoutheader to header since qzip made it both lol require 'core/config.php'; $grubloxlogotohome = ''; $showhome = ''; if (isset($_SESSION['user'])) { $showhome = ' '; $query = $con->prepare('SELECT COUNT(id) FROM users WHERE id=:id'); $query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT); $query->execute(); $userExists = $query->fetchColumn(); if($userExists <= 1) { // php me when } else { unset($_SESSION["user"]); } $grubloxlogotohome = ''; $query = $con->prepare('SELECT money FROM users WHERE id=:id'); $query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT); $query->execute(); $money = $query->fetch(PDO::FETCH_ASSOC)["money"] ?? "0"; if ($money < 1000000) { // Anything less than a million $money = number_format($money); } else if ($money < 1000000000) { // Anything less than a billion $money = number_format($money / 1000000, 1) . 'M'; } else { // At least a billion $money = number_format($money / 1000000000, 1) . 'B'; } // messy shit sorry mario1 fix it urself :trol: $rightside = ' '; } else { $rightside = ' '; } echo ' '; } } ?>