2003-02-12 23:06:49 +00:00
|
|
|
<?php
|
|
|
|
|
2003-07-15 22:29:39 +00:00
|
|
|
// This is a sample project file.
|
|
|
|
// Modify it to suit your project.
|
2003-07-17 21:29:01 +00:00
|
|
|
// Put your version in html_user/project_specific/project.inc
|
2003-02-24 21:25:16 +00:00
|
|
|
|
2004-02-10 07:02:38 +00:00
|
|
|
require_once("../inc/util.inc");
|
2003-07-11 22:32:56 +00:00
|
|
|
|
2003-07-11 22:36:57 +00:00
|
|
|
define("PROJECT", "Test Project");
|
|
|
|
define("MASTER_URL", "http://boinc.berkeley.edu/");
|
|
|
|
define("URL_BASE", "");
|
2004-02-10 07:02:38 +00:00
|
|
|
define('IMAGE_PATH', '../user_profile/images/');
|
|
|
|
define('PROFILE_PATH', '../user_profile/');
|
|
|
|
define('PROFILE_URL', 'user_profile/');
|
2003-07-11 22:32:56 +00:00
|
|
|
define('LANGUAGE_FILE', 'languages.txt');
|
2003-10-11 06:11:36 +00:00
|
|
|
define('STYLESHEET', 'white.css');
|
2004-01-15 23:53:13 +00:00
|
|
|
define('COPYRIGHT_HOLDER', 'Test Group');
|
2003-02-12 23:06:49 +00:00
|
|
|
|
|
|
|
function project_intro() {
|
|
|
|
echo"
|
2003-07-15 22:29:39 +00:00
|
|
|
This is a test project of
|
|
|
|
the Berkeley Open Infrastructure for Network Computing (BOINC)
|
|
|
|
";
|
2003-02-12 23:06:49 +00:00
|
|
|
}
|
|
|
|
|
2004-06-15 18:50:57 +00:00
|
|
|
function project_banner($user) {
|
2003-02-12 23:06:49 +00:00
|
|
|
// Put your project title and logo here
|
|
|
|
|
2004-06-15 18:50:57 +00:00
|
|
|
echo "<table width=100%><tr><td><h2>".PROJECT."</h2></td><td align=right>\n");
|
2003-07-11 22:32:56 +00:00
|
|
|
if ($user) {
|
2004-06-15 18:50:57 +00:00
|
|
|
echo "Logged in as $user->name");
|
2003-07-11 22:32:56 +00:00
|
|
|
} else {
|
2004-06-15 18:50:57 +00:00
|
|
|
echo "<br>");
|
2003-07-11 22:32:56 +00:00
|
|
|
}
|
2004-06-15 18:50:57 +00:00
|
|
|
echo "</td></tr></table><hr>\n");
|
2003-07-11 22:32:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// NOTE: These functions appear here and not in profile.inc because they contain
|
|
|
|
// project-specific information that needs to be set by the project administrators.
|
|
|
|
|
|
|
|
function show_profile_heading1() {
|
2003-07-15 22:29:39 +00:00
|
|
|
row1("Your personal background.");
|
2003-07-11 22:32:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_question1() {
|
2003-07-15 22:29:39 +00:00
|
|
|
rowify("
|
|
|
|
Tell us about yourself.
|
|
|
|
You could tell us where you're from, your age, occupation, hobbies,
|
|
|
|
or anything else about yourself.
|
|
|
|
HTML formatting tags are allowed (other tags will be removed),
|
|
|
|
and responses are limited to 2000 characters.
|
|
|
|
");
|
2003-07-11 22:32:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_heading2() {
|
2003-07-15 22:29:39 +00:00
|
|
|
row1("Your opinions about " . PROJECT);
|
2003-07-11 22:32:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_question2() {
|
|
|
|
rowify("
|
2003-07-15 22:29:39 +00:00
|
|
|
Tell us your thoughts about " . PROJECT . "<ol>
|
|
|
|
<li>Why do you run " . PROJECT . "?
|
|
|
|
<li>What are your views about the project?
|
|
|
|
<li>Any suggestions?
|
2003-07-11 22:32:56 +00:00
|
|
|
</ol>
|
|
|
|
");
|
2003-02-12 23:06:49 +00:00
|
|
|
}
|
|
|
|
|
2003-12-31 23:09:21 +00:00
|
|
|
function project_news() {
|
|
|
|
echo "No news is good news\n";
|
|
|
|
}
|
|
|
|
|
2004-03-04 00:32:09 +00:00
|
|
|
function project_community() {
|
|
|
|
}
|
|
|
|
|
2003-02-12 23:06:49 +00:00
|
|
|
?>
|