Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include ('includes/header.php');
- spl_autoload_register(function ($class){include 'classes/' . $class . '.class.php';});?>
- <?php
- $account = new Login();
- if(isset($_REQUEST["send"])){
- if(strlen($_REQUEST["account"])>0 && strlen($_REQUEST["password"])>0){
- $account->checkInput($_REQUEST["account"], $_REQUEST["password"]);
- $usr = $_REQUEST["account"];
- $_SESSION['trueuser'] = $usr;
- } else {
- header("Location: admin.php");
- }
- unset($_REQUEST["send"]);
- exit();
- }
- ?>
- <form method="post">
- <label>Användarnamn</label><br>
- <input type="text" name="account" class="account" /><br><br>
- <label>Lösenord</label><br>
- <input type="password" name="password" class="account" /><br>
- <br>
- <input type="submit" name="send" value="Logga in" class="button" />
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement