diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-07 12:48:07 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-07 12:48:07 -0400 |
commit | c47de27c114c9998acc01fd2c6df185cd271ec2f (patch) | |
tree | a3d42ce54a069bdd364ec34be22b7f8f39f33f4d /actions/login.php | |
parent | d0e8a3b9ab2442d812ec897d90612d9833beee26 (diff) |
beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
Diffstat (limited to 'actions/login.php')
-rw-r--r-- | actions/login.php | 25 |
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 |