@@ -25,14 +25,14 @@ |
||
25 | 25 | |
26 | 26 | // activate/deactivate script |
27 | 27 | if (1) { |
28 | - echo " |
|
28 | + echo " |
|
29 | 29 | This script needs to be activated before it can be run. |
30 | 30 | Once you understand what the script does you can change the |
31 | 31 | if (1) to if (0) at the top of the file to activate it. |
32 | 32 | Be sure to deactivate the script after using it to make sure |
33 | 33 | it is not accidentally run. |
34 | 34 | "; |
35 | - exit; |
|
35 | + exit; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | db_init(); |
@@ -41,9 +41,9 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | function find_oldest() { |
44 | - $result=_mysql_query("select name,create_time from result where server_state=2 order by create_time limit 1"); |
|
45 | - $x = _mysql_fetch_object($result); |
|
46 | - return $x->create_time; |
|
44 | + $result=_mysql_query("select name,create_time from result where server_state=2 order by create_time limit 1"); |
|
45 | + $x = _mysql_fetch_object($result); |
|
46 | + return $x->create_time; |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | function daemon_status($host, $pidname) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | db_init(); |
44 | 44 | |
45 | - wap_begin(); |
|
45 | + wap_begin(); |
|
46 | 46 | |
47 | 47 | // keep a 'running tab' in wapstr in case exceeds 1K WAP limit |
48 | 48 | |
@@ -56,15 +56,15 @@ discard block |
||
56 | 56 | //$wapstr .= "#Activ: " . getSingleQuery("select count(distinct hostid) from cpdnexpt.trickle " |
57 | 57 | // . "where trickledate>=" . sprintf("%d", mktime() - (3600*24*7))) . "<br/>"; |
58 | 58 | |
59 | - // finally get last 5 trickles for everyone |
|
60 | - //$wapstr .= show_trickles("a", 0, 5, 1); |
|
59 | + // finally get last 5 trickles for everyone |
|
60 | + //$wapstr .= show_trickles("a", 0, 5, 1); |
|
61 | 61 | |
62 | - // limit wap output to 1KB |
|
63 | - if (strlen($wapstr)>1024) |
|
64 | - echo substr($wapstr,0,1024); |
|
65 | - else |
|
66 | - echo $wapstr; |
|
62 | + // limit wap output to 1KB |
|
63 | + if (strlen($wapstr)>1024) |
|
64 | + echo substr($wapstr,0,1024); |
|
65 | + else |
|
66 | + echo $wapstr; |
|
67 | 67 | |
68 | - wap_end(); |
|
68 | + wap_end(); |
|
69 | 69 | |
70 | 70 | ?> |
@@ -84,7 +84,7 @@ |
||
84 | 84 | |
85 | 85 | $result = _mysql_query($query); |
86 | 86 | while ($user = _mysql_fetch_object($result)) { |
87 | - // TODO: might want to also replace TOTAL_CREDIT, RAC, and similar. |
|
87 | + // TODO: might want to also replace TOTAL_CREDIT, RAC, and similar. |
|
88 | 88 | $body_to_send = str_replace("USERNAME", $user->name, $body); |
89 | 89 | $body_to_send .= "\n\nTo opt out of future emails from ".PROJECT.", please edit your project preferences at ".secure_url_base()."prefs.php?subset=project\n"; |
90 | 90 | $retval = send_email($user, $subject, $body_to_send); |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | start_table(); |
36 | 36 | |
37 | 37 | switch($table){ |
38 | - case "platform": |
|
39 | - break; |
|
40 | - case "app": |
|
41 | - break; |
|
38 | + case "platform": |
|
39 | + break; |
|
40 | + case "app": |
|
41 | + break; |
|
42 | 42 | case "app_version": |
43 | 43 | print_detail_field(); |
44 | 44 | print_query_field(); |
@@ -89,8 +89,8 @@ discard block |
||
89 | 89 | case "user": |
90 | 90 | print_query_field(); |
91 | 91 | break; |
92 | - default: |
|
93 | - echo "Unknown table name\n"; |
|
92 | + default: |
|
93 | + echo "Unknown table name\n"; |
|
94 | 94 | exit(); |
95 | 95 | } |
96 | 96 |
@@ -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> |
@@ -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 | } |
@@ -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 |