<? function ban() { global $user; if($user[ban] == 1) header('Location: /others/ban.php'); } function no_ban() { global $user; if($user[ban] == 0) header('Location: /index.php'); } ?>