diff --git a/libs/auth.php b/libs/auth.php index 3689108..12ee5e7 100755 --- a/libs/auth.php +++ b/libs/auth.php @@ -19,11 +19,25 @@ $result = $stmt->fetch(PDO::FETCH_ASSOC); if (!$result) return null; + + $stmt = $db->prepare("SELECT * FROM main.ban WHERE username = ?"); + $stmt->execute([$username]); - return $username; - } + $result = $stmt->fetch(PDO::FETCH_ASSOC); + if (!$result) return $username; + + $reason = $result['reason']; ?> + + +
+You are banned for .
+ + + \ No newline at end of file +?> diff --git a/libs/page.php b/libs/page.php index 890ab3c..74744ab 100755 --- a/libs/page.php +++ b/libs/page.php @@ -28,4 +28,4 @@