Added function to project.inc, project_forum_post_rules() which returns

additional project specific posting rules.


svn path=/trunk/boinc/; revision=14315
This commit is contained in:
Eric J. Korpela 2007-11-28 17:40:08 +00:00
parent a3657b0ad8
commit 2ca04c07e0
2 changed files with 12 additions and 0 deletions

View File

@ -670,6 +670,11 @@ function check_banished($user) {
}
function post_rules() {
if (function_exists("project_forum_post_rules")) {
$project_rules=project_forum_post_rules();
} else {
$project_rules="";
}
return "
<ul>
<li> Posts must be 'kid friendly': they may not contain
@ -683,6 +688,7 @@ function post_rules() {
<li> No messages that are deliberately hostile or insulting.
<li> No abusive comments involving race, religion,
nationality, gender, class or sexuality.
".$project_rules."
</ul>
";
}

View File

@ -87,4 +87,10 @@ function project_user_credit($user){
//echo "Whatever is here is added to the private account page";
}
function project_forum_post_rules() {
// Add <li> entries for additional forum post rules
return "
";
}
?>