26 lines
734 B
PHP
26 lines
734 B
PHP
<?php
|
|
|
|
include '../config.php';
|
|
|
|
if ($_GET["pw"] === $adminPassword) {
|
|
switch ($_GET["page"]) {
|
|
case "delete": include "delete.php"; break;
|
|
case "respond": include "respond.php"; break;
|
|
case "mark": include "mark.php"; break;
|
|
case "migrate": include "migrate.php"; break;
|
|
default: include "all.php";
|
|
}
|
|
} else {
|
|
$properTitle = $pageTitle . " — sign in";
|
|
$CSSdownDirectory = 1;
|
|
include "../boilerplate/pageStart.php";
|
|
|
|
echo("
|
|
<h2 class=\"sect\">enter password</h2>
|
|
<form class=\"frm\" action=\"index.php\"><input id=\"passinput\" name=\"pw\" required=\"\"><br><button class=\"submitbutton\" type=\"submit\">login</button></form>
|
|
");
|
|
|
|
include "../boilerplate/pageEnd.php";
|
|
}
|
|
|
|
?>
|