2004-02-04 01:21:51 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
// This is a sample project file.
|
|
|
|
// Modify it to suit your project.
|
2004-06-11 18:50:15 +00:00
|
|
|
// Put your version in html/project/project.inc
|
2004-02-04 01:21:51 +00:00
|
|
|
|
2006-05-09 18:25:15 +00:00
|
|
|
$master_url = parse_config(get_config(), "<master_url>");
|
2004-02-04 01:21:51 +00:00
|
|
|
define("PROJECT", "Test Project");
|
2006-05-09 18:25:15 +00:00
|
|
|
define("URL_BASE", $master_url);
|
2004-02-24 04:05:13 +00:00
|
|
|
define("IMAGE_PATH", "../user_profile/images/");
|
|
|
|
define("IMAGE_URL", "user_profile/images/");
|
|
|
|
define("PROFILE_PATH", "../user_profile/");
|
|
|
|
define("PROFILE_URL", "user_profile/");
|
|
|
|
define("LANGUAGE_FILE", "languages.txt");
|
|
|
|
define("STYLESHEET", "white.css");
|
|
|
|
define("COPYRIGHT_HOLDER", "Test Group");
|
2006-05-09 18:25:15 +00:00
|
|
|
define("SYS_ADMIN_EMAIL", "admin@$master_url");
|
|
|
|
$forum_post_reporting_admin->email_addr="admin@$master_url";
|
|
|
|
//The email/mailinglist that will receive user reported forum posts
|
|
|
|
// (offensive etc.)
|
2004-02-04 01:21:51 +00:00
|
|
|
|
2004-06-15 18:50:57 +00:00
|
|
|
function project_banner($title) {
|
2004-02-04 01:21:51 +00:00
|
|
|
// Put your project title and logo here
|
|
|
|
|
2004-06-15 18:50:57 +00:00
|
|
|
echo "<link rel=stylesheet type=text/css href=white.css>
|
2004-06-11 18:50:15 +00:00
|
|
|
<table width=100%>
|
|
|
|
<tr>
|
|
|
|
<td><h2>$title</h2></td>
|
|
|
|
<td align=right>
|
|
|
|
</td></tr></table>
|
2004-06-15 18:50:57 +00:00
|
|
|
";
|
2004-02-04 01:21:51 +00:00
|
|
|
}
|
|
|
|
|
2005-01-24 14:45:51 +00:00
|
|
|
function project_footer($show_return, $show_date) {
|
|
|
|
echo "<br><hr noshade size=1><center>";
|
|
|
|
if ($show_return) {
|
|
|
|
echo "<a href=".URL_BASE.">Return to ".PROJECT." main page</a><br>\n";
|
|
|
|
}
|
|
|
|
echo "<br><br>Copyright © ".date("Y ").COPYRIGHT_HOLDER."</center>\n";
|
|
|
|
if ($show_date) {
|
|
|
|
echo "<font size=-2 color=bbbbbb>Generated ",time_str(time()),"</font>\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-04 01:21:51 +00:00
|
|
|
function show_profile_heading1() {
|
2005-01-25 19:21:35 +00:00
|
|
|
return "Your personal background.";
|
2004-02-04 01:21:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_question1() {
|
2005-01-25 19:21:35 +00:00
|
|
|
return "
|
2004-02-04 01:21:51 +00:00
|
|
|
Tell us about yourself.
|
|
|
|
You could tell us where you're from, your age, occupation, hobbies,
|
|
|
|
or anything else about yourself.
|
2005-01-25 19:21:35 +00:00
|
|
|
";
|
2004-02-04 01:21:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_heading2() {
|
2005-01-25 19:21:35 +00:00
|
|
|
return "Your opinions about " . PROJECT;
|
2004-02-04 01:21:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function show_profile_question2() {
|
2005-01-25 19:21:35 +00:00
|
|
|
return "
|
2004-06-11 18:50:15 +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?
|
|
|
|
</ol>
|
2005-01-25 19:21:35 +00:00
|
|
|
";
|
2004-04-23 01:42:09 +00:00
|
|
|
}
|
2004-03-09 23:20:52 +00:00
|
|
|
|
2005-03-09 01:02:36 +00:00
|
|
|
function project_workunit($wu){
|
|
|
|
echo "This is displayed on the workunit page";
|
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_summary($user){
|
|
|
|
echo "Text here will go to the user summary page";
|
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_page_private($user){
|
|
|
|
echo "Whatever is here is added to the private account page";
|
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_credit($user){
|
|
|
|
if ($user->seti_nresults) {
|
|
|
|
row2(
|
|
|
|
"SETI@home classic workunits
|
|
|
|
<br><font size=-2>as of 14 May 2004</font>",
|
|
|
|
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
|
|
|
|
<br><font size=-2>as of 14 May 2004</font>",
|
|
|
|
$x
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-04 01:21:51 +00:00
|
|
|
?>
|