<?php if($puser["id"]!=Null){
	header("Location: ".$site."panel/home");
	exit;
}
?>
    <main>
        <section id="login">
            <div class="container">
                <div class="login__body register">
                    <div class="login__content">
                        <div class="login__top">
                            <span><i class="ri-login-box-line"></i>Kayıt Ol</span>
                            <h5>Üyeliğini oluştur.</h5>
                        </div>
                        <div class="form__body">
						<?php if(@$_GET["i"]=="err"){
							echo '<div class="alert alert-danger">Girdiğiniz mail adresiyle daha önce kayıt olunmuş.</div>';
						}if(@$_GET["i"]=="pass"){
							echo '<div class="alert alert-danger">Şifreler eşleşmiyor.</div>';
						}
						?>
                            <form action="" method="post">
							<input type="hidden" name="islem" value="register">
                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label for="">İsim</label>
                                        <input type="text" name="ad" id="" required class="form-control" placeholder="İsim">
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label for="">Soyisim</label>
                                        <input type="text" name="soyad" id="" required class="form-control" placeholder="Soyisim">
                                    </div>
                                    <div class="form-group col-md-12">
                                        <label for="">E-Posta Adresi</label>
                                        <input type="email" name="mail" id="" required class="form-control" placeholder="E-Posta Adresi">
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="control-label">Şifreniz</label>
                                        <input id="password-new-reg" type="password" required class="form-control" name="pass" placeholder="Şifreniz">
                                        <span toggle="#password-new-reg" class="ri-eye-line field-icon toggle-password"></span>
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="control-label">Şifreniz (tekrar)</label>
                                        <input id="password-new-again-reg" type="password" class="form-control" name="pass2" placeholder="Şifreniz (tekrar)">
                                        <span toggle="#password-new-again-reg" required class="ri-eye-line field-icon toggle-password"></span>
                                    </div>
                                    <div class="form-group col-md-12" bis_skin_checked="1">
                                        <input type="checkbox" required="" class="form-checkbox" id="checkbox">
                                        <label class="form-label" required="" for="checkbox"><a target="_blank" rel="noopener noreferrer" href="<?=$site;?>hizmet-sozlesmesi">Hizmet Sözleşmesi</a>'sini okudum, anladım ve kabul ediyorum.</label>
                                    </div>
                                    <div class="form-group col-md-12 mb-0">
                                        <button type="submit" class="btn">
                                            Kayıt Ol <i class="ri-arrow-right-line"></i>
                                            </button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                    <div class="login__bottom">
                        <p>Zaten Üye Misin? <a href="<?=$site;?>panel/login">Hemen Giriş Yap!</a></p>
                    </div>
                </div>
                <div class="footer">
                    <div class="footer__container">
                        <div class="footer__top">
                            <div class="item">
                                <div class="logo">
                                    <img src="<?=$site;?>upload/<?=settings("site_logo");?>" alt="">
                                </div>
                                <div class="copyright">
                                    <p>
                                       <?=settings("footer");?>
                                    </p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>
