c47de27c11
darcs-hash:20080507164807-84dde-ef7d205a0fedca42064a337786d2f203cdcc5a45.gz
25 lines
374 B
PHP
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) {
|
|
|
|
} |