qna/admin/index.php

25 lines
No EOL
740 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>");
}
?>