20 lines
No EOL
554 B
PHP
20 lines
No EOL
554 B
PHP
<?php
|
|
|
|
include '../config.php';
|
|
|
|
echo("<link rel=\"stylesheet\" href=\"../css/admin.css\">");
|
|
|
|
if ($_GET["pw"] === $adminPassword) {
|
|
if ($_GET["page"] === "all") {
|
|
include 'all.php';
|
|
} elseif ($_GET["page" === "edit"]) {
|
|
include 'edit.php';
|
|
} else {
|
|
include 'all.php';
|
|
}
|
|
} else {
|
|
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>");
|
|
}
|
|
|
|
?>
|