mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 19:07:01 +00:00
18 lines
321 B
PHP
18 lines
321 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 Password";
|
|
}
|
|
}
|