diff --git a/core/classes.php b/core/classes.php index c418ed5..0541482 100644 --- a/core/classes.php +++ b/core/classes.php @@ -21,9 +21,9 @@ class PartyStarter { '; $grubloxlogotohome = ''; $query = $con->prepare('SELECT money FROM users WHERE id=:id'); - $query->bindParam(':id', $id); + $query->bindParam(':id', $_SESSION['user'], PDO::PARAM_INT); $query->execute(); - $money = $query->fetch(PDO::FETCH_ASSOC) ["money"] ?? "-0"; + $money = $query->fetch(PDO::FETCH_ASSOC)["money"] ?? "0"; if ($money < 1000000) { // Anything less than a million @@ -39,7 +39,7 @@ class PartyStarter { } // messy shit sorry mario1 fix it urself :trol: - $rightside = ' '; } diff --git a/error.php b/error.php index eeeccb7..8ebc418 100644 --- a/error.php +++ b/error.php @@ -14,6 +14,9 @@ $conType = $_POST['err']; } else { $conType = $_GET['err']; } +if(isset($conType)) { +header("Location: /"); +} if($conType == 404) { $errorImage = ""; $errorTextMain = "404 Not found"; diff --git a/user.php b/user.php index b85f11c..b9dc83f 100644 --- a/user.php +++ b/user.php @@ -36,20 +36,24 @@ $getitstarted->header();
-
- + " class="border border-1 float-start me-3" width=125 height=125> +
+ "i love sex grublox"

+
+
Friends
+
0
+
+
+
Tokens
+
+
+ Add friend +
+