<?phpfunction auth() {global $user;if(isset($user['id'])) header('Location: /index.php');}function no_auth() {global $user;if(!isset($user['id'])) header('Location: /index.php');}?>