<?php if($user['rank'] == 'lost' or $user['rank'] == 'block') { echo 'Вы не авторизованы!<br>'; mysql_query("UPDATE `users` SET `session`='' where `id`='".num($user['id'])."'"); header('Location: index.php'); exit; } ?>