<?phpfunction admin() {global $user;if($user[prava] < 5) header('Location: /');} function moder() {global $user;if($user[prava] < 4) header('Location: /');}?>