<?php
require_once __DIR__.'/config.php';
if ($_POST['pw'] ?? '' === ADMIN_PASSWORD) $_SESSION['is_admin']=true;
if (!is_admin()) {
  echo '<form method="post"><input type="password" name="pw"><button>Login</button></form>';
  exit;
}
?>
<h1>Admin Panel</h1>
<a href="index.html">Desktop</a>
