ok
Direktori : /proc/self/root/proc/thread-self/root/proc/self/root/home2/selectio/www/wedding-info/ |
Current File : //proc/self/root/proc/thread-self/root/proc/self/root/home2/selectio/www/wedding-info/index.php |
<?php ob_start(); session_start(); include 'api/config/config.php'; if(isset($_SESSION['speed_connect']) && $_SESSION['sc_user_type']==1) { header('location: home.php'); exit; } ?> <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!--favicon--> <link rel="icon" href="assets/img/speedconnect-favi.png" type="image/png" /> <!--plugins--> <link href="assets/plugins/simplebar/css/simplebar.css" rel="stylesheet" /> <link href="assets/plugins/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" /> <link href="assets/plugins/metismenu/css/metisMenu.min.css" rel="stylesheet" /> <!-- loader--> <link href="assets/css/pace.min.css" rel="stylesheet" /> <script src="assets/js/pace.min.js"></script> <!-- Bootstrap CSS --> <link href="assets/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/css/bootstrap-extended.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet"> <link rel="stylesheet" href="assets/plugins/notifications/css/lobibox.min.css" /> <link href="assets/css/app.css" rel="stylesheet"> <link href="assets/css/icons.css" rel="stylesheet"> <title>Login - Wedding Info</title> </head> <body class=""> <!--wrapper--> <div class="wrapper"> <div class="section-authentication-cover"> <div class=""> <div class="row g-0"> <div class="col-12 col-xl-7 col-xxl-8 auth-cover-left align-items-center justify-content-center d-none d-xl-flex"> <div class="card shadow-none bg-transparent shadow-none rounded-0 mb-0"> <div class="card-body"> <img src="assets/images/login-images/login-cover.svg" class="img-fluid auth-img-cover-login" width="500" alt=""/> </div> </div> </div> <div class="col-12 col-xl-5 col-xxl-4 auth-cover-right align-items-center justify-content-center" style="background-color:#182333;color:white;"> <div class="card rounded-0 m-3 shadow-none bg-transparent mb-0"> <div class="card-body p-sm-5"> <div class=""> <div class="mb-3 text-center"> <img src="assets/img/SKT-logo.gif" width="220" alt=""> </div> <div class="text-center mb-4"> <p class="mb-0">Please log in to your account</p> </div> <div class="form-body" id=""> <form action="" enctype="multipart/form-data" id="login" class="row g-3" method="post" accept-charset="utf-8"> <!--<form class="row g-3">--> <div class="col-12"> <label for="inputEmailAddress" class="form-label">Email</label> <input type="email" name="email" class="form-control border-end-0" id="inputEmailAddress" placeholder="Enter Your Email" required> </div> <div class="col-12"> <label for="inputChoosePassword" class="form-label">Password</label> <div class="input-group" id="show_hide_password" style="background: white;"> <input type="password" name="password" class="form-control border-end-0" id="inputChoosePassword" value="" placeholder="Enter Your Password" required> <a href="javascript:;" class="input-group-text bg-transparent"><i class="bx bx-hide"></i></a> </div> </div> <div class="col-md-6"> <div class="form-check form-switch"> <input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked"> <label class="form-check-label" for="flexSwitchCheckChecked">Remember Me</label> </div> </div> <div class="col-md-6 text-end"> <a href="forgot-password.php">Forgot Password ?</a> </div> <div class="col-12"> <div class="d-grid"> <button type="submit" class="btn btn-primary">Sign in</button> </div> </div> <div class="col-12"> <div class="text-center "> <p class="mb-0">Don't have an account yet? <a href="home.php" style="color:white;">Sign up here</a> </p> </div> </div> </form> </div> <div class="login-separater text-center mb-5"> <span style="color: blue;border-radius: 30px;">OR SIGN IN WITH</span> <hr> </div> <div class="list-inline contacts-social text-center"> <a href="javascript:;" class="list-inline-item bg-facebook text-white border-0 rounded-3"><i class="bx bxl-facebook"></i></a> <a href="javascript:;" class="list-inline-item bg-twitter text-white border-0 rounded-3"><i class="bx bxl-twitter"></i></a> <a href="javascript:;" class="list-inline-item bg-google text-white border-0 rounded-3"><i class="bx bxl-google"></i></a> <a href="javascript:;" class="list-inline-item bg-linkedin text-white border-0 rounded-3"><i class="bx bxl-linkedin"></i></a> </div> </div> </div> </div> </div> </div> <!--end row--> </div> </div> </div> <!--end wrapper--> <!-- Bootstrap JS --> <script src="assets/js/bootstrap.bundle.min.js"></script> <!--plugins--> <script src="assets/js/jquery.min.js"></script> <script src="assets/plugins/simplebar/js/simplebar.min.js"></script> <script src="assets/plugins/metismenu/js/metisMenu.min.js"></script> <script src="assets/plugins/perfect-scrollbar/js/perfect-scrollbar.js"></script> <!--Password show & hide js --> <!--notification js --> <script src="assets/plugins/notifications/js/lobibox.min.js"></script> <script src="assets/plugins/notifications/js/notifications.min.js"></script> <script src="assets/plugins/notifications/js/notification-custom-script.js"></script> <script> $(document).ready(function () { /*success('Mustaf');*/ $("#show_hide_password a").on('click', function (event) { event.preventDefault(); if ($('#show_hide_password input').attr("type") == "text") { $('#show_hide_password input').attr('type', 'password'); $('#show_hide_password i').addClass("bx-hide"); $('#show_hide_password i').removeClass("bx-show"); } else if ($('#show_hide_password input').attr("type") == "password") { $('#show_hide_password input').attr('type', 'text'); $('#show_hide_password i').removeClass("bx-hide"); $('#show_hide_password i').addClass("bx-show"); } }); }); </script> <!--app JS--> <script src="assets/js/app.js"></script> <script> function success(msg){ Lobibox.notify('success', { pauseDelayOnHover: true, icon: 'bx bx-check-circle', continueDelayOnInactiveTab: false, position: 'top right', size: 'mini', msg: msg }); } function warning(msg){ Lobibox.notify('warning', { pauseDelayOnHover: true, icon: 'bx bx-error', continueDelayOnInactiveTab: false, position: 'top right', size: 'mini', msg: msg }); } </script> </body> </html> <script> $('#login').on('submit', function(e){ console.log("Sign In Clicked"); e.preventDefault(); var formData = new FormData(this); formData.append('type', 'login'); $.ajax({ url: 'api/admin-login-api.php', type: 'post', dataType: 'json', data: formData, cache: false, contentType: false, processData: false, enctype: 'multipart/form-data', success: function (response) { if(response['error']==false){ success(response['message']); window.location.href="home.php"; }else{ warning(response['message']); }; } }); }); </script>