. // show a web-based certificate for a team, // showing the team's creation date and total credit in this project. // Projects can customize this: // https://github.com/BOINC/boinc/wiki/WebConfig#certificate-related-constants require_once("../inc/util.inc"); require_once("../inc/cert.inc"); if (DISABLE_TEAMS) error_page("Teams are disabled"); $border = get_str("border", true); if ($border=="no") { $border=0; } else { $border=8; } // Make sure user_id is in the URL so that share functions work // $user_id = get_int('user_id', true); if (!$user_id) { $user = get_logged_in_user(); Header(sprintf('Location: %s/cert_team.php?user_id=%d%s', url_base(), $user->id, $border==0?'&border=no':'' )); exit; } $user = BoincUser::lookup_id($user_id); $team = BoincTeam::lookup_id($user->teamid); if (!$team) error_page("no team"); $join = gmdate('j F Y', $team->create_time); $today = gmdate('j F Y', time()); credit_to_ops($team->total_credit, $ops, $unit); $credit = credit_string($team->total_credit, false); $font = "\"Optima,Lucida Bright,Times New Roman\""; echo "
Certificate of Computation


This certifies that team

$team->name

has participated in ".PROJECT." since $join, and has contributed $credit to ".PROJECT.".


"; if (defined("CERT_PROJECT_LOGO")) { echo " "; } if (defined("CERT_INSTITUTION_LOGO")) { echo " "; } echo "

"; if (defined("CERT_SIGNATURE")) { echo "
"; } if (defined("CERT_DIRECTOR_NAME")) { echo CERT_DIRECTOR_NAME."
Director, ".PROJECT."
"; } echo "
$today
"; show_download_button(); show_share_buttons(); ?>