@@ -38,7 +38,7 @@ |
||
38 | 38 | WHERE CONVERT(special_user, DECIMAL) > 0 and prefs.userid=user.id" |
39 | 39 | ); |
40 | 40 | for ($i=1; $i<=_mysql_num_rows($result); $i++){ |
41 | - $foo = _mysql_fetch_object($result); |
|
41 | + $foo = _mysql_fetch_object($result); |
|
42 | 42 | echo "<form action=\"manage_special_users_action.php\" method=\"POST\">\n"; |
43 | 43 | echo "<input type=\"hidden\" name=\"userid\" value=\"$foo->userid\" |
44 | 44 | <tr><td>$foo->name ($foo->id)</td> |
@@ -305,9 +305,9 @@ discard block |
||
305 | 305 | $value=null; |
306 | 306 | } |
307 | 307 | if (isset($_GET[$order])) { |
308 | - $order = $_GET[$order]; |
|
308 | + $order = $_GET[$order]; |
|
309 | 309 | } else { |
310 | - $order = null; |
|
310 | + $order = null; |
|
311 | 311 | } |
312 | 312 | if (strlen($value)) { |
313 | 313 | if ($order == 'asc') { |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | $res = new StdClass; |
576 | 576 | $res->server_state = $ss; |
577 | 577 | row2(result_server_state_string($res), |
578 | - link_results("$server_state[$ss]", $urlquery,"server_state=$ss", '') |
|
578 | + link_results("$server_state[$ss]", $urlquery,"server_state=$ss", '') |
|
579 | 579 | ); |
580 | 580 | } |
581 | 581 | echo "</table></td>"; |
@@ -1026,8 +1026,8 @@ discard block |
||
1026 | 1026 | |
1027 | 1027 | function validate_color($validate_state) { |
1028 | 1028 | switch ($validate_state) { |
1029 | - case 1: return '33cc33'; // valid, green |
|
1030 | - case 2: return 'ffa500'; // invalid result, orange |
|
1029 | + case 1: return '33cc33'; // valid, green |
|
1030 | + case 2: return 'ffa500'; // invalid result, orange |
|
1031 | 1031 | } |
1032 | 1032 | return ''; |
1033 | 1033 | } |
@@ -164,7 +164,7 @@ |
||
164 | 164 | $user->prefs = $prefs; |
165 | 165 | } |
166 | 166 | function privilege($specialbit) { |
167 | - return (substr($this->special_user, $specialbit,1)==1); |
|
167 | + return (substr($this->special_user, $specialbit,1)==1); |
|
168 | 168 | } |
169 | 169 | function update($clause) { |
170 | 170 | $db = BoincDb::get(); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | function print_text_field($text,$name,$value) { |
64 | 64 | echo "$text <input type=\"text\" size=\"10\" name=\"$name\" value=\"$value\">\n" |
65 | - . "<p>\n"; |
|
65 | + . "<p>\n"; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | function row($x, $y) { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | $db->do_query($q4); |
379 | 379 | return 2; |
380 | 380 | } else if (!$db->do_query($q3)) { |
381 | - echo "MySQL command '$q3' failed:<br/>unable to cancel workunits and trigger transitioner.<br>\n"; |
|
381 | + echo "MySQL command '$q3' failed:<br/>unable to cancel workunits and trigger transitioner.<br>\n"; |
|
382 | 382 | $db->do_query($q4); |
383 | 383 | return 3; |
384 | 384 | } |
@@ -868,13 +868,13 @@ |
||
868 | 868 | if ($generating_xml) { |
869 | 869 | xml_error(-183); |
870 | 870 | } else { |
871 | - if (!$did_page_head) { |
|
872 | - page_head(tra("Project down for maintenance")); |
|
873 | - } |
|
871 | + if (!$did_page_head) { |
|
872 | + page_head(tra("Project down for maintenance")); |
|
873 | + } |
|
874 | 874 | echo tra( |
875 | - "%1 is temporarily shut down for maintenance. Please try again later.", |
|
876 | - PROJECT |
|
877 | - ); |
|
875 | + "%1 is temporarily shut down for maintenance. Please try again later.", |
|
876 | + PROJECT |
|
877 | + ); |
|
878 | 878 | page_tail(); |
879 | 879 | exit(); |
880 | 880 | } |
@@ -11,10 +11,10 @@ |
||
11 | 11 | |
12 | 12 | spl_autoload_register(function ($class) { |
13 | 13 | if (substr($class, 0, 10) !== 'ReCaptcha\\') { |
14 | - /* If the class does not lie under the "ReCaptcha" namespace, |
|
14 | + /* If the class does not lie under the "ReCaptcha" namespace, |
|
15 | 15 | * then we can exit immediately. |
16 | 16 | */ |
17 | - return; |
|
17 | + return; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /* All of the classes have names like "ReCaptcha\Foo", so we need |
@@ -358,10 +358,10 @@ |
||
358 | 358 | $db = BoincDb::get(); |
359 | 359 | return $db->enum('result', 'BoincResult', $where_clause); |
360 | 360 | } |
361 | - static function enum_fields($fields, $where_clause, $order_clause) { |
|
361 | + static function enum_fields($fields, $where_clause, $order_clause) { |
|
362 | 362 | $db = BoincDb::get(); |
363 | - return $db->enum_fields('result', 'BoincResult', $fields, $where_clause, $order_clause); |
|
364 | - } |
|
363 | + return $db->enum_fields('result', 'BoincResult', $fields, $where_clause, $order_clause); |
|
364 | + } |
|
365 | 365 | function update($clause) { |
366 | 366 | $db = BoincDb::get(); |
367 | 367 | return $db->update($this, 'result', $clause); |
@@ -191,7 +191,7 @@ |
||
191 | 191 | $min_credit = parse_config(get_config(), "<profile_min_credit>"); |
192 | 192 | if (!$logged_in_user && $min_credit && $user->expavg_credit < $min_credit ) { |
193 | 193 | error_page( |
194 | - tra("To prevent spam, profiles of users with an average credit of less than %1 are displayed only to logged-in users. We apologize for this inconvenience.", $min_credit) |
|
194 | + tra("To prevent spam, profiles of users with an average credit of less than %1 are displayed only to logged-in users. We apologize for this inconvenience.", $min_credit) |
|
195 | 195 | ); |
196 | 196 | } |
197 | 197 | if (is_banished($user)) { |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | header("Expires: Thu, 01 Jan 1970 00:00:00 GMT"); |
24 | 24 | |
25 | 25 | echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>" |
26 | - . "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" " |
|
27 | - . "\"http://www.wapforum.org/DTD/wml_1.2.xml\">" |
|
28 | - . "<wml><card id=\"cd1\"><p>"; |
|
26 | + . "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.2//EN\" " |
|
27 | + . "\"http://www.wapforum.org/DTD/wml_1.2.xml\">" |
|
28 | + . "<wml><card id=\"cd1\"><p>"; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | function wap_end() { |
@@ -33,6 +33,6 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | function wap_timestamp() { |
36 | - return gmdate('j M Y G:i:s', time()) . " UTC"; |
|
36 | + return gmdate('j M Y G:i:s', time()) . " UTC"; |
|
37 | 37 | } |
38 | 38 | ?> |