Show sourcecode
The following files exists in this folder. Click to view.
webbsrvprg/exercises/projekt/incl/
addfilters.php
dbconnection.php
default.php
footer.php
header.php
playertable.php
protected.php
sort.php
stylesheet.css
protected.php
10 lines UTF-8 Windows (CRLF)
<?php if ($_SESSION["logIn"] == false) {
echo "alert(\"Hej, du måste logga in för att nå den här sidan\")";
header("Location: login.php");
}
if (isset($_POST["logout"])) {
$_SESSION["userid"] = 0;
$_SESSION["logIn"] = false;
header("Location: login.php");
}
?>