From cb9f8f24648158201465e53d61f9df7216c37c75 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 7 Sep 2003 23:41:20 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=2308 --- html/user/include.php | 20 -------------------- html/user/team.inc | 2 +- html/user/user.inc | 4 ++-- html/user/util.inc | 4 ++-- 4 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 html/user/include.php diff --git a/html/user/include.php b/html/user/include.php deleted file mode 100644 index f57963ade5..0000000000 --- a/html/user/include.php +++ /dev/null @@ -1,20 +0,0 @@ - diff --git a/html/user/team.inc b/html/user/team.inc index 8d440b5bb7..1782efafa0 100644 --- a/html/user/team.inc +++ b/html/user/team.inc @@ -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", "id>$user->name"); diff --git a/html/user/user.inc b/html/user/user.inc index 5642c2cfa2..581e2df623 100644 --- a/html/user/user.inc +++ b/html/user/user.inc @@ -114,8 +114,8 @@ function show_user_row($user) { printf( " %s - %.4f - %.4f + %s + %s %s %s \n", $user->id, $user->name, format_credit($user->expavg_credit), diff --git a/html/user/util.inc b/html/user/util.inc index 5a1fbc91a4..788a998499 100644 --- a/html/user/util.inc +++ b/html/user/util.inc @@ -425,8 +425,8 @@ function doError($msg, $info = '') { page_tail(); exit(); } -?> -function credit_format($cobblestones) { +function format_credit($cobblestones) { return sprintf("%.2f", $cobblestones); } +?>