<?php


session_start();
require_once "../system/baglan.php";
require_once "../system/fonk.php";
if (isset($_SESSION["token"]) && isset($_SESSION["yonetici_kullanici"])) {
    header("Location:index.html");
}
echo "\r\n<!DOCTYPE html>\r\n<html>\r\n    <head>\r\n        <meta charset=\"utf-8\">\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n        <meta name=\"description\" content=\"A fully featured admin theme which can be used to build CRM, CMS, etc.\">\r\n        <meta name=\"author\" content=\"Coderthemes\">\r\n\r\n        <link rel=\"shortcut icon\" href=\"assets/images/favicon_1.ico\">\r\n\r\n        <title>Yönetim Paneli</title>\r\n\r\n        <link href=\"assets/css/bootstrap.min.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/core.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/components.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/icons.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/pages.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n        <link href=\"assets/css/responsive.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n\r\n        <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->\r\n        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->\r\n        <!--[if lt IE 9]>\r\n        <script src=\"https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js\"></script>\r\n        <script src=\"https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js\"></script>\r\n        <![endif]-->\r\n\r\n        <script src=\"assets/js/modernizr.min.js\"></script>\r\n        <script src=\"assets/js/jquery.min.js\"></script>\r\n    </head>\r\n    <body>\r\n        <div class=\"account-pages\"></div>\r\n        <div class=\"clearfix\"></div>\r\n        <div class=\"wrapper-page\">\r\n        \t<div class=\" card-box\">\r\n            <div class=\"panel-heading\"> \r\n                <h3 class=\"text-center\"> Yönetim <strong class=\"text-custom\">Paneli</strong> </h3>\r\n            </div> \r\n\r\n\r\n            <div class=\"panel-body\">\r\n            <form class=\"form-horizontal m-t-20\" action=\"../system/panel_islemler.php\" name=\"form1\" method=\"post\" id=\"form1\">\r\n                \r\n                <div class=\"form-group \">\r\n                    <div class=\"col-xs-12\">\r\n                        <input class=\"form-control\" name=\"kullanici\" type=\"text\" required=\"\" placeholder=\"Kullanıcı Adı\">\r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"form-group\">\r\n                    <div class=\"col-xs-12\">\r\n                        <input class=\"form-control\" name=\"sifre\" type=\"password\" required=\"\" placeholder=\"Parola\">\r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"form-group \">\r\n                    <div class=\"col-xs-12\">\r\n                        <div class=\"checkbox checkbox-primary\">\r\n                            <input id=\"checkbox-signup\" type=\"checkbox\" name=\"hatirla\" value=\"on\">\r\n                            <label for=\"checkbox-signup\">\r\n                                Beni Hatırla\r\n                            </label>\r\n\t\t\t\t\t\t\t<input type=\"hidden\" value=\"";
echo $token;
echo "\" name=\"token\">\r\n                        </div>\r\n                        \r\n                    </div>\r\n                </div>\r\n                \r\n                <div class=\"form-group text-center m-t-40\">\r\n                    <div class=\"col-xs-12\">\r\n                        <button class=\"btn btn-pink btn-block text-uppercase waves-effect waves-light\" name=\"giris\" type=\"submit\">GİRİŞ YAP</button>\r\n                    </div>\r\n                </div>\r\n\r\n                <div class=\"form-group m-t-30 m-b-0\">\r\n                    <div class=\"col-sm-12\">\r\n                        <a href=\"sifre_hatirlat.php\" class=\"text-dark\"><i class=\"fa fa-lock m-r-5\"></i> Şifremi Unuttum?</a>\r\n                    </div>\r\n                </div>\r\n            </form> \r\n            \r\n            </div>   \r\n            </div>                              \r\n            \r\n        </div>\r\n        \r\n        \r\n\r\n        \r\n    \t<script>\r\n            var resizefunc = [];\r\n        </script>\r\n\r\n        <!-- jQuery  -->\r\n        \r\n        <script src=\"assets/js/bootstrap.min.js\"></script>\r\n        <script src=\"assets/js/detect.js\"></script>\r\n        <script src=\"assets/js/fastclick.js\"></script>\r\n        <script src=\"assets/js/jquery.slimscroll.js\"></script>\r\n        <script src=\"assets/js/jquery.blockUI.js\"></script>\r\n        <script src=\"assets/js/waves.js\"></script>\r\n        <script src=\"assets/js/wow.min.js\"></script>\r\n        <script src=\"assets/js/jquery.nicescroll.js\"></script>\r\n        <script src=\"assets/js/jquery.scrollTo.min.js\"></script>\r\n\t\t\r\n\t\t<script src=\"assets/plugins/notifyjs/dist/notify.min.js\"></script>\r\n        <script src=\"assets/plugins/notifications/notify-metro.js\"></script>\r\n\r\n\r\n        <script src=\"assets/js/jquery.core.js\"></script>\r\n        <script src=\"assets/js/jquery.app.js\"></script>\r\n\t\t\r\n\t\t";
if ($_SESSION["giris"] == "kullanici") {
    echo "\r\n\t\t\t<script>\r\n\t\t\t\$(document).ready(function () {\r\n\t\t\t\t\$.Notification.autoHideNotify('error', 'top right', 'Hata!','Kullanıcı Adı veya Şifreniz Yanlış.')\r\n\t\t\t});\r\n\t\t\t</script>";
    unset($_SESSION["giris"]);
}
if ($_SESSION["sifirla"] == "yes") {
    echo "\r\n\t\t\t<script>\r\n\t\t\t\$(document).ready(function () {\r\n\t\t\t\t\$.Notification.autoHideNotify('success', 'top right', 'Başarılı!','Şifreniz Gönderildi.')\r\n\t\t\t});\r\n\t\t\t</script>";
    unset($_SESSION["sifirla"]);
}
echo "\t\r\n\t</body>\r\n</html>";

?>