Allow projects to define their own overrides for the login forms - this helps enable CMS systems like Drupal to handle the logins for BOINC

svn path=/trunk/boinc/; revision=16127
This commit is contained in:
Janus B. Kristensen 2008-10-04 14:24:56 +00:00
parent 3cb57a1306
commit 932eabba94
1 changed files with 4 additions and 0 deletions

View File

@ -367,6 +367,7 @@ function check_tokens($auth) {
); );
} }
if (!function_exists("print_login_form_aux")){
function print_login_form_aux($next_url, $user) { function print_login_form_aux($next_url, $user) {
echo " echo "
<form name=\"f\" method=\"post\" action=\"login_action.php\"> <form name=\"f\" method=\"post\" action=\"login_action.php\">
@ -398,13 +399,16 @@ function print_login_form_aux($next_url, $user) {
</script> </script>
"; ";
} }
}
if (!function_exists("print_login_form")){
function print_login_form() { function print_login_form() {
page_head("Please log in"); page_head("Please log in");
$next_url = $_SERVER['REQUEST_URI']; $next_url = $_SERVER['REQUEST_URI'];
print_login_form_aux($next_url, null); print_login_form_aux($next_url, null);
page_tail(); page_tail();
} }
}
function no_computing() { function no_computing() {
return parse_bool(get_config(), "no_computing"); return parse_bool(get_config(), "no_computing");