*** empty log message ***

svn path=/trunk/boinc/; revision=2308
This commit is contained in:
David Anderson 2003-09-07 23:41:20 +00:00
parent 9860445f5b
commit cb9f8f2464
4 changed files with 5 additions and 25 deletions

View File

@ -1,20 +0,0 @@
<?php
require_once('include/config.inc');
require_once('include/error.inc');
require_once('include/template.inc');
require_once('include/database.inc');
require_once('class/user.inc');
require_once('util.inc');
session_start();
if (!array_key_exists('lang', $_SESSION)) {
$_SESSION['lang']['id'] = 1;
$_SESSION['lang']['charset'] = 'ISO-8859-1';
}
?>

View File

@ -53,7 +53,7 @@ function display_team_page($team, $user) {
$total_credit = $total_credit + $user->total_credit;
}
row2("Total credit", credit_format($total_credit));
row2("Total credit", format_credit($total_credit));
$result = mysql_query("select * from user where id=$team->userid");
$user = mysql_fetch_object($result);
row2("Founder", "<a href=show_user.php?userid=$user->id>$user->name</a>");

View File

@ -114,8 +114,8 @@ function show_user_row($user) {
printf(
"<tr class=row1>
<td><a href=show_user.php?userid=%d>%s</a></td>
<td>%.4f</td>
<td>%.4f</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
<td>%s</td>
</tr>\n", $user->id, $user->name, format_credit($user->expavg_credit),

View File

@ -425,8 +425,8 @@ function doError($msg, $info = '') {
page_tail();
exit();
}
?>
function credit_format($cobblestones) {
function format_credit($cobblestones) {
return sprintf("%.2f", $cobblestones);
}
?>