| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- $host = $_SERVER['SERVER_NAME'];
- if($host == "62.4.16.133") { die(); }
- session_start();
- if(isset($_SESSION["playersqlid"]))
- {
- header("location: ./panel/characters");
- exit;
- }
- ?>
- <!doctype html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>Verdant Roleplay | Login</title>
- <base href="/">
- <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
- <meta name="viewport" content="width=device-width, initial-scale=0.1">
- <link rel="icon" type="image/x-icon" href="favicon.ico">
- <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700+Ubuntu:400,700" rel="stylesheet">
- <!-- Assets -->
- <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.8.1/css/all.css" integrity="sha384-Bx4pytHkyTDy3aJKjGkGoHPt3tvv6zlwwjc3iqN7ktaiEMLDPqLSZYts2OjKcBx1" crossorigin="anonymous">
- <link rel="stylesheet" href="./style.css">
- <link rel="stylesheet" href="./login.css">
- <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
- </head>
- <body>
- <router-outlet _ngcontent-kmh-c135=""></router-outlet>
- <app-login _nghost-kmh-c138="">
- <header _ngcontent-kmh-c138=""></header>
- <main _ngcontent-kmh-c138="">
- <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>" name="loginForm" id="loginForm" method="post">
- <div _ngcontent-kmh-c138="" class="fieldset">
- <label _ngcontent-kmh-c138="" for="name" class="fa fa-fw fa-user label"></label>
- <input _ngcontent-kmh-c138="" id="name" name="username" placeholder="username" class="ng-valid ng-dirty ng-touched">
- <label _ngcontent-kmh-c138="" for="password" class="fa fa-fw fa-lock label"></label>
- <input _ngcontent-kmh-c138="" id="password" name="password" type="password" placeholder="password" class="ng-valid ng-dirty ng-touched">
- <!--<div _ngcontent-kmh-c138="" class="fat"><input _ngcontent-kmh-c138="" type="checkbox" name="remember" class="checkbox ng-untouched ng-pristine ng-valid"> Remember me <a _ngcontent-kmh-c138="" routerlink="/login/forgotten-password" class="fl-ri" href="#">Forgotten Password</a></div>-->
- <button _ngcontent-kmh-c138="" class="fat">Log in</button>
- </div>
- </form>
-
- <!---->
- <!---->
- <!---->
- <footer _ngcontent-kmh-c138=""><a href="./register"><span style="color:white">Don't have an account? Register here</a></footer>
- </br></br>
- <!--<center><span style="color: white; font-size: 11px;">Credits: Realpimp (Front-End, Back-End), Pristine (Bug finding, ideas, other stuff)</span></center>-->
- </main>
- <div _ngcontent-kmh-c138="" class="bg-footer"></div>
- <app-alerts _ngcontent-kmh-c138="" _nghost-kmh-c147="" id="app-alerts">
- </br>
- </app-alerts>
- </app-login>
- <!---->
- <app-popup-container _ngcontent-kmh-c135="" _nghost-kmh-c186="" id="popup_content">
- <!---->
- </app-popup-container>
- <app-version-check _ngcontent-kmh-c135="" _nghost-kmh-c210="">
- <!---->
- </app-version-check>
- <script>
- $("#loginForm").submit(function () {
- $.post('./includes/func_login.php', $('form').serialize(), function (data, textStatus) {
- console.log("sent without errors")
- console.log(data);
- if (data == "true") {
- window.document.location = "./panel/characters";
- } else {
- $('#app-alerts').html(data);
- $(document).ready(function () {
- $('.message_pop_n').delay(5000).fadeOut(300);
- });
- }
- });
- return false;
- })
- </script>
-
- </body>
- </html>
|