The following files exists in this folder. Click to view.
login.php17 lines UTF-8 Unix (LF)
<?php
session_start();
$checkname = "user";
$checkpass = "pass";
$inputname = $_POST["username"];
$inputpass = $_POST["password"];
if($checkname == $inputname && $checkpass == $inputpass){
$_SESSION["username"] = $checkname;
header("location: admin.php");
exit();
} else {
header("location: index.php?mess=Försök igen");
exit();
}
?>