.
require_once("boinc_db.inc");
require_once("sanitize_html.inc");
require_once("bbcode_html.inc");
function pm_header() {
echo "
\n";
}
function pm_team_form($user, $teamid, $error=null) {
global $bbcode_html, $bbcode_js;
$team = BoincTeam::lookup_id($teamid);
if (!$team) {
error_page("no such team");
}
if (!is_team_admin($user, $team)) {
error_page("not admin");
}
page_head(tra("Send message to team"),'','','', $bbcode_js);
$subject = post_str("subject", true);
$content = post_str("content", true);
if (post_str("preview", true) == tra("Preview")) {
$options = new output_options;
echo tra("Preview");
echo output_transform($content, $options);
}
if ($error) {
echo "".$error."
\n";
}
echo "