This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
emergencysite/admin.php

28 lines
540 B
PHP
Raw Permalink Normal View History

2013-06-06 04:54:00 +00:00
<?php
2013-08-18 22:14:09 +00:00
die("Not implemented yet");
require('include.php');
2013-06-06 04:54:00 +00:00
$p = null;
$db = new Database();
$authAttempt = false;
if (isset($_POST['login'])) {
if (isset($_POST['user'])) {
if (isset($_POST['pass'])) {
//TODO: Process the user login attempt.
} else {
$authAttempt = true;
}
} else {
$authAttempt = true;
}
}
if ($authAttempt) {
//TODO: Display failed login page
}
if (isset($p)) {
//TODO: Actually handle the user's input.
} else {
//TODO: Display an interface for submitting a "whatever".
2013-08-18 22:14:09 +00:00
}