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