Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (16 sloc) 395 Bytes
<?php
session_start();
include "private.php";
$password = $_POST['password'];
header('Content-Type: application/json');
if ($_POST['action'] == 'login') {
if ($password == $login_password) {
$_SESSION['logged_in'] = 'true';
} else {
$_SESSION['logged_in'] = 'false';
header('HTTP/1.0 403 Forbidden');
}
} else {
$_SESSION['logged_in'] = 'false';
}
?>