From 1a886b519e236d52f1a222017f8183d6de4a9d32 Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Tue, 22 Aug 2006 08:33:15 +0000 Subject: [PATCH] Make page_head and page_tail overrideable so that projects that want to integrate BOINC with existing systems can more easily do so. svn path=/trunk/boinc/; revision=10960 --- html/inc/util.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/html/inc/util.inc b/html/inc/util.inc index c5e588fbcb..029e80ac6f 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -89,6 +89,12 @@ function show_login($user) { } } +/** + * Page_head() is overridable so that projects that want to integrate BOINC with an existing web framework + * can more easily do so. To take advantage of this simply define the function page_head() somewhere + * in the project include file. + */ +if (!function_exists("page_head")){ function page_head($title, $java_onload=null, $title_plain=null, $prefix="") { $styleSheet = URL_BASE . STYLESHEET; $rssname = PROJECT . " RSS 2.0"; @@ -115,6 +121,7 @@ function page_head($title, $java_onload=null, $title_plain=null, $prefix="") { display_cvs_versions(); project_banner($title, $prefix); } +} function page_tail_aux($show_return, $show_date, $prefix="") { project_footer($show_return, $show_date, $prefix); @@ -124,9 +131,14 @@ function page_tail_main($show_date=false) { page_tail_aux(false, $show_date); } +/** + * See the comments for page_head() + */ +if (!function_exists("page_tail")){ function page_tail($show_date=false, $prefix="") { page_tail_aux(true, $show_date, $prefix); } +} function display_cvs_versions(){ global $cvs_version_tracker;