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-09-14 00:18:13 +00:00
|
|
|
require_once("../inc/util.inc");
|
|
|
|
|
2006-05-09 18:25:15 +00:00
|
|
|
$master_url = parse_config(get_config(), "<master_url>");
|
2007-12-30 22:02:16 +00:00
|
|
|
define("PROJECT", "REPLACE WITH PROJECT NAME");
|
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");
|
2007-12-30 22:02:16 +00:00
|
|
|
define("COPYRIGHT_HOLDER", "REPLACE WITH COPYRIGHT HOLDER");
|
2006-05-09 18:25:15 +00:00
|
|
|
define("SYS_ADMIN_EMAIL", "admin@$master_url");
|
2007-12-30 22:02:16 +00:00
|
|
|
define("UOTD_ADMIN_EMAIL", "admin@$master_url");
|
|
|
|
// who gets user of the day pool running low e-mails?
|
2006-11-04 19:21:05 +00:00
|
|
|
|
|
|
|
// Email addresses separated by pipe ( | ) that will receive user reported
|
|
|
|
// offensive forum posts.
|
|
|
|
define("POST_REPORT_EMAILS", "moderator1@$master_url|moderator2@$master_url");
|
2004-02-04 01:21:51 +00:00
|
|
|
|
2008-10-21 18:55:17 +00:00
|
|
|
// set the following var if your project is behind a proxy.
|
|
|
|
// This is used on ops/index.php to get the current SVN rev from BOINC
|
2008-10-22 21:25:26 +00:00
|
|
|
//$project_http_proxy = "tcp://proxyname:port"
|
2008-10-21 18:55:17 +00:00
|
|
|
|
2008-06-12 04:50:10 +00:00
|
|
|
function project_banner($title, $prefix) {
|
2004-02-04 01:21:51 +00:00
|
|
|
// Put your project title and logo here
|
2008-06-12 04:50:10 +00:00
|
|
|
// If you include any links, prepend URL with $prefix
|
2004-02-04 01:21:51 +00:00
|
|
|
|
2008-07-18 20:59:59 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
|
|
|
<span class=\"page_title\">$title</span>
|
|
|
|
<p>
|
2004-06-15 18:50:57 +00:00
|
|
|
";
|
2004-02-04 01:21:51 +00:00
|
|
|
}
|
|
|
|
|
2008-06-12 04:50:10 +00:00
|
|
|
function project_footer($show_return, $show_date, $prefix) {
|
|
|
|
// If you include any links, prepend URL with $prefix
|
2005-01-24 14:45:51 +00:00
|
|
|
echo "<br><hr noshade size=1><center>";
|
|
|
|
if ($show_return) {
|
2008-06-12 04:50:10 +00:00
|
|
|
echo "<a href=".$prefix."index.php>Home</a> | <a href=".$prefix."home.php>My Account</a> | <a href=".$prefix."forum_index.php>Message Boards</a><br>\n";
|
2005-01-24 14:45:51 +00:00
|
|
|
}
|
|
|
|
echo "<br><br>Copyright © ".date("Y ").COPYRIGHT_HOLDER."</center>\n";
|
|
|
|
if ($show_date) {
|
2008-07-18 20:59:59 +00:00
|
|
|
$t = time_str(time());
|
|
|
|
echo "<span class=\"note\">Generated $t</span>\n";
|
2005-01-24 14:45:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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){
|
2008-07-18 20:59:59 +00:00
|
|
|
// shown in the workunit page
|
2005-03-09 01:02:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_summary($user){
|
2008-07-18 20:59:59 +00:00
|
|
|
// shown in the user summary page
|
2005-03-09 01:02:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_page_private($user){
|
2008-07-18 20:59:59 +00:00
|
|
|
// shown in the private account page
|
2005-03-09 01:02:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function project_user_credit($user){
|
2008-07-18 20:59:59 +00:00
|
|
|
// shown in the the private account page, credit area
|
2005-03-09 01:02:36 +00:00
|
|
|
}
|
|
|
|
|
2007-11-28 17:40:08 +00:00
|
|
|
function project_forum_post_rules() {
|
2008-07-18 20:59:59 +00:00
|
|
|
// additional forum post rules
|
|
|
|
return "";
|
2007-11-28 17:40:08 +00:00
|
|
|
}
|
|
|
|
|
2004-02-04 01:21:51 +00:00
|
|
|
?>
|