uid) ? (int)$session->uid : 0; $name = isset($session->username) ? $session->username : 'Unknown'; $reason = 'No reason specified'; /* ========================= DB CONNECTION SAFE CHECK ========================= */ if($uid > 0){ $query = "SELECT reason FROM ".TB_PREFIX."banlist WHERE uid = $uid LIMIT 1"; // 🔥 AICI E FIXUL IMPORTANT $res = mysqli_query($database->dblink, $query); if($res && mysqli_num_rows($res) > 0){ $row = mysqli_fetch_assoc($res); if(!empty($row['reason'])){ $reason = $row['reason']; } } } ?>
Hello !
You have been banned due to a violation of the rules.
Your banning reason is .