@@ -50,7 +50,7 @@ |
||
50 | 50 | $nunsent = $x[0]; |
51 | 51 | |
52 | 52 | if ($nsuccess>=3 and $nunsent==0) { |
53 | - echo "WU $wu->id has $nsuccess success, $nunsent unsent \n"; |
|
53 | + echo "wu $wu->id has $nsuccess success, $nunsent unsent \n"; |
|
54 | 54 | _mysql_query("update workunit set need_validate=1 where id=$wu->id"); |
55 | 55 | } |
56 | 56 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $bitset = ''; |
27 | 27 | |
28 | 28 | for ($i=0;$i<S_NFLAGS;$i++) { |
29 | - if (post_int("role".$i, TRUE) == '1') { |
|
29 | + if (post_int("role".$i, true) == '1') { |
|
30 | 30 | $bitset = str_pad($bitset, $i+1, '1'); |
31 | 31 | } else { |
32 | 32 | $bitset = str_pad($bitset, $i+1, '0'); |
@@ -83,11 +83,11 @@ |
||
83 | 83 | $update="update user set email_addr='$new_email', cross_project_id='$newcpid' where id='$id'"; |
84 | 84 | if ($confirm != "yes") { |
85 | 85 | echo "QUERY WOULD BE [$id] $query <br/>[click the link at the bottom to enable]<br/>"; |
86 | - $update_needed = TRUE; |
|
86 | + $update_needed = true; |
|
87 | 87 | } |
88 | 88 | else { |
89 | 89 | _mysql_query($update); |
90 | - echo "Doing $update<br/>\n"; |
|
90 | + echo "doing $update<br/>\n"; |
|
91 | 91 | } |
92 | 92 | } |
93 | 93 | } |
@@ -141,7 +141,7 @@ |
||
141 | 141 | global $special_user_bitfield; |
142 | 142 | $Nbf = sizeof($special_user_bitfield); |
143 | 143 | |
144 | - admin_page_head("Management $user->name"); |
|
144 | + admin_page_head("management $user->name"); |
|
145 | 145 | |
146 | 146 | if (!defined("POST_REPORT_EMAILS")) { |
147 | 147 | echo "<p><font color='RED'> |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $n = post_str("fraction_done_exact", true)?1:0; |
50 | 50 | $app->update("fraction_done_exact=$n"); |
51 | 51 | |
52 | - echo "Application $id updated. |
|
52 | + echo "application $id updated. |
|
53 | 53 | <p> |
54 | 54 | You must restart the project for this to take effect. |
55 | 55 | "; |
@@ -180,7 +180,7 @@ |
||
180 | 180 | $numPages = 1; |
181 | 181 | } |
182 | 182 | |
183 | - print_debug_msg("Generating $numPages pages"); |
|
183 | + print_debug_msg("generating $numPages pages"); |
|
184 | 184 | |
185 | 185 | $count = 0; |
186 | 186 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | "X-Poedit-SourceCharset: utf-8\\n" |
37 | 37 | |
38 | 38 | |
39 | -HDR; |
|
39 | +hdr; |
|
40 | 40 | |
41 | 41 | $out = fopen("en.po", "w"); |
42 | 42 |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | function show_host_av($host_id, $av_id) { |
88 | 88 | $hav = BoincHostAppVersion::lookup("host_id=$host_id and app_version_id=$av_id"); |
89 | - page_head("Host $host_id / app_version $av_id credit"); |
|
89 | + page_head("host $host_id / app_version $av_id credit"); |
|
90 | 90 | echo "Results"; |
91 | 91 | $rs = BoincResult::enum("hostid=$host_id and app_version_id=$av_id and validate_state=1 order by id desc limit 100"); |
92 | 92 | start_table(); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | function show_appl($app_id) { |
182 | 182 | $app = BoincApp::lookup_id($app_id); |
183 | - page_head("App $app->user_friendly_name credit"); |
|
183 | + page_head("app $app->user_friendly_name credit"); |
|
184 | 184 | $avs = BoincAppVersion::enum("appid=$app_id and deprecated=0"); |
185 | 185 | start_table(); |
186 | 186 | table_header("platform/class/version", "PFC nsamples", "PFC avg", "PFC scale"); |
@@ -251,7 +251,7 @@ |
||
251 | 251 | $pid = file_get_contents($path); |
252 | 252 | if ($pid) { |
253 | 253 | $pid = trim($pid); |
254 | - $out = Array(); |
|
254 | + $out = array(); |
|
255 | 255 | exec("ps -ww $pid", $out); |
256 | 256 | foreach ($out as $y) { |
257 | 257 | if (strstr($y, (string)$pid)) return 1; |