diff --git a/doc/index.php b/doc/index.php index 711413f0cd..6b60720cb6 100644 --- a/doc/index.php +++ b/doc/index.php @@ -249,46 +249,26 @@ echo '
'; -function top() { - echo "

 

"; - echo ' - - - - - -
- BOINC logo - -

- '.sprintf(tra("Open-source software for volunteer computing")).' -

-
- '; - google_search_form("http://boinc.berkeley.edu"); - language_form(); - echo " -
- "; - echo "

 

"; -} - function left() { + echo '
'; show_participate(); show_science(); show_software(); show_boinc(); show_participant(); //show_nsf(); + echo '
'; } function right() { + echo '
'; show_news_items(); + echo '
'; } -grid('top', 'left', 'right'); +page_head("BOINC", null, true); + +grid(null, 'left', 'right'); page_tail(true, true); -echo '
-'; ?> diff --git a/doc/project.inc b/doc/project.inc new file mode 100644 index 0000000000..8b11e6b094 --- /dev/null +++ b/doc/project.inc @@ -0,0 +1,178 @@ +  '; + navbar_start($brand, $fixed, false); + // instead of PROJECT you can use an or other HTML + + if ($user) { + navbar_item(tra("Your account"), $prefix."home.php"); + } + + navbar_menu(tra("Community"), array( + array(tra("Message boards"), $prefix."forum_index.php"), + array(tra("User search"), $prefix."user_search.php"), + )); + navbar_menu(tra("Site"), array( + array(tra("Site search"), $prefix."site_search.php"), + array(tra("Languages"), $prefix."language_select.php") + )); + + // add your own menu here if you want + + navbar_right($user); + navbar_end(true); +} + +function project_banner($title, $prefix, $is_main) { + if ($is_main) { + echo ' +

+
+
+
+ BOINC logo +
+
+

+ '.sprintf(tra("Open-source software for volunteer computing")).' +

+
+
+ '; + google_search_form("http://boinc.berkeley.edu"); + language_form(); + echo ' +
+
+
+ '; + echo "

 

"; + } else { + navbar(secure_url_base(), get_logged_in_user(false), false); + if ($title) { + echo "

$title

\n"; + } + } +} + +//$fixed_navbar = false; +function project_banner_old($title) { + echo " + +
$title
+
+ "; +} + +function project_footer($show_return, $show_date, $prefix) { + $y = date("Y "); + echo " + +

+ Copyright © $y University of California. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, + Version 1.2 or any later version published by the Free Software Foundation.

+ + "; +} + +function show_profile_heading1() { + return "Your personal background."; +} + +function show_profile_question1() { + return " + Tell us about yourself. + You could tell us where you're from, your age, occupation, hobbies, + or anything else about yourself. + "; +} + +function show_profile_heading2() { + return "Your opinions about " . PROJECT; +} + +function show_profile_question2() { + return " + Tell us your thoughts about " . PROJECT . "
    +
  1. Why do you run " . PROJECT . "? +
  2. What are your views about the project? +
  3. Any suggestions? +
+ "; +} + +function project_workunit($wu){ + echo "This is displayed on the workunit page"; +} + +function project_user_summary($user){ +} + +function project_user_page_private($user){ +} + +function project_user_credit($user){ + if ($user->seti_nresults) { + row2( + "SETI@home classic workunits +
as of 14 May 2004", + number_format($user->seti_nresults) + ); + } + if ($user->seti_total_cpu) { + $x = number_format($user->seti_total_cpu/3600)." hours"; + row2( + "SETI@home classic CPU time +
as of 14 May 2004", + $x + ); + } +} + +function project_forum_post_info($forum) { + if (!$forum || $forum->title != "Questions and problems") return ""; + return " + When reporting a problem, please include: + + "; +} + +function auth_ops() { + auth_ops_userid(array(138)); +} +?> diff --git a/html/inc/util.inc b/html/inc/util.inc index b5a0ffb87e..d7104fb104 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -224,7 +224,7 @@ function page_head( if ($head_extra) { echo "\n$head_extra\n"; } - if ($is_main) { + if ($is_main && (!defined('NO_COMPUTING')||!NO_COMPUTING)) { readfile("schedulers.txt"); }