check_get_args(array("border")); $user = get_logged_in_user(); $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(0)); credit_to_ops($team->total_credit, $ops, $unit); $border = get_str("border", true); if ($border == "no") { $border = 0; } else { $border = 8; } $credit = credit_string($team->total_credit, false); $title_font = "\"Optima,ZapfChancery\""; $font = "\"Optima,Lucida Bright,Times New Roman\""; echo "\n <table width=900 height=650 border={$border} cellpadding=20><tr><td>\n <center>\n <table width=700 border=0><tr><td>\n <center>\n <font style=\"font-size: 52\" face={$title_font}>Certificate of Computation\n\n\n <font face={$font} style=\"font-size:28\">\n <br><br><br>\n This certifies that team\n <p>\n <font face={$font} style=\"font-size:32\">\n {$team->name}\n\n <font face={$font} style=\"font-size:18\">\n <p>\n has participated in " . PROJECT . " since {$join},\n and has contributed {$credit}\n to " . PROJECT . ".\n\n <br><br><br>\n </td><tr></table>\n <table width=100%><tr>\n <td width=40><br></td>\n <td align=left>\n <font face={$font} style=\"font-size:16\">\n"; if (defined("CERT_SIGNATURE")) { echo "\n <img src=" . CERT_SIGNATURE . ">\n <br>\n "; } if (defined("CERT_DIRECTOR_NAME")) { echo CERT_DIRECTOR_NAME . " <br>Director, " . PROJECT . "\n <br>\n "; } echo "\n <br>\n {$today}\n </td>\n"; if (defined("CERT_PROJECT_LOGO")) { echo "\n <td align=center valign=center> <img src=" . CERT_PROJECT_LOGO . "> </td>\n "; } if (defined("CERT_INSTITUTION_LOGO")) { echo "\n <td align=center width=30% valign=center><img src=" . CERT_INSTITUTION_LOGO . "></td>\n ";
// You should have received a copy of the GNU Lesser General Public License // along with BOINC. If not, see <http://www.gnu.org/licenses/>. // // This file was modified by contributors of "BOINC Web Tweak" project. require_once "../inc/util.inc"; require_once "../inc/cert.inc"; $user = get_logged_in_user(); $join = date('j F Y', $user->create_time); $today = date('j F Y', time(0)); $border = $_GET["border"]; if ($border == "no") { $border = 0; } else { $border = 8; } $credit = credit_string($user->total_credit, false); $title_font = "\"Optima,ZapfChancery\""; $font = "\"Optima,Lucida Bright,Times New Roman\""; echo "\r\n\t<table width=900 height=650 border={$border} cellpadding=20><tr><td>\r\n\t<center>\r\n\t<table width=700 border=0><tr><td>\r\n\t<center>\r\n\t<font style=\"font-size: 52\" face={$title_font}>Certificate of Computation\r\n\r\n\r\n\t<font face={$font} style=\"font-size:28\">\r\n\t<br><br><br>\r\n\tThis certifies that\r\n\t<p>\r\n\t<font face={$font} style=\"font-size:32\">\r\n\t{$user->name}\r\n\r\n\t<font face={$font} style=\"font-size:18\">\r\n\t<p>\r\n\thas participated in " . PROJECT . " since {$join},\r\n\tand has contributed {$credit}\r\n\tto " . PROJECT . ".\r\n\r\n\t<br><br><br>\r\n\t</td><tr></table>\r\n\t<table width=100%><tr>\r\n\t<td width=40><br></td>\r\n\t<td align=left>\r\n\t<font face={$font} style=\"font-size:16\">\r\n"; if (defined("CERT_SIGNATURE")) { echo "\r\n\t\t<img src=" . CERT_SIGNATURE . ">\r\n\t\t<br>\r\n\t"; } if (defined("CERT_DIRECTOR_NAME")) { echo CERT_DIRECTOR_NAME . " <br>Director, " . PROJECT . "\r\n\t\t<br>\r\n\t"; } echo "\r\n\t<br>\r\n\t{$today}\r\n\t</td>\r\n"; if (defined("CERT_PROJECT_LOGO")) { echo "\r\n\t\t<td align=center valign=center> <img src=" . CERT_PROJECT_LOGO . "> </td>\r\n\t"; } if (defined("CERT_INSTITUTION_LOGO")) { echo "\r\n\t\t<td align=center width=30% valign=center><img src=" . CERT_INSTITUTION_LOGO . "></td>\r\n\t";