@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | if (!$show_dep && $app->deprecated) { |
41 | 41 | return null; |
42 | 42 | } |
43 | - $rsc_type = $gavid % 1000000; |
|
43 | + $rsc_type = $gavid%1000000; |
|
44 | 44 | $r = rsc_name($rsc_type); |
45 | 45 | return "$app->user_friendly_name (".tra("anonymous platform").", $r)"; |
46 | 46 | } else { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | } |
61 | 61 | $platform = BoincPlatform::lookup_id($av->platformid); |
62 | 62 | if (!$platform) return tra("Missing platform"); |
63 | - $pc = (strlen($av->plan_class))?"($av->plan_class)":""; |
|
63 | + $pc = (strlen($av->plan_class)) ? "($av->plan_class)" : ""; |
|
64 | 64 | $v = number_format($av->version_num/100, 2); |
65 | 65 | return "$app->user_friendly_name $v $platform->name $pc"; |
66 | 66 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | // $x->linux |
61 | 61 | // $x->mac |
62 | 62 | // |
63 | -function get_gpu_list($vendor, $alt_vendor=null) { |
|
63 | +function get_gpu_list($vendor, $alt_vendor = null) { |
|
64 | 64 | $clause = "plan_class like '%$vendor%'"; |
65 | 65 | if ($alt_vendor) { |
66 | 66 | $clause .= " or plan_class like '%$alt_vendor%'"; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | $av_ids = ""; |
76 | - foreach($avs as $av) { |
|
76 | + foreach ($avs as $av) { |
|
77 | 77 | $av_ids .= "$av->id, "; |
78 | 78 | } |
79 | 79 | if ($vendor == "cuda") { |
@@ -176,14 +176,14 @@ discard block |
||
176 | 176 | echo tra("No GPU tasks reported"); |
177 | 177 | return; |
178 | 178 | } |
179 | - $have_win = count($x->win)>0; |
|
180 | - $have_mac = count($x->mac)>0; |
|
181 | - $have_linux = count($x->linux)>0; |
|
179 | + $have_win = count($x->win) > 0; |
|
180 | + $have_mac = count($x->mac) > 0; |
|
181 | + $have_linux = count($x->linux) > 0; |
|
182 | 182 | $n = 0; |
183 | 183 | if ($have_win) $n++; |
184 | 184 | if ($have_mac) $n++; |
185 | 185 | if ($have_linux) $n++; |
186 | - $show_total = $n>1; |
|
186 | + $show_total = $n > 1; |
|
187 | 187 | start_table(); |
188 | 188 | echo "<tr>"; |
189 | 189 | if ($show_total) { |
@@ -196,7 +196,7 @@ |
||
196 | 196 | } |
197 | 197 | |
198 | 198 | $d = get_cached_data(86400); |
199 | -$data = FALSE; |
|
199 | +$data = false; |
|
200 | 200 | if ($d) { |
201 | 201 | $data = unserialize($d); |
202 | 202 | } |
@@ -80,20 +80,20 @@ |
||
80 | 80 | |
81 | 81 | function upload_error_description($errno) { |
82 | 82 | switch($errno) { |
83 | - case UPLOAD_ERR_INI_SIZE: |
|
84 | - return "The uploaded file exceeds upload_max_filesize of php.ini."; break; |
|
85 | - case UPLOAD_ERR_FORM_SIZE: |
|
86 | - return "The uploaded file exceeds the MAX_FILE_SIZE specified in the HTML form."; break; |
|
87 | - case UPLOAD_ERR_PARTIAL: |
|
88 | - return "The uploaded file was only partially uploaded."; break; |
|
89 | - case UPLOAD_ERR_NO_FILE: |
|
90 | - return "No file was uploaded."; break; |
|
91 | - case UPLOAD_ERR_NO_TMP_DIR: |
|
92 | - return "Missing a temporary folder."; break; |
|
93 | - case UPLOAD_ERR_CANT_WRITE: |
|
94 | - return "Failed to write file to disk."; break; |
|
95 | - case UPLOAD_ERR_EXTENSION: |
|
96 | - return "A PHP extension stopped the file upload."; break; |
|
83 | + case UPLOAD_ERR_INI_SIZE: |
|
84 | + return "The uploaded file exceeds upload_max_filesize of php.ini."; break; |
|
85 | + case UPLOAD_ERR_FORM_SIZE: |
|
86 | + return "The uploaded file exceeds the MAX_FILE_SIZE specified in the HTML form."; break; |
|
87 | + case UPLOAD_ERR_PARTIAL: |
|
88 | + return "The uploaded file was only partially uploaded."; break; |
|
89 | + case UPLOAD_ERR_NO_FILE: |
|
90 | + return "No file was uploaded."; break; |
|
91 | + case UPLOAD_ERR_NO_TMP_DIR: |
|
92 | + return "Missing a temporary folder."; break; |
|
93 | + case UPLOAD_ERR_CANT_WRITE: |
|
94 | + return "Failed to write file to disk."; break; |
|
95 | + case UPLOAD_ERR_EXTENSION: |
|
96 | + return "A PHP extension stopped the file upload."; break; |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | require_once("../inc/submit_util.inc"); |
80 | 80 | |
81 | 81 | function upload_error_description($errno) { |
82 | - switch($errno) { |
|
82 | + switch ($errno) { |
|
83 | 83 | case UPLOAD_ERR_INI_SIZE: |
84 | 84 | return "The uploaded file exceeds upload_max_filesize of php.ini."; break; |
85 | 85 | case UPLOAD_ERR_FORM_SIZE: |
@@ -105,16 +105,16 @@ discard block |
||
105 | 105 | $delete_time = (int)$r->delete_time; |
106 | 106 | $batch_id = (int)$r->batch_id; |
107 | 107 | $fanout = parse_config(get_config(), "<uldl_dir_fanout>"); |
108 | - $phys_names= array(); |
|
109 | - foreach($r->phys_name as $f) { |
|
108 | + $phys_names = array(); |
|
109 | + foreach ($r->phys_name as $f) { |
|
110 | 110 | $phys_names[] = (string)$f; |
111 | 111 | } |
112 | 112 | $i = 0; |
113 | - foreach($phys_names as $fname) { |
|
113 | + foreach ($phys_names as $fname) { |
|
114 | 114 | if (!is_valid_filename($fname)) { |
115 | 115 | xml_error(-1, 'bad filename'); |
116 | 116 | } |
117 | - $path = dir_hier_path($fname, project_dir() . "/download", $fanout); |
|
117 | + $path = dir_hier_path($fname, project_dir()."/download", $fanout); |
|
118 | 118 | |
119 | 119 | // if the job_file record is there, |
120 | 120 | // update the delete time first to avoid race condition |
@@ -228,11 +228,11 @@ discard block |
||
228 | 228 | foreach ($_FILES as $f) { |
229 | 229 | $tmp_name = $f['tmp_name']; |
230 | 230 | $fname = $phys_names[$i]; |
231 | - $path = dir_hier_path($fname, project_dir() . "/download", $fanout); |
|
231 | + $path = dir_hier_path($fname, project_dir()."/download", $fanout); |
|
232 | 232 | |
233 | 233 | // see if file is in download hierarchy |
234 | 234 | // |
235 | - switch(check_download_file($tmp_name, $path)) { |
|
235 | + switch (check_download_file($tmp_name, $path)) { |
|
236 | 236 | case 0: |
237 | 237 | // file is already there |
238 | 238 | // note: check_download_file() generates .md5 in cases 1 and 2 |
@@ -287,10 +287,10 @@ discard block |
||
287 | 287 | if ($request_log) { |
288 | 288 | $request_log_dir = parse_config(get_config(), "<log_dir>"); |
289 | 289 | if ($request_log_dir) { |
290 | - $request_log = $request_log_dir . "/" . $request_log; |
|
290 | + $request_log = $request_log_dir."/".$request_log; |
|
291 | 291 | } |
292 | 292 | if ($file = fopen($request_log, "a+")) { |
293 | - fwrite($file, "\n<job_file date=\"" . date(DATE_ATOM) . "\">\n" . $_POST['request'] . "\n</job_file>\n"); |
|
293 | + fwrite($file, "\n<job_file date=\"".date(DATE_ATOM)."\">\n".$_POST['request']."\n</job_file>\n"); |
|
294 | 294 | fclose($file); |
295 | 295 | } |
296 | 296 | } |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | xml_error(-1, "can't parse request message: ".htmlspecialchars($req), __FILE__, __LINE__); |
303 | 303 | } |
304 | 304 | |
305 | -switch($r->getName()) { |
|
305 | +switch ($r->getName()) { |
|
306 | 306 | case 'query_files': |
307 | 307 | query_files($r); |
308 | 308 | break; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | page_head(tra("Sending emails")); |
29 | 29 | $found = false; |
30 | -for ($i=0; $i<6; $i++) { |
|
30 | +for ($i = 0; $i < 6; $i++) { |
|
31 | 31 | $e = get_str("e$i", true); |
32 | 32 | if (!$e) continue; |
33 | 33 | $found = true; |
@@ -44,21 +44,21 @@ discard block |
||
44 | 44 | // Using the same rules as for rating (at least for now) |
45 | 45 | // |
46 | 46 | |
47 | -if ($user->total_credit<$forum->rate_min_total_credit || $user->expavg_credit<$forum->rate_min_expavg_credit) { |
|
47 | +if ($user->total_credit < $forum->rate_min_total_credit || $user->expavg_credit < $forum->rate_min_expavg_credit) { |
|
48 | 48 | error_page(tra("You need more average or total credit to report a post.")); |
49 | 49 | } |
50 | 50 | |
51 | 51 | // Action part |
52 | 52 | // |
53 | -$success_page=0; |
|
54 | -if (get_str("submit",true)){ |
|
53 | +$success_page = 0; |
|
54 | +if (get_str("submit", true)) { |
|
55 | 55 | check_tokens($user->authenticator); |
56 | 56 | $reason = get_str("reason"); |
57 | - if (send_report_post_email($user, $forum, $thread, $post, $reason)){ |
|
58 | - $success_page=1; |
|
57 | + if (send_report_post_email($user, $forum, $thread, $post, $reason)) { |
|
58 | + $success_page = 1; |
|
59 | 59 | } else { |
60 | 60 | echo "send email failed"; |
61 | - $success_page=-1; |
|
61 | + $success_page = -1; |
|
62 | 62 | } |
63 | 63 | } |
64 | 64 | |
@@ -66,13 +66,13 @@ discard block |
||
66 | 66 | |
67 | 67 | // Display part |
68 | 68 | // |
69 | -if ($success_page==1) { |
|
69 | +if ($success_page == 1) { |
|
70 | 70 | page_head(tra("Report Registered")); |
71 | 71 | echo tra("Your report has been recorded. Thanks for your input.")."<p>" |
72 | 72 | .tra("A moderator will now look at your report and decide what will happen - this may take a little while, so please be patient"); |
73 | 73 | |
74 | 74 | echo "<p><a href=\"forum_thread.php?id=$thread->id&postid=$post->id\">".tra("Return to thread")."</a>"; |
75 | -} elseif ($success_page==0){ |
|
75 | +} elseif ($success_page == 0) { |
|
76 | 76 | page_head(tra("Report a forum post")); |
77 | 77 | if (!$no_forum_rating) { |
78 | 78 | echo "<p>".tra("Before reporting this post, consider using the +/- rating system instead. If enough users rate a post negatively it will eventually be hidden.<br />You can find the rating system at the bottom of the post.")."</p> |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | echo "</td></tr>"; |
101 | 101 | end_table(); |
102 | 102 | echo "</form>"; |
103 | -} elseif ($success_page==-1) { |
|
103 | +} elseif ($success_page == -1) { |
|
104 | 104 | page_head(tra("Report not registered")); |
105 | 105 | echo "<p>".tra("Your report could not be recorded. Please wait a while and try again.")."</p> |
106 | 106 | <p>".tra("If this is not a temporary error, please report it to the project developers.")."</p> |
@@ -51,10 +51,10 @@ discard block |
||
51 | 51 | // Action part |
52 | 52 | // |
53 | 53 | $success_page=0; |
54 | -if (get_str("submit",true)){ |
|
54 | +if (get_str("submit",true)) { |
|
55 | 55 | check_tokens($user->authenticator); |
56 | 56 | $reason = get_str("reason"); |
57 | - if (send_report_post_email($user, $forum, $thread, $post, $reason)){ |
|
57 | + if (send_report_post_email($user, $forum, $thread, $post, $reason)) { |
|
58 | 58 | $success_page=1; |
59 | 59 | } else { |
60 | 60 | echo "send email failed"; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | .tra("A moderator will now look at your report and decide what will happen - this may take a little while, so please be patient"); |
73 | 73 | |
74 | 74 | echo "<p><a href=\"forum_thread.php?id=$thread->id&postid=$post->id\">".tra("Return to thread")."</a>"; |
75 | -} elseif ($success_page==0){ |
|
75 | +} elseif ($success_page==0) { |
|
76 | 76 | page_head(tra("Report a forum post")); |
77 | 77 | if (!$no_forum_rating) { |
78 | 78 | echo "<p>".tra("Before reporting this post, consider using the +/- rating system instead. If enough users rate a post negatively it will eventually be hidden.<br />You can find the rating system at the bottom of the post.")."</p> |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | $acquired = $acquired - $required; |
74 | 74 | $progress = 100; |
75 | 75 | } else { |
76 | - $progress = round($acquired / ($required) * 100); |
|
77 | - $progress2 = round($acquired / ($required) * 100,1); |
|
76 | + $progress = round($acquired/($required)*100); |
|
77 | + $progress2 = round($acquired/($required)*100, 1); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | $col2 = "<input style=\"float: left\" type=\"radio\" name=\"item_id\" value=\"".$row->id."\""; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } elseif ($progress == 100) { |
90 | 90 | $col2 .= "<div style=\"float: left; width: 300px; height: 18px; background-color: green; border: 1px solid #000000\">"; |
91 | 91 | } else { |
92 | - $col2 .= "<div style=\"float: left; width: ".($progress*3 - 1)."px; height: 18px; background-color: green; border: 1px solid #000000;\" align=\"right\"><b>".$progress2."</b>%</div><div style=\"float: left; width: ".((100-$progress)*3 - 1)."px; height: 18px; background-color: red; border: 1px solid #000000;\">"; |
|
92 | + $col2 .= "<div style=\"float: left; width: ".($progress*3 - 1)."px; height: 18px; background-color: green; border: 1px solid #000000;\" align=\"right\"><b>".$progress2."</b>%</div><div style=\"float: left; width: ".((100 - $progress)*3 - 1)."px; height: 18px; background-color: red; border: 1px solid #000000;\">"; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | row2($col1, $col2); |
@@ -98,50 +98,35 @@ |
||
98 | 98 | $amount = "<select class=\"form-control\" name=\"from\" onchange=\"Cvalue();numberFormat();\" style=\"width: 200px;\">\n"; |
99 | 99 | if (DONATION_CURRENCY == "EUR") { |
100 | 100 | $amount .= "<option value=\"51\">Euros</option>\n"; |
101 | -} |
|
102 | -elseif (DONATION_CURRENCY == "CAD") { |
|
101 | +} elseif (DONATION_CURRENCY == "CAD") { |
|
103 | 102 | $amount .= "<option value=\"30\">Canadian Dollars</option>\n"; |
104 | -} |
|
105 | -elseif (DONATION_CURRENCY == "GBP") { |
|
103 | +} elseif (DONATION_CURRENCY == "GBP") { |
|
106 | 104 | $amount .= "<option value=\"24\">Pounds Sterling</option>\n"; |
107 | -} |
|
108 | -elseif (DONATION_CURRENCY == "USD") { |
|
105 | +} elseif (DONATION_CURRENCY == "USD") { |
|
109 | 106 | $amount .= "<option value=\"3\">U.S. Dollars</option>\n"; |
110 | -} |
|
111 | -elseif (DONATION_CURRENCY == "JPY") { |
|
107 | +} elseif (DONATION_CURRENCY == "JPY") { |
|
112 | 108 | $amount .= "<option value=\"72\">Yen</option>\n"; |
113 | -} |
|
114 | -elseif (DONATION_CURRENCY == "AUD") { |
|
109 | +} elseif (DONATION_CURRENCY == "AUD") { |
|
115 | 110 | $amount .= "<option value=\"9\">Australian Dollars</option>\n"; |
116 | -} |
|
117 | -elseif (DONATION_CURRENCY == "NZD") { |
|
111 | +} elseif (DONATION_CURRENCY == "NZD") { |
|
118 | 112 | $amount .= "<option value=\"102\">New Zealand Dollars</option>\n"; |
119 | -} |
|
120 | -elseif (DONATION_CURRENCY == "CHF") { |
|
113 | +} elseif (DONATION_CURRENCY == "CHF") { |
|
121 | 114 | $amount .= "<option value=\"139\">Swiss Francs</option>\n"; |
122 | -} |
|
123 | -elseif (DONATION_CURRENCY == "HKD") { |
|
115 | +} elseif (DONATION_CURRENCY == "HKD") { |
|
124 | 116 | $amount .= "<option value=\"63\">Hong Kong Dollars</option>\n"; |
125 | -} |
|
126 | -elseif (DONATION_CURRENCY == "SGD") { |
|
117 | +} elseif (DONATION_CURRENCY == "SGD") { |
|
127 | 118 | $amount .= "<option value=\"126\">Singapore Dollars</option>\n"; |
128 | -} |
|
129 | -elseif (DONATION_CURRENCY == "SEK") { |
|
119 | +} elseif (DONATION_CURRENCY == "SEK") { |
|
130 | 120 | $amount .= "<option value=\"138\">Swedish Kronor</option>\n"; |
131 | -} |
|
132 | -elseif (DONATION_CURRENCY == "DKK") { |
|
121 | +} elseif (DONATION_CURRENCY == "DKK") { |
|
133 | 122 | $amount .= "<option value=\"42\">Danish Kroner</option>\n"; |
134 | -} |
|
135 | -elseif (DONATION_CURRENCY == "PLN") { |
|
123 | +} elseif (DONATION_CURRENCY == "PLN") { |
|
136 | 124 | $amount .= "<option value=\"114\">Polish Zloty</option>\n"; |
137 | -} |
|
138 | -elseif (DONATION_CURRENCY == "NOK") { |
|
125 | +} elseif (DONATION_CURRENCY == "NOK") { |
|
139 | 126 | $amount .= "<option value=\"106\">Norwegian Kroner</option>\n"; |
140 | -} |
|
141 | -elseif (DONATION_CURRENCY == "HUF") { |
|
127 | +} elseif (DONATION_CURRENCY == "HUF") { |
|
142 | 128 | $amount .= "<option value=\"64\">Hungarian Forint</option>\n"; |
143 | -} |
|
144 | -elseif (DONATION_CURRENCY == "CZK") { |
|
129 | +} elseif (DONATION_CURRENCY == "CZK") { |
|
145 | 130 | $amount .= "<option value=\"41\">Czech Koruna</option>\n"; |
146 | 131 | } |
147 | 132 | $amount .= "</select>\n"; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | // hardwired app name for now |
46 | 46 | define('APP_NAME', 'remote_test'); |
47 | 47 | |
48 | -$project = $master_url; // from project.inc |
|
48 | +$project = $master_url; // from project.inc |
|
49 | 49 | $user = get_logged_in_user(); |
50 | 50 | $auth = $user->authenticator; |
51 | 51 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $user_submit = BoincUserSubmit::lookup_userid($user->id); |
159 | 159 | if (!$user_submit) return null; |
160 | 160 | $a = array(); |
161 | - foreach($apps as $app) { |
|
161 | + foreach ($apps as $app) { |
|
162 | 162 | if ($user_submit->submit_all) { |
163 | 163 | $a[] = $app; |
164 | 164 | } else { |
@@ -235,9 +235,9 @@ discard block |
||
235 | 235 | $input_url = get_str('input_url'); |
236 | 236 | if (!$input_url) error_page("missing input URL"); |
237 | 237 | $param_lo = (double)get_str('param_lo'); |
238 | - if ($param_lo<0 || $param_lo>60) error_page("param lo must be in 0..60"); |
|
238 | + if ($param_lo < 0 || $param_lo > 60) error_page("param lo must be in 0..60"); |
|
239 | 239 | $param_hi = (double)get_str('param_hi'); |
240 | - if ($param_hi<0 || $param_hi>60 || $param_hi <= $param_lo) { |
|
240 | + if ($param_hi < 0 || $param_hi > 60 || $param_hi <= $param_lo) { |
|
241 | 241 | error_page("param hi must be in 0..60 and > param lo"); |
242 | 242 | } |
243 | 243 | $param_inc = (double)get_str('param_inc'); |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | $f->source = $input_url; |
255 | 255 | $f->mode = 'semilocal'; |
256 | 256 | |
257 | - for ($x=$param_lo; $x<$param_hi; $x += $param_inc) { |
|
257 | + for ($x = $param_lo; $x < $param_hi; $x += $param_inc) { |
|
258 | 258 | $job = new StdClass; |
259 | 259 | $job->rsc_fpops_est = $x*1e9; |
260 | 260 | $job->command_line = "--t $x"; |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | "status", |
344 | 344 | "Canonical instance<br><p class=\"text-muted\">click to see result page on BOINC server</p>" |
345 | 345 | ); |
346 | - foreach($batch->jobs as $job) { |
|
346 | + foreach ($batch->jobs as $job) { |
|
347 | 347 | $id = (int)$job->id; |
348 | 348 | $resultid = (int)$job->canonical_instance_id; |
349 | 349 | if ($resultid) { |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | "Instance ID<br><p class=\"text-muted\">click for result page on BOINC server</p>", |
387 | 387 | "State", "Output files" |
388 | 388 | ); |
389 | - foreach($reply->instances as $inst) { |
|
389 | + foreach ($reply->instances as $inst) { |
|
390 | 390 | echo "<tr> |
391 | 391 | <td><a href=result.php?resultid=$inst->id>$inst->id</a></td> |
392 | 392 | <td>$inst->state</td> |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | list($batch, $errmsg) = boinc_query_batch($req); |
303 | 303 | if ($errmsg) error_page(htmlentities($errmsg)); |
304 | 304 | |
305 | - page_head("Batch $req->batch_id"); |
|
305 | + page_head("batch $req->batch_id"); |
|
306 | 306 | start_table(); |
307 | 307 | row2("name", $batch->name); |
308 | 308 | row2("application", $batch->app_name); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | list($reply, $errmsg) = boinc_query_job($req); |
379 | 379 | if ($errmsg) error_page(htmlentities($errmsg)); |
380 | 380 | |
381 | - page_head("Job $req->job_id"); |
|
381 | + page_head("job $req->job_id"); |
|
382 | 382 | echo "<a href=$project/workunit.php?wuid=$req->job_id>View workunit page on BOINC server</a>\n"; |
383 | 383 | echo "<h2>Instances</h2>\n"; |
384 | 384 | start_table(); |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | check_get_args(array("id")); |
23 | 23 | |
24 | 24 | function show_credit_wap($user) { |
25 | - $retstr = "<br/>User TotCred: " . format_credit($user->total_credit) . "<br/>"; |
|
26 | - $retstr .= "User AvgCred: " . format_credit($user->expavg_credit) . "<br/>"; |
|
25 | + $retstr = "<br/>User TotCred: ".format_credit($user->total_credit)."<br/>"; |
|
26 | + $retstr .= "User AvgCred: ".format_credit($user->expavg_credit)."<br/>"; |
|
27 | 27 | return $retstr; |
28 | 28 | } |
29 | 29 | |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | $wapstr .= show_credit_wap($user); |
46 | 46 | if ($user->teamid && $team) { |
47 | 47 | $wapstr .= "<br/>".tra("Team:")." ".$team->name."<br/>"; |
48 | - $wapstr .= tra("Team TotCred:")." " . format_credit($team->total_credit) . "<br/>"; |
|
49 | - $wapstr .= tra("Team AvgCred:")." " . format_credit($team->expavg_credit) . "<br/>"; |
|
48 | + $wapstr .= tra("Team TotCred:")." ".format_credit($team->total_credit)."<br/>"; |
|
49 | + $wapstr .= tra("Team AvgCred:")." ".format_credit($team->expavg_credit)."<br/>"; |
|
50 | 50 | } else { |
51 | 51 | $wapstr .= "<br/>".tra("Team: None")."<br/>"; |
52 | 52 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | |
52 | 52 | start_table(); |
53 | 53 | row2("From:", "$user->name <$user->email_addr>"); |
54 | -for ($i=0; $i<6; $i++) { |
|
54 | +for ($i = 0; $i < 6; $i++) { |
|
55 | 55 | row2(tra("To:"), "<input size=30 name=e$i>"); |
56 | 56 | } |
57 | 57 | row2(tra("Subject"), "<input size=80 name=subject value=\"$subject\">"); |