25 lines
No EOL
740 B
PHP
25 lines
No EOL
740 B
PHP
<?php
|
||
|
||
include '../config.php';
|
||
|
||
if ($_GET["pw"] === $adminPassword) {
|
||
if ($_GET["page"] === "delete") {
|
||
include 'delete.php';
|
||
} elseif ($_GET["page"] === "respond") {
|
||
include 'respond.php';
|
||
} elseif ($_GET["page"] === "mark") {
|
||
include 'mark.php';
|
||
} elseif ($_GET["page"] === "migrate") {
|
||
include 'migrate.php';
|
||
} else {
|
||
include 'all.php';
|
||
}
|
||
} else {
|
||
$properTitle = $pageTitle . " – sign in";
|
||
include 'boilerplate/pageStart.php';
|
||
|
||
echo("<h2 class=\"sect\">enter password</h2>");
|
||
echo("<form class=\"frm\" action=\"index.php\"><input id=\"passinput\" name=\"pw\" required=\"\"><br><button class=\"submitbutton\" type=\"submit\">login</button></form>");
|
||
}
|
||
|
||
?>
|