mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
20 lines
No EOL
309 B
PHP
20 lines
No EOL
309 B
PHP
<?php
|
|
session_start();
|
|
|
|
if(isset($_POST['submit_pass']) && $_POST['pass'])
|
|
{
|
|
$pass=$_POST['pass'];
|
|
if($pass=="æøå123")
|
|
{
|
|
$_SESSION['password']=$pass;
|
|
}
|
|
else
|
|
{
|
|
$error="Incorrect Pssword";
|
|
}
|
|
}
|
|
|
|
if(isset($_POST['page_logout']))
|
|
{
|
|
unset($_SESSION['password']);
|
|
} |