Completed
Branch master (72d684)
by Christian
13:26
created
doc/manager_links.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
 	} else {
42 42
 		header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
43 43
 	}
44
-} else if  ($target == "advanced_preferences") {
44
+} else if ($target == "advanced_preferences") {
45 45
     header('Location: https://boinc.berkeley.edu/wiki/Local_preferences#Advanced_view');
46
-} else if  ($target == "simple_preferences") {
46
+} else if ($target == "simple_preferences") {
47 47
     header('Location: https://boinc.berkeley.edu/wiki/Local_preferences#Simple_view');
48 48
 } else if (($target == "advanced") && version_compare($version, "5.10.0", ">=") && version_compare($version, "6.12.0", "<")) {
49 49
 	if ($controlid == "6024") {
Please login to merge, or discard this patch.
doc/project.inc 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -115,30 +115,30 @@
 block discarded – undo
115 115
 }
116 116
 
117 117
 function show_profile_heading2() {
118
-    return "Your opinions about " . PROJECT;
118
+    return "Your opinions about ".PROJECT;
119 119
 }
120 120
 
121 121
 function show_profile_question2() {
122 122
     return "
123
-        Tell us your thoughts about " . PROJECT . "<ol>
124
-        <li>Why do you run " . PROJECT . "?
123
+        Tell us your thoughts about " . PROJECT."<ol>
124
+        <li>Why do you run " . PROJECT."?
125 125
         <li>What are your views about the project?
126 126
         <li>Any suggestions?
127 127
         </ol>
128 128
     ";
129 129
 }
130 130
 
131
-function project_workunit($wu){
131
+function project_workunit($wu) {
132 132
     echo "This is displayed on the workunit page";
133 133
 }
134 134
 
135
-function project_user_summary($user){
135
+function project_user_summary($user) {
136 136
 }
137 137
 
138
-function project_user_page_private($user){
138
+function project_user_page_private($user) {
139 139
 }
140 140
 
141
-function project_user_credit($user){
141
+function project_user_credit($user) {
142 142
     if ($user->seti_nresults) {
143 143
         row2(
144 144
             "SETI@home classic workunits
Please login to merge, or discard this patch.
doc/projects.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -760,7 +760,7 @@
 block discarded – undo
760 760
     foreach ($areas as $area) {
761 761
         foreach ($area as $p) {
762 762
             if ($p[1] == $url) return $p;
763
-            if (sizeof($p)>6 && $p[6] == $url) return $p;
763
+            if (sizeof($p) > 6 && $p[6] == $url) return $p;
764 764
         }
765 765
     }
766 766
     return null;
Please login to merge, or discard this patch.
doc/download.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
 // show a download link as a button or table row
13 13
 //
14
-function download_link($pname, $button=false) {
14
+function download_link($pname, $button = false) {
15 15
     global $platforms;
16 16
     global $url_base;
17 17
     global $client_info;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         if ($vbox_file) {
79 79
             echo "</td></tr></table>\n";
80 80
         }
81
-        if ($pname == 'linux'||$pname == 'linuxx64') {
81
+        if ($pname == 'linux' || $pname == 'linuxx64') {
82 82
             echo "<p>", linux_info();
83 83
         }
84 84
     } else {
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 if (get_str2('all_platforms')) {
203 203
     show_download(null);
204 204
 } else if (strstr($client_info, 'Windows')) {
205
-    if (strstr($client_info, 'Win64')||strstr($client_info, 'WOW64')) {
205
+    if (strstr($client_info, 'Win64') || strstr($client_info, 'WOW64')) {
206 206
         show_download('winx64');
207 207
     } else {
208 208
         show_download('win');
Please login to merge, or discard this patch.
doc/versions.inc 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 function type_text($type) {
4 4
     global $xml;
5 5
     if ($xml) {
6
-        switch($type) {
6
+        switch ($type) {
7 7
         case "win_old":
8 8
             return "Single-mode Windows installer";
9 9
         case "win_new":
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
             return "Android Installer";
19 19
         }
20 20
     } else {
21
-        switch($type) {
21
+        switch ($type) {
22 22
         case "win_old":
23 23
             return "<a href=client_windows.php>Single-mode Windows installer</a>";
24 24
         case "win_new":
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 
401 401
 // note: rand() is inclusive
402 402
 //switch(rand(0,3)) {
403
-switch(0) {
403
+switch (0) {
404 404
     case 0: $url_base = "https://boinc.berkeley.edu/dl/"; break;
405 405
     //case 0: $url_base = "http://boincdl3.ssl.berkeley.edu/mirror/"; break;
406 406
     //case 1: $url_base = "http://einstein.ligo.caltech.edu/download/boinc/dl/"; break;
Please login to merge, or discard this patch.
doc/project_list.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     }
44 44
 }
45 45
 
46
-foreach($proj_list as $p) {
46
+foreach ($proj_list as $p) {
47 47
     echo "    <project>
48 48
         <name>$p->name</name>
49 49
         <url>$p->url</url>
Please login to merge, or discard this patch.
doc/concierge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 function url_to_download() {
53 53
     $client_info = $_SERVER['HTTP_USER_AGENT'];
54 54
     if (strstr($client_info, 'Windows')) {
55
-        if (strstr($client_info, 'Win64')||strstr($client_info, 'WOW64')) {
55
+        if (strstr($client_info, 'Win64') || strstr($client_info, 'WOW64')) {
56 56
             return get_download_url('winx64');
57 57
         } else {
58 58
             return get_download_url('win');
Please login to merge, or discard this patch.
doc/help.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 <li> ".tra("using Skype chat")."
26 26
 </ul>
27 27
 <p>
28
-".tra("Volunteers speaking many languages are available. Please select a language (number of helpers is shown):"),"
28
+".tra("Volunteers speaking many languages are available. Please select a language (number of helpers is shown):"), "
29 29
 <p>
30 30
 ";
31 31
 
Please login to merge, or discard this patch.
doc/set_language.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 require_once("../html/inc/translation.inc");
3 3
 $languages = get_supported_languages();
4 4
 $lang = $_GET['lang'];
5
-if (!in_array($lang, $languages) && $lang!="auto" && $lang!="en") {
5
+if (!in_array($lang, $languages) && $lang != "auto" && $lang != "en") {
6 6
     echo "Language $lang is not supported";
7 7
 } else {
8
-    setcookie('lang', $lang, time()+3600*24*365);
8
+    setcookie('lang', $lang, time() + 3600*24*365);
9 9
     header('Location: index.php');
10 10
 }
11 11
 ?>
Please login to merge, or discard this patch.