summaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-07 12:48:07 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-07 12:48:07 -0400
commitc47de27c114c9998acc01fd2c6df185cd271ec2f (patch)
treea3d42ce54a069bdd364ec34be22b7f8f39f33f4d /actions/login.php
parentd0e8a3b9ab2442d812ec897d90612d9833beee26 (diff)
beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
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