summaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/login.php')
-rw-r--r--actions/login.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/actions/login.php b/actions/login.php
new file mode 100644
index 000000000..a95dc9e3a
--- /dev/null
+++ b/actions/login.php
@@ -0,0 +1,25 @@
+<?php
+
+function handle_login() {
+ if ($_REQUEST['METHOD'] == 'POST') {
+ if (login_check_user($_REQUEST['user'], $_REQUEST['password'])) {
+
+ } else {
+ }
+ } else {
+ if (user_logged_in()) {
+ } else {
+ login_show_form();
+ }
+ }
+}
+
+function login_show_form() {
+ html_start();
+ html_head("Login");
+ html_body();
+}
+
+function login_check_user($username, $password) {
+
+} \ No newline at end of file