Hello there, I could help you with this issue.
What you have to do is: Go to client.php and add the following thing
<?php
if(mysql_num_rows(mysql_query("SELECT NULL FROM bans WHERE value = '".$_SESSION['user']['username']."' LIMIT 1")) > 0){
header('Location: site.com/logout');
exit();
}...