View sourcecode

The following files exists in this folder. Click to view.

admin.php

12 lines UTF-8 Unix (LF)
1
2
3
4
5
6
7
8
9
10
11
12
<?php 
session_start
();
if (!(isset(
$_SESSION["auktoriserad"]) && $_SESSION["auktoriserad"]))
{
    
header("location: index.php");
    exit();
}

echo 
"<p>Grattis, du är inloggad.</p>";
echo 
"<p>Välkommen {$_SESSION["användarnamn"]}</p>";

?>