gnu-social/actions/login.php
Evan Prodromou c47de27c11 beginnings of PHP
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
2008-05-07 12:48:07 -04:00

25 lines
374 B
PHP

<?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) {
}