From 932eabba947efe1c0b84536ccd0d45ff6b0b7b7f Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Sat, 4 Oct 2008 14:24:56 +0000 Subject: [PATCH] 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 --- html/inc/util.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/inc/util.inc b/html/inc/util.inc index e0380cabae..80d58a696e 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -367,6 +367,7 @@ function check_tokens($auth) { ); } +if (!function_exists("print_login_form_aux")){ function print_login_form_aux($next_url, $user) { echo "
@@ -398,13 +399,16 @@ function print_login_form_aux($next_url, $user) { "; } +} +if (!function_exists("print_login_form")){ function print_login_form() { page_head("Please log in"); $next_url = $_SERVER['REQUEST_URI']; print_login_form_aux($next_url, null); page_tail(); } +} function no_computing() { return parse_bool(get_config(), "no_computing");