<?php
// We need to use sessions, so you should always start sessions using the below code.
session_start();
// If the user is not logged in redirect to the login page...
if (!isset($_SESSION['seniorpasteur'])) {
	header('Location: ../frontpage/index.html');
	exit;}
  ?>



<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    
     <title>Register</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A==" crossorigin="anonymous" referrerpolicy="no-referrer">
    <link rel="stylesheet" href="/style_copy.css">
</head>
<body>
    <div class="register">
        <h1>Register</h1>
        <form action="../includes/register.php" method="post" autocomplete="off">
            <div><label for="username">
                username</i>
            </label>
            <input type="text" name="username" placeholder="Username" id="username" required></div><br>
            <div><label for="password">
                password
            </label>
            <input type="password" name="password" placeholder="Password" id="password" required></div><br>
            <div><label for="email">
                email</i>
            </label>
            <input type="email" name="email" placeholder="Email" id="email" required><br> </div></br>
            <div>
                <label for="level1">Level:</label> <br>
                
                <input type="radio" name="level1" value="admin" placeholder="admin">Admin 
                <input type="radio" name="level1" value="pasteur" placeholder="pasteur">pasteur 
                <input type="radio" name="level1" value="checkin" placeholder="checkin">checkin 
                <input type="radio" name="level1" value="senior" placeholder="senior">seniorPasteur 
                <input type="radio" name="level1" value="children" placeholder="children">children Ministry
                <input type="radio" name="level1" value="frontdesk" placeholder="frontdesk">Front Desk
            </div>
            
            <div><input type="submit" value="Register"></div>
        </form>
    </div>

</body>
</html>