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