Passed
Push — master ( 90102b...16e7c5 )
by Christian
07:15
created
html/inc/dir_hier.inc 1 patch
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
     $dl_md5_path = "$dl_path.md5";
57 57
     $have_md5_file = false;
58 58
     $md5 = md5_file($path);
59
-    if ($md5 === FALSE) {
59
+    if ($md5 === false) {
60 60
         return -2;
61 61
     }
62 62
     $size = filesize($path);
63
-    if ($size === FALSE) {
63
+    if ($size === false) {
64 64
         return -2;
65 65
     }
66 66
 
67 67
     if (file_exists($dl_md5_path)) {
68 68
         $x = file_get_contents($dl_md5_path);
69
-        if ($x === FALSE) {
69
+        if ($x === false) {
70 70
             return -2;
71 71
         }
72 72
         $x = explode(" ", $x);
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     if (file_exists($dl_path)) {
79 79
         if ($have_md5_file) {
80 80
             $s = filesize($dl_path);
81
-            if ($s === FALSE) {
81
+            if ($s === false) {
82 82
                 return -2;
83 83
             }
84 84
             if ($s == $dl_size && $dl_md5 == $md5) {
@@ -91,11 +91,11 @@  discard block
 block discarded – undo
91 91
             // missing the .md5 file; need to look at the file
92 92
             //
93 93
             $m = md5_file($dl_path);
94
-            if ($m === FALSE) {
94
+            if ($m === false) {
95 95
                 return -2;
96 96
             }
97 97
             if ($m == $md5) {
98
-                if (file_put_contents($dl_md5_path, "$md5 $size\n") === FALSE) {
98
+                if (file_put_contents($dl_md5_path, "$md5 $size\n") === false) {
99 99
                     return -2;
100 100
                 }
101 101
                 return 0;
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             return -1;
104 104
         }
105 105
     } else {
106
-        if (file_put_contents($dl_md5_path, "$md5 $size\n") === FALSE) {
106
+        if (file_put_contents($dl_md5_path, "$md5 $size\n") === false) {
107 107
             return -2;
108 108
         }
109 109
         return 1;
Please login to merge, or discard this patch.
html/inc/forum.inc 4 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@
 block discarded – undo
367 367
                 $i++;
368 368
             }
369 369
             if ($start === null) {
370
-                echo "Post $postid not found.";
370
+                echo "post $postid not found.";
371 371
                 return;
372 372
             }
373 373
         } else if ($logged_in_user && $logged_in_user->prefs->jump_to_unread) {
Please login to merge, or discard this patch.
Braces   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
 // return a string for navigating pages
226 226
 //
227
-function page_links($url, $nitems, $items_per_page, $start){
227
+function page_links($url, $nitems, $items_per_page, $start) {
228 228
     // How many pages to potentially show before and after this one:
229 229
     $preshow = 3;
230 230
     $postshow = 3;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 
238 238
     // If this is not the first page, display "previous"
239 239
     //
240
-    if ($curpage > 0){
240
+    if ($curpage > 0) {
241 241
         $x .= page_link(
242 242
             $url, $curpage-1, $items_per_page,
243 243
             tra("Previous")." · "
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
     }
255 255
     // Display a list of pages surrounding this one
256 256
     //
257
-    for ($i=$curpage-$preshow; $i<=$curpage+$postshow; $i++){
257
+    for ($i=$curpage-$preshow; $i<=$curpage+$postshow; $i++) {
258 258
         $page_str = (string)($i+1);
259 259
         if ($i < 0) continue;
260 260
         if ($i >= $npages) break;
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     }
276 276
     // If there is a next page
277 277
     //
278
-    if ($curpage < $npages-1){
278
+    if ($curpage < $npages-1) {
279 279
         $x .= page_link(
280 280
             $url, $curpage+1, $items_per_page,
281 281
             " &middot; ".tra("Next")
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 
503 503
     // If the user no longer exists, skip the post
504 504
     //
505
-    if (!$user){
505
+    if (!$user) {
506 506
         return;
507 507
     }
508 508
 
@@ -518,9 +518,9 @@  discard block
 block discarded – undo
518 518
     // check whether the poster is on the list of people to ignore
519 519
     //
520 520
     $ignore_poster = false;
521
-    if ($logged_in_user){
521
+    if ($logged_in_user) {
522 522
         $tokens = url_tokens($logged_in_user->authenticator);
523
-        if (is_ignoring($logged_in_user, $user)){
523
+        if (is_ignoring($logged_in_user, $user)) {
524 524
             $ignore_poster = true;
525 525
         }
526 526
     }
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
     
558 558
     // Highlight special users if set in prefs;
559 559
     //
560
-    if ($logged_in_user && $logged_in_user->prefs){
560
+    if ($logged_in_user && $logged_in_user->prefs) {
561 561
         $highlight = $logged_in_user->prefs->highlight_special && $is_posted_by_special;
562 562
     } else {
563 563
         $highlight = $is_posted_by_special;
@@ -578,7 +578,7 @@  discard block
 block discarded – undo
578 578
     echo "<span class=\"small\">";
579 579
     if ($fstatus) echo "$fstatus";
580 580
 
581
-    if (!$filter || !$ignore_poster){
581
+    if (!$filter || !$ignore_poster) {
582 582
         if ($user->prefs && $user->prefs->avatar!="" && (!$logged_in_user || ($logged_in_user->prefs->hide_avatars==false))) {
583 583
             echo "<img width=\"".AVATAR_WIDTH."\" height=\"".AVATAR_HEIGHT."\" src=\"".avatar_url($user->prefs->avatar)."\" alt=\"Avatar\"><br>";
584 584
         }
@@ -594,7 +594,7 @@  discard block
 block discarded – undo
594 594
         $user->nposts = BoincPost::count("user=$user->id");
595 595
     }
596 596
     
597
-    if (function_exists('project_forum_user_info')){
597
+    if (function_exists('project_forum_user_info')) {
598 598
         project_forum_user_info($user);
599 599
     } else {
600 600
         echo tra("Posts: %1", $user->nposts)."<br>";
@@ -633,7 +633,7 @@  discard block
 block discarded – undo
633 633
         echo "<form action=\"forum_rate.php?post=", $post->id, "\" method=\"post\">";
634 634
     }
635 635
 
636
-    if ($logged_in_user && $post->timestamp > $latest_viewed){
636
+    if ($logged_in_user && $post->timestamp > $latest_viewed) {
637 637
         show_image(NEW_IMAGE, tra("You haven't read this message yet"), tra("Unread"), NEW_IMAGE_HEIGHT);
638 638
     }
639 639
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
     if ($post->modified) {
654 654
         echo "<br>".tra("Last modified: %1", pretty_time_Str($post->modified));
655 655
     }
656
-    if ($ignore_poster && $filter){
656
+    if ($ignore_poster && $filter) {
657 657
         echo "<br>" .tra(
658 658
             "This post is hidden because the sender is on your 'ignore' list.  Click %1 here %2 to view hidden posts",
659 659
             "<a href=\"?id=".$thread->id."&amp;filter=false&amp;start=$start#".$post->id."\">",
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
         <p>
668 668
     ";
669 669
 
670
-    if (!$filter || !$ignore_poster){
670
+    if (!$filter || !$ignore_poster) {
671 671
         $posttext = $post->content;
672 672
 
673 673
         // If the creator of this post has a signature and
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
         // user has signatures enabled: show it
676 676
         //
677 677
         $posttext = output_transform($posttext, $options);
678
-        if ($post->signature && (!$logged_in_user || !$logged_in_user->prefs->hide_signatures)){
678
+        if ($post->signature && (!$logged_in_user || !$logged_in_user->prefs->hide_signatures)) {
679 679
             $sig = output_transform($user->prefs->signature, $options);
680 680
             $posttext .= "<hr>$sig\n";
681 681
         }
@@ -1035,7 +1035,7 @@  discard block
 block discarded – undo
1035 1035
         
1036 1036
     $sql = 'forum = ' . $forumID ;
1037 1037
     $stickysql = "";
1038
-    if ($sticky){
1038
+    if ($sticky) {
1039 1039
         $stickysql = "sticky DESC, ";
1040 1040
     }
1041 1041
     if (!$show_hidden) {
@@ -1116,7 +1116,7 @@  discard block
 block discarded – undo
1116 1116
 //
1117 1117
 function show_post_moderation_links(
1118 1118
     $config, $logged_in_user, $post, $forum, $tokens
1119
-){
1119
+) {
1120 1120
     $moderators_allowed_to_ban = parse_bool($config, "moderators_allowed_to_ban"); 
1121 1121
     $moderators_vote_to_ban = parse_bool($config, "moderators_vote_to_ban");
1122 1122
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -784,9 +784,9 @@  discard block
 block discarded – undo
784 784
 
785 785
 function post_rules() {
786 786
     if (function_exists("project_forum_post_rules")) {
787
-      $project_rules=project_forum_post_rules();
787
+        $project_rules=project_forum_post_rules();
788 788
     } else {
789
-      $project_rules="";
789
+        $project_rules="";
790 790
     }
791 791
     return sprintf("
792 792
         <ul>
@@ -1229,7 +1229,7 @@  discard block
 block discarded – undo
1229 1229
     }
1230 1230
     if ($thread->hidden) {
1231 1231
         error_page(
1232
-           tra("Can't post to a hidden thread.")
1232
+            tra("Can't post to a hidden thread.")
1233 1233
         );
1234 1234
     }
1235 1235
 
Please login to merge, or discard this patch.
Spacing   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
 define('THREAD_SOLVED', 1);
55 55
 
56 56
 define('AVATAR_WIDTH', 100);
57
-define('AVATAR_HEIGHT',100);
57
+define('AVATAR_HEIGHT', 100);
58 58
 
59 59
 define('ST_NEW_TIME', 1209600); //3600*24*14 - 14 days
60 60
 define('ST_NEW', 'New member');
61 61
 
62
-define('MAXIMUM_EDIT_TIME',3600);
62
+define('MAXIMUM_EDIT_TIME', 3600);
63 63
     // allow edits of forums posts up till one hour after posting.
64 64
 
65 65
 define('MAX_FORUM_LOGGING_TIME', 2419200); //3600*24*28 - 28 days
@@ -77,24 +77,24 @@  discard block
 block discarded – undo
77 77
 define('IMAGE_HIDDEN', 'img/hidden.png');
78 78
 define('IMAGE_STICKY_LOCKED', 'img/sticky_locked_post.png');
79 79
 define('IMAGE_POST', 'img/post.png');
80
-define('NEW_IMAGE_HEIGHT','15');
80
+define('NEW_IMAGE_HEIGHT', '15');
81 81
 define('EMPHASIZE_IMAGE', 'img/emphasized_post.png');
82
-define('EMPHASIZE_IMAGE_HEIGHT','15');
82
+define('EMPHASIZE_IMAGE_HEIGHT', '15');
83 83
 define('FILTER_IMAGE', 'img/filtered_post.png');
84
-define('FILTER_IMAGE_HEIGHT','15');
84
+define('FILTER_IMAGE_HEIGHT', '15');
85 85
 define('RATE_POSITIVE_IMAGE', 'img/rate_positive.png');
86
-define('RATE_POSITIVE_IMAGE_HEIGHT','9');
86
+define('RATE_POSITIVE_IMAGE_HEIGHT', '9');
87 87
 define('RATE_NEGATIVE_IMAGE', 'img/rate_negative.png');
88
-define('RATE_NEGATIVE_IMAGE_HEIGHT','9');
88
+define('RATE_NEGATIVE_IMAGE_HEIGHT', '9');
89 89
 define('REPORT_POST_IMAGE', 'img/report_post.png');
90
-define('REPORT_POST_IMAGE_HEIGHT','9');
90
+define('REPORT_POST_IMAGE_HEIGHT', '9');
91 91
 
92 92
 define('SOLUTION', tra('This answered my question'));
93 93
 define('SUFFERER', tra('I also have this question'));
94 94
 define('OFF_TOPIC', tra('Off-topic'));
95 95
 
96
-define ('DEFAULT_LOW_RATING_THRESHOLD', -25);
97
-define ('DEFAULT_HIGH_RATING_THRESHOLD', 5);
96
+define('DEFAULT_LOW_RATING_THRESHOLD', -25);
97
+define('DEFAULT_HIGH_RATING_THRESHOLD', 5);
98 98
 
99 99
 // special user attributes
100 100
 //
@@ -164,15 +164,15 @@  discard block
 block discarded – undo
164 164
 
165 165
 // Output the forum/thread title.
166 166
 //
167
-function show_forum_title($category, $forum, $thread, $link_thread=false) {
167
+function show_forum_title($category, $forum, $thread, $link_thread = false) {
168 168
     if ($category) {
169 169
         $is_helpdesk = $category->is_helpdesk;
170 170
     } else {
171 171
         $is_helpdesk = false;
172 172
     }
173 173
 
174
-    $where = $is_helpdesk?tra("Questions and Answers"):tra("Message boards");
175
-    $top_url = $is_helpdesk?"forum_help_desk.php":"forum_index.php";
174
+    $where = $is_helpdesk ?tra("Questions and Answers") : tra("Message boards");
175
+    $top_url = $is_helpdesk ? "forum_help_desk.php" : "forum_index.php";
176 176
 
177 177
     if (!$forum && !$thread) {
178 178
         echo "<span class=\"title\">$where</span>\n";
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     }
201 201
 }
202 202
 
203
-function show_team_forum_title($forum, $thread=null, $link_thread=false) {
203
+function show_team_forum_title($forum, $thread = null, $link_thread = false) {
204 204
     $team = BoincTeam::lookup_id($forum->category);
205 205
     echo "<span class=title>
206 206
         <a href=\"forum_index.php\">".tra("Message boards")."</a> :
@@ -235,12 +235,12 @@  discard block
 block discarded – undo
235 235
 }
236 236
 
237 237
 function page_link($url, $page_num, $items_per_page, $text) {
238
-    return " <a href=\"$url&amp;start=" . $page_num*$items_per_page . "\">$text</a> ";
238
+    return " <a href=\"$url&amp;start=".$page_num*$items_per_page."\">$text</a> ";
239 239
 }
240 240
 
241 241
 // return a string for navigating pages
242 242
 //
243
-function page_links($url, $nitems, $items_per_page, $start){
243
+function page_links($url, $nitems, $items_per_page, $start) {
244 244
     // How many pages to potentially show before and after this one:
245 245
     $preshow = 3;
246 246
     $postshow = 3;
@@ -248,14 +248,14 @@  discard block
 block discarded – undo
248 248
     $x = "";
249 249
     
250 250
     if ($nitems <= $items_per_page) return "";
251
-    $npages = ceil($nitems / $items_per_page);
252
-    $curpage = ceil($start / $items_per_page);
251
+    $npages = ceil($nitems/$items_per_page);
252
+    $curpage = ceil($start/$items_per_page);
253 253
 
254 254
     // If this is not the first page, display "previous"
255 255
     //
256
-    if ($curpage > 0){
256
+    if ($curpage > 0) {
257 257
         $x .= page_link(
258
-            $url, $curpage-1, $items_per_page,
258
+            $url, $curpage - 1, $items_per_page,
259 259
             tra("Previous")." &middot; "
260 260
         );
261 261
     }
@@ -270,8 +270,8 @@  discard block
 block discarded – undo
270 270
     }
271 271
     // Display a list of pages surrounding this one
272 272
     //
273
-    for ($i=$curpage-$preshow; $i<=$curpage+$postshow; $i++){
274
-        $page_str = (string)($i+1);
273
+    for ($i = $curpage - $preshow; $i <= $curpage + $postshow; $i++) {
274
+        $page_str = (string)($i + 1);
275 275
         if ($i < 0) continue;
276 276
         if ($i >= $npages) break;
277 277
 
@@ -280,20 +280,20 @@  discard block
 block discarded – undo
280 280
         } else {
281 281
             $x .= page_link($url, $i, $items_per_page, $page_str);
282 282
         }
283
-        if ($i == $npages-1) break;
284
-        if ($i == $curpage+$postshow) break;
283
+        if ($i == $npages - 1) break;
284
+        if ($i == $curpage + $postshow) break;
285 285
         $x .= " &middot; ";
286 286
     }
287 287
 
288
-    if ($curpage + $postshow < $npages-1) {
288
+    if ($curpage + $postshow < $npages - 1) {
289 289
         $x .= " . . . ";
290
-        $x .= page_link($url, $npages-1, $items_per_page, $npages);
290
+        $x .= page_link($url, $npages - 1, $items_per_page, $npages);
291 291
     }
292 292
     // If there is a next page
293 293
     //
294
-    if ($curpage < $npages-1){
294
+    if ($curpage < $npages - 1) {
295 295
         $x .= page_link(
296
-            $url, $curpage+1, $items_per_page,
296
+            $url, $curpage + 1, $items_per_page,
297 297
             " &middot; ".tra("Next")
298 298
         );
299 299
     }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 function cleanup_title($title) {
315 315
     $x = sanitize_tags(bb2html($title));
316 316
     $x = trim($x);
317
-    if (strlen($x)==0) return "(no title)";
317
+    if (strlen($x) == 0) return "(no title)";
318 318
     else return $x;
319 319
 }
320 320
 
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
             $i = 0;
377 377
             foreach ($posts as $post) {
378 378
                 if ($post->id == $postid) {
379
-                    $start = $i - ($i % $num_to_show);
379
+                    $start = $i - ($i%$num_to_show);
380 380
                     $jump_to_post = $post;
381 381
                     break;
382 382
                 }
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
             // if jump to post, figure out what page to show
404 404
             //
405 405
             if ($jump_to_post) {
406
-                $start = $ibest - ($ibest % $num_to_show);
406
+                $start = $ibest - ($ibest%$num_to_show);
407 407
             } else {
408 408
                 $start = $default_start;
409 409
             }
@@ -505,8 +505,8 @@  discard block
 block discarded – undo
505 505
 // Generates a table row with two cells: author and message
506 506
 //
507 507
 function show_post(
508
-    $post, $thread, $forum, $logged_in_user, $start=0,
509
-    $latest_viewed=0, $controls=FORUM_CONTROLS, $filter=true
508
+    $post, $thread, $forum, $logged_in_user, $start = 0,
509
+    $latest_viewed = 0, $controls = FORUM_CONTROLS, $filter = true
510 510
 ) {
511 511
     global $country_to_iso3166_2;
512 512
 
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
 
519 519
     // If the user no longer exists, skip the post
520 520
     //
521
-    if (!$user){
521
+    if (!$user) {
522 522
         return;
523 523
     }
524 524
 
@@ -534,9 +534,9 @@  discard block
 block discarded – undo
534 534
     // check whether the poster is on the list of people to ignore
535 535
     //
536 536
     $ignore_poster = false;
537
-    if ($logged_in_user){
537
+    if ($logged_in_user) {
538 538
         $tokens = url_tokens($logged_in_user->authenticator);
539
-        if (is_ignoring($logged_in_user, $user)){
539
+        if (is_ignoring($logged_in_user, $user)) {
540 540
             $ignore_poster = true;
541 541
         }
542 542
     }
@@ -550,8 +550,8 @@  discard block
 block discarded – undo
550 550
             if (is_moderator($logged_in_user, $forum)) {
551 551
                 $can_edit = true;
552 552
             } else if (can_reply($thread, $forum, $logged_in_user)) {
553
-                $time_limit = $post->timestamp+MAXIMUM_EDIT_TIME;
554
-                $can_edit = time()<$time_limit;
553
+                $time_limit = $post->timestamp + MAXIMUM_EDIT_TIME;
554
+                $can_edit = time() < $time_limit;
555 555
             } else {
556 556
                 $can_edit = false;
557 557
             }
@@ -561,24 +561,24 @@  discard block
 block discarded – undo
561 561
     // Print the special user lines, if any
562 562
     //
563 563
     global $special_user_bitfield;
564
-    $fstatus="";
564
+    $fstatus = "";
565 565
     $keys = array_keys($special_user_bitfield);
566 566
     $is_posted_by_special = false;
567
-    for ($i=0; $i<sizeof($special_user_bitfield);$i++) {
567
+    for ($i = 0; $i < sizeof($special_user_bitfield); $i++) {
568 568
         if ($user->prefs && $user->prefs->privilege($keys[$i])) {
569
-            $fstatus.=$special_user_bitfield[$keys[$i]]."<br>";
569
+            $fstatus .= $special_user_bitfield[$keys[$i]]."<br>";
570 570
             $is_posted_by_special = true;
571 571
         }
572 572
     }
573 573
     
574 574
     // Highlight special users if set in prefs;
575 575
     //
576
-    if ($logged_in_user && $logged_in_user->prefs){
576
+    if ($logged_in_user && $logged_in_user->prefs) {
577 577
         $highlight = $logged_in_user->prefs->highlight_special && $is_posted_by_special;
578 578
     } else {
579 579
         $highlight = $is_posted_by_special;
580 580
     }
581
-    $class = $highlight?' style="border-left: 5px solid LightGreen" ':'';
581
+    $class = $highlight ? ' style="border-left: 5px solid LightGreen" ' : '';
582 582
 
583 583
     // row and start of author col
584 584
     //
@@ -590,12 +590,12 @@  discard block
 block discarded – undo
590 590
 
591 591
     echo user_links($user, 0);
592 592
     echo "<br>";
593
-    if ($user->create_time > time()-ST_NEW_TIME) $fstatus.=ST_NEW."<br>";
593
+    if ($user->create_time > time() - ST_NEW_TIME) $fstatus .= ST_NEW."<br>";
594 594
     echo "<span class=\"small\">";
595 595
     if ($fstatus) echo "$fstatus";
596 596
 
597
-    if (!$filter || !$ignore_poster){
598
-        if ($user->prefs && $user->prefs->avatar!="" && (!$logged_in_user || ($logged_in_user->prefs->hide_avatars==false))) {
597
+    if (!$filter || !$ignore_poster) {
598
+        if ($user->prefs && $user->prefs->avatar != "" && (!$logged_in_user || ($logged_in_user->prefs->hide_avatars == false))) {
599 599
             echo "<img width=\"".AVATAR_WIDTH."\" height=\"".AVATAR_HEIGHT."\" src=\"".avatar_url($user->prefs->avatar)."\" alt=\"Avatar\"><br>";
600 600
         }
601 601
     }
@@ -603,14 +603,14 @@  discard block
 block discarded – undo
603 603
     
604 604
     $url = "pm.php?action=new&amp;userid=".$user->id;
605 605
     $name = $user->name;
606
-    show_button_small($url, tra("Send message"), tra("Send %1 a private message",$name));
606
+    show_button_small($url, tra("Send message"), tra("Send %1 a private message", $name));
607 607
     echo '<br>'.tra("Joined: %1", gmdate('j M y', $user->create_time)), "<br>";
608 608
 
609 609
     if (!isset($user->nposts)) {
610 610
         $user->nposts = BoincPost::count("user=$user->id");
611 611
     }
612 612
     
613
-    if (function_exists('project_forum_user_info')){
613
+    if (function_exists('project_forum_user_info')) {
614 614
         project_forum_user_info($user);
615 615
     } else {
616 616
         echo tra("Posts: %1", $user->nposts)."<br>";
@@ -619,8 +619,8 @@  discard block
 block discarded – undo
619 619
         //
620 620
         //echo "ID: ".$user->id."<br>";
621 621
         if (!NO_COMPUTING) {
622
-            echo tra("Credit: %1", number_format($user->total_credit)) ."<br>";
623
-            echo tra("RAC: %1",    number_format($user->expavg_credit))."<br>";
622
+            echo tra("Credit: %1", number_format($user->total_credit))."<br>";
623
+            echo tra("RAC: %1", number_format($user->expavg_credit))."<br>";
624 624
         }
625 625
 
626 626
         // to use this feature:
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
         echo "<form action=\"forum_rate.php?post=", $post->id, "\" method=\"post\">";
650 650
     }
651 651
 
652
-    if ($logged_in_user && $post->timestamp > $latest_viewed){
652
+    if ($logged_in_user && $post->timestamp > $latest_viewed) {
653 653
         show_image(NEW_IMAGE, tra("You haven't read this message yet"), tra("Unread"), NEW_IMAGE_HEIGHT);
654 654
     }
655 655
 
@@ -669,8 +669,8 @@  discard block
 block discarded – undo
669 669
     if ($post->modified) {
670 670
         echo "<br>".tra("Last modified: %1", pretty_time_Str($post->modified));
671 671
     }
672
-    if ($ignore_poster && $filter){
673
-        echo "<br>" .tra(
672
+    if ($ignore_poster && $filter) {
673
+        echo "<br>".tra(
674 674
             "This post is hidden because the sender is on your 'ignore' list.  Click %1 here %2 to view hidden posts",
675 675
             "<a href=\"?id=".$thread->id."&amp;filter=false&amp;start=$start#".$post->id."\">",
676 676
             "</a>"
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
         <p>
684 684
     ";
685 685
 
686
-    if (!$filter || !$ignore_poster){
686
+    if (!$filter || !$ignore_poster) {
687 687
         $posttext = $post->content;
688 688
 
689 689
         // If the creator of this post has a signature and
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
         // user has signatures enabled: show it
692 692
         //
693 693
         $posttext = output_transform($posttext, $options);
694
-        if ($post->signature && (!$logged_in_user || !$logged_in_user->prefs->hide_signatures)){
694
+        if ($post->signature && (!$logged_in_user || !$logged_in_user->prefs->hide_signatures)) {
695 695
             $sig = output_transform($user->prefs->signature, $options);
696 696
             $posttext .= "<hr>$sig\n";
697 697
         }
@@ -725,10 +725,10 @@  discard block
 block discarded – undo
725 725
         }
726 726
         if (($controls == FORUM_CONTROLS) && (can_reply($thread, $forum, $logged_in_user))) {
727 727
             echo "&nbsp;&nbsp;&nbsp;&nbsp;";
728
-            $url = "forum_reply.php?thread=" . $thread->id . "&amp;post=" . $post->id . "&amp;no_quote=1#input";
728
+            $url = "forum_reply.php?thread=".$thread->id."&amp;post=".$post->id."&amp;no_quote=1#input";
729 729
             // "Reply" is used as a verb
730 730
             show_button($url, tra("Reply"), tra("Post a reply to this message"));
731
-            $url = "forum_reply.php?thread=" . $thread->id . "&amp;post=" . $post->id . "#input";
731
+            $url = "forum_reply.php?thread=".$thread->id."&amp;post=".$post->id."#input";
732 732
             // "Quote" is used as a verb
733 733
             show_button($url, tra("Quote"), tra("Post a reply by quoting this message"));
734 734
         }
@@ -800,9 +800,9 @@  discard block
 block discarded – undo
800 800
 
801 801
 function post_rules() {
802 802
     if (function_exists("project_forum_post_rules")) {
803
-      $project_rules=project_forum_post_rules();
803
+      $project_rules = project_forum_post_rules();
804 804
     } else {
805
-      $project_rules="";
805
+      $project_rules = "";
806 806
     }
807 807
     return sprintf("
808 808
         <ul>
@@ -831,7 +831,7 @@  discard block
 block discarded – undo
831 831
     );
832 832
 }
833 833
 
834
-function post_warning($forum=null) {
834
+function post_warning($forum = null) {
835 835
     $x = "<br><br>
836 836
         <table><tr><td align=left>
837 837
     ";
@@ -891,7 +891,7 @@  discard block
 block discarded – undo
891 891
     $content = substr($content, 0, 64000);
892 892
     $content = BoincDb::escape_string($content);
893 893
     $now = time();
894
-    $sig = $signature?1:0;
894
+    $sig = $signature ? 1 : 0;
895 895
     $id = BoincPost::insert("(thread, user, timestamp, content, modified, parent_post, score, votes, signature, hidden) values ($thread->id, $user->id, $now, '$content', 0, $parent_id, 0, 0, $sig, 0)");
896 896
     if (!$id) {
897 897
         $forum_error = "Failed to add post to DB.";
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
 //
912 912
 function update_thread_timestamp($thread) {
913 913
     $posts = BoincPost::enum("thread=$thread->id and hidden=0 order by timestamp desc limit 1");
914
-    if (count($posts)>0) {
914
+    if (count($posts) > 0) {
915 915
         $post = $posts[0];
916 916
         $thread->update("timestamp=$post->timestamp");
917 917
     }
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 
920 920
 function update_forum_timestamp($forum) {
921 921
     $threads = BoincThread::enum("forum=$forum->id and hidden=0 order by timestamp desc limit 1");
922
-    if (count($threads)>0) {
922
+    if (count($threads) > 0) {
923 923
         $thread = $threads[0];
924 924
         $forum->update("timestamp=$thread->timestamp");
925 925
     }
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
     if (is_news_forum($forum) && !$export) {
943 943
         $status = 1;
944 944
     }
945
-    $id  = BoincThread::insert("(forum, owner, status, title, timestamp, views, replies, activity, sufferers, score, votes, create_time, hidden, sticky, locked) values ($forum->id, $user->id, $status, '$title', $now, 0, -1, 0, 0, 0, 0, $now, 0, 0, 0)");
945
+    $id = BoincThread::insert("(forum, owner, status, title, timestamp, views, replies, activity, sufferers, score, votes, create_time, hidden, sticky, locked) values ($forum->id, $user->id, $status, '$title', $now, 0, -1, 0, 0, 0, 0, $now, 0, 0, 0)");
946 946
     if (!$id) {
947 947
         $forum_error = "Failed to add thread to DB.";
948 948
         return null;
@@ -1070,22 +1070,22 @@  discard block
 block discarded – undo
1070 1070
 // $sticky - bool (not directly passed to SQL)
1071 1071
 //
1072 1072
 function get_forum_threads(
1073
-    $forumID, $start=-1, $nRec=-1, $sort_style=MODIFIED_NEW,
1073
+    $forumID, $start = -1, $nRec = -1, $sort_style = MODIFIED_NEW,
1074 1074
     $show_hidden = 0, $sticky = 1
1075 1075
 ) {
1076 1076
     //if (! (is_numeric($forumID) && is_numeric($min) && is_numeric($nRec))) {
1077 1077
     //    return NULL;  // Something is wrong here.
1078 1078
     //}
1079 1079
         
1080
-    $sql = 'forum = ' . $forumID ;
1080
+    $sql = 'forum = '.$forumID;
1081 1081
     $stickysql = "";
1082
-    if ($sticky){
1082
+    if ($sticky) {
1083 1083
         $stickysql = "sticky DESC, ";
1084 1084
     }
1085 1085
     if (!$show_hidden) {
1086 1086
         $sql .= ' AND hidden = 0';
1087 1087
     }
1088
-    switch($sort_style) {
1088
+    switch ($sort_style) {
1089 1089
     case MODIFIED_NEW:
1090 1090
         $sql .= ' ORDER BY '.$stickysql.'timestamp DESC';
1091 1091
         break;
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
     if (!$show_hidden) {
1139 1139
         $sql .= ' AND hidden = 0';
1140 1140
     }
1141
-    switch($sort_style) {
1141
+    switch ($sort_style) {
1142 1142
     case CREATE_TIME_NEW:
1143 1143
         $sql .= ' ORDER BY timestamp desc';
1144 1144
         break;
@@ -1160,7 +1160,7 @@  discard block
 block discarded – undo
1160 1160
 //
1161 1161
 function show_post_moderation_links(
1162 1162
     $config, $logged_in_user, $post, $forum, $tokens
1163
-){
1163
+) {
1164 1164
     $moderators_allowed_to_ban = parse_bool($config, "moderators_allowed_to_ban"); 
1165 1165
     $moderators_vote_to_ban = parse_bool($config, "moderators_vote_to_ban");
1166 1166
 
@@ -1247,14 +1247,14 @@  discard block
 block discarded – undo
1247 1247
     // We do not tell the (ab)user how much this is -
1248 1248
     // no need to make it easy for them to break the system.
1249 1249
     //
1250
-    if ($user->total_credit<$forum->post_min_total_credit || $user->expavg_credit<$forum->post_min_expavg_credit) {
1250
+    if ($user->total_credit < $forum->post_min_total_credit || $user->expavg_credit < $forum->post_min_expavg_credit) {
1251 1251
         error_page(tra("To create a new thread in %1 you must have a certain level of average credit. This is to protect against abuse of the system.", $forum->title));
1252 1252
     }
1253 1253
 
1254 1254
     // If the user is posting faster than forum regulations allow
1255 1255
     // Tell the user to wait a while before creating any more posts
1256 1256
     //
1257
-    if (time()-$user->prefs->last_post <$forum->post_min_interval) {
1257
+    if (time() - $user->prefs->last_post < $forum->post_min_interval) {
1258 1258
         error_page(tra("You cannot create threads right now. Please wait before trying again. This is to protect against abuse of the system."));
1259 1259
     }
1260 1260
 }
@@ -1282,7 +1282,7 @@  discard block
 block discarded – undo
1282 1282
 
1283 1283
 function is_moderator($user, $forum) {
1284 1284
     if (!$user) return false;
1285
-    $type = $forum?$forum->parent_type:0;
1285
+    $type = $forum ? $forum->parent_type : 0;
1286 1286
     switch ($type) {
1287 1287
     case 0:
1288 1288
         if ($user->prefs->privilege(S_MODERATOR)) return true;
@@ -1319,7 +1319,7 @@  discard block
 block discarded – undo
1319 1319
     if (!is_forum_visible_to_user($thread_forum, $user)) return;
1320 1320
     $owner = BoincUser::lookup_id($thread->owner);
1321 1321
     echo "<tr><td>\n";
1322
-    switch($thread_forum->parent_type) {
1322
+    switch ($thread_forum->parent_type) {
1323 1323
     case 0:
1324 1324
         $category = BoincCategory::lookup_id($thread_forum->category);
1325 1325
         show_forum_title($category, $thread_forum, $thread, true);
@@ -1329,7 +1329,7 @@  discard block
 block discarded – undo
1329 1329
         break;
1330 1330
     }
1331 1331
     echo '
1332
-        </td><td class="numbers">'.($thread->replies+1).'</td>
1332
+        </td><td class="numbers">'.($thread->replies + 1).'</td>
1333 1333
         <td>'.user_links($owner).'</td>
1334 1334
         <td class="numbers">'.$thread->views.'</td>
1335 1335
         <td class="lastpost">'.time_diff_str($thread->timestamp, time()).'</td>
@@ -1363,13 +1363,13 @@  discard block
 block discarded – undo
1363 1363
 
1364 1364
 function subscribed_post_web_line($notify) {
1365 1365
     $thread = BoincThread::lookup_id($notify->opaque);
1366
-    return tra("New posts in the thread %1","<a href=forum_thread.php?id=$thread->id>$thread->title</a>");
1366
+    return tra("New posts in the thread %1", "<a href=forum_thread.php?id=$thread->id>$thread->title</a>");
1367 1367
 }
1368 1368
 
1369 1369
 function subscribe_rss($notify, &$title, &$msg, &$url) {
1370 1370
     $thread = BoincThread::lookup_id($notify->opaque);
1371 1371
     $title = tra("New posts in subscribed thread");
1372
-    $msg = tra("There are new posts in the thread '%1'",$thread->title);
1372
+    $msg = tra("There are new posts in the thread '%1'", $thread->title);
1373 1373
     $url = secure_url_base()."forum_thread.php?id=$thread->id";
1374 1374
 }
1375 1375
 
Please login to merge, or discard this patch.
html/inc/result.inc 2 patches
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -500,9 +500,9 @@  discard block
 block discarded – undo
500 500
 // @return String A human readable error message
501 501
 // @param Integer $x An error number
502 502
 //
503
-function windows_error_code_str($x){
503
+function windows_error_code_str($x) {
504 504
     $h=int2hex($x);
505
-    switch($h){
505
+    switch($h) {
506 506
     case "0xC0000005": return "STATUS_ACCESS_VIOLATION";
507 507
     case "0xC000001D": return "STATUS_ILLEGAL_INSTRUCTION";
508 508
     case "0xC0000094": return "STATUS_INTEGER_DIVIDE_BY_ZERO";
@@ -523,10 +523,10 @@  discard block
 block discarded – undo
523 523
 // @return String A human readable error message
524 524
 // @param Integer $x An error number
525 525
 //
526
-function error_code_str($x){
526
+function error_code_str($x) {
527 527
     // severe Windows error numbers are always large negative integers
528 528
     if ($x<-400) return windows_error_code_str($x);
529
-    switch($x){
529
+    switch($x) {
530 530
     case 0: return "";
531 531
     case 192: return "EXIT_STATEFILE_WRITE";
532 532
     case 193: return "EXIT_SIGNAL";
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -53,9 +53,9 @@  discard block
 block discarded – undo
53 53
     return $platforms[$id];
54 54
 }
55 55
 
56
-function anon_platform_string($result, $rsc_name=null) {
56
+function anon_platform_string($result, $rsc_name = null) {
57 57
     $app = get_app($result->appid);
58
-    $n = $app->user_friendly_name."<br>".  tra("Anonymous platform");
58
+    $n = $app->user_friendly_name."<br>".tra("Anonymous platform");
59 59
     if ($rsc_name) {
60 60
         $n .= " ($rsc_name)";
61 61
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         return $string_to_show;
98 98
     }
99 99
     if ($result->server_state <> RESULT_SERVER_STATE_OVER) return "---";
100
-    switch($result->outcome) {
100
+    switch ($result->outcome) {
101 101
     case RESULT_OUTCOME_SUCCESS:
102 102
         switch ($result->validate_state) {
103 103
         case VALIDATE_STATE_INIT:
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
             ) {
213 213
                 return tra("Not started by deadline - canceled");
214 214
             }
215
-            switch($result->client_state) {
215
+            switch ($result->client_state) {
216 216
             case RESULT_FILES_DOWNLOADING: return tra("Error while downloading");
217 217
             case RESULT_FILES_DOWNLOADED:
218 218
             case RESULT_COMPUTE_ERROR: return tra("Error while computing");
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 }
232 232
 
233 233
 function result_server_state_string($result) {
234
-    switch($result->server_state) {
234
+    switch ($result->server_state) {
235 235
     case RESULT_SERVER_STATE_INACTIVE: return tra("Inactive");
236 236
     case RESULT_SERVER_STATE_UNSENT: return tra("Unsent");
237 237
     case RESULT_SERVER_STATE_IN_PROGRESS: return tra("In progress");
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 }
242 242
 
243 243
 function result_outcome_string($result) {
244
-    switch($result->outcome) {
244
+    switch ($result->outcome) {
245 245
     case RESULT_OUTCOME_INIT: return "---";
246 246
     case RESULT_OUTCOME_SUCCESS: return tra("Success");
247 247
     case RESULT_OUTCOME_COULDNT_SEND: return tra("Couldn't send");
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 }
260 260
 
261 261
 function result_client_state_string($result) {
262
-    switch($result->client_state) {
262
+    switch ($result->client_state) {
263 263
     case RESULT_NEW: return tra("New");
264 264
     case RESULT_FILES_DOWNLOADING: return tra("Downloading");
265 265
     case RESULT_FILES_DOWNLOADED: return tra("Processing");
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 }
278 278
 
279 279
 function validate_state_str($result) {
280
-    switch($result->validate_state) {
280
+    switch ($result->validate_state) {
281 281
     case VALIDATE_STATE_INIT: return tra("Initial");
282 282
     case VALIDATE_STATE_VALID: return tra("Valid");
283 283
     case VALIDATE_STATE_INVALID:
@@ -293,7 +293,7 @@  discard block
 block discarded – undo
293 293
 }
294 294
 
295 295
 function assimilate_state_str($s) {
296
-    switch($s) {
296
+    switch ($s) {
297 297
     case ASSIMILATE_INIT: return "Initial";
298 298
     case ASSIMILATE_READY: return "Ready to assimilate";
299 299
     case ASSIMILATE_DONE: return "Assimilated";
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 }
303 303
 
304 304
 function file_delete_state_str($s) {
305
-    switch($s) {
305
+    switch ($s) {
306 306
     case FILE_DELETE_INIT: return "Initial";
307 307
     case FILE_DELETE_READY: return "Ready to delete";
308 308
     case FILE_DELETE_DONE: return "Deleted";
@@ -312,27 +312,27 @@  discard block
 block discarded – undo
312 312
 }
313 313
 function wu_error_mask_str($s) {
314 314
     $x = "";
315
-    if ($s & WU_ERROR_COULDNT_SEND_RESULT) {
315
+    if ($s&WU_ERROR_COULDNT_SEND_RESULT) {
316 316
         $x = $x." ".tra("Couldn't send result");
317 317
         $s -= WU_ERROR_COULDNT_SEND_RESULT;
318 318
     }
319
-    if ($s & WU_ERROR_TOO_MANY_ERROR_RESULTS) {
319
+    if ($s&WU_ERROR_TOO_MANY_ERROR_RESULTS) {
320 320
         $x = $x." ".tra("Too many errors (may have bug)");
321 321
         $s -= WU_ERROR_TOO_MANY_ERROR_RESULTS;
322 322
     }
323
-    if ($s & WU_ERROR_TOO_MANY_SUCCESS_RESULTS) {
323
+    if ($s&WU_ERROR_TOO_MANY_SUCCESS_RESULTS) {
324 324
         $x = $x." ".tra("Too many results (may be nondeterministic)");
325 325
         $s -= WU_ERROR_TOO_MANY_SUCCESS_RESULTS;
326 326
     }
327
-    if ($s & WU_ERROR_TOO_MANY_TOTAL_RESULTS) {
327
+    if ($s&WU_ERROR_TOO_MANY_TOTAL_RESULTS) {
328 328
         $x = $x." ".tra("Too many total results");
329 329
         $s -= WU_ERROR_TOO_MANY_TOTAL_RESULTS;
330 330
     }
331
-    if ($s & WU_ERROR_CANCELLED) {
331
+    if ($s&WU_ERROR_CANCELLED) {
332 332
         $x = $x." ".tra("WU cancelled");
333 333
         $s -= WU_ERROR_CANCELLED;
334 334
     }
335
-    if ($s & WU_ERROR_NO_CANONICAL_RESULT) {
335
+    if ($s&WU_ERROR_NO_CANONICAL_RESULT) {
336 336
         $x = $x." ".tra("Canonical result is missing");
337 337
         $s -= WU_ERROR_NO_CANONICAL_RESULT;
338 338
     }
@@ -340,9 +340,9 @@  discard block
 block discarded – undo
340 340
         $x = $x." ".tra("Unrecognized Error: %1", $s);
341 341
     }
342 342
     if (strlen($x)) {
343
-        $x="<font color=\"#ff3333\">".$x."</font>";
343
+        $x = "<font color=\"#ff3333\">".$x."</font>";
344 344
     } else {
345
-        $x="";
345
+        $x = "";
346 346
     }
347 347
     return $x;
348 348
 }
@@ -426,10 +426,10 @@  discard block
 block discarded – undo
426 426
     if ($result->received_time) {
427 427
         $r = time_str($result->received_time);
428 428
     } else if ($result->report_deadline) {
429
-        if ($result->report_deadline>time()) {
430
-            $r = "<font color='#33cc33'>" . time_str($result->report_deadline) . "</font>";
429
+        if ($result->report_deadline > time()) {
430
+            $r = "<font color='#33cc33'>".time_str($result->report_deadline)."</font>";
431 431
         } else {
432
-            $r = "<font color='#ff3333'>" . time_str($result->report_deadline) . "</font>";
432
+            $r = "<font color='#ff3333'>".time_str($result->report_deadline)."</font>";
433 433
         }
434 434
     } else {
435 435
         $r = "---";
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
 // @param Integer $dec A signed integer
491 491
 //
492 492
 function int2hex($dec) {
493
-    return "0x".strtoupper(substr(sprintf("%08x",$dec), -8));
493
+    return "0x".strtoupper(substr(sprintf("%08x", $dec), -8));
494 494
 }
495 495
 
496 496
 // Decode a windows error number into semi-human-readable,
@@ -500,9 +500,9 @@  discard block
 block discarded – undo
500 500
 // @return String A human readable error message
501 501
 // @param Integer $x An error number
502 502
 //
503
-function windows_error_code_str($x){
504
-    $h=int2hex($x);
505
-    switch($h){
503
+function windows_error_code_str($x) {
504
+    $h = int2hex($x);
505
+    switch ($h) {
506 506
     case "0xC0000005": return "STATUS_ACCESS_VIOLATION";
507 507
     case "0xC000001D": return "STATUS_ILLEGAL_INSTRUCTION";
508 508
     case "0xC0000094": return "STATUS_INTEGER_DIVIDE_BY_ZERO";
@@ -523,10 +523,10 @@  discard block
 block discarded – undo
523 523
 // @return String A human readable error message
524 524
 // @param Integer $x An error number
525 525
 //
526
-function error_code_str($x){
526
+function error_code_str($x) {
527 527
     // severe Windows error numbers are always large negative integers
528
-    if ($x<-400) return windows_error_code_str($x);
529
-    switch($x){
528
+    if ($x < -400) return windows_error_code_str($x);
529
+    switch ($x) {
530 530
     case 0: return "";
531 531
     case 192: return "EXIT_STATEFILE_WRITE";
532 532
     case 193: return "EXIT_SIGNAL";
@@ -687,7 +687,7 @@  discard block
 block discarded – undo
687 687
     return $x." (".int2hex($x).") ".error_code_str($x);
688 688
 }
689 689
 
690
-function show_result($result, $show_outfile_links=false) {
690
+function show_result($result, $show_outfile_links = false) {
691 691
     start_table();
692 692
     row2(tra("Name"), $result->name);
693 693
     row2(tra("Workunit"), "<a href=\"workunit.php?wuid=$result->workunitid\">$result->workunitid</a>");
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
     echo "<h3>".tra("Stderr output")."</h3> <pre>"
737 737
         .htmlspecialchars(
738 738
             $result->stderr_out,
739
-            ENT_QUOTES | (defined('ENT_SUBSTITUTE')?ENT_SUBSTITUTE:0),
739
+            ENT_QUOTES|(defined('ENT_SUBSTITUTE') ?ENT_SUBSTITUTE:0),
740 740
             'utf-8'
741 741
         )
742 742
         ."</pre>"
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
 
752 752
     $apps = BoincApp::enum('deprecated=0 ORDER BY user_friendly_name');
753 753
 
754
-    for ($i=0; $i<NSTATES; $i++) {
754
+    for ($i = 0; $i < NSTATES; $i++) {
755 755
         $state_count[$i] = 0;
756 756
     }
757 757
     foreach ($apps as $app) {
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
         $x .= "<a href=$url>".tra("Next")." ".$info->results_per_page."</a>";
794 794
     }
795 795
     $x .= "<br>".tra("State").": ";
796
-    for ($i=0; $i<NSTATES; $i++) {
796
+    for ($i = 0; $i < NSTATES; $i++) {
797 797
         if ($i) $x .= " &middot; ";
798 798
         if ($info->state == $i) {
799 799
             $x .= $state_name[$i];
@@ -838,6 +838,6 @@  discard block
 block discarded – undo
838 838
     return $x;
839 839
 }
840 840
 
841
-$cvs_version_tracker[]="\$Id$";  //Generated automatically - do not edit
841
+$cvs_version_tracker[] = "\$Id$"; //Generated automatically - do not edit
842 842
 
843 843
 ?>
Please login to merge, or discard this patch.
html/project.sample/project.inc 2 patches
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -183,15 +183,15 @@  discard block
 block discarded – undo
183 183
     </ol>", PROJECT);
184 184
 }
185 185
 
186
-function project_workunit($wu){
186
+function project_workunit($wu) {
187 187
     // shown in the workunit page
188 188
 }
189 189
 
190
-function project_user_summary($user){
190
+function project_user_summary($user) {
191 191
     // shown in the user summary page
192 192
 }
193 193
 
194
-function project_user_page_private($user){
194
+function project_user_page_private($user) {
195 195
     // shown in the private account page
196 196
 }
197 197
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     array("name" => "Uppercase", "short_name" => "UC", "appids" => array(1, 25)),
259 259
 );
260 260
 
261
-function project_user_credit($user){
261
+function project_user_credit($user) {
262 262
     global $sub_projects;
263 263
     foreach ($sub_projects as $sp) {
264 264
         show_app_credit_user($user, $sp["name"], $sp["appids"]);
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 define("FORUM_QA_MERGED_MODE", true);
50 50
     // Set to true to merge Message boards and Q&A section
51
-define ("DISABLE_PROFILES", true);
51
+define("DISABLE_PROFILES", true);
52 52
     // enable profiles only after enabling reCAPTCHA
53 53
     // https://boinc.berkeley.edu/trac/wiki/ProtectionFromSpam
54 54
 define("USE_STOPFORUMSPAM", true);
@@ -183,15 +183,15 @@  discard block
 block discarded – undo
183 183
     </ol>", PROJECT);
184 184
 }
185 185
 
186
-function project_workunit($wu){
186
+function project_workunit($wu) {
187 187
     // shown in the workunit page
188 188
 }
189 189
 
190
-function project_user_summary($user){
190
+function project_user_summary($user) {
191 191
     // shown in the user summary page
192 192
 }
193 193
 
194
-function project_user_page_private($user){
194
+function project_user_page_private($user) {
195 195
     // shown in the private account page
196 196
 }
197 197
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
     array("name" => "Uppercase", "short_name" => "UC", "appids" => array(1, 25)),
259 259
 );
260 260
 
261
-function project_user_credit($user){
261
+function project_user_credit($user) {
262 262
     global $sub_projects;
263 263
     foreach ($sub_projects as $sp) {
264 264
         show_app_credit_user($user, $sp["name"], $sp["appids"]);
Please login to merge, or discard this patch.
all/features/work_and_host_stats/work_and_host_stats.pages_default.inc 2 patches
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  */
6 6
 function work_and_host_stats_default_page_manager_pages() {
7 7
   $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
8
+  $page->disabled = false; /* Edit this to true to make a default page disabled initially */
9 9
   $page->api_version = 1;
10 10
   $page->name = 'page_stats';
11 11
   $page->task = 'page';
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $page->path = 'community/stats';
15 15
   $page->access = array(
16 16
     'type' => 'none',
17
-    'settings' => NULL,
17
+    'settings' => null,
18 18
   );
19 19
   $page->menu = array(
20 20
     'type' => 'normal',
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
   $page->conf = array();
33 33
   $page->default_handlers = array();
34 34
   $handler = new stdClass;
35
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
35
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
36 36
   $handler->api_version = 1;
37 37
   $handler->name = 'page_page_stats_panel_context';
38 38
   $handler->task = 'page';
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
   $display->layout_settings = array();
54 54
   $display->panel_settings = array(
55 55
     'style_settings' => array(
56
-      'default' => NULL,
57
-      'middle' => NULL,
56
+      'default' => null,
57
+      'middle' => null,
58 58
     ),
59 59
   );
60 60
   $display->cache = array();
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
     $pane->panel = 'middle';
67 67
     $pane->type = 'views_panes';
68 68
     $pane->subtype = 'boinc_users-panel_pane_1';
69
-    $pane->shown = TRUE;
69
+    $pane->shown = true;
70 70
     $pane->access = array();
71 71
     $pane->configuration = array();
72 72
     $pane->cache = array();
73 73
     $pane->style = array(
74
-      'settings' => NULL,
74
+      'settings' => null,
75 75
     );
76 76
     $pane->css = array(
77 77
       'css_id' => '',
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
     $pane->panel = 'middle';
87 87
     $pane->type = 'views_panes';
88 88
     $pane->subtype = 'boinc_host_list-panel_pane_1';
89
-    $pane->shown = TRUE;
89
+    $pane->shown = true;
90 90
     $pane->access = array();
91 91
     $pane->configuration = array();
92 92
     $pane->cache = array();
93 93
     $pane->style = array(
94
-      'settings' => NULL,
94
+      'settings' => null,
95 95
     );
96 96
     $pane->css = array(
97 97
       'css_id' => '',
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     $pane->panel = 'middle';
107 107
     $pane->type = 'views_panes';
108 108
     $pane->subtype = 'boinc_teams-panel_pane_4';
109
-    $pane->shown = TRUE;
109
+    $pane->shown = true;
110 110
     $pane->access = array();
111 111
     $pane->configuration = array(
112 112
       'link_to_view' => 0,
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     );
120 120
     $pane->cache = array();
121 121
     $pane->style = array(
122
-      'settings' => NULL,
122
+      'settings' => null,
123 123
     );
124 124
     $pane->css = array(
125 125
       'css_id' => '',
Please login to merge, or discard this patch.
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -4,42 +4,42 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_page_manager_pages().
5 5
  */
6 6
 function work_and_host_stats_default_page_manager_pages() {
7
-  $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
-  $page->api_version = 1;
10
-  $page->name = 'page_stats';
11
-  $page->task = 'page';
12
-  $page->admin_title = 'Stats';
13
-  $page->admin_description = '';
14
-  $page->path = 'community/stats';
15
-  $page->access = array(
7
+    $page = new stdClass;
8
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
+    $page->api_version = 1;
10
+    $page->name = 'page_stats';
11
+    $page->task = 'page';
12
+    $page->admin_title = 'Stats';
13
+    $page->admin_description = '';
14
+    $page->path = 'community/stats';
15
+    $page->access = array(
16 16
     'type' => 'none',
17 17
     'settings' => NULL,
18
-  );
19
-  $page->menu = array(
18
+    );
19
+    $page->menu = array(
20 20
     'type' => 'normal',
21 21
     'title' => 'Statistics',
22 22
     'name' => 'primary-links',
23 23
     'weight' => '20',
24 24
     'parent' => array(
25
-      'type' => 'none',
26
-      'title' => '',
27
-      'name' => 'navigation',
28
-      'weight' => '0',
25
+        'type' => 'none',
26
+        'title' => '',
27
+        'name' => 'navigation',
28
+        'weight' => '0',
29 29
     ),
30
-  );
31
-  $page->arguments = array();
32
-  $page->conf = array();
33
-  $page->default_handlers = array();
34
-  $handler = new stdClass;
35
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
36
-  $handler->api_version = 1;
37
-  $handler->name = 'page_page_stats_panel_context';
38
-  $handler->task = 'page';
39
-  $handler->subtask = 'page_stats';
40
-  $handler->handler = 'panel_context';
41
-  $handler->weight = 0;
42
-  $handler->conf = array(
30
+    );
31
+    $page->arguments = array();
32
+    $page->conf = array();
33
+    $page->default_handlers = array();
34
+    $handler = new stdClass;
35
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
36
+    $handler->api_version = 1;
37
+    $handler->name = 'page_page_stats_panel_context';
38
+    $handler->task = 'page';
39
+    $handler->subtask = 'page_stats';
40
+    $handler->handler = 'panel_context';
41
+    $handler->weight = 0;
42
+    $handler->conf = array(
43 43
     'title' => 'Panel',
44 44
     'no_blocks' => 0,
45 45
     'pipeline' => 'standard',
@@ -47,22 +47,22 @@  discard block
 block discarded – undo
47 47
     'css' => '',
48 48
     'contexts' => array(),
49 49
     'relationships' => array(),
50
-  );
51
-  $display = new panels_display;
52
-  $display->layout = 'onecol';
53
-  $display->layout_settings = array();
54
-  $display->panel_settings = array(
50
+    );
51
+    $display = new panels_display;
52
+    $display->layout = 'onecol';
53
+    $display->layout_settings = array();
54
+    $display->panel_settings = array(
55 55
     'style_settings' => array(
56
-      'default' => NULL,
57
-      'middle' => NULL,
56
+        'default' => NULL,
57
+        'middle' => NULL,
58 58
     ),
59
-  );
60
-  $display->cache = array();
61
-  $display->title = 'Statistics and Leaderboards';
62
-  $display->storage_type = 'page_manager';
63
-  $display->storage_id = 'page_page_stats_panel_context';
64
-  $display->content = array();
65
-  $display->panels = array();
59
+    );
60
+    $display->cache = array();
61
+    $display->title = 'Statistics and Leaderboards';
62
+    $display->storage_type = 'page_manager';
63
+    $display->storage_id = 'page_page_stats_panel_context';
64
+    $display->content = array();
65
+    $display->panels = array();
66 66
     $pane = new stdClass;
67 67
     $pane->pid = 'new-1';
68 68
     $pane->panel = 'middle';
@@ -73,11 +73,11 @@  discard block
 block discarded – undo
73 73
     $pane->configuration = array();
74 74
     $pane->cache = array();
75 75
     $pane->style = array(
76
-      'settings' => NULL,
76
+        'settings' => NULL,
77 77
     );
78 78
     $pane->css = array(
79
-      'css_id' => '',
80
-      'css_class' => 'panel-primary container shadow',
79
+        'css_id' => '',
80
+        'css_class' => 'panel-primary container shadow',
81 81
     );
82 82
     $pane->extras = array();
83 83
     $pane->position = 0;
@@ -93,11 +93,11 @@  discard block
 block discarded – undo
93 93
     $pane->configuration = array();
94 94
     $pane->cache = array();
95 95
     $pane->style = array(
96
-      'settings' => NULL,
96
+        'settings' => NULL,
97 97
     );
98 98
     $pane->css = array(
99
-      'css_id' => '',
100
-      'css_class' => 'panel-primary container shadow',
99
+        'css_id' => '',
100
+        'css_class' => 'panel-primary container shadow',
101 101
     );
102 102
     $pane->extras = array();
103 103
     $pane->position = 1;
@@ -111,32 +111,32 @@  discard block
 block discarded – undo
111 111
     $pane->shown = TRUE;
112 112
     $pane->access = array();
113 113
     $pane->configuration = array(
114
-      'link_to_view' => 0,
115
-      'more_link' => 1,
116
-      'use_pager' => 0,
117
-      'pager_id' => '',
118
-      'items_per_page' => '10',
119
-      'override_title' => 0,
120
-      'override_title_text' => '',
114
+        'link_to_view' => 0,
115
+        'more_link' => 1,
116
+        'use_pager' => 0,
117
+        'pager_id' => '',
118
+        'items_per_page' => '10',
119
+        'override_title' => 0,
120
+        'override_title_text' => '',
121 121
     );
122 122
     $pane->cache = array();
123 123
     $pane->style = array(
124
-      'settings' => NULL,
124
+        'settings' => NULL,
125 125
     );
126 126
     $pane->css = array(
127
-      'css_id' => '',
128
-      'css_class' => 'panel-primary container shadow',
127
+        'css_id' => '',
128
+        'css_class' => 'panel-primary container shadow',
129 129
     );
130 130
     $pane->extras = array();
131 131
     $pane->position = 2;
132 132
     $display->content['new-3'] = $pane;
133 133
     $display->panels['middle'][2] = 'new-3';
134
-  $display->hide_title = PANELS_TITLE_FIXED;
135
-  $display->title_pane = '0';
136
-  $handler->conf['display'] = $display;
137
-  $page->default_handlers[$handler->name] = $handler;
138
-  $pages['page_stats'] = $page;
134
+    $display->hide_title = PANELS_TITLE_FIXED;
135
+    $display->title_pane = '0';
136
+    $handler->conf['display'] = $display;
137
+    $page->default_handlers[$handler->name] = $handler;
138
+    $pages['page_stats'] = $page;
139 139
 
140
- return $pages;
140
+    return $pages;
141 141
 
142 142
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/boinc_standard/boinc_standard.panels_default.inc 2 patches
Upper-Lower-Casing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
10
+  $mini->disabled = false; /* Edit this to true to make a default mini disabled initially */
11 11
   $mini->api_version = 1;
12 12
   $mini->name = 'dashboard_tables';
13 13
   $mini->category = 'BOINC';
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
   $display->layout_settings = array();
22 22
   $display->panel_settings = array(
23 23
     'style_settings' => array(
24
-      'default' => NULL,
25
-      'left' => NULL,
26
-      'right' => NULL,
27
-      'top' => NULL,
28
-      'bottom' => NULL,
24
+      'default' => null,
25
+      'left' => null,
26
+      'right' => null,
27
+      'top' => null,
28
+      'bottom' => null,
29 29
     ),
30 30
   );
31 31
   $display->cache = array();
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
     $pane->panel = 'left';
38 38
     $pane->type = 'views_panes';
39 39
     $pane->subtype = 'boinc_account_computers-panel_pane_1';
40
-    $pane->shown = TRUE;
40
+    $pane->shown = true;
41 41
     $pane->access = array();
42 42
     $pane->configuration = array();
43 43
     $pane->cache = array();
44 44
     $pane->style = array(
45
-      'settings' => NULL,
45
+      'settings' => null,
46 46
     );
47 47
     $pane->css = array();
48 48
     $pane->extras = array();
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     $pane->panel = 'right';
55 55
     $pane->type = 'panels_mini';
56 56
     $pane->subtype = 'user_project_list';
57
-    $pane->shown = TRUE;
57
+    $pane->shown = true;
58 58
     $pane->access = array();
59 59
     $pane->configuration = array(
60 60
       'override_title' => 0,
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     );
63 63
     $pane->cache = array();
64 64
     $pane->style = array(
65
-      'settings' => NULL,
65
+      'settings' => null,
66 66
     );
67 67
     $pane->css = array();
68 68
     $pane->extras = array();
@@ -74,12 +74,12 @@  discard block
 block discarded – undo
74 74
     $pane->panel = 'top';
75 75
     $pane->type = 'views_panes';
76 76
     $pane->subtype = 'boinc_account_stats-panel_pane_1';
77
-    $pane->shown = TRUE;
77
+    $pane->shown = true;
78 78
     $pane->access = array();
79 79
     $pane->configuration = array();
80 80
     $pane->cache = array();
81 81
     $pane->style = array(
82
-      'settings' => NULL,
82
+      'settings' => null,
83 83
     );
84 84
     $pane->css = array();
85 85
     $pane->extras = array();
Please login to merge, or discard this patch.
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -4,36 +4,36 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_panels_mini().
5 5
  */
6 6
 function boinc_standard_default_panels_mini() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
-  $mini->api_version = 1;
12
-  $mini->name = 'dashboard_tables';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'Dashboard tables';
15
-  $mini->admin_description = 'Tables of computers and projects for a user';
16
-  $mini->requiredcontexts = array();
17
-  $mini->contexts = array();
18
-  $mini->relationships = array();
19
-  $display = new panels_display;
20
-  $display->layout = 'twocol_stacked';
21
-  $display->layout_settings = array();
22
-  $display->panel_settings = array(
9
+    $mini = new stdClass;
10
+    $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
+    $mini->api_version = 1;
12
+    $mini->name = 'dashboard_tables';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'Dashboard tables';
15
+    $mini->admin_description = 'Tables of computers and projects for a user';
16
+    $mini->requiredcontexts = array();
17
+    $mini->contexts = array();
18
+    $mini->relationships = array();
19
+    $display = new panels_display;
20
+    $display->layout = 'twocol_stacked';
21
+    $display->layout_settings = array();
22
+    $display->panel_settings = array(
23 23
     'style_settings' => array(
24
-      'default' => NULL,
25
-      'left' => NULL,
26
-      'right' => NULL,
27
-      'top' => NULL,
28
-      'bottom' => NULL,
24
+        'default' => NULL,
25
+        'left' => NULL,
26
+        'right' => NULL,
27
+        'top' => NULL,
28
+        'bottom' => NULL,
29 29
     ),
30
-  );
31
-  $display->cache = array();
32
-  $display->title = '';
33
-  $display->storage_type = 'panels_mini';
34
-  $display->storage_id = 'dashboard_tables';
35
-  $display->content = array();
36
-  $display->panels = array();
30
+    );
31
+    $display->cache = array();
32
+    $display->title = '';
33
+    $display->storage_type = 'panels_mini';
34
+    $display->storage_id = 'dashboard_tables';
35
+    $display->content = array();
36
+    $display->panels = array();
37 37
     $pane = new stdClass;
38 38
     $pane->pid = 'new-1';
39 39
     $pane->panel = 'left';
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     $pane->configuration = array();
45 45
     $pane->cache = array();
46 46
     $pane->style = array(
47
-      'settings' => NULL,
47
+        'settings' => NULL,
48 48
     );
49 49
     $pane->css = array();
50 50
     $pane->extras = array();
@@ -59,12 +59,12 @@  discard block
 block discarded – undo
59 59
     $pane->shown = TRUE;
60 60
     $pane->access = array();
61 61
     $pane->configuration = array(
62
-      'override_title' => 0,
63
-      'override_title_text' => '',
62
+        'override_title' => 0,
63
+        'override_title_text' => '',
64 64
     );
65 65
     $pane->cache = array();
66 66
     $pane->style = array(
67
-      'settings' => NULL,
67
+        'settings' => NULL,
68 68
     );
69 69
     $pane->css = array();
70 70
     $pane->extras = array();
@@ -81,17 +81,17 @@  discard block
 block discarded – undo
81 81
     $pane->configuration = array();
82 82
     $pane->cache = array();
83 83
     $pane->style = array(
84
-      'settings' => NULL,
84
+        'settings' => NULL,
85 85
     );
86 86
     $pane->css = array();
87 87
     $pane->extras = array();
88 88
     $pane->position = 0;
89 89
     $display->content['new-3'] = $pane;
90 90
     $display->panels['top'][0] = 'new-3';
91
-  $display->hide_title = PANELS_TITLE_NONE;
92
-  $display->title_pane = '0';
93
-  $mini->display = $display;
94
-  $export['dashboard_tables'] = $mini;
91
+    $display->hide_title = PANELS_TITLE_NONE;
92
+    $display->title_pane = '0';
93
+    $mini->display = $display;
94
+    $export['dashboard_tables'] = $mini;
95 95
 
96
-  return $export;
96
+    return $export;
97 97
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/boinc_standard/boinc_standard.views_default.inc 2 patches
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
   $view->base_table = 'users';
15 15
   $view->core = 6;
16 16
   $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
17
+  $view->disabled = false; /* Edit this to true to make a default view disabled initially */
18 18
   $handler = $view->new_display('default', 'Defaults', 'default');
19 19
   $handler->override_option('fields', array(
20 20
     'uid' => array(
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
       'operator' => 'contains',
295 295
       'value' => '',
296 296
       'group' => '0',
297
-      'exposed' => TRUE,
297
+      'exposed' => true,
298 298
       'expose' => array(
299 299
         'use_operator' => 0,
300 300
         'operator' => 'name_op',
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
       'operator' => 'contains',
313 313
       'value' => '',
314 314
       'group' => '0',
315
-      'exposed' => TRUE,
315
+      'exposed' => true,
316 316
       'expose' => array(
317 317
         'use_operator' => 0,
318 318
         'operator' => 'mail_op',
Please login to merge, or discard this patch.
Indentation   +210 added lines, -210 removed lines patch added patch discarded remove patch
@@ -4,22 +4,22 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function boinc_standard_views_default_views() {
7
-  $views = array();
7
+    $views = array();
8 8
 
9
-  // Exported view: admin_user_search
10
-  $view = new view;
11
-  $view->name = 'admin_user_search';
12
-  $view->description = 'Administrator User Search';
13
-  $view->tag = '';
14
-  $view->base_table = 'users';
15
-  $view->core = 6;
16
-  $view->api_version = '2';
17
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
-  $handler = $view->new_display('default', 'Defaults', 'default');
19
-  $handler->override_option('fields', array(
9
+    // Exported view: admin_user_search
10
+    $view = new view;
11
+    $view->name = 'admin_user_search';
12
+    $view->description = 'Administrator User Search';
13
+    $view->tag = '';
14
+    $view->base_table = 'users';
15
+    $view->core = 6;
16
+    $view->api_version = '2';
17
+    $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
18
+    $handler = $view->new_display('default', 'Defaults', 'default');
19
+    $handler->override_option('fields', array(
20 20
     'uid' => array(
21
-      'label' => 'Uid',
22
-      'alter' => array(
21
+        'label' => 'Uid',
22
+        'alter' => array(
23 23
         'alter_text' => 0,
24 24
         'text' => '',
25 25
         'make_link' => 0,
@@ -38,21 +38,21 @@  discard block
 block discarded – undo
38 38
         'ellipsis' => 1,
39 39
         'html' => 0,
40 40
         'strip_tags' => 0,
41
-      ),
42
-      'empty' => '',
43
-      'hide_empty' => 0,
44
-      'empty_zero' => 0,
45
-      'hide_alter_empty' => 1,
46
-      'link_to_user' => 0,
47
-      'exclude' => 0,
48
-      'id' => 'uid',
49
-      'table' => 'users',
50
-      'field' => 'uid',
51
-      'relationship' => 'none',
41
+        ),
42
+        'empty' => '',
43
+        'hide_empty' => 0,
44
+        'empty_zero' => 0,
45
+        'hide_alter_empty' => 1,
46
+        'link_to_user' => 0,
47
+        'exclude' => 0,
48
+        'id' => 'uid',
49
+        'table' => 'users',
50
+        'field' => 'uid',
51
+        'relationship' => 'none',
52 52
     ),
53 53
     'name' => array(
54
-      'label' => 'Name',
55
-      'alter' => array(
54
+        'label' => 'Name',
55
+        'alter' => array(
56 56
         'alter_text' => 0,
57 57
         'text' => '',
58 58
         'make_link' => 1,
@@ -71,23 +71,23 @@  discard block
 block discarded – undo
71 71
         'ellipsis' => 1,
72 72
         'html' => 0,
73 73
         'strip_tags' => 0,
74
-      ),
75
-      'empty' => '',
76
-      'hide_empty' => 0,
77
-      'empty_zero' => 0,
78
-      'hide_alter_empty' => 1,
79
-      'link_to_user' => 0,
80
-      'overwrite_anonymous' => 0,
81
-      'anonymous_text' => '',
82
-      'exclude' => 0,
83
-      'id' => 'name',
84
-      'table' => 'users',
85
-      'field' => 'name',
86
-      'relationship' => 'none',
74
+        ),
75
+        'empty' => '',
76
+        'hide_empty' => 0,
77
+        'empty_zero' => 0,
78
+        'hide_alter_empty' => 1,
79
+        'link_to_user' => 0,
80
+        'overwrite_anonymous' => 0,
81
+        'anonymous_text' => '',
82
+        'exclude' => 0,
83
+        'id' => 'name',
84
+        'table' => 'users',
85
+        'field' => 'name',
86
+        'relationship' => 'none',
87 87
     ),
88 88
     'phpcode' => array(
89
-      'label' => 'BOINC user name',
90
-      'alter' => array(
89
+        'label' => 'BOINC user name',
90
+        'alter' => array(
91 91
         'alter_text' => 0,
92 92
         'text' => '',
93 93
         'make_link' => 1,
@@ -106,29 +106,29 @@  discard block
 block discarded – undo
106 106
         'ellipsis' => 1,
107 107
         'html' => 0,
108 108
         'strip_tags' => 0,
109
-      ),
110
-      'empty' => '',
111
-      'hide_empty' => 0,
112
-      'empty_zero' => 0,
113
-      'hide_alter_empty' => 1,
114
-      'value' => '<?php
109
+        ),
110
+        'empty' => '',
111
+        'hide_empty' => 0,
112
+        'empty_zero' => 0,
113
+        'hide_alter_empty' => 1,
114
+        'value' => '<?php
115 115
   $myuser = user_load($data->uid);
116 116
   echo $myuser->boincuser_name;
117 117
 ?>',
118
-      'exclude' => 0,
119
-      'id' => 'phpcode',
120
-      'table' => 'customfield',
121
-      'field' => 'phpcode',
122
-      'relationship' => 'none',
118
+        'exclude' => 0,
119
+        'id' => 'phpcode',
120
+        'table' => 'customfield',
121
+        'field' => 'phpcode',
122
+        'relationship' => 'none',
123 123
     ),
124 124
     'mail' => array(
125
-      'id' => 'mail',
126
-      'table' => 'users',
127
-      'field' => 'mail',
125
+        'id' => 'mail',
126
+        'table' => 'users',
127
+        'field' => 'mail',
128 128
     ),
129 129
     'rid' => array(
130
-      'label' => 'Roles',
131
-      'alter' => array(
130
+        'label' => 'Roles',
131
+        'alter' => array(
132 132
         'alter_text' => 0,
133 133
         'text' => '',
134 134
         'make_link' => 0,
@@ -147,22 +147,22 @@  discard block
 block discarded – undo
147 147
         'ellipsis' => 1,
148 148
         'html' => 0,
149 149
         'strip_tags' => 0,
150
-      ),
151
-      'empty' => '',
152
-      'hide_empty' => 0,
153
-      'empty_zero' => 0,
154
-      'hide_alter_empty' => 1,
155
-      'type' => 'separator',
156
-      'separator' => ', ',
157
-      'exclude' => 0,
158
-      'id' => 'rid',
159
-      'table' => 'users_roles',
160
-      'field' => 'rid',
161
-      'relationship' => 'none',
150
+        ),
151
+        'empty' => '',
152
+        'hide_empty' => 0,
153
+        'empty_zero' => 0,
154
+        'hide_alter_empty' => 1,
155
+        'type' => 'separator',
156
+        'separator' => ', ',
157
+        'exclude' => 0,
158
+        'id' => 'rid',
159
+        'table' => 'users_roles',
160
+        'field' => 'rid',
161
+        'relationship' => 'none',
162 162
     ),
163 163
     'status' => array(
164
-      'label' => 'Banned',
165
-      'alter' => array(
164
+        'label' => 'Banned',
165
+        'alter' => array(
166 166
         'alter_text' => 0,
167 167
         'text' => '',
168 168
         'make_link' => 0,
@@ -181,22 +181,22 @@  discard block
 block discarded – undo
181 181
         'ellipsis' => 1,
182 182
         'html' => 0,
183 183
         'strip_tags' => 0,
184
-      ),
185
-      'empty' => '',
186
-      'hide_empty' => 0,
187
-      'empty_zero' => 0,
188
-      'hide_alter_empty' => 1,
189
-      'type' => 'yes-no',
190
-      'not' => 1,
191
-      'exclude' => 0,
192
-      'id' => 'status',
193
-      'table' => 'users',
194
-      'field' => 'status',
195
-      'relationship' => 'none',
184
+        ),
185
+        'empty' => '',
186
+        'hide_empty' => 0,
187
+        'empty_zero' => 0,
188
+        'hide_alter_empty' => 1,
189
+        'type' => 'yes-no',
190
+        'not' => 1,
191
+        'exclude' => 0,
192
+        'id' => 'status',
193
+        'table' => 'users',
194
+        'field' => 'status',
195
+        'relationship' => 'none',
196 196
     ),
197 197
     'access' => array(
198
-      'label' => 'Last access',
199
-      'alter' => array(
198
+        'label' => 'Last access',
199
+        'alter' => array(
200 200
         'alter_text' => 0,
201 201
         'text' => '',
202 202
         'make_link' => 0,
@@ -215,22 +215,22 @@  discard block
 block discarded – undo
215 215
         'ellipsis' => 1,
216 216
         'html' => 0,
217 217
         'strip_tags' => 0,
218
-      ),
219
-      'empty' => '',
220
-      'hide_empty' => 0,
221
-      'empty_zero' => 0,
222
-      'hide_alter_empty' => 1,
223
-      'date_format' => 'time ago',
224
-      'custom_date_format' => '',
225
-      'exclude' => 0,
226
-      'id' => 'access',
227
-      'table' => 'users',
228
-      'field' => 'access',
229
-      'relationship' => 'none',
218
+        ),
219
+        'empty' => '',
220
+        'hide_empty' => 0,
221
+        'empty_zero' => 0,
222
+        'hide_alter_empty' => 1,
223
+        'date_format' => 'time ago',
224
+        'custom_date_format' => '',
225
+        'exclude' => 0,
226
+        'id' => 'access',
227
+        'table' => 'users',
228
+        'field' => 'access',
229
+        'relationship' => 'none',
230 230
     ),
231 231
     'login' => array(
232
-      'label' => 'Last login',
233
-      'alter' => array(
232
+        'label' => 'Last login',
233
+        'alter' => array(
234 234
         'alter_text' => 0,
235 235
         'text' => '',
236 236
         'make_link' => 0,
@@ -249,22 +249,22 @@  discard block
 block discarded – undo
249 249
         'ellipsis' => 1,
250 250
         'html' => 0,
251 251
         'strip_tags' => 0,
252
-      ),
253
-      'empty' => '',
254
-      'hide_empty' => 0,
255
-      'empty_zero' => 0,
256
-      'hide_alter_empty' => 1,
257
-      'date_format' => 'time ago',
258
-      'custom_date_format' => '',
259
-      'exclude' => 0,
260
-      'id' => 'login',
261
-      'table' => 'users',
262
-      'field' => 'login',
263
-      'relationship' => 'none',
252
+        ),
253
+        'empty' => '',
254
+        'hide_empty' => 0,
255
+        'empty_zero' => 0,
256
+        'hide_alter_empty' => 1,
257
+        'date_format' => 'time ago',
258
+        'custom_date_format' => '',
259
+        'exclude' => 0,
260
+        'id' => 'login',
261
+        'table' => 'users',
262
+        'field' => 'login',
263
+        'relationship' => 'none',
264 264
     ),
265 265
     'created' => array(
266
-      'label' => 'Created date',
267
-      'alter' => array(
266
+        'label' => 'Created date',
267
+        'alter' => array(
268 268
         'alter_text' => 0,
269 269
         'text' => '',
270 270
         'make_link' => 0,
@@ -283,22 +283,22 @@  discard block
 block discarded – undo
283 283
         'ellipsis' => 1,
284 284
         'html' => 0,
285 285
         'strip_tags' => 0,
286
-      ),
287
-      'empty' => '',
288
-      'hide_empty' => 0,
289
-      'empty_zero' => 0,
290
-      'hide_alter_empty' => 1,
291
-      'date_format' => 'time ago',
292
-      'custom_date_format' => '',
293
-      'exclude' => 0,
294
-      'id' => 'created',
295
-      'table' => 'users',
296
-      'field' => 'created',
297
-      'relationship' => 'none',
286
+        ),
287
+        'empty' => '',
288
+        'hide_empty' => 0,
289
+        'empty_zero' => 0,
290
+        'hide_alter_empty' => 1,
291
+        'date_format' => 'time ago',
292
+        'custom_date_format' => '',
293
+        'exclude' => 0,
294
+        'id' => 'created',
295
+        'table' => 'users',
296
+        'field' => 'created',
297
+        'relationship' => 'none',
298 298
     ),
299 299
     'edit_node' => array(
300
-      'label' => '',
301
-      'alter' => array(
300
+        'label' => '',
301
+        'alter' => array(
302 302
         'alter_text' => 0,
303 303
         'text' => '',
304 304
         'make_link' => 0,
@@ -317,143 +317,143 @@  discard block
 block discarded – undo
317 317
         'ellipsis' => 1,
318 318
         'html' => 0,
319 319
         'strip_tags' => 0,
320
-      ),
321
-      'empty' => '',
322
-      'hide_empty' => 0,
323
-      'empty_zero' => 0,
324
-      'hide_alter_empty' => 1,
325
-      'text' => '',
326
-      'exclude' => 0,
327
-      'id' => 'edit_node',
328
-      'table' => 'users',
329
-      'field' => 'edit_node',
330
-      'relationship' => 'none',
320
+        ),
321
+        'empty' => '',
322
+        'hide_empty' => 0,
323
+        'empty_zero' => 0,
324
+        'hide_alter_empty' => 1,
325
+        'text' => '',
326
+        'exclude' => 0,
327
+        'id' => 'edit_node',
328
+        'table' => 'users',
329
+        'field' => 'edit_node',
330
+        'relationship' => 'none',
331 331
     ),
332
-  ));
333
-  $handler->override_option('filters', array(
332
+    ));
333
+    $handler->override_option('filters', array(
334 334
     'name' => array(
335
-      'operator' => 'contains',
336
-      'value' => '',
337
-      'group' => '0',
338
-      'exposed' => TRUE,
339
-      'expose' => array(
335
+        'operator' => 'contains',
336
+        'value' => '',
337
+        'group' => '0',
338
+        'exposed' => TRUE,
339
+        'expose' => array(
340 340
         'use_operator' => 0,
341 341
         'operator' => 'name_op',
342 342
         'identifier' => 'name',
343 343
         'label' => 'Part of a User\'s name',
344 344
         'remember' => 0,
345
-      ),
346
-      'case' => 0,
347
-      'id' => 'name',
348
-      'table' => 'users',
349
-      'field' => 'name',
350
-      'relationship' => 'none',
345
+        ),
346
+        'case' => 0,
347
+        'id' => 'name',
348
+        'table' => 'users',
349
+        'field' => 'name',
350
+        'relationship' => 'none',
351 351
     ),
352 352
     'mail' => array(
353
-      'operator' => 'contains',
354
-      'value' => '',
355
-      'group' => '0',
356
-      'exposed' => TRUE,
357
-      'expose' => array(
353
+        'operator' => 'contains',
354
+        'value' => '',
355
+        'group' => '0',
356
+        'exposed' => TRUE,
357
+        'expose' => array(
358 358
         'use_operator' => 0,
359 359
         'operator' => 'mail_op',
360 360
         'identifier' => 'mail',
361 361
         'label' => 'Part of a User\'s E-mail',
362 362
         'remember' => 0,
363
-      ),
364
-      'case' => 0,
365
-      'id' => 'mail',
366
-      'table' => 'users',
367
-      'field' => 'mail',
368
-      'relationship' => 'none',
363
+        ),
364
+        'case' => 0,
365
+        'id' => 'mail',
366
+        'table' => 'users',
367
+        'field' => 'mail',
368
+        'relationship' => 'none',
369 369
     ),
370
-  ));
371
-  $handler->override_option('access', array(
370
+    ));
371
+    $handler->override_option('access', array(
372 372
     'type' => 'perm',
373 373
     'perm' => 'administer users',
374
-  ));
375
-  $handler->override_option('cache', array(
374
+    ));
375
+    $handler->override_option('cache', array(
376 376
     'type' => 'none',
377
-  ));
378
-  $handler->override_option('use_pager', '1');
379
-  $handler->override_option('style_plugin', 'table');
380
-  $handler->override_option('style_options', array(
377
+    ));
378
+    $handler->override_option('use_pager', '1');
379
+    $handler->override_option('style_plugin', 'table');
380
+    $handler->override_option('style_options', array(
381 381
     'grouping' => '',
382 382
     'override' => 1,
383 383
     'sticky' => 0,
384 384
     'order' => 'desc',
385 385
     'summary' => '',
386 386
     'columns' => array(
387
-      'uid' => 'uid',
388
-      'name' => 'name',
389
-      'phpcode' => 'phpcode',
390
-      'mail' => 'mail',
391
-      'rid' => 'rid',
392
-      'status' => 'status',
393
-      'access' => 'access',
394
-      'login' => 'login',
395
-      'created' => 'created',
396
-      'edit_node' => 'edit_node',
387
+        'uid' => 'uid',
388
+        'name' => 'name',
389
+        'phpcode' => 'phpcode',
390
+        'mail' => 'mail',
391
+        'rid' => 'rid',
392
+        'status' => 'status',
393
+        'access' => 'access',
394
+        'login' => 'login',
395
+        'created' => 'created',
396
+        'edit_node' => 'edit_node',
397 397
     ),
398 398
     'info' => array(
399
-      'uid' => array(
399
+        'uid' => array(
400 400
         'sortable' => 1,
401 401
         'separator' => '',
402
-      ),
403
-      'name' => array(
402
+        ),
403
+        'name' => array(
404 404
         'sortable' => 1,
405 405
         'separator' => '',
406
-      ),
407
-      'phpcode' => array(
406
+        ),
407
+        'phpcode' => array(
408 408
         'separator' => '',
409
-      ),
410
-      'mail' => array(
409
+        ),
410
+        'mail' => array(
411 411
         'sortable' => 1,
412 412
         'separator' => '',
413
-      ),
414
-      'rid' => array(
413
+        ),
414
+        'rid' => array(
415 415
         'separator' => '',
416
-      ),
417
-      'status' => array(
416
+        ),
417
+        'status' => array(
418 418
         'sortable' => 1,
419 419
         'separator' => '',
420
-      ),
421
-      'access' => array(
420
+        ),
421
+        'access' => array(
422 422
         'sortable' => 1,
423 423
         'separator' => '',
424
-      ),
425
-      'login' => array(
424
+        ),
425
+        'login' => array(
426 426
         'sortable' => 1,
427 427
         'separator' => '',
428
-      ),
429
-      'created' => array(
428
+        ),
429
+        'created' => array(
430 430
         'sortable' => 1,
431 431
         'separator' => '',
432
-      ),
433
-      'edit_node' => array(
432
+        ),
433
+        'edit_node' => array(
434 434
         'separator' => '',
435
-      ),
435
+        ),
436 436
     ),
437 437
     'default' => 'access',
438
-  ));
439
-  $handler = $view->new_display('page', 'Page', 'page_1');
440
-  $handler->override_option('path', 'admin/user/search');
441
-  $handler->override_option('menu', array(
438
+    ));
439
+    $handler = $view->new_display('page', 'Page', 'page_1');
440
+    $handler->override_option('path', 'admin/user/search');
441
+    $handler->override_option('menu', array(
442 442
     'type' => 'normal',
443 443
     'title' => 'User search',
444 444
     'description' => 'Find users by partial name or email address',
445 445
     'weight' => '0',
446 446
     'name' => 'navigation',
447
-  ));
448
-  $handler->override_option('tab_options', array(
447
+    ));
448
+    $handler->override_option('tab_options', array(
449 449
     'type' => 'none',
450 450
     'title' => '',
451 451
     'description' => '',
452 452
     'weight' => 0,
453 453
     'name' => 'navigation',
454
-  ));
454
+    ));
455 455
 
456
-  $views[$view->name] = $view;
456
+    $views[$view->name] = $view;
457 457
 
458
-  return $views;
458
+    return $views;
459 459
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/user_profiles/user_profiles.panels_default.inc 2 patches
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@  discard block
 block discarded – undo
7 7
   $export = array();
8 8
 
9 9
   $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
10
+  $mini->disabled = false; /* Edit this to true to make a default mini disabled initially */
11 11
   $mini->api_version = 1;
12 12
   $mini->name = 'user_profile';
13 13
   $mini->category = 'BOINC';
@@ -28,8 +28,8 @@  discard block
 block discarded – undo
28 28
   $display->layout_settings = array();
29 29
   $display->panel_settings = array(
30 30
     'style_settings' => array(
31
-      'default' => NULL,
32
-      'middle' => NULL,
31
+      'default' => null,
32
+      'middle' => null,
33 33
     ),
34 34
   );
35 35
   $display->cache = array();
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     $pane->panel = 'middle';
42 42
     $pane->type = 'user_profile';
43 43
     $pane->subtype = 'user_profile';
44
-    $pane->shown = TRUE;
44
+    $pane->shown = true;
45 45
     $pane->access = array();
46 46
     $pane->configuration = array(
47 47
       'context' => 'requiredcontext_user_1',
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     );
51 51
     $pane->cache = array();
52 52
     $pane->style = array(
53
-      'settings' => NULL,
53
+      'settings' => null,
54 54
     );
55 55
     $pane->css = array();
56 56
     $pane->extras = array();
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     $pane->panel = 'middle';
63 63
     $pane->type = 'custom';
64 64
     $pane->subtype = 'custom';
65
-    $pane->shown = TRUE;
65
+    $pane->shown = true;
66 66
     $pane->access = array();
67 67
     $pane->configuration = array(
68 68
       'admin_title' => 'Flag user',
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     );
74 74
     $pane->cache = array();
75 75
     $pane->style = array(
76
-      'settings' => NULL,
76
+      'settings' => null,
77 77
     );
78 78
     $pane->css = array();
79 79
     $pane->extras = array();
Please login to merge, or discard this patch.
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -4,40 +4,40 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_panels_mini().
5 5
  */
6 6
 function user_profiles_default_panels_mini() {
7
-  $export = array();
7
+    $export = array();
8 8
 
9
-  $mini = new stdClass;
10
-  $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
-  $mini->api_version = 1;
12
-  $mini->name = 'user_profile';
13
-  $mini->category = 'BOINC';
14
-  $mini->admin_title = 'User profile';
15
-  $mini->admin_description = 'A user\'s profile information, including background and opinions';
16
-  $mini->requiredcontexts = array(
9
+    $mini = new stdClass;
10
+    $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
11
+    $mini->api_version = 1;
12
+    $mini->name = 'user_profile';
13
+    $mini->category = 'BOINC';
14
+    $mini->admin_title = 'User profile';
15
+    $mini->admin_description = 'A user\'s profile information, including background and opinions';
16
+    $mini->requiredcontexts = array(
17 17
     0 => array(
18
-      'name' => 'user',
19
-      'id' => 1,
20
-      'identifier' => 'User',
21
-      'keyword' => 'user',
18
+        'name' => 'user',
19
+        'id' => 1,
20
+        'identifier' => 'User',
21
+        'keyword' => 'user',
22 22
     ),
23
-  );
24
-  $mini->contexts = array();
25
-  $mini->relationships = array();
26
-  $display = new panels_display;
27
-  $display->layout = 'onecol';
28
-  $display->layout_settings = array();
29
-  $display->panel_settings = array(
23
+    );
24
+    $mini->contexts = array();
25
+    $mini->relationships = array();
26
+    $display = new panels_display;
27
+    $display->layout = 'onecol';
28
+    $display->layout_settings = array();
29
+    $display->panel_settings = array(
30 30
     'style_settings' => array(
31
-      'default' => NULL,
32
-      'middle' => NULL,
31
+        'default' => NULL,
32
+        'middle' => NULL,
33 33
     ),
34
-  );
35
-  $display->cache = array();
36
-  $display->title = '';
37
-  $display->storage_type = 'panels_mini';
38
-  $display->storage_id = 'user_profile';
39
-  $display->content = array();
40
-  $display->panels = array();
34
+    );
35
+    $display->cache = array();
36
+    $display->title = '';
37
+    $display->storage_type = 'panels_mini';
38
+    $display->storage_id = 'user_profile';
39
+    $display->content = array();
40
+    $display->panels = array();
41 41
     $pane = new stdClass;
42 42
     $pane->pid = 'new-1';
43 43
     $pane->panel = 'middle';
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
     $pane->shown = TRUE;
47 47
     $pane->access = array();
48 48
     $pane->configuration = array(
49
-      'context' => 'requiredcontext_user_1',
50
-      'override_title' => 1,
51
-      'override_title_text' => '',
49
+        'context' => 'requiredcontext_user_1',
50
+        'override_title' => 1,
51
+        'override_title_text' => '',
52 52
     );
53 53
     $pane->cache = array();
54 54
     $pane->style = array(
55
-      'settings' => NULL,
55
+        'settings' => NULL,
56 56
     );
57 57
     $pane->css = array();
58 58
     $pane->extras = array();
@@ -67,25 +67,25 @@  discard block
 block discarded – undo
67 67
     $pane->shown = TRUE;
68 68
     $pane->access = array();
69 69
     $pane->configuration = array(
70
-      'admin_title' => 'Flag user',
71
-      'title' => '',
72
-      'body' => '<?php print boincuser_get_profile_links(%user:uid); ?>',
73
-      'format' => '3',
74
-      'substitute' => 1,
70
+        'admin_title' => 'Flag user',
71
+        'title' => '',
72
+        'body' => '<?php print boincuser_get_profile_links(%user:uid); ?>',
73
+        'format' => '3',
74
+        'substitute' => 1,
75 75
     );
76 76
     $pane->cache = array();
77 77
     $pane->style = array(
78
-      'settings' => NULL,
78
+        'settings' => NULL,
79 79
     );
80 80
     $pane->css = array();
81 81
     $pane->extras = array();
82 82
     $pane->position = 1;
83 83
     $display->content['new-2'] = $pane;
84 84
     $display->panels['middle'][1] = 'new-2';
85
-  $display->hide_title = PANELS_TITLE_NONE;
86
-  $display->title_pane = 'new-1';
87
-  $mini->display = $display;
88
-  $export['user_profile'] = $mini;
85
+    $display->hide_title = PANELS_TITLE_NONE;
86
+    $display->title_pane = 'new-1';
87
+    $mini->display = $display;
88
+    $export['user_profile'] = $mini;
89 89
 
90
-  return $export;
90
+    return $export;
91 91
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/teams/teams.pages_default.inc 2 patches
Upper-Lower-Casing   +191 added lines, -191 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
  */
6 6
 function teams_default_page_manager_pages() {
7 7
   $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
8
+  $page->disabled = false; /* Edit this to true to make a default page disabled initially */
9 9
   $page->api_version = 1;
10 10
   $page->name = 'create_team';
11 11
   $page->task = 'page';
@@ -20,12 +20,12 @@  discard block
 block discarded – undo
20 20
           'perm' => 'create boincteam',
21 21
         ),
22 22
         'context' => 'logged-in-user',
23
-        'not' => FALSE,
23
+        'not' => false,
24 24
       ),
25 25
     ),
26 26
     'logic' => 'and',
27 27
     'type' => 'none',
28
-    'settings' => NULL,
28
+    'settings' => null,
29 29
   );
30 30
   $page->menu = array(
31 31
     'type' => 'none',
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
   $page->conf = array();
44 44
   $page->default_handlers = array();
45 45
   $handler = new stdClass;
46
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
46
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
47 47
   $handler->api_version = 1;
48 48
   $handler->name = 'page_create_team_panel_context';
49 49
   $handler->task = 'page';
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
           0 => 'main',
71 71
           1 => 2,
72 72
         ),
73
-        'parent' => NULL,
73
+        'parent' => null,
74 74
       ),
75 75
       'main' => array(
76 76
         'type' => 'column',
@@ -126,15 +126,15 @@  discard block
 block discarded – undo
126 126
   );
127 127
   $display->panel_settings = array(
128 128
     'style_settings' => array(
129
-      'default' => NULL,
130
-      'center' => NULL,
131
-      'top_teams' => NULL,
132
-      'top' => NULL,
133
-      'left' => NULL,
134
-      'right' => NULL,
135
-      'bottom' => NULL,
136
-      'content' => NULL,
137
-      'sidebar_first' => NULL,
129
+      'default' => null,
130
+      'center' => null,
131
+      'top_teams' => null,
132
+      'top' => null,
133
+      'left' => null,
134
+      'right' => null,
135
+      'bottom' => null,
136
+      'content' => null,
137
+      'sidebar_first' => null,
138 138
     ),
139 139
   );
140 140
   $display->cache = array();
@@ -146,18 +146,18 @@  discard block
 block discarded – undo
146 146
     $pane->panel = 'left';
147 147
     $pane->type = 'custom';
148 148
     $pane->subtype = 'custom';
149
-    $pane->shown = TRUE;
149
+    $pane->shown = true;
150 150
     $pane->access = array();
151 151
     $pane->configuration = array(
152 152
       'admin_title' => 'Create team form',
153 153
       'title' => '',
154 154
       'body' => '<?php echo boincteam_create_team_panel(); ?>',
155 155
       'format' => '3',
156
-      'substitute' => TRUE,
156
+      'substitute' => true,
157 157
     );
158 158
     $pane->cache = array();
159 159
     $pane->style = array(
160
-      'settings' => NULL,
160
+      'settings' => null,
161 161
     );
162 162
     $pane->css = array(
163 163
       'css_id' => '',
@@ -172,18 +172,18 @@  discard block
 block discarded – undo
172 172
     $pane->panel = 'right';
173 173
     $pane->type = 'custom';
174 174
     $pane->subtype = 'custom';
175
-    $pane->shown = TRUE;
175
+    $pane->shown = true;
176 176
     $pane->access = array();
177 177
     $pane->configuration = array(
178 178
       'admin_title' => 'Search teams',
179 179
       'title' => '',
180 180
       'body' => '<?php echo boincteam_search_panel(); ?>',
181 181
       'format' => '3',
182
-      'substitute' => TRUE,
182
+      'substitute' => true,
183 183
     );
184 184
     $pane->cache = array();
185 185
     $pane->style = array(
186
-      'settings' => NULL,
186
+      'settings' => null,
187 187
     );
188 188
     $pane->css = array(
189 189
       'css_id' => '',
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
   $pages['create_team'] = $page;
201 201
 
202 202
   $page = new stdClass;
203
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
203
+  $page->disabled = false; /* Edit this to true to make a default page disabled initially */
204 204
   $page->api_version = 1;
205 205
   $page->name = 'teams_landing';
206 206
   $page->task = 'page';
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
   $page->path = 'community/teams';
210 210
   $page->access = array(
211 211
     'type' => 'none',
212
-    'settings' => NULL,
212
+    'settings' => null,
213 213
   );
214 214
   $page->menu = array(
215 215
     'type' => 'normal',
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
   $page->conf = array();
228 228
   $page->default_handlers = array();
229 229
   $handler = new stdClass;
230
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
230
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
231 231
   $handler->api_version = 1;
232 232
   $handler->name = 'page_teams_landing_panel_context';
233 233
   $handler->task = 'page';
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
           0 => 'main',
267 267
           1 => 2,
268 268
         ),
269
-        'parent' => NULL,
269
+        'parent' => null,
270 270
       ),
271 271
       'main' => array(
272 272
         'type' => 'column',
@@ -322,15 +322,15 @@  discard block
 block discarded – undo
322 322
   );
323 323
   $display->panel_settings = array(
324 324
     'style_settings' => array(
325
-      'default' => NULL,
326
-      'center' => NULL,
327
-      'top_teams' => NULL,
328
-      'top' => NULL,
329
-      'left' => NULL,
330
-      'right' => NULL,
331
-      'bottom' => NULL,
332
-      'content' => NULL,
333
-      'sidebar_first' => NULL,
325
+      'default' => null,
326
+      'center' => null,
327
+      'top_teams' => null,
328
+      'top' => null,
329
+      'left' => null,
330
+      'right' => null,
331
+      'bottom' => null,
332
+      'content' => null,
333
+      'sidebar_first' => null,
334 334
     ),
335 335
   );
336 336
   $display->cache = array();
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
     $pane->panel = 'bottom';
343 343
     $pane->type = 'views_panes';
344 344
     $pane->subtype = 'boinc_teams-panel_pane_1';
345
-    $pane->shown = TRUE;
345
+    $pane->shown = true;
346 346
     $pane->access = array();
347 347
     $pane->configuration = array(
348 348
       'link_to_view' => 0,
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
     );
356 356
     $pane->cache = array();
357 357
     $pane->style = array(
358
-      'settings' => NULL,
358
+      'settings' => null,
359 359
     );
360 360
     $pane->css = array(
361 361
       'css_id' => '',
@@ -370,18 +370,18 @@  discard block
 block discarded – undo
370 370
     $pane->panel = 'left';
371 371
     $pane->type = 'custom';
372 372
     $pane->subtype = 'custom';
373
-    $pane->shown = TRUE;
373
+    $pane->shown = true;
374 374
     $pane->access = array();
375 375
     $pane->configuration = array(
376 376
       'admin_title' => 'General info on teams',
377 377
       'title' => '',
378 378
       'body' => '<?php echo boincteam_topic_overview_panel(); ?>',
379 379
       'format' => '3',
380
-      'substitute' => TRUE,
380
+      'substitute' => true,
381 381
     );
382 382
     $pane->cache = array();
383 383
     $pane->style = array(
384
-      'settings' => NULL,
384
+      'settings' => null,
385 385
     );
386 386
     $pane->css = array(
387 387
       'css_id' => '',
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
     $pane->panel = 'right';
397 397
     $pane->type = 'custom';
398 398
     $pane->subtype = 'custom';
399
-    $pane->shown = TRUE;
399
+    $pane->shown = true;
400 400
     $pane->access = array(
401 401
       'plugins' => array(
402 402
         0 => array(
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
407 407
 return ($account->team > 0);',
408 408
           ),
409
-          'not' => FALSE,
409
+          'not' => false,
410 410
         ),
411 411
       ),
412 412
     );
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
     );
420 420
     $pane->cache = array();
421 421
     $pane->style = array(
422
-      'settings' => NULL,
422
+      'settings' => null,
423 423
     );
424 424
     $pane->css = array(
425 425
       'css_id' => '',
@@ -434,18 +434,18 @@  discard block
 block discarded – undo
434 434
     $pane->panel = 'right';
435 435
     $pane->type = 'custom';
436 436
     $pane->subtype = 'custom';
437
-    $pane->shown = TRUE;
437
+    $pane->shown = true;
438 438
     $pane->access = array();
439 439
     $pane->configuration = array(
440 440
       'admin_title' => 'Search teams',
441 441
       'title' => '',
442 442
       'body' => '<?php echo boincteam_search_panel(); ?>',
443 443
       'format' => '3',
444
-      'substitute' => TRUE,
444
+      'substitute' => true,
445 445
     );
446 446
     $pane->cache = array();
447 447
     $pane->style = array(
448
-      'settings' => NULL,
448
+      'settings' => null,
449 449
     );
450 450
     $pane->css = array(
451 451
       'css_id' => '',
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
     $pane->panel = 'right';
461 461
     $pane->type = 'custom';
462 462
     $pane->subtype = 'custom';
463
-    $pane->shown = TRUE;
463
+    $pane->shown = true;
464 464
     $pane->access = array(
465 465
       'plugins' => array(
466 466
         0 => array(
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
471 471
 return ($account->team == 0);',
472 472
           ),
473
-          'not' => FALSE,
473
+          'not' => false,
474 474
         ),
475 475
       ),
476 476
     );
@@ -479,11 +479,11 @@  discard block
 block discarded – undo
479 479
       'title' => '',
480 480
       'body' => '<?php echo boincteam_create_team_link_panel(); ?>',
481 481
       'format' => '3',
482
-      'substitute' => TRUE,
482
+      'substitute' => true,
483 483
     );
484 484
     $pane->cache = array();
485 485
     $pane->style = array(
486
-      'settings' => NULL,
486
+      'settings' => null,
487 487
     );
488 488
     $pane->css = array(
489 489
       'css_id' => '',
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
   $pages['teams_landing'] = $page;
501 501
 
502 502
   $page = new stdClass;
503
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
503
+  $page->disabled = false; /* Edit this to true to make a default page disabled initially */
504 504
   $page->api_version = 1;
505 505
   $page->name = 'view_team';
506 506
   $page->task = 'page';
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
   $page->path = 'community/teams/%team_id/!section/!option';
510 510
   $page->access = array(
511 511
     'type' => 'none',
512
-    'settings' => NULL,
512
+    'settings' => null,
513 513
   );
514 514
   $page->menu = array(
515 515
     'type' => 'none',
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
   $page->conf = array();
551 551
   $page->default_handlers = array();
552 552
   $handler = new stdClass;
553
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
553
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
554 554
   $handler->api_version = 1;
555 555
   $handler->name = 'page_view_team_panel_context_2';
556 556
   $handler->task = 'page';
@@ -574,7 +574,7 @@  discard block
 block discarded – undo
574 574
             'paths' => 'community/teams/*/edit/info',
575 575
           ),
576 576
           'context' => 'empty',
577
-          'not' => FALSE,
577
+          'not' => false,
578 578
         ),
579 579
         3 => array(
580 580
           'name' => 'role',
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
             ),
585 585
           ),
586 586
           'context' => 'logged-in-user',
587
-          'not' => FALSE,
587
+          'not' => false,
588 588
         ),
589 589
         4 => array(
590 590
           'name' => 'php',
@@ -593,7 +593,7 @@  discard block
 block discarded – undo
593 593
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
594 594
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
595 595
           ),
596
-          'not' => FALSE,
596
+          'not' => false,
597 597
         ),
598 598
       ),
599 599
       'logic' => 'and',
@@ -604,11 +604,11 @@  discard block
 block discarded – undo
604 604
   $display->layout_settings = array();
605 605
   $display->panel_settings = array(
606 606
     'style_settings' => array(
607
-      'default' => NULL,
608
-      'left' => NULL,
609
-      'right' => NULL,
610
-      'top' => NULL,
611
-      'bottom' => NULL,
607
+      'default' => null,
608
+      'left' => null,
609
+      'right' => null,
610
+      'top' => null,
611
+      'bottom' => null,
612 612
     ),
613 613
   );
614 614
   $display->cache = array();
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
     $pane->panel = 'left';
621 621
     $pane->type = 'custom';
622 622
     $pane->subtype = 'custom';
623
-    $pane->shown = TRUE;
623
+    $pane->shown = true;
624 624
     $pane->access = array();
625 625
     $pane->configuration = array(
626 626
       'admin_title' => 'Edit team form',
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
     );
632 632
     $pane->cache = array();
633 633
     $pane->style = array(
634
-      'settings' => NULL,
634
+      'settings' => null,
635 635
     );
636 636
     $pane->css = array(
637 637
       'css_id' => '',
@@ -646,7 +646,7 @@  discard block
 block discarded – undo
646 646
     $pane->panel = 'right';
647 647
     $pane->type = 'custom';
648 648
     $pane->subtype = 'custom';
649
-    $pane->shown = TRUE;
649
+    $pane->shown = true;
650 650
     $pane->access = array();
651 651
     $pane->configuration = array(
652 652
       'admin_title' => 'Manage team',
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     );
658 658
     $pane->cache = array();
659 659
     $pane->style = array(
660
-      'settings' => NULL,
660
+      'settings' => null,
661 661
     );
662 662
     $pane->css = array(
663 663
       'css_id' => 'team-management',
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
   $handler->conf['display'] = $display;
673 673
   $page->default_handlers[$handler->name] = $handler;
674 674
   $handler = new stdClass;
675
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
675
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
676 676
   $handler->api_version = 1;
677 677
   $handler->name = 'page_view_team_panel_context_8';
678 678
   $handler->task = 'page';
@@ -696,7 +696,7 @@  discard block
 block discarded – undo
696 696
             'paths' => 'community/teams/*/edit/members',
697 697
           ),
698 698
           'context' => 'empty',
699
-          'not' => FALSE,
699
+          'not' => false,
700 700
         ),
701 701
         3 => array(
702 702
           'name' => 'role',
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
             ),
707 707
           ),
708 708
           'context' => 'logged-in-user',
709
-          'not' => FALSE,
709
+          'not' => false,
710 710
         ),
711 711
         4 => array(
712 712
           'name' => 'php',
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
716 716
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
717 717
           ),
718
-          'not' => FALSE,
718
+          'not' => false,
719 719
         ),
720 720
       ),
721 721
       'logic' => 'and',
@@ -726,12 +726,12 @@  discard block
 block discarded – undo
726 726
   $display->layout_settings = array();
727 727
   $display->panel_settings = array(
728 728
     'style_settings' => array(
729
-      'default' => NULL,
730
-      'left' => NULL,
731
-      'right' => NULL,
732
-      'top' => NULL,
733
-      'bottom' => NULL,
734
-      'middle' => NULL,
729
+      'default' => null,
730
+      'left' => null,
731
+      'right' => null,
732
+      'top' => null,
733
+      'bottom' => null,
734
+      'middle' => null,
735 735
     ),
736 736
   );
737 737
   $display->cache = array();
@@ -743,7 +743,7 @@  discard block
 block discarded – undo
743 743
     $pane->panel = 'middle';
744 744
     $pane->type = 'views_panes';
745 745
     $pane->subtype = 'boinc_team_members-panel_pane_5';
746
-    $pane->shown = TRUE;
746
+    $pane->shown = true;
747 747
     $pane->access = array();
748 748
     $pane->configuration = array(
749 749
       'items_per_page' => '25',
@@ -752,7 +752,7 @@  discard block
 block discarded – undo
752 752
     );
753 753
     $pane->cache = array();
754 754
     $pane->style = array(
755
-      'settings' => NULL,
755
+      'settings' => null,
756 756
     );
757 757
     $pane->css = array(
758 758
       'css_id' => '',
@@ -767,7 +767,7 @@  discard block
 block discarded – undo
767 767
   $handler->conf['display'] = $display;
768 768
   $page->default_handlers[$handler->name] = $handler;
769 769
   $handler = new stdClass;
770
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
770
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
771 771
   $handler->api_version = 1;
772 772
   $handler->name = 'page_view_team_panel_context_4';
773 773
   $handler->task = 'page';
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
             'paths' => 'community/teams/*/members/email',
792 792
           ),
793 793
           'context' => 'empty',
794
-          'not' => FALSE,
794
+          'not' => false,
795 795
         ),
796 796
         3 => array(
797 797
           'name' => 'role',
@@ -801,7 +801,7 @@  discard block
 block discarded – undo
801 801
             ),
802 802
           ),
803 803
           'context' => 'logged-in-user',
804
-          'not' => FALSE,
804
+          'not' => false,
805 805
         ),
806 806
         4 => array(
807 807
           'name' => 'php',
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
811 811
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
812 812
           ),
813
-          'not' => FALSE,
813
+          'not' => false,
814 814
         ),
815 815
       ),
816 816
       'logic' => 'and',
@@ -821,12 +821,12 @@  discard block
 block discarded – undo
821 821
   $display->layout_settings = array();
822 822
   $display->panel_settings = array(
823 823
     'style_settings' => array(
824
-      'default' => NULL,
825
-      'left' => NULL,
826
-      'right' => NULL,
827
-      'top' => NULL,
828
-      'bottom' => NULL,
829
-      'middle' => NULL,
824
+      'default' => null,
825
+      'left' => null,
826
+      'right' => null,
827
+      'top' => null,
828
+      'bottom' => null,
829
+      'middle' => null,
830 830
     ),
831 831
   );
832 832
   $display->cache = array();
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
     $pane->panel = 'middle';
839 839
     $pane->type = 'views_panes';
840 840
     $pane->subtype = 'boinc_team_members-panel_pane_3';
841
-    $pane->shown = TRUE;
841
+    $pane->shown = true;
842 842
     $pane->access = array();
843 843
     $pane->configuration = array(
844 844
       'items_per_page' => '25',
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
     );
848 848
     $pane->cache = array();
849 849
     $pane->style = array(
850
-      'settings' => NULL,
850
+      'settings' => null,
851 851
     );
852 852
     $pane->css = array(
853 853
       'css_id' => '',
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
   $handler->conf['display'] = $display;
863 863
   $page->default_handlers[$handler->name] = $handler;
864 864
   $handler = new stdClass;
865
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
865
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
866 866
   $handler->api_version = 1;
867 867
   $handler->name = 'page_view_team_panel_context_3';
868 868
   $handler->task = 'page';
@@ -886,7 +886,7 @@  discard block
 block discarded – undo
886 886
             'paths' => 'community/teams/*/members',
887 887
           ),
888 888
           'context' => 'empty',
889
-          'not' => FALSE,
889
+          'not' => false,
890 890
         ),
891 891
         3 => array(
892 892
           'name' => 'role',
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
             ),
897 897
           ),
898 898
           'context' => 'logged-in-user',
899
-          'not' => FALSE,
899
+          'not' => false,
900 900
         ),
901 901
       ),
902 902
       'logic' => 'and',
@@ -907,12 +907,12 @@  discard block
 block discarded – undo
907 907
   $display->layout_settings = array();
908 908
   $display->panel_settings = array(
909 909
     'style_settings' => array(
910
-      'default' => NULL,
911
-      'left' => NULL,
912
-      'right' => NULL,
913
-      'top' => NULL,
914
-      'bottom' => NULL,
915
-      'middle' => NULL,
910
+      'default' => null,
911
+      'left' => null,
912
+      'right' => null,
913
+      'top' => null,
914
+      'bottom' => null,
915
+      'middle' => null,
916 916
     ),
917 917
   );
918 918
   $display->cache = array();
@@ -924,7 +924,7 @@  discard block
 block discarded – undo
924 924
     $pane->panel = 'middle';
925 925
     $pane->type = 'views_panes';
926 926
     $pane->subtype = 'boinc_team_members-panel_pane_1';
927
-    $pane->shown = TRUE;
927
+    $pane->shown = true;
928 928
     $pane->access = array(
929 929
       'plugins' => array(
930 930
         0 => array(
@@ -934,7 +934,7 @@  discard block
 block discarded – undo
934 934
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
935 935
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
936 936
           ),
937
-          'not' => TRUE,
937
+          'not' => true,
938 938
         ),
939 939
       ),
940 940
     );
@@ -945,7 +945,7 @@  discard block
 block discarded – undo
945 945
     );
946 946
     $pane->cache = array();
947 947
     $pane->style = array(
948
-      'settings' => NULL,
948
+      'settings' => null,
949 949
     );
950 950
     $pane->css = array(
951 951
       'css_id' => '',
@@ -960,7 +960,7 @@  discard block
 block discarded – undo
960 960
     $pane->panel = 'middle';
961 961
     $pane->type = 'views_panes';
962 962
     $pane->subtype = 'boinc_team_members-panel_pane_2';
963
-    $pane->shown = TRUE;
963
+    $pane->shown = true;
964 964
     $pane->access = array(
965 965
       'plugins' => array(
966 966
         0 => array(
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
971 971
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
972 972
           ),
973
-          'not' => FALSE,
973
+          'not' => false,
974 974
         ),
975 975
       ),
976 976
     );
@@ -981,7 +981,7 @@  discard block
 block discarded – undo
981 981
     );
982 982
     $pane->cache = array();
983 983
     $pane->style = array(
984
-      'settings' => NULL,
984
+      'settings' => null,
985 985
     );
986 986
     $pane->css = array(
987 987
       'css_id' => '',
@@ -996,7 +996,7 @@  discard block
 block discarded – undo
996 996
   $handler->conf['display'] = $display;
997 997
   $page->default_handlers[$handler->name] = $handler;
998 998
   $handler = new stdClass;
999
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
999
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
1000 1000
   $handler->api_version = 1;
1001 1001
   $handler->name = 'page_view_team_panel_context_5';
1002 1002
   $handler->task = 'page';
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
             'paths' => 'community/teams/*/history',
1021 1021
           ),
1022 1022
           'context' => 'empty',
1023
-          'not' => FALSE,
1023
+          'not' => false,
1024 1024
         ),
1025 1025
         3 => array(
1026 1026
           'name' => 'role',
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
             ),
1031 1031
           ),
1032 1032
           'context' => 'logged-in-user',
1033
-          'not' => FALSE,
1033
+          'not' => false,
1034 1034
         ),
1035 1035
         4 => array(
1036 1036
           'name' => 'php',
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1040 1040
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
1041 1041
           ),
1042
-          'not' => FALSE,
1042
+          'not' => false,
1043 1043
         ),
1044 1044
       ),
1045 1045
       'logic' => 'and',
@@ -1050,12 +1050,12 @@  discard block
 block discarded – undo
1050 1050
   $display->layout_settings = array();
1051 1051
   $display->panel_settings = array(
1052 1052
     'style_settings' => array(
1053
-      'default' => NULL,
1054
-      'left' => NULL,
1055
-      'right' => NULL,
1056
-      'top' => NULL,
1057
-      'bottom' => NULL,
1058
-      'middle' => NULL,
1053
+      'default' => null,
1054
+      'left' => null,
1055
+      'right' => null,
1056
+      'top' => null,
1057
+      'bottom' => null,
1058
+      'middle' => null,
1059 1059
     ),
1060 1060
   );
1061 1061
   $display->cache = array();
@@ -1067,7 +1067,7 @@  discard block
 block discarded – undo
1067 1067
     $pane->panel = 'middle';
1068 1068
     $pane->type = 'views_panes';
1069 1069
     $pane->subtype = 'boinc_teams-panel_pane_2';
1070
-    $pane->shown = TRUE;
1070
+    $pane->shown = true;
1071 1071
     $pane->access = array();
1072 1072
     $pane->configuration = array(
1073 1073
       'items_per_page' => '25',
@@ -1076,7 +1076,7 @@  discard block
 block discarded – undo
1076 1076
     );
1077 1077
     $pane->cache = array();
1078 1078
     $pane->style = array(
1079
-      'settings' => NULL,
1079
+      'settings' => null,
1080 1080
     );
1081 1081
     $pane->css = array(
1082 1082
       'css_id' => '',
@@ -1091,7 +1091,7 @@  discard block
 block discarded – undo
1091 1091
   $handler->conf['display'] = $display;
1092 1092
   $page->default_handlers[$handler->name] = $handler;
1093 1093
   $handler = new stdClass;
1094
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1094
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
1095 1095
   $handler->api_version = 1;
1096 1096
   $handler->name = 'page_view_team_panel_context_6';
1097 1097
   $handler->task = 'page';
@@ -1115,7 +1115,7 @@  discard block
 block discarded – undo
1115 1115
             'paths' => 'community/teams/*/edit/admins',
1116 1116
           ),
1117 1117
           'context' => 'empty',
1118
-          'not' => FALSE,
1118
+          'not' => false,
1119 1119
         ),
1120 1120
         3 => array(
1121 1121
           'name' => 'role',
@@ -1125,7 +1125,7 @@  discard block
 block discarded – undo
1125 1125
             ),
1126 1126
           ),
1127 1127
           'context' => 'logged-in-user',
1128
-          'not' => FALSE,
1128
+          'not' => false,
1129 1129
         ),
1130 1130
         4 => array(
1131 1131
           'name' => 'php',
@@ -1134,7 +1134,7 @@  discard block
 block discarded – undo
1134 1134
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1135 1135
 return boincteam_is_founder($team_id);',
1136 1136
           ),
1137
-          'not' => FALSE,
1137
+          'not' => false,
1138 1138
         ),
1139 1139
       ),
1140 1140
       'logic' => 'and',
@@ -1145,12 +1145,12 @@  discard block
 block discarded – undo
1145 1145
   $display->layout_settings = array();
1146 1146
   $display->panel_settings = array(
1147 1147
     'style_settings' => array(
1148
-      'default' => NULL,
1149
-      'left' => NULL,
1150
-      'right' => NULL,
1151
-      'top' => NULL,
1152
-      'bottom' => NULL,
1153
-      'middle' => NULL,
1148
+      'default' => null,
1149
+      'left' => null,
1150
+      'right' => null,
1151
+      'top' => null,
1152
+      'bottom' => null,
1153
+      'middle' => null,
1154 1154
     ),
1155 1155
   );
1156 1156
   $display->cache = array();
@@ -1162,7 +1162,7 @@  discard block
 block discarded – undo
1162 1162
     $pane->panel = 'left';
1163 1163
     $pane->type = 'views_panes';
1164 1164
     $pane->subtype = 'boinc_teams-panel_pane_3';
1165
-    $pane->shown = TRUE;
1165
+    $pane->shown = true;
1166 1166
     $pane->access = array();
1167 1167
     $pane->configuration = array(
1168 1168
       'items_per_page' => '10',
@@ -1171,7 +1171,7 @@  discard block
 block discarded – undo
1171 1171
     );
1172 1172
     $pane->cache = array();
1173 1173
     $pane->style = array(
1174
-      'settings' => NULL,
1174
+      'settings' => null,
1175 1175
     );
1176 1176
     $pane->css = array(
1177 1177
       'css_id' => '',
@@ -1186,7 +1186,7 @@  discard block
 block discarded – undo
1186 1186
     $pane->panel = 'right';
1187 1187
     $pane->type = 'custom';
1188 1188
     $pane->subtype = 'custom';
1189
-    $pane->shown = TRUE;
1189
+    $pane->shown = true;
1190 1190
     $pane->access = array();
1191 1191
     $pane->configuration = array(
1192 1192
       'admin_title' => 'About team admins',
@@ -1197,7 +1197,7 @@  discard block
 block discarded – undo
1197 1197
     );
1198 1198
     $pane->cache = array();
1199 1199
     $pane->style = array(
1200
-      'settings' => NULL,
1200
+      'settings' => null,
1201 1201
     );
1202 1202
     $pane->css = array(
1203 1203
       'css_id' => '',
@@ -1212,7 +1212,7 @@  discard block
 block discarded – undo
1212 1212
   $handler->conf['display'] = $display;
1213 1213
   $page->default_handlers[$handler->name] = $handler;
1214 1214
   $handler = new stdClass;
1215
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1215
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
1216 1216
   $handler->api_version = 1;
1217 1217
   $handler->name = 'page_view_team_panel_context_9';
1218 1218
   $handler->task = 'page';
@@ -1236,7 +1236,7 @@  discard block
 block discarded – undo
1236 1236
             'paths' => 'community/teams/*/edit/founder',
1237 1237
           ),
1238 1238
           'context' => 'empty',
1239
-          'not' => FALSE,
1239
+          'not' => false,
1240 1240
         ),
1241 1241
         3 => array(
1242 1242
           'name' => 'role',
@@ -1246,7 +1246,7 @@  discard block
 block discarded – undo
1246 1246
             ),
1247 1247
           ),
1248 1248
           'context' => 'logged-in-user',
1249
-          'not' => FALSE,
1249
+          'not' => false,
1250 1250
         ),
1251 1251
         4 => array(
1252 1252
           'name' => 'php',
@@ -1255,7 +1255,7 @@  discard block
 block discarded – undo
1255 1255
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1256 1256
 return boincteam_is_founder($team_id);',
1257 1257
           ),
1258
-          'not' => FALSE,
1258
+          'not' => false,
1259 1259
         ),
1260 1260
       ),
1261 1261
       'logic' => 'and',
@@ -1266,12 +1266,12 @@  discard block
 block discarded – undo
1266 1266
   $display->layout_settings = array();
1267 1267
   $display->panel_settings = array(
1268 1268
     'style_settings' => array(
1269
-      'default' => NULL,
1270
-      'left' => NULL,
1271
-      'right' => NULL,
1272
-      'top' => NULL,
1273
-      'bottom' => NULL,
1274
-      'middle' => NULL,
1269
+      'default' => null,
1270
+      'left' => null,
1271
+      'right' => null,
1272
+      'top' => null,
1273
+      'bottom' => null,
1274
+      'middle' => null,
1275 1275
     ),
1276 1276
   );
1277 1277
   $display->cache = array();
@@ -1283,7 +1283,7 @@  discard block
 block discarded – undo
1283 1283
     $pane->panel = 'left';
1284 1284
     $pane->type = 'custom';
1285 1285
     $pane->subtype = 'custom';
1286
-    $pane->shown = TRUE;
1286
+    $pane->shown = true;
1287 1287
     $pane->access = array();
1288 1288
     $pane->configuration = array(
1289 1289
       'admin_title' => 'Respond to foundership request',
@@ -1294,7 +1294,7 @@  discard block
 block discarded – undo
1294 1294
     );
1295 1295
     $pane->cache = array();
1296 1296
     $pane->style = array(
1297
-      'settings' => NULL,
1297
+      'settings' => null,
1298 1298
     );
1299 1299
     $pane->css = array(
1300 1300
       'css_id' => '',
@@ -1309,7 +1309,7 @@  discard block
 block discarded – undo
1309 1309
     $pane->panel = 'left';
1310 1310
     $pane->type = 'views_panes';
1311 1311
     $pane->subtype = 'boinc_team_members-panel_pane_4';
1312
-    $pane->shown = TRUE;
1312
+    $pane->shown = true;
1313 1313
     $pane->access = array();
1314 1314
     $pane->configuration = array(
1315 1315
       'items_per_page' => '25',
@@ -1318,7 +1318,7 @@  discard block
 block discarded – undo
1318 1318
     );
1319 1319
     $pane->cache = array();
1320 1320
     $pane->style = array(
1321
-      'settings' => NULL,
1321
+      'settings' => null,
1322 1322
     );
1323 1323
     $pane->css = array(
1324 1324
       'css_id' => '',
@@ -1333,7 +1333,7 @@  discard block
 block discarded – undo
1333 1333
     $pane->panel = 'right';
1334 1334
     $pane->type = 'custom';
1335 1335
     $pane->subtype = 'custom';
1336
-    $pane->shown = TRUE;
1336
+    $pane->shown = true;
1337 1337
     $pane->access = array();
1338 1338
     $pane->configuration = array(
1339 1339
       'admin_title' => 'About changing team founder',
@@ -1344,7 +1344,7 @@  discard block
 block discarded – undo
1344 1344
     );
1345 1345
     $pane->cache = array();
1346 1346
     $pane->style = array(
1347
-      'settings' => NULL,
1347
+      'settings' => null,
1348 1348
     );
1349 1349
     $pane->css = array(
1350 1350
       'css_id' => '',
@@ -1359,7 +1359,7 @@  discard block
 block discarded – undo
1359 1359
   $handler->conf['display'] = $display;
1360 1360
   $page->default_handlers[$handler->name] = $handler;
1361 1361
   $handler = new stdClass;
1362
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1362
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
1363 1363
   $handler->api_version = 1;
1364 1364
   $handler->name = 'page_view_team_panel_context_7';
1365 1365
   $handler->task = 'page';
@@ -1383,7 +1383,7 @@  discard block
 block discarded – undo
1383 1383
             'paths' => 'community/teams/*/forum/*',
1384 1384
           ),
1385 1385
           'context' => 'empty',
1386
-          'not' => FALSE,
1386
+          'not' => false,
1387 1387
         ),
1388 1388
         3 => array(
1389 1389
           'name' => 'role',
@@ -1393,7 +1393,7 @@  discard block
 block discarded – undo
1393 1393
             ),
1394 1394
           ),
1395 1395
           'context' => 'logged-in-user',
1396
-          'not' => FALSE,
1396
+          'not' => false,
1397 1397
         ),
1398 1398
         4 => array(
1399 1399
           'name' => 'php',
@@ -1403,7 +1403,7 @@  discard block
 block discarded – undo
1403 1403
 $team_forum_id = $contexts[\'argument_string_2\']->data;
1404 1404
 return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));',
1405 1405
           ),
1406
-          'not' => FALSE,
1406
+          'not' => false,
1407 1407
         ),
1408 1408
       ),
1409 1409
       'logic' => 'and',
@@ -1414,12 +1414,12 @@  discard block
 block discarded – undo
1414 1414
   $display->layout_settings = array();
1415 1415
   $display->panel_settings = array(
1416 1416
     'style_settings' => array(
1417
-      'default' => NULL,
1418
-      'left' => NULL,
1419
-      'right' => NULL,
1420
-      'top' => NULL,
1421
-      'bottom' => NULL,
1422
-      'middle' => NULL,
1417
+      'default' => null,
1418
+      'left' => null,
1419
+      'right' => null,
1420
+      'top' => null,
1421
+      'bottom' => null,
1422
+      'middle' => null,
1423 1423
     ),
1424 1424
   );
1425 1425
   $display->cache = array();
@@ -1431,7 +1431,7 @@  discard block
 block discarded – undo
1431 1431
     $pane->panel = 'middle';
1432 1432
     $pane->type = 'views_panes';
1433 1433
     $pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
1434
-    $pane->shown = TRUE;
1434
+    $pane->shown = true;
1435 1435
     $pane->access = array();
1436 1436
     $pane->configuration = array(
1437 1437
       'override_title' => 0,
@@ -1439,7 +1439,7 @@  discard block
 block discarded – undo
1439 1439
     );
1440 1440
     $pane->cache = array();
1441 1441
     $pane->style = array(
1442
-      'settings' => NULL,
1442
+      'settings' => null,
1443 1443
     );
1444 1444
     $pane->css = array(
1445 1445
       'css_id' => '',
@@ -1454,7 +1454,7 @@  discard block
 block discarded – undo
1454 1454
   $handler->conf['display'] = $display;
1455 1455
   $page->default_handlers[$handler->name] = $handler;
1456 1456
   $handler = new stdClass;
1457
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1457
+  $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */
1458 1458
   $handler->api_version = 1;
1459 1459
   $handler->name = 'page_view_team_panel_context';
1460 1460
   $handler->task = 'page';
@@ -1480,7 +1480,7 @@  discard block
 block discarded – undo
1480 1480
             0 => 'logged-in-user',
1481 1481
             1 => 'argument_nid_1',
1482 1482
           ),
1483
-          'not' => FALSE,
1483
+          'not' => false,
1484 1484
         ),
1485 1485
       ),
1486 1486
       'logic' => 'and',
@@ -1497,7 +1497,7 @@  discard block
 block discarded – undo
1497 1497
           0 => 'main',
1498 1498
           1 => 2,
1499 1499
         ),
1500
-        'parent' => NULL,
1500
+        'parent' => null,
1501 1501
       ),
1502 1502
       'main' => array(
1503 1503
         'type' => 'column',
@@ -1553,15 +1553,15 @@  discard block
 block discarded – undo
1553 1553
   );
1554 1554
   $display->panel_settings = array(
1555 1555
     'style_settings' => array(
1556
-      'default' => NULL,
1557
-      'center' => NULL,
1558
-      'top_teams' => NULL,
1559
-      'top' => NULL,
1560
-      'left' => NULL,
1561
-      'right' => NULL,
1562
-      'bottom' => NULL,
1563
-      'content' => NULL,
1564
-      'sidebar_first' => NULL,
1556
+      'default' => null,
1557
+      'center' => null,
1558
+      'top_teams' => null,
1559
+      'top' => null,
1560
+      'left' => null,
1561
+      'right' => null,
1562
+      'bottom' => null,
1563
+      'content' => null,
1564
+      'sidebar_first' => null,
1565 1565
     ),
1566 1566
   );
1567 1567
   $display->cache = array();
@@ -1573,7 +1573,7 @@  discard block
 block discarded – undo
1573 1573
     $pane->panel = 'left';
1574 1574
     $pane->type = 'custom';
1575 1575
     $pane->subtype = 'custom';
1576
-    $pane->shown = TRUE;
1576
+    $pane->shown = true;
1577 1577
     $pane->access = array();
1578 1578
     $pane->configuration = array(
1579 1579
       'admin_title' => 'Team details',
@@ -1584,7 +1584,7 @@  discard block
 block discarded – undo
1584 1584
     );
1585 1585
     $pane->cache = array();
1586 1586
     $pane->style = array(
1587
-      'settings' => NULL,
1587
+      'settings' => null,
1588 1588
     );
1589 1589
     $pane->css = array(
1590 1590
       'css_id' => '',
@@ -1599,7 +1599,7 @@  discard block
 block discarded – undo
1599 1599
     $pane->panel = 'right';
1600 1600
     $pane->type = 'custom';
1601 1601
     $pane->subtype = 'custom';
1602
-    $pane->shown = TRUE;
1602
+    $pane->shown = true;
1603 1603
     $pane->access = array(
1604 1604
       'plugins' => array(
1605 1605
         0 => array(
@@ -1610,7 +1610,7 @@  discard block
 block discarded – undo
1610 1610
 $team_id = $contexts[\'argument_nid_1\']->data->nid;
1611 1611
 return (boincteam_is_founder($team_id, $uid) OR boincteam_is_admin($team_id, $uid));',
1612 1612
           ),
1613
-          'not' => FALSE,
1613
+          'not' => false,
1614 1614
         ),
1615 1615
       ),
1616 1616
     );
@@ -1623,7 +1623,7 @@  discard block
 block discarded – undo
1623 1623
     );
1624 1624
     $pane->cache = array();
1625 1625
     $pane->style = array(
1626
-      'settings' => NULL,
1626
+      'settings' => null,
1627 1627
     );
1628 1628
     $pane->css = array(
1629 1629
       'css_id' => 'team-management',
@@ -1638,7 +1638,7 @@  discard block
 block discarded – undo
1638 1638
     $pane->panel = 'right';
1639 1639
     $pane->type = 'custom';
1640 1640
     $pane->subtype = 'custom';
1641
-    $pane->shown = TRUE;
1641
+    $pane->shown = true;
1642 1642
     $pane->access = array(
1643 1643
       'plugins' => array(
1644 1644
         0 => array(
@@ -1656,7 +1656,7 @@  discard block
 block discarded – undo
1656 1656
   )
1657 1657
 );',
1658 1658
           ),
1659
-          'not' => FALSE,
1659
+          'not' => false,
1660 1660
         ),
1661 1661
       ),
1662 1662
     );
@@ -1669,7 +1669,7 @@  discard block
 block discarded – undo
1669 1669
     );
1670 1670
     $pane->cache = array();
1671 1671
     $pane->style = array(
1672
-      'settings' => NULL,
1672
+      'settings' => null,
1673 1673
     );
1674 1674
     $pane->css = array(
1675 1675
       'css_id' => '',
@@ -1684,7 +1684,7 @@  discard block
 block discarded – undo
1684 1684
     $pane->panel = 'right';
1685 1685
     $pane->type = 'custom';
1686 1686
     $pane->subtype = 'custom';
1687
-    $pane->shown = TRUE;
1687
+    $pane->shown = true;
1688 1688
     $pane->access = array(
1689 1689
       'plugins' => array(
1690 1690
         0 => array(
@@ -1694,7 +1694,7 @@  discard block
 block discarded – undo
1694 1694
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1695 1695
 return ($account->team == 0);',
1696 1696
           ),
1697
-          'not' => FALSE,
1697
+          'not' => false,
1698 1698
         ),
1699 1699
         1 => array(
1700 1700
           'name' => 'perm',
@@ -1702,7 +1702,7 @@  discard block
 block discarded – undo
1702 1702
             'perm' => 'join boincteam',
1703 1703
           ),
1704 1704
           'context' => 'logged-in-user',
1705
-          'not' => FALSE,
1705
+          'not' => false,
1706 1706
         ),
1707 1707
         2 => array(
1708 1708
           'name' => 'php',
@@ -1712,7 +1712,7 @@  discard block
 block discarded – undo
1712 1712
 $boincteam = boincteam_load(boincteam_lookup_id($team_id));
1713 1713
 return $boincteam->joinable;',
1714 1714
           ),
1715
-          'not' => FALSE,
1715
+          'not' => false,
1716 1716
         ),
1717 1717
       ),
1718 1718
     );
@@ -1725,7 +1725,7 @@  discard block
 block discarded – undo
1725 1725
     );
1726 1726
     $pane->cache = array();
1727 1727
     $pane->style = array(
1728
-      'settings' => NULL,
1728
+      'settings' => null,
1729 1729
     );
1730 1730
     $pane->css = array(
1731 1731
       'css_id' => '',
@@ -1740,7 +1740,7 @@  discard block
 block discarded – undo
1740 1740
     $pane->panel = 'right';
1741 1741
     $pane->type = 'custom';
1742 1742
     $pane->subtype = 'custom';
1743
-    $pane->shown = TRUE;
1743
+    $pane->shown = true;
1744 1744
     $pane->access = array(
1745 1745
       'plugins' => array(
1746 1746
         0 => array(
@@ -1750,7 +1750,7 @@  discard block
 block discarded – undo
1750 1750
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1751 1751
 return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1752 1752
           ),
1753
-          'not' => FALSE,
1753
+          'not' => false,
1754 1754
         ),
1755 1755
       ),
1756 1756
     );
@@ -1763,7 +1763,7 @@  discard block
 block discarded – undo
1763 1763
     );
1764 1764
     $pane->cache = array();
1765 1765
     $pane->style = array(
1766
-      'settings' => NULL,
1766
+      'settings' => null,
1767 1767
     );
1768 1768
     $pane->css = array(
1769 1769
       'css_id' => '',
@@ -1778,7 +1778,7 @@  discard block
 block discarded – undo
1778 1778
     $pane->panel = 'right';
1779 1779
     $pane->type = 'custom';
1780 1780
     $pane->subtype = 'custom';
1781
-    $pane->shown = TRUE;
1781
+    $pane->shown = true;
1782 1782
     $pane->access = array(
1783 1783
       'plugins' => array(
1784 1784
         0 => array(
@@ -1788,7 +1788,7 @@  discard block
 block discarded – undo
1788 1788
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1789 1789
 return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1790 1790
           ),
1791
-          'not' => FALSE,
1791
+          'not' => false,
1792 1792
         ),
1793 1793
         1 => array(
1794 1794
           'name' => 'php',
@@ -1798,7 +1798,7 @@  discard block
 block discarded – undo
1798 1798
 $team_id = $contexts[\'argument_nid_1\']->data->nid;
1799 1799
 return boincteam_is_founder($team_id, $uid);',
1800 1800
           ),
1801
-          'not' => TRUE,
1801
+          'not' => true,
1802 1802
         ),
1803 1803
       ),
1804 1804
     );
@@ -1811,7 +1811,7 @@  discard block
 block discarded – undo
1811 1811
     );
1812 1812
     $pane->cache = array();
1813 1813
     $pane->style = array(
1814
-      'settings' => NULL,
1814
+      'settings' => null,
1815 1815
     );
1816 1816
     $pane->css = array(
1817 1817
       'css_id' => '',
@@ -1826,18 +1826,18 @@  discard block
 block discarded – undo
1826 1826
     $pane->panel = 'right';
1827 1827
     $pane->type = 'custom';
1828 1828
     $pane->subtype = 'custom';
1829
-    $pane->shown = TRUE;
1829
+    $pane->shown = true;
1830 1830
     $pane->access = array();
1831 1831
     $pane->configuration = array(
1832 1832
       'admin_title' => 'Search teams',
1833 1833
       'title' => '',
1834 1834
       'body' => '<?php echo boincteam_search_panel(); ?>',
1835 1835
       'format' => '3',
1836
-      'substitute' => TRUE,
1836
+      'substitute' => true,
1837 1837
     );
1838 1838
     $pane->cache = array();
1839 1839
     $pane->style = array(
1840
-      'settings' => NULL,
1840
+      'settings' => null,
1841 1841
     );
1842 1842
     $pane->css = array(
1843 1843
       'css_id' => '',
Please login to merge, or discard this patch.
Indentation   +913 added lines, -913 removed lines patch added patch discarded remove patch
@@ -4,53 +4,53 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_page_manager_pages().
5 5
  */
6 6
 function teams_default_page_manager_pages() {
7
-  $page = new stdClass;
8
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
-  $page->api_version = 1;
10
-  $page->name = 'create_team';
11
-  $page->task = 'page';
12
-  $page->admin_title = 'Create team form';
13
-  $page->admin_description = '';
14
-  $page->path = 'community/teams/add';
15
-  $page->access = array(
7
+    $page = new stdClass;
8
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
9
+    $page->api_version = 1;
10
+    $page->name = 'create_team';
11
+    $page->task = 'page';
12
+    $page->admin_title = 'Create team form';
13
+    $page->admin_description = '';
14
+    $page->path = 'community/teams/add';
15
+    $page->access = array(
16 16
     'plugins' => array(
17
-      0 => array(
17
+        0 => array(
18 18
         'name' => 'perm',
19 19
         'settings' => array(
20
-          'perm' => 'create boincteam',
20
+            'perm' => 'create boincteam',
21 21
         ),
22 22
         'context' => 'logged-in-user',
23 23
         'not' => FALSE,
24
-      ),
24
+        ),
25 25
     ),
26 26
     'logic' => 'and',
27 27
     'type' => 'none',
28 28
     'settings' => NULL,
29
-  );
30
-  $page->menu = array(
29
+    );
30
+    $page->menu = array(
31 31
     'type' => 'none',
32 32
     'title' => 'Teams',
33 33
     'name' => 'navigation',
34 34
     'weight' => '10',
35 35
     'parent' => array(
36
-      'type' => 'none',
37
-      'title' => '',
38
-      'name' => 'navigation',
39
-      'weight' => '0',
36
+        'type' => 'none',
37
+        'title' => '',
38
+        'name' => 'navigation',
39
+        'weight' => '0',
40 40
     ),
41
-  );
42
-  $page->arguments = array();
43
-  $page->conf = array();
44
-  $page->default_handlers = array();
45
-  $handler = new stdClass;
46
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
47
-  $handler->api_version = 1;
48
-  $handler->name = 'page_create_team_panel_context';
49
-  $handler->task = 'page';
50
-  $handler->subtask = 'create_team';
51
-  $handler->handler = 'panel_context';
52
-  $handler->weight = 0;
53
-  $handler->conf = array(
41
+    );
42
+    $page->arguments = array();
43
+    $page->conf = array();
44
+    $page->default_handlers = array();
45
+    $handler = new stdClass;
46
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
47
+    $handler->api_version = 1;
48
+    $handler->name = 'page_create_team_panel_context';
49
+    $handler->task = 'page';
50
+    $handler->subtask = 'create_team';
51
+    $handler->handler = 'panel_context';
52
+    $handler->weight = 0;
53
+    $handler->conf = array(
54 54
     'title' => 'Panel',
55 55
     'no_blocks' => 0,
56 56
     'pipeline' => 'standard',
@@ -58,91 +58,91 @@  discard block
 block discarded – undo
58 58
     'css' => '',
59 59
     'contexts' => array(),
60 60
     'relationships' => array(),
61
-  );
62
-  $display = new panels_display;
63
-  $display->layout = 'twocol_stacked';
64
-  $display->layout_settings = array(
61
+    );
62
+    $display = new panels_display;
63
+    $display->layout = 'twocol_stacked';
64
+    $display->layout_settings = array(
65 65
     'items' => array(
66
-      'canvas' => array(
66
+        'canvas' => array(
67 67
         'type' => 'row',
68 68
         'contains' => 'column',
69 69
         'children' => array(
70
-          0 => 'main',
71
-          1 => 2,
70
+            0 => 'main',
71
+            1 => 2,
72 72
         ),
73 73
         'parent' => NULL,
74
-      ),
75
-      'main' => array(
74
+        ),
75
+        'main' => array(
76 76
         'type' => 'column',
77 77
         'width' => 50,
78 78
         'width_type' => '%',
79 79
         'children' => array(
80
-          0 => 'main-row',
81
-          1 => 1,
80
+            0 => 'main-row',
81
+            1 => 1,
82 82
         ),
83 83
         'parent' => 'canvas',
84
-      ),
85
-      'main-row' => array(
84
+        ),
85
+        'main-row' => array(
86 86
         'type' => 'row',
87 87
         'contains' => 'region',
88 88
         'children' => array(
89
-          0 => 'center',
89
+            0 => 'center',
90 90
         ),
91 91
         'parent' => 'main',
92
-      ),
93
-      'center' => array(
92
+        ),
93
+        'center' => array(
94 94
         'type' => 'region',
95 95
         'title' => 'Center',
96 96
         'width' => 100,
97 97
         'width_type' => '%',
98 98
         'parent' => 'main-row',
99
-      ),
100
-      1 => array(
99
+        ),
100
+        1 => array(
101 101
         'type' => 'row',
102 102
         'contains' => 'region',
103 103
         'children' => array(
104
-          0 => 'top_teams',
104
+            0 => 'top_teams',
105 105
         ),
106 106
         'parent' => 'main',
107 107
         'class' => 'panel-primary container shadow',
108
-      ),
109
-      'top_teams' => array(
108
+        ),
109
+        'top_teams' => array(
110 110
         'type' => 'region',
111 111
         'title' => 'Top teams',
112 112
         'width' => 100,
113 113
         'width_type' => '%',
114 114
         'parent' => '1',
115 115
         'class' => 'panel-primary container shadow',
116
-      ),
117
-      2 => array(
116
+        ),
117
+        2 => array(
118 118
         'type' => 'column',
119 119
         'width' => 50,
120 120
         'width_type' => '%',
121 121
         'parent' => 'canvas',
122 122
         'children' => array(),
123 123
         'class' => '',
124
-      ),
124
+        ),
125 125
     ),
126
-  );
127
-  $display->panel_settings = array(
126
+    );
127
+    $display->panel_settings = array(
128 128
     'style_settings' => array(
129
-      'default' => NULL,
130
-      'center' => NULL,
131
-      'top_teams' => NULL,
132
-      'top' => NULL,
133
-      'left' => NULL,
134
-      'right' => NULL,
135
-      'bottom' => NULL,
136
-      'content' => NULL,
137
-      'sidebar_first' => NULL,
129
+        'default' => NULL,
130
+        'center' => NULL,
131
+        'top_teams' => NULL,
132
+        'top' => NULL,
133
+        'left' => NULL,
134
+        'right' => NULL,
135
+        'bottom' => NULL,
136
+        'content' => NULL,
137
+        'sidebar_first' => NULL,
138 138
     ),
139
-  );
140
-  $display->cache = array();
141
-  $display->title = 'Teams';
142
-  $display->storage_type = 'page_manager';
143
-  $display->storage_id = 'page_create_team_panel_context';
144
-  $display->content = array();
145
-  $display->panels = array();
139
+    );
140
+    $display->cache = array();
141
+    $display->title = 'Teams';
142
+    $display->storage_type = 'page_manager';
143
+    $display->storage_id = 'page_create_team_panel_context';
144
+    $display->content = array();
145
+    $display->panels = array();
146 146
     $pane = new stdClass;
147 147
     $pane->pid = 'new-1';
148 148
     $pane->panel = 'left';
@@ -151,19 +151,19 @@  discard block
 block discarded – undo
151 151
     $pane->shown = TRUE;
152 152
     $pane->access = array();
153 153
     $pane->configuration = array(
154
-      'admin_title' => 'Create team form',
155
-      'title' => '',
156
-      'body' => '<?php echo boincteam_create_team_panel(); ?>',
157
-      'format' => '3',
158
-      'substitute' => TRUE,
154
+        'admin_title' => 'Create team form',
155
+        'title' => '',
156
+        'body' => '<?php echo boincteam_create_team_panel(); ?>',
157
+        'format' => '3',
158
+        'substitute' => TRUE,
159 159
     );
160 160
     $pane->cache = array();
161 161
     $pane->style = array(
162
-      'settings' => NULL,
162
+        'settings' => NULL,
163 163
     );
164 164
     $pane->css = array(
165
-      'css_id' => '',
166
-      'css_class' => 'panel-primary container shadow',
165
+        'css_id' => '',
166
+        'css_class' => 'panel-primary container shadow',
167 167
     );
168 168
     $pane->extras = array();
169 169
     $pane->position = 0;
@@ -177,170 +177,170 @@  discard block
 block discarded – undo
177 177
     $pane->shown = TRUE;
178 178
     $pane->access = array();
179 179
     $pane->configuration = array(
180
-      'admin_title' => 'Search teams',
181
-      'title' => '',
182
-      'body' => '<?php echo boincteam_search_panel(); ?>',
183
-      'format' => '3',
184
-      'substitute' => TRUE,
180
+        'admin_title' => 'Search teams',
181
+        'title' => '',
182
+        'body' => '<?php echo boincteam_search_panel(); ?>',
183
+        'format' => '3',
184
+        'substitute' => TRUE,
185 185
     );
186 186
     $pane->cache = array();
187 187
     $pane->style = array(
188
-      'settings' => NULL,
188
+        'settings' => NULL,
189 189
     );
190 190
     $pane->css = array(
191
-      'css_id' => '',
192
-      'css_class' => 'panel-secondary container shadow',
191
+        'css_id' => '',
192
+        'css_class' => 'panel-secondary container shadow',
193 193
     );
194 194
     $pane->extras = array();
195 195
     $pane->position = 0;
196 196
     $display->content['new-2'] = $pane;
197 197
     $display->panels['right'][0] = 'new-2';
198
-  $display->hide_title = PANELS_TITLE_FIXED;
199
-  $display->title_pane = 'new-1';
200
-  $handler->conf['display'] = $display;
201
-  $page->default_handlers[$handler->name] = $handler;
202
-  $pages['create_team'] = $page;
198
+    $display->hide_title = PANELS_TITLE_FIXED;
199
+    $display->title_pane = 'new-1';
200
+    $handler->conf['display'] = $display;
201
+    $page->default_handlers[$handler->name] = $handler;
202
+    $pages['create_team'] = $page;
203 203
 
204
-  $page = new stdClass;
205
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
206
-  $page->api_version = 1;
207
-  $page->name = 'teams_landing';
208
-  $page->task = 'page';
209
-  $page->admin_title = 'Teams';
210
-  $page->admin_description = '';
211
-  $page->path = 'community/teams';
212
-  $page->access = array(
204
+    $page = new stdClass;
205
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
206
+    $page->api_version = 1;
207
+    $page->name = 'teams_landing';
208
+    $page->task = 'page';
209
+    $page->admin_title = 'Teams';
210
+    $page->admin_description = '';
211
+    $page->path = 'community/teams';
212
+    $page->access = array(
213 213
     'type' => 'none',
214 214
     'settings' => NULL,
215
-  );
216
-  $page->menu = array(
215
+    );
216
+    $page->menu = array(
217 217
     'type' => 'normal',
218 218
     'title' => 'Teams',
219 219
     'name' => 'primary-links',
220 220
     'weight' => '10',
221 221
     'parent' => array(
222
-      'type' => 'none',
223
-      'title' => '',
224
-      'name' => 'navigation',
225
-      'weight' => '0',
222
+        'type' => 'none',
223
+        'title' => '',
224
+        'name' => 'navigation',
225
+        'weight' => '0',
226 226
     ),
227
-  );
228
-  $page->arguments = array();
229
-  $page->conf = array();
230
-  $page->default_handlers = array();
231
-  $handler = new stdClass;
232
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
233
-  $handler->api_version = 1;
234
-  $handler->name = 'page_teams_landing_panel_context';
235
-  $handler->task = 'page';
236
-  $handler->subtask = 'teams_landing';
237
-  $handler->handler = 'panel_context';
238
-  $handler->weight = 0;
239
-  $handler->conf = array(
227
+    );
228
+    $page->arguments = array();
229
+    $page->conf = array();
230
+    $page->default_handlers = array();
231
+    $handler = new stdClass;
232
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
233
+    $handler->api_version = 1;
234
+    $handler->name = 'page_teams_landing_panel_context';
235
+    $handler->task = 'page';
236
+    $handler->subtask = 'teams_landing';
237
+    $handler->handler = 'panel_context';
238
+    $handler->weight = 0;
239
+    $handler->conf = array(
240 240
     'title' => 'Panel',
241 241
     'no_blocks' => 0,
242 242
     'pipeline' => 'standard',
243 243
     'css_id' => '',
244 244
     'css' => '',
245 245
     'contexts' => array(
246
-      0 => array(
246
+        0 => array(
247 247
         'name' => 'user',
248 248
         'id' => 1,
249 249
         'identifier' => 'User',
250 250
         'keyword' => 'user',
251 251
         'context_settings' => array(
252
-          'type' => 'current',
253
-          'user' => '',
254
-          'uid' => '',
252
+            'type' => 'current',
253
+            'user' => '',
254
+            'uid' => '',
255
+        ),
255 256
         ),
256
-      ),
257 257
     ),
258 258
     'relationships' => array(),
259
-  );
260
-  $display = new panels_display;
261
-  $display->layout = 'twocol_stacked';
262
-  $display->layout_settings = array(
259
+    );
260
+    $display = new panels_display;
261
+    $display->layout = 'twocol_stacked';
262
+    $display->layout_settings = array(
263 263
     'items' => array(
264
-      'canvas' => array(
264
+        'canvas' => array(
265 265
         'type' => 'row',
266 266
         'contains' => 'column',
267 267
         'children' => array(
268
-          0 => 'main',
269
-          1 => 2,
268
+            0 => 'main',
269
+            1 => 2,
270 270
         ),
271 271
         'parent' => NULL,
272
-      ),
273
-      'main' => array(
272
+        ),
273
+        'main' => array(
274 274
         'type' => 'column',
275 275
         'width' => 50,
276 276
         'width_type' => '%',
277 277
         'children' => array(
278
-          0 => 'main-row',
279
-          1 => 1,
278
+            0 => 'main-row',
279
+            1 => 1,
280 280
         ),
281 281
         'parent' => 'canvas',
282
-      ),
283
-      'main-row' => array(
282
+        ),
283
+        'main-row' => array(
284 284
         'type' => 'row',
285 285
         'contains' => 'region',
286 286
         'children' => array(
287
-          0 => 'center',
287
+            0 => 'center',
288 288
         ),
289 289
         'parent' => 'main',
290
-      ),
291
-      'center' => array(
290
+        ),
291
+        'center' => array(
292 292
         'type' => 'region',
293 293
         'title' => 'Center',
294 294
         'width' => 100,
295 295
         'width_type' => '%',
296 296
         'parent' => 'main-row',
297
-      ),
298
-      1 => array(
297
+        ),
298
+        1 => array(
299 299
         'type' => 'row',
300 300
         'contains' => 'region',
301 301
         'children' => array(
302
-          0 => 'top_teams',
302
+            0 => 'top_teams',
303 303
         ),
304 304
         'parent' => 'main',
305 305
         'class' => 'panel-primary container shadow',
306
-      ),
307
-      'top_teams' => array(
306
+        ),
307
+        'top_teams' => array(
308 308
         'type' => 'region',
309 309
         'title' => 'Top teams',
310 310
         'width' => 100,
311 311
         'width_type' => '%',
312 312
         'parent' => '1',
313 313
         'class' => 'panel-primary container shadow',
314
-      ),
315
-      2 => array(
314
+        ),
315
+        2 => array(
316 316
         'type' => 'column',
317 317
         'width' => 50,
318 318
         'width_type' => '%',
319 319
         'parent' => 'canvas',
320 320
         'children' => array(),
321 321
         'class' => '',
322
-      ),
322
+        ),
323 323
     ),
324
-  );
325
-  $display->panel_settings = array(
324
+    );
325
+    $display->panel_settings = array(
326 326
     'style_settings' => array(
327
-      'default' => NULL,
328
-      'center' => NULL,
329
-      'top_teams' => NULL,
330
-      'top' => NULL,
331
-      'left' => NULL,
332
-      'right' => NULL,
333
-      'bottom' => NULL,
334
-      'content' => NULL,
335
-      'sidebar_first' => NULL,
327
+        'default' => NULL,
328
+        'center' => NULL,
329
+        'top_teams' => NULL,
330
+        'top' => NULL,
331
+        'left' => NULL,
332
+        'right' => NULL,
333
+        'bottom' => NULL,
334
+        'content' => NULL,
335
+        'sidebar_first' => NULL,
336 336
     ),
337
-  );
338
-  $display->cache = array();
339
-  $display->title = 'Teams';
340
-  $display->storage_type = 'page_manager';
341
-  $display->storage_id = 'page_teams_landing_panel_context';
342
-  $display->content = array();
343
-  $display->panels = array();
337
+    );
338
+    $display->cache = array();
339
+    $display->title = 'Teams';
340
+    $display->storage_type = 'page_manager';
341
+    $display->storage_id = 'page_teams_landing_panel_context';
342
+    $display->content = array();
343
+    $display->panels = array();
344 344
     $pane = new stdClass;
345 345
     $pane->pid = 'new-1';
346 346
     $pane->panel = 'bottom';
@@ -349,21 +349,21 @@  discard block
 block discarded – undo
349 349
     $pane->shown = TRUE;
350 350
     $pane->access = array();
351 351
     $pane->configuration = array(
352
-      'link_to_view' => 0,
353
-      'more_link' => 1,
354
-      'use_pager' => 0,
355
-      'pager_id' => '',
356
-      'items_per_page' => '10',
357
-      'override_title' => 1,
358
-      'override_title_text' => 'Top teams',
352
+        'link_to_view' => 0,
353
+        'more_link' => 1,
354
+        'use_pager' => 0,
355
+        'pager_id' => '',
356
+        'items_per_page' => '10',
357
+        'override_title' => 1,
358
+        'override_title_text' => 'Top teams',
359 359
     );
360 360
     $pane->cache = array();
361 361
     $pane->style = array(
362
-      'settings' => NULL,
362
+        'settings' => NULL,
363 363
     );
364 364
     $pane->css = array(
365
-      'css_id' => '',
366
-      'css_class' => 'panel-primary container shadow',
365
+        'css_id' => '',
366
+        'css_class' => 'panel-primary container shadow',
367 367
     );
368 368
     $pane->extras = array();
369 369
     $pane->position = 0;
@@ -377,19 +377,19 @@  discard block
 block discarded – undo
377 377
     $pane->shown = TRUE;
378 378
     $pane->access = array();
379 379
     $pane->configuration = array(
380
-      'admin_title' => 'General info on teams',
381
-      'title' => '',
382
-      'body' => '<?php echo boincteam_topic_overview_panel(); ?>',
383
-      'format' => '3',
384
-      'substitute' => TRUE,
380
+        'admin_title' => 'General info on teams',
381
+        'title' => '',
382
+        'body' => '<?php echo boincteam_topic_overview_panel(); ?>',
383
+        'format' => '3',
384
+        'substitute' => TRUE,
385 385
     );
386 386
     $pane->cache = array();
387 387
     $pane->style = array(
388
-      'settings' => NULL,
388
+        'settings' => NULL,
389 389
     );
390 390
     $pane->css = array(
391
-      'css_id' => '',
392
-      'css_class' => 'panel-primary container shadow balance-height',
391
+        'css_id' => '',
392
+        'css_class' => 'panel-primary container shadow balance-height',
393 393
     );
394 394
     $pane->extras = array();
395 395
     $pane->position = 0;
@@ -402,32 +402,32 @@  discard block
 block discarded – undo
402 402
     $pane->subtype = 'custom';
403 403
     $pane->shown = TRUE;
404 404
     $pane->access = array(
405
-      'plugins' => array(
405
+        'plugins' => array(
406 406
         0 => array(
407
-          'name' => 'php',
408
-          'settings' => array(
407
+            'name' => 'php',
408
+            'settings' => array(
409 409
             'description' => 'Already a team member',
410 410
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
411 411
 return ($account->team > 0);',
412
-          ),
413
-          'not' => FALSE,
412
+            ),
413
+            'not' => FALSE,
414
+        ),
414 415
         ),
415
-      ),
416 416
     );
417 417
     $pane->configuration = array(
418
-      'admin_title' => 'Team member widget',
419
-      'title' => '',
420
-      'body' => '<?php echo boincteam_member_link_panel(); ?>',
421
-      'format' => '3',
422
-      'substitute' => 0,
418
+        'admin_title' => 'Team member widget',
419
+        'title' => '',
420
+        'body' => '<?php echo boincteam_member_link_panel(); ?>',
421
+        'format' => '3',
422
+        'substitute' => 0,
423 423
     );
424 424
     $pane->cache = array();
425 425
     $pane->style = array(
426
-      'settings' => NULL,
426
+        'settings' => NULL,
427 427
     );
428 428
     $pane->css = array(
429
-      'css_id' => '',
430
-      'css_class' => 'panel-secondary container shadow balance-height no-resize',
429
+        'css_id' => '',
430
+        'css_class' => 'panel-secondary container shadow balance-height no-resize',
431 431
     );
432 432
     $pane->extras = array();
433 433
     $pane->position = 0;
@@ -441,19 +441,19 @@  discard block
 block discarded – undo
441 441
     $pane->shown = TRUE;
442 442
     $pane->access = array();
443 443
     $pane->configuration = array(
444
-      'admin_title' => 'Search teams',
445
-      'title' => '',
446
-      'body' => '<?php echo boincteam_search_panel(); ?>',
447
-      'format' => '3',
448
-      'substitute' => TRUE,
444
+        'admin_title' => 'Search teams',
445
+        'title' => '',
446
+        'body' => '<?php echo boincteam_search_panel(); ?>',
447
+        'format' => '3',
448
+        'substitute' => TRUE,
449 449
     );
450 450
     $pane->cache = array();
451 451
     $pane->style = array(
452
-      'settings' => NULL,
452
+        'settings' => NULL,
453 453
     );
454 454
     $pane->css = array(
455
-      'css_id' => '',
456
-      'css_class' => 'panel-secondary container shadow balance-height',
455
+        'css_id' => '',
456
+        'css_class' => 'panel-secondary container shadow balance-height',
457 457
     );
458 458
     $pane->extras = array();
459 459
     $pane->position = 1;
@@ -466,102 +466,102 @@  discard block
 block discarded – undo
466 466
     $pane->subtype = 'custom';
467 467
     $pane->shown = TRUE;
468 468
     $pane->access = array(
469
-      'plugins' => array(
469
+        'plugins' => array(
470 470
         0 => array(
471
-          'name' => 'php',
472
-          'settings' => array(
471
+            'name' => 'php',
472
+            'settings' => array(
473 473
             'description' => 'Not in another team',
474 474
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
475 475
 return ($account->team == 0);',
476
-          ),
477
-          'not' => FALSE,
476
+            ),
477
+            'not' => FALSE,
478
+        ),
478 479
         ),
479
-      ),
480 480
     );
481 481
     $pane->configuration = array(
482
-      'admin_title' => 'Create team widget',
483
-      'title' => '',
484
-      'body' => '<?php echo boincteam_create_team_link_panel(); ?>',
485
-      'format' => '3',
486
-      'substitute' => TRUE,
482
+        'admin_title' => 'Create team widget',
483
+        'title' => '',
484
+        'body' => '<?php echo boincteam_create_team_link_panel(); ?>',
485
+        'format' => '3',
486
+        'substitute' => TRUE,
487 487
     );
488 488
     $pane->cache = array();
489 489
     $pane->style = array(
490
-      'settings' => NULL,
490
+        'settings' => NULL,
491 491
     );
492 492
     $pane->css = array(
493
-      'css_id' => '',
494
-      'css_class' => 'panel-secondary container shadow balance-height no-resize',
493
+        'css_id' => '',
494
+        'css_class' => 'panel-secondary container shadow balance-height no-resize',
495 495
     );
496 496
     $pane->extras = array();
497 497
     $pane->position = 2;
498 498
     $display->content['new-5'] = $pane;
499 499
     $display->panels['right'][2] = 'new-5';
500
-  $display->hide_title = PANELS_TITLE_FIXED;
501
-  $display->title_pane = 'new-2';
502
-  $handler->conf['display'] = $display;
503
-  $page->default_handlers[$handler->name] = $handler;
504
-  $pages['teams_landing'] = $page;
500
+    $display->hide_title = PANELS_TITLE_FIXED;
501
+    $display->title_pane = 'new-2';
502
+    $handler->conf['display'] = $display;
503
+    $page->default_handlers[$handler->name] = $handler;
504
+    $pages['teams_landing'] = $page;
505 505
 
506
-  $page = new stdClass;
507
-  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
508
-  $page->api_version = 1;
509
-  $page->name = 'view_team';
510
-  $page->task = 'page';
511
-  $page->admin_title = 'View team';
512
-  $page->admin_description = '';
513
-  $page->path = 'community/teams/%team_id/!section/!option';
514
-  $page->access = array(
506
+    $page = new stdClass;
507
+    $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
508
+    $page->api_version = 1;
509
+    $page->name = 'view_team';
510
+    $page->task = 'page';
511
+    $page->admin_title = 'View team';
512
+    $page->admin_description = '';
513
+    $page->path = 'community/teams/%team_id/!section/!option';
514
+    $page->access = array(
515 515
     'type' => 'none',
516 516
     'settings' => NULL,
517
-  );
518
-  $page->menu = array(
517
+    );
518
+    $page->menu = array(
519 519
     'type' => 'none',
520 520
     'title' => 'Teams',
521 521
     'name' => 'navigation',
522 522
     'weight' => '10',
523 523
     'parent' => array(
524
-      'type' => 'none',
525
-      'title' => '',
526
-      'name' => 'navigation',
527
-      'weight' => '0',
524
+        'type' => 'none',
525
+        'title' => '',
526
+        'name' => 'navigation',
527
+        'weight' => '0',
528 528
     ),
529
-  );
530
-  $page->arguments = array(
529
+    );
530
+    $page->arguments = array(
531 531
     'team_id' => array(
532
-      'id' => 1,
533
-      'identifier' => 'Node: ID',
534
-      'name' => 'nid',
535
-      'settings' => array(),
532
+        'id' => 1,
533
+        'identifier' => 'Node: ID',
534
+        'name' => 'nid',
535
+        'settings' => array(),
536 536
     ),
537 537
     'section' => array(
538
-      'id' => 1,
539
-      'identifier' => 'Section',
540
-      'name' => 'string',
541
-      'settings' => array(
538
+        'id' => 1,
539
+        'identifier' => 'Section',
540
+        'name' => 'string',
541
+        'settings' => array(
542 542
         'use_tail' => 0,
543
-      ),
543
+        ),
544 544
     ),
545 545
     'option' => array(
546
-      'id' => 2,
547
-      'identifier' => 'Option',
548
-      'name' => 'string',
549
-      'settings' => array(
546
+        'id' => 2,
547
+        'identifier' => 'Option',
548
+        'name' => 'string',
549
+        'settings' => array(
550 550
         'use_tail' => 0,
551
-      ),
551
+        ),
552 552
     ),
553
-  );
554
-  $page->conf = array();
555
-  $page->default_handlers = array();
556
-  $handler = new stdClass;
557
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
558
-  $handler->api_version = 1;
559
-  $handler->name = 'page_view_team_panel_context_2';
560
-  $handler->task = 'page';
561
-  $handler->subtask = 'view_team';
562
-  $handler->handler = 'panel_context';
563
-  $handler->weight = -30;
564
-  $handler->conf = array(
553
+    );
554
+    $page->conf = array();
555
+    $page->default_handlers = array();
556
+    $handler = new stdClass;
557
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
558
+    $handler->api_version = 1;
559
+    $handler->name = 'page_view_team_panel_context_2';
560
+    $handler->task = 'page';
561
+    $handler->subtask = 'view_team';
562
+    $handler->handler = 'panel_context';
563
+    $handler->weight = -30;
564
+    $handler->conf = array(
565 565
     'title' => 'Edit team',
566 566
     'no_blocks' => 0,
567 567
     'pipeline' => 'standard',
@@ -570,57 +570,57 @@  discard block
 block discarded – undo
570 570
     'contexts' => array(),
571 571
     'relationships' => array(),
572 572
     'access' => array(
573
-      'plugins' => array(
573
+        'plugins' => array(
574 574
         0 => array(
575
-          'name' => 'path_visibility',
576
-          'settings' => array(
575
+            'name' => 'path_visibility',
576
+            'settings' => array(
577 577
             'visibility_setting' => '1',
578 578
             'paths' => 'community/teams/*/edit/info',
579
-          ),
580
-          'context' => 'empty',
581
-          'not' => FALSE,
579
+            ),
580
+            'context' => 'empty',
581
+            'not' => FALSE,
582 582
         ),
583 583
         3 => array(
584
-          'name' => 'role',
585
-          'settings' => array(
584
+            'name' => 'role',
585
+            'settings' => array(
586 586
             'rids' => array(
587
-              0 => 2,
587
+                0 => 2,
588
+            ),
588 589
             ),
589
-          ),
590
-          'context' => 'logged-in-user',
591
-          'not' => FALSE,
590
+            'context' => 'logged-in-user',
591
+            'not' => FALSE,
592 592
         ),
593 593
         4 => array(
594
-          'name' => 'php',
595
-          'settings' => array(
594
+            'name' => 'php',
595
+            'settings' => array(
596 596
             'description' => 'An admin of this team',
597 597
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
598 598
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
599
-          ),
600
-          'not' => FALSE,
599
+            ),
600
+            'not' => FALSE,
601
+        ),
601 602
         ),
602
-      ),
603
-      'logic' => 'and',
603
+        'logic' => 'and',
604 604
     ),
605
-  );
606
-  $display = new panels_display;
607
-  $display->layout = 'twocol_stacked';
608
-  $display->layout_settings = array();
609
-  $display->panel_settings = array(
605
+    );
606
+    $display = new panels_display;
607
+    $display->layout = 'twocol_stacked';
608
+    $display->layout_settings = array();
609
+    $display->panel_settings = array(
610 610
     'style_settings' => array(
611
-      'default' => NULL,
612
-      'left' => NULL,
613
-      'right' => NULL,
614
-      'top' => NULL,
615
-      'bottom' => NULL,
611
+        'default' => NULL,
612
+        'left' => NULL,
613
+        'right' => NULL,
614
+        'top' => NULL,
615
+        'bottom' => NULL,
616 616
     ),
617
-  );
618
-  $display->cache = array();
619
-  $display->title = 'Teams';
620
-  $display->storage_type = 'page_manager';
621
-  $display->storage_id = 'page_view_team_panel_context_2';
622
-  $display->content = array();
623
-  $display->panels = array();
617
+    );
618
+    $display->cache = array();
619
+    $display->title = 'Teams';
620
+    $display->storage_type = 'page_manager';
621
+    $display->storage_id = 'page_view_team_panel_context_2';
622
+    $display->content = array();
623
+    $display->panels = array();
624 624
     $pane = new stdClass;
625 625
     $pane->pid = 'new-1';
626 626
     $pane->panel = 'left';
@@ -629,19 +629,19 @@  discard block
 block discarded – undo
629 629
     $pane->shown = TRUE;
630 630
     $pane->access = array();
631 631
     $pane->configuration = array(
632
-      'admin_title' => 'Edit team form',
633
-      'title' => '',
634
-      'body' => '<?php echo boincteam_edit_team_panel(%team_id:nid); ?>',
635
-      'format' => '3',
636
-      'substitute' => 1,
632
+        'admin_title' => 'Edit team form',
633
+        'title' => '',
634
+        'body' => '<?php echo boincteam_edit_team_panel(%team_id:nid); ?>',
635
+        'format' => '3',
636
+        'substitute' => 1,
637 637
     );
638 638
     $pane->cache = array();
639 639
     $pane->style = array(
640
-      'settings' => NULL,
640
+        'settings' => NULL,
641 641
     );
642 642
     $pane->css = array(
643
-      'css_id' => '',
644
-      'css_class' => 'panel-primary container shadow',
643
+        'css_id' => '',
644
+        'css_class' => 'panel-primary container shadow',
645 645
     );
646 646
     $pane->extras = array();
647 647
     $pane->position = 0;
@@ -655,37 +655,37 @@  discard block
 block discarded – undo
655 655
     $pane->shown = TRUE;
656 656
     $pane->access = array();
657 657
     $pane->configuration = array(
658
-      'admin_title' => 'Manage team',
659
-      'title' => '',
660
-      'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
661
-      'format' => '3',
662
-      'substitute' => 1,
658
+        'admin_title' => 'Manage team',
659
+        'title' => '',
660
+        'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
661
+        'format' => '3',
662
+        'substitute' => 1,
663 663
     );
664 664
     $pane->cache = array();
665 665
     $pane->style = array(
666
-      'settings' => NULL,
666
+        'settings' => NULL,
667 667
     );
668 668
     $pane->css = array(
669
-      'css_id' => 'team-management',
670
-      'css_class' => 'panel-secondary container shadow',
669
+        'css_id' => 'team-management',
670
+        'css_class' => 'panel-secondary container shadow',
671 671
     );
672 672
     $pane->extras = array();
673 673
     $pane->position = 0;
674 674
     $display->content['new-2'] = $pane;
675 675
     $display->panels['right'][0] = 'new-2';
676
-  $display->hide_title = PANELS_TITLE_FIXED;
677
-  $display->title_pane = '0';
678
-  $handler->conf['display'] = $display;
679
-  $page->default_handlers[$handler->name] = $handler;
680
-  $handler = new stdClass;
681
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
682
-  $handler->api_version = 1;
683
-  $handler->name = 'page_view_team_panel_context_8';
684
-  $handler->task = 'page';
685
-  $handler->subtask = 'view_team';
686
-  $handler->handler = 'panel_context';
687
-  $handler->weight = -29;
688
-  $handler->conf = array(
676
+    $display->hide_title = PANELS_TITLE_FIXED;
677
+    $display->title_pane = '0';
678
+    $handler->conf['display'] = $display;
679
+    $page->default_handlers[$handler->name] = $handler;
680
+    $handler = new stdClass;
681
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
682
+    $handler->api_version = 1;
683
+    $handler->name = 'page_view_team_panel_context_8';
684
+    $handler->task = 'page';
685
+    $handler->subtask = 'view_team';
686
+    $handler->handler = 'panel_context';
687
+    $handler->weight = -29;
688
+    $handler->conf = array(
689 689
     'title' => 'Manage members',
690 690
     'no_blocks' => 0,
691 691
     'pipeline' => 'standard',
@@ -694,58 +694,58 @@  discard block
 block discarded – undo
694 694
     'contexts' => array(),
695 695
     'relationships' => array(),
696 696
     'access' => array(
697
-      'plugins' => array(
697
+        'plugins' => array(
698 698
         0 => array(
699
-          'name' => 'path_visibility',
700
-          'settings' => array(
699
+            'name' => 'path_visibility',
700
+            'settings' => array(
701 701
             'visibility_setting' => '1',
702 702
             'paths' => 'community/teams/*/edit/members',
703
-          ),
704
-          'context' => 'empty',
705
-          'not' => FALSE,
703
+            ),
704
+            'context' => 'empty',
705
+            'not' => FALSE,
706 706
         ),
707 707
         3 => array(
708
-          'name' => 'role',
709
-          'settings' => array(
708
+            'name' => 'role',
709
+            'settings' => array(
710 710
             'rids' => array(
711
-              0 => 2,
711
+                0 => 2,
712
+            ),
712 713
             ),
713
-          ),
714
-          'context' => 'logged-in-user',
715
-          'not' => FALSE,
714
+            'context' => 'logged-in-user',
715
+            'not' => FALSE,
716 716
         ),
717 717
         4 => array(
718
-          'name' => 'php',
719
-          'settings' => array(
718
+            'name' => 'php',
719
+            'settings' => array(
720 720
             'description' => 'An admin of this team',
721 721
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
722 722
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
723
-          ),
724
-          'not' => FALSE,
723
+            ),
724
+            'not' => FALSE,
725
+        ),
725 726
         ),
726
-      ),
727
-      'logic' => 'and',
727
+        'logic' => 'and',
728 728
     ),
729
-  );
730
-  $display = new panels_display;
731
-  $display->layout = 'onecol';
732
-  $display->layout_settings = array();
733
-  $display->panel_settings = array(
729
+    );
730
+    $display = new panels_display;
731
+    $display->layout = 'onecol';
732
+    $display->layout_settings = array();
733
+    $display->panel_settings = array(
734 734
     'style_settings' => array(
735
-      'default' => NULL,
736
-      'left' => NULL,
737
-      'right' => NULL,
738
-      'top' => NULL,
739
-      'bottom' => NULL,
740
-      'middle' => NULL,
735
+        'default' => NULL,
736
+        'left' => NULL,
737
+        'right' => NULL,
738
+        'top' => NULL,
739
+        'bottom' => NULL,
740
+        'middle' => NULL,
741 741
     ),
742
-  );
743
-  $display->cache = array();
744
-  $display->title = 'Teams';
745
-  $display->storage_type = 'page_manager';
746
-  $display->storage_id = 'page_view_team_panel_context_8';
747
-  $display->content = array();
748
-  $display->panels = array();
742
+    );
743
+    $display->cache = array();
744
+    $display->title = 'Teams';
745
+    $display->storage_type = 'page_manager';
746
+    $display->storage_id = 'page_view_team_panel_context_8';
747
+    $display->content = array();
748
+    $display->panels = array();
749 749
     $pane = new stdClass;
750 750
     $pane->pid = 'new-1';
751 751
     $pane->panel = 'middle';
@@ -754,35 +754,35 @@  discard block
 block discarded – undo
754 754
     $pane->shown = TRUE;
755 755
     $pane->access = array();
756 756
     $pane->configuration = array(
757
-      'items_per_page' => '25',
758
-      'override_title' => 1,
759
-      'override_title_text' => 'Remove members',
757
+        'items_per_page' => '25',
758
+        'override_title' => 1,
759
+        'override_title_text' => 'Remove members',
760 760
     );
761 761
     $pane->cache = array();
762 762
     $pane->style = array(
763
-      'settings' => NULL,
763
+        'settings' => NULL,
764 764
     );
765 765
     $pane->css = array(
766
-      'css_id' => '',
767
-      'css_class' => 'section framing container shadow',
766
+        'css_id' => '',
767
+        'css_class' => 'section framing container shadow',
768 768
     );
769 769
     $pane->extras = array();
770 770
     $pane->position = 0;
771 771
     $display->content['new-1'] = $pane;
772 772
     $display->panels['middle'][0] = 'new-1';
773
-  $display->hide_title = PANELS_TITLE_FIXED;
774
-  $display->title_pane = '0';
775
-  $handler->conf['display'] = $display;
776
-  $page->default_handlers[$handler->name] = $handler;
777
-  $handler = new stdClass;
778
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
779
-  $handler->api_version = 1;
780
-  $handler->name = 'page_view_team_panel_context_4';
781
-  $handler->task = 'page';
782
-  $handler->subtask = 'view_team';
783
-  $handler->handler = 'panel_context';
784
-  $handler->weight = -28;
785
-  $handler->conf = array(
773
+    $display->hide_title = PANELS_TITLE_FIXED;
774
+    $display->title_pane = '0';
775
+    $handler->conf['display'] = $display;
776
+    $page->default_handlers[$handler->name] = $handler;
777
+    $handler = new stdClass;
778
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
779
+    $handler->api_version = 1;
780
+    $handler->name = 'page_view_team_panel_context_4';
781
+    $handler->task = 'page';
782
+    $handler->subtask = 'view_team';
783
+    $handler->handler = 'panel_context';
784
+    $handler->weight = -28;
785
+    $handler->conf = array(
786 786
     'title' => 'View emails',
787 787
     'no_blocks' => 0,
788 788
     'pipeline' => 'standard',
@@ -791,58 +791,58 @@  discard block
 block discarded – undo
791 791
     'contexts' => array(),
792 792
     'relationships' => array(),
793 793
     'access' => array(
794
-      'plugins' => array(
794
+        'plugins' => array(
795 795
         0 => array(
796
-          'name' => 'path_visibility',
797
-          'settings' => array(
796
+            'name' => 'path_visibility',
797
+            'settings' => array(
798 798
             'visibility_setting' => '1',
799 799
             'paths' => 'community/teams/*/members/email',
800
-          ),
801
-          'context' => 'empty',
802
-          'not' => FALSE,
800
+            ),
801
+            'context' => 'empty',
802
+            'not' => FALSE,
803 803
         ),
804 804
         3 => array(
805
-          'name' => 'role',
806
-          'settings' => array(
805
+            'name' => 'role',
806
+            'settings' => array(
807 807
             'rids' => array(
808
-              0 => 2,
808
+                0 => 2,
809
+            ),
809 810
             ),
810
-          ),
811
-          'context' => 'logged-in-user',
812
-          'not' => FALSE,
811
+            'context' => 'logged-in-user',
812
+            'not' => FALSE,
813 813
         ),
814 814
         4 => array(
815
-          'name' => 'php',
816
-          'settings' => array(
815
+            'name' => 'php',
816
+            'settings' => array(
817 817
             'description' => 'An admin of this team',
818 818
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
819 819
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
820
-          ),
821
-          'not' => FALSE,
820
+            ),
821
+            'not' => FALSE,
822
+        ),
822 823
         ),
823
-      ),
824
-      'logic' => 'and',
824
+        'logic' => 'and',
825 825
     ),
826
-  );
827
-  $display = new panels_display;
828
-  $display->layout = 'onecol';
829
-  $display->layout_settings = array();
830
-  $display->panel_settings = array(
826
+    );
827
+    $display = new panels_display;
828
+    $display->layout = 'onecol';
829
+    $display->layout_settings = array();
830
+    $display->panel_settings = array(
831 831
     'style_settings' => array(
832
-      'default' => NULL,
833
-      'left' => NULL,
834
-      'right' => NULL,
835
-      'top' => NULL,
836
-      'bottom' => NULL,
837
-      'middle' => NULL,
832
+        'default' => NULL,
833
+        'left' => NULL,
834
+        'right' => NULL,
835
+        'top' => NULL,
836
+        'bottom' => NULL,
837
+        'middle' => NULL,
838 838
     ),
839
-  );
840
-  $display->cache = array();
841
-  $display->title = 'Teams';
842
-  $display->storage_type = 'page_manager';
843
-  $display->storage_id = 'page_view_team_panel_context_4';
844
-  $display->content = array();
845
-  $display->panels = array();
839
+    );
840
+    $display->cache = array();
841
+    $display->title = 'Teams';
842
+    $display->storage_type = 'page_manager';
843
+    $display->storage_id = 'page_view_team_panel_context_4';
844
+    $display->content = array();
845
+    $display->panels = array();
846 846
     $pane = new stdClass;
847 847
     $pane->pid = 'new-1';
848 848
     $pane->panel = 'middle';
@@ -851,35 +851,35 @@  discard block
 block discarded – undo
851 851
     $pane->shown = TRUE;
852 852
     $pane->access = array();
853 853
     $pane->configuration = array(
854
-      'items_per_page' => '25',
855
-      'override_title' => 1,
856
-      'override_title_text' => 'Email list',
854
+        'items_per_page' => '25',
855
+        'override_title' => 1,
856
+        'override_title_text' => 'Email list',
857 857
     );
858 858
     $pane->cache = array();
859 859
     $pane->style = array(
860
-      'settings' => NULL,
860
+        'settings' => NULL,
861 861
     );
862 862
     $pane->css = array(
863
-      'css_id' => '',
864
-      'css_class' => 'section framing container shadow',
863
+        'css_id' => '',
864
+        'css_class' => 'section framing container shadow',
865 865
     );
866 866
     $pane->extras = array();
867 867
     $pane->position = 0;
868 868
     $display->content['new-1'] = $pane;
869 869
     $display->panels['middle'][0] = 'new-1';
870
-  $display->hide_title = PANELS_TITLE_FIXED;
871
-  $display->title_pane = '0';
872
-  $handler->conf['display'] = $display;
873
-  $page->default_handlers[$handler->name] = $handler;
874
-  $handler = new stdClass;
875
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
876
-  $handler->api_version = 1;
877
-  $handler->name = 'page_view_team_panel_context_3';
878
-  $handler->task = 'page';
879
-  $handler->subtask = 'view_team';
880
-  $handler->handler = 'panel_context';
881
-  $handler->weight = -27;
882
-  $handler->conf = array(
870
+    $display->hide_title = PANELS_TITLE_FIXED;
871
+    $display->title_pane = '0';
872
+    $handler->conf['display'] = $display;
873
+    $page->default_handlers[$handler->name] = $handler;
874
+    $handler = new stdClass;
875
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
876
+    $handler->api_version = 1;
877
+    $handler->name = 'page_view_team_panel_context_3';
878
+    $handler->task = 'page';
879
+    $handler->subtask = 'view_team';
880
+    $handler->handler = 'panel_context';
881
+    $handler->weight = -27;
882
+    $handler->conf = array(
883 883
     'title' => 'View members',
884 884
     'no_blocks' => 0,
885 885
     'pipeline' => 'standard',
@@ -888,49 +888,49 @@  discard block
 block discarded – undo
888 888
     'contexts' => array(),
889 889
     'relationships' => array(),
890 890
     'access' => array(
891
-      'plugins' => array(
891
+        'plugins' => array(
892 892
         0 => array(
893
-          'name' => 'path_visibility',
894
-          'settings' => array(
893
+            'name' => 'path_visibility',
894
+            'settings' => array(
895 895
             'visibility_setting' => '1',
896 896
             'paths' => 'community/teams/*/members',
897
-          ),
898
-          'context' => 'empty',
899
-          'not' => FALSE,
897
+            ),
898
+            'context' => 'empty',
899
+            'not' => FALSE,
900 900
         ),
901 901
         3 => array(
902
-          'name' => 'role',
903
-          'settings' => array(
902
+            'name' => 'role',
903
+            'settings' => array(
904 904
             'rids' => array(
905
-              0 => 2,
905
+                0 => 2,
906 906
             ),
907
-          ),
908
-          'context' => 'logged-in-user',
909
-          'not' => FALSE,
907
+            ),
908
+            'context' => 'logged-in-user',
909
+            'not' => FALSE,
910
+        ),
910 911
         ),
911
-      ),
912
-      'logic' => 'and',
912
+        'logic' => 'and',
913 913
     ),
914
-  );
915
-  $display = new panels_display;
916
-  $display->layout = 'onecol';
917
-  $display->layout_settings = array();
918
-  $display->panel_settings = array(
914
+    );
915
+    $display = new panels_display;
916
+    $display->layout = 'onecol';
917
+    $display->layout_settings = array();
918
+    $display->panel_settings = array(
919 919
     'style_settings' => array(
920
-      'default' => NULL,
921
-      'left' => NULL,
922
-      'right' => NULL,
923
-      'top' => NULL,
924
-      'bottom' => NULL,
925
-      'middle' => NULL,
920
+        'default' => NULL,
921
+        'left' => NULL,
922
+        'right' => NULL,
923
+        'top' => NULL,
924
+        'bottom' => NULL,
925
+        'middle' => NULL,
926 926
     ),
927
-  );
928
-  $display->cache = array();
929
-  $display->title = 'Teams';
930
-  $display->storage_type = 'page_manager';
931
-  $display->storage_id = 'page_view_team_panel_context_3';
932
-  $display->content = array();
933
-  $display->panels = array();
927
+    );
928
+    $display->cache = array();
929
+    $display->title = 'Teams';
930
+    $display->storage_type = 'page_manager';
931
+    $display->storage_id = 'page_view_team_panel_context_3';
932
+    $display->content = array();
933
+    $display->panels = array();
934 934
     $pane = new stdClass;
935 935
     $pane->pid = 'new-1';
936 936
     $pane->panel = 'middle';
@@ -938,30 +938,30 @@  discard block
 block discarded – undo
938 938
     $pane->subtype = 'boinc_team_members-panel_pane_1';
939 939
     $pane->shown = TRUE;
940 940
     $pane->access = array(
941
-      'plugins' => array(
941
+        'plugins' => array(
942 942
         0 => array(
943
-          'name' => 'php',
944
-          'settings' => array(
943
+            'name' => 'php',
944
+            'settings' => array(
945 945
             'description' => 'An admin of this team',
946 946
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
947 947
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
948
-          ),
949
-          'not' => TRUE,
948
+            ),
949
+            'not' => TRUE,
950
+        ),
950 951
         ),
951
-      ),
952 952
     );
953 953
     $pane->configuration = array(
954
-      'items_per_page' => '25',
955
-      'override_title' => 1,
956
-      'override_title_text' => 'Member list',
954
+        'items_per_page' => '25',
955
+        'override_title' => 1,
956
+        'override_title_text' => 'Member list',
957 957
     );
958 958
     $pane->cache = array();
959 959
     $pane->style = array(
960
-      'settings' => NULL,
960
+        'settings' => NULL,
961 961
     );
962 962
     $pane->css = array(
963
-      'css_id' => '',
964
-      'css_class' => 'section framing container shadow',
963
+        'css_id' => '',
964
+        'css_class' => 'section framing container shadow',
965 965
     );
966 966
     $pane->extras = array();
967 967
     $pane->position = 0;
@@ -974,48 +974,48 @@  discard block
 block discarded – undo
974 974
     $pane->subtype = 'boinc_team_members-panel_pane_2';
975 975
     $pane->shown = TRUE;
976 976
     $pane->access = array(
977
-      'plugins' => array(
977
+        'plugins' => array(
978 978
         0 => array(
979
-          'name' => 'php',
980
-          'settings' => array(
979
+            'name' => 'php',
980
+            'settings' => array(
981 981
             'description' => 'An admin of this team',
982 982
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
983 983
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
984
-          ),
985
-          'not' => FALSE,
984
+            ),
985
+            'not' => FALSE,
986
+        ),
986 987
         ),
987
-      ),
988 988
     );
989 989
     $pane->configuration = array(
990
-      'items_per_page' => '25',
991
-      'override_title' => 1,
992
-      'override_title_text' => 'Member list',
990
+        'items_per_page' => '25',
991
+        'override_title' => 1,
992
+        'override_title_text' => 'Member list',
993 993
     );
994 994
     $pane->cache = array();
995 995
     $pane->style = array(
996
-      'settings' => NULL,
996
+        'settings' => NULL,
997 997
     );
998 998
     $pane->css = array(
999
-      'css_id' => '',
1000
-      'css_class' => 'section framing container shadow',
999
+        'css_id' => '',
1000
+        'css_class' => 'section framing container shadow',
1001 1001
     );
1002 1002
     $pane->extras = array();
1003 1003
     $pane->position = 1;
1004 1004
     $display->content['new-2'] = $pane;
1005 1005
     $display->panels['middle'][1] = 'new-2';
1006
-  $display->hide_title = PANELS_TITLE_FIXED;
1007
-  $display->title_pane = '0';
1008
-  $handler->conf['display'] = $display;
1009
-  $page->default_handlers[$handler->name] = $handler;
1010
-  $handler = new stdClass;
1011
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1012
-  $handler->api_version = 1;
1013
-  $handler->name = 'page_view_team_panel_context_5';
1014
-  $handler->task = 'page';
1015
-  $handler->subtask = 'view_team';
1016
-  $handler->handler = 'panel_context';
1017
-  $handler->weight = -26;
1018
-  $handler->conf = array(
1006
+    $display->hide_title = PANELS_TITLE_FIXED;
1007
+    $display->title_pane = '0';
1008
+    $handler->conf['display'] = $display;
1009
+    $page->default_handlers[$handler->name] = $handler;
1010
+    $handler = new stdClass;
1011
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1012
+    $handler->api_version = 1;
1013
+    $handler->name = 'page_view_team_panel_context_5';
1014
+    $handler->task = 'page';
1015
+    $handler->subtask = 'view_team';
1016
+    $handler->handler = 'panel_context';
1017
+    $handler->weight = -26;
1018
+    $handler->conf = array(
1019 1019
     'title' => 'View history',
1020 1020
     'no_blocks' => 0,
1021 1021
     'pipeline' => 'standard',
@@ -1024,58 +1024,58 @@  discard block
 block discarded – undo
1024 1024
     'contexts' => array(),
1025 1025
     'relationships' => array(),
1026 1026
     'access' => array(
1027
-      'plugins' => array(
1027
+        'plugins' => array(
1028 1028
         0 => array(
1029
-          'name' => 'path_visibility',
1030
-          'settings' => array(
1029
+            'name' => 'path_visibility',
1030
+            'settings' => array(
1031 1031
             'visibility_setting' => '1',
1032 1032
             'paths' => 'community/teams/*/history',
1033
-          ),
1034
-          'context' => 'empty',
1035
-          'not' => FALSE,
1033
+            ),
1034
+            'context' => 'empty',
1035
+            'not' => FALSE,
1036 1036
         ),
1037 1037
         3 => array(
1038
-          'name' => 'role',
1039
-          'settings' => array(
1038
+            'name' => 'role',
1039
+            'settings' => array(
1040 1040
             'rids' => array(
1041
-              0 => 2,
1041
+                0 => 2,
1042
+            ),
1042 1043
             ),
1043
-          ),
1044
-          'context' => 'logged-in-user',
1045
-          'not' => FALSE,
1044
+            'context' => 'logged-in-user',
1045
+            'not' => FALSE,
1046 1046
         ),
1047 1047
         4 => array(
1048
-          'name' => 'php',
1049
-          'settings' => array(
1048
+            'name' => 'php',
1049
+            'settings' => array(
1050 1050
             'description' => 'An admin of this team',
1051 1051
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1052 1052
 return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
1053
-          ),
1054
-          'not' => FALSE,
1053
+            ),
1054
+            'not' => FALSE,
1055
+        ),
1055 1056
         ),
1056
-      ),
1057
-      'logic' => 'and',
1057
+        'logic' => 'and',
1058 1058
     ),
1059
-  );
1060
-  $display = new panels_display;
1061
-  $display->layout = 'onecol';
1062
-  $display->layout_settings = array();
1063
-  $display->panel_settings = array(
1059
+    );
1060
+    $display = new panels_display;
1061
+    $display->layout = 'onecol';
1062
+    $display->layout_settings = array();
1063
+    $display->panel_settings = array(
1064 1064
     'style_settings' => array(
1065
-      'default' => NULL,
1066
-      'left' => NULL,
1067
-      'right' => NULL,
1068
-      'top' => NULL,
1069
-      'bottom' => NULL,
1070
-      'middle' => NULL,
1065
+        'default' => NULL,
1066
+        'left' => NULL,
1067
+        'right' => NULL,
1068
+        'top' => NULL,
1069
+        'bottom' => NULL,
1070
+        'middle' => NULL,
1071 1071
     ),
1072
-  );
1073
-  $display->cache = array();
1074
-  $display->title = 'Teams';
1075
-  $display->storage_type = 'page_manager';
1076
-  $display->storage_id = 'page_view_team_panel_context_5';
1077
-  $display->content = array();
1078
-  $display->panels = array();
1072
+    );
1073
+    $display->cache = array();
1074
+    $display->title = 'Teams';
1075
+    $display->storage_type = 'page_manager';
1076
+    $display->storage_id = 'page_view_team_panel_context_5';
1077
+    $display->content = array();
1078
+    $display->panels = array();
1079 1079
     $pane = new stdClass;
1080 1080
     $pane->pid = 'new-1';
1081 1081
     $pane->panel = 'middle';
@@ -1084,35 +1084,35 @@  discard block
 block discarded – undo
1084 1084
     $pane->shown = TRUE;
1085 1085
     $pane->access = array();
1086 1086
     $pane->configuration = array(
1087
-      'items_per_page' => '25',
1088
-      'override_title' => 1,
1089
-      'override_title_text' => 'Team history',
1087
+        'items_per_page' => '25',
1088
+        'override_title' => 1,
1089
+        'override_title_text' => 'Team history',
1090 1090
     );
1091 1091
     $pane->cache = array();
1092 1092
     $pane->style = array(
1093
-      'settings' => NULL,
1093
+        'settings' => NULL,
1094 1094
     );
1095 1095
     $pane->css = array(
1096
-      'css_id' => '',
1097
-      'css_class' => 'section framing container shadow',
1096
+        'css_id' => '',
1097
+        'css_class' => 'section framing container shadow',
1098 1098
     );
1099 1099
     $pane->extras = array();
1100 1100
     $pane->position = 0;
1101 1101
     $display->content['new-1'] = $pane;
1102 1102
     $display->panels['middle'][0] = 'new-1';
1103
-  $display->hide_title = PANELS_TITLE_FIXED;
1104
-  $display->title_pane = '0';
1105
-  $handler->conf['display'] = $display;
1106
-  $page->default_handlers[$handler->name] = $handler;
1107
-  $handler = new stdClass;
1108
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1109
-  $handler->api_version = 1;
1110
-  $handler->name = 'page_view_team_panel_context_6';
1111
-  $handler->task = 'page';
1112
-  $handler->subtask = 'view_team';
1113
-  $handler->handler = 'panel_context';
1114
-  $handler->weight = -25;
1115
-  $handler->conf = array(
1103
+    $display->hide_title = PANELS_TITLE_FIXED;
1104
+    $display->title_pane = '0';
1105
+    $handler->conf['display'] = $display;
1106
+    $page->default_handlers[$handler->name] = $handler;
1107
+    $handler = new stdClass;
1108
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1109
+    $handler->api_version = 1;
1110
+    $handler->name = 'page_view_team_panel_context_6';
1111
+    $handler->task = 'page';
1112
+    $handler->subtask = 'view_team';
1113
+    $handler->handler = 'panel_context';
1114
+    $handler->weight = -25;
1115
+    $handler->conf = array(
1116 1116
     'title' => 'Manage admins',
1117 1117
     'no_blocks' => 0,
1118 1118
     'pipeline' => 'standard',
@@ -1121,58 +1121,58 @@  discard block
 block discarded – undo
1121 1121
     'contexts' => array(),
1122 1122
     'relationships' => array(),
1123 1123
     'access' => array(
1124
-      'plugins' => array(
1124
+        'plugins' => array(
1125 1125
         0 => array(
1126
-          'name' => 'path_visibility',
1127
-          'settings' => array(
1126
+            'name' => 'path_visibility',
1127
+            'settings' => array(
1128 1128
             'visibility_setting' => '1',
1129 1129
             'paths' => 'community/teams/*/edit/admins',
1130
-          ),
1131
-          'context' => 'empty',
1132
-          'not' => FALSE,
1130
+            ),
1131
+            'context' => 'empty',
1132
+            'not' => FALSE,
1133 1133
         ),
1134 1134
         3 => array(
1135
-          'name' => 'role',
1136
-          'settings' => array(
1135
+            'name' => 'role',
1136
+            'settings' => array(
1137 1137
             'rids' => array(
1138
-              0 => 2,
1138
+                0 => 2,
1139
+            ),
1139 1140
             ),
1140
-          ),
1141
-          'context' => 'logged-in-user',
1142
-          'not' => FALSE,
1141
+            'context' => 'logged-in-user',
1142
+            'not' => FALSE,
1143 1143
         ),
1144 1144
         4 => array(
1145
-          'name' => 'php',
1146
-          'settings' => array(
1145
+            'name' => 'php',
1146
+            'settings' => array(
1147 1147
             'description' => 'User is team founder',
1148 1148
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1149 1149
 return boincteam_is_founder($team_id);',
1150
-          ),
1151
-          'not' => FALSE,
1150
+            ),
1151
+            'not' => FALSE,
1152
+        ),
1152 1153
         ),
1153
-      ),
1154
-      'logic' => 'and',
1154
+        'logic' => 'and',
1155 1155
     ),
1156
-  );
1157
-  $display = new panels_display;
1158
-  $display->layout = 'twocol_stacked';
1159
-  $display->layout_settings = array();
1160
-  $display->panel_settings = array(
1156
+    );
1157
+    $display = new panels_display;
1158
+    $display->layout = 'twocol_stacked';
1159
+    $display->layout_settings = array();
1160
+    $display->panel_settings = array(
1161 1161
     'style_settings' => array(
1162
-      'default' => NULL,
1163
-      'left' => NULL,
1164
-      'right' => NULL,
1165
-      'top' => NULL,
1166
-      'bottom' => NULL,
1167
-      'middle' => NULL,
1162
+        'default' => NULL,
1163
+        'left' => NULL,
1164
+        'right' => NULL,
1165
+        'top' => NULL,
1166
+        'bottom' => NULL,
1167
+        'middle' => NULL,
1168 1168
     ),
1169
-  );
1170
-  $display->cache = array();
1171
-  $display->title = 'Teams';
1172
-  $display->storage_type = 'page_manager';
1173
-  $display->storage_id = 'page_view_team_panel_context_6';
1174
-  $display->content = array();
1175
-  $display->panels = array();
1169
+    );
1170
+    $display->cache = array();
1171
+    $display->title = 'Teams';
1172
+    $display->storage_type = 'page_manager';
1173
+    $display->storage_id = 'page_view_team_panel_context_6';
1174
+    $display->content = array();
1175
+    $display->panels = array();
1176 1176
     $pane = new stdClass;
1177 1177
     $pane->pid = 'new-1';
1178 1178
     $pane->panel = 'left';
@@ -1181,17 +1181,17 @@  discard block
 block discarded – undo
1181 1181
     $pane->shown = TRUE;
1182 1182
     $pane->access = array();
1183 1183
     $pane->configuration = array(
1184
-      'items_per_page' => '10',
1185
-      'override_title' => 1,
1186
-      'override_title_text' => 'Manage team admins',
1184
+        'items_per_page' => '10',
1185
+        'override_title' => 1,
1186
+        'override_title_text' => 'Manage team admins',
1187 1187
     );
1188 1188
     $pane->cache = array();
1189 1189
     $pane->style = array(
1190
-      'settings' => NULL,
1190
+        'settings' => NULL,
1191 1191
     );
1192 1192
     $pane->css = array(
1193
-      'css_id' => '',
1194
-      'css_class' => 'panel-primary container shadow',
1193
+        'css_id' => '',
1194
+        'css_class' => 'panel-primary container shadow',
1195 1195
     );
1196 1196
     $pane->extras = array();
1197 1197
     $pane->position = 0;
@@ -1205,37 +1205,37 @@  discard block
 block discarded – undo
1205 1205
     $pane->shown = TRUE;
1206 1206
     $pane->access = array();
1207 1207
     $pane->configuration = array(
1208
-      'admin_title' => 'About team admins',
1209
-      'title' => '',
1210
-      'body' => '<?php echo boincteam_about_admins_panel(); ?>',
1211
-      'format' => '3',
1212
-      'substitute' => 1,
1208
+        'admin_title' => 'About team admins',
1209
+        'title' => '',
1210
+        'body' => '<?php echo boincteam_about_admins_panel(); ?>',
1211
+        'format' => '3',
1212
+        'substitute' => 1,
1213 1213
     );
1214 1214
     $pane->cache = array();
1215 1215
     $pane->style = array(
1216
-      'settings' => NULL,
1216
+        'settings' => NULL,
1217 1217
     );
1218 1218
     $pane->css = array(
1219
-      'css_id' => '',
1220
-      'css_class' => 'panel-secondary container shadow',
1219
+        'css_id' => '',
1220
+        'css_class' => 'panel-secondary container shadow',
1221 1221
     );
1222 1222
     $pane->extras = array();
1223 1223
     $pane->position = 0;
1224 1224
     $display->content['new-2'] = $pane;
1225 1225
     $display->panels['right'][0] = 'new-2';
1226
-  $display->hide_title = PANELS_TITLE_FIXED;
1227
-  $display->title_pane = '0';
1228
-  $handler->conf['display'] = $display;
1229
-  $page->default_handlers[$handler->name] = $handler;
1230
-  $handler = new stdClass;
1231
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1232
-  $handler->api_version = 1;
1233
-  $handler->name = 'page_view_team_panel_context_9';
1234
-  $handler->task = 'page';
1235
-  $handler->subtask = 'view_team';
1236
-  $handler->handler = 'panel_context';
1237
-  $handler->weight = -24;
1238
-  $handler->conf = array(
1226
+    $display->hide_title = PANELS_TITLE_FIXED;
1227
+    $display->title_pane = '0';
1228
+    $handler->conf['display'] = $display;
1229
+    $page->default_handlers[$handler->name] = $handler;
1230
+    $handler = new stdClass;
1231
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1232
+    $handler->api_version = 1;
1233
+    $handler->name = 'page_view_team_panel_context_9';
1234
+    $handler->task = 'page';
1235
+    $handler->subtask = 'view_team';
1236
+    $handler->handler = 'panel_context';
1237
+    $handler->weight = -24;
1238
+    $handler->conf = array(
1239 1239
     'title' => 'Change founder',
1240 1240
     'no_blocks' => 0,
1241 1241
     'pipeline' => 'standard',
@@ -1244,58 +1244,58 @@  discard block
 block discarded – undo
1244 1244
     'contexts' => array(),
1245 1245
     'relationships' => array(),
1246 1246
     'access' => array(
1247
-      'plugins' => array(
1247
+        'plugins' => array(
1248 1248
         0 => array(
1249
-          'name' => 'path_visibility',
1250
-          'settings' => array(
1249
+            'name' => 'path_visibility',
1250
+            'settings' => array(
1251 1251
             'visibility_setting' => '1',
1252 1252
             'paths' => 'community/teams/*/edit/founder',
1253
-          ),
1254
-          'context' => 'empty',
1255
-          'not' => FALSE,
1253
+            ),
1254
+            'context' => 'empty',
1255
+            'not' => FALSE,
1256 1256
         ),
1257 1257
         3 => array(
1258
-          'name' => 'role',
1259
-          'settings' => array(
1258
+            'name' => 'role',
1259
+            'settings' => array(
1260 1260
             'rids' => array(
1261
-              0 => 2,
1261
+                0 => 2,
1262
+            ),
1262 1263
             ),
1263
-          ),
1264
-          'context' => 'logged-in-user',
1265
-          'not' => FALSE,
1264
+            'context' => 'logged-in-user',
1265
+            'not' => FALSE,
1266 1266
         ),
1267 1267
         4 => array(
1268
-          'name' => 'php',
1269
-          'settings' => array(
1268
+            'name' => 'php',
1269
+            'settings' => array(
1270 1270
             'description' => 'User is team founder',
1271 1271
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1272 1272
 return boincteam_is_founder($team_id);',
1273
-          ),
1274
-          'not' => FALSE,
1273
+            ),
1274
+            'not' => FALSE,
1275
+        ),
1275 1276
         ),
1276
-      ),
1277
-      'logic' => 'and',
1277
+        'logic' => 'and',
1278 1278
     ),
1279
-  );
1280
-  $display = new panels_display;
1281
-  $display->layout = 'twocol_stacked';
1282
-  $display->layout_settings = array();
1283
-  $display->panel_settings = array(
1279
+    );
1280
+    $display = new panels_display;
1281
+    $display->layout = 'twocol_stacked';
1282
+    $display->layout_settings = array();
1283
+    $display->panel_settings = array(
1284 1284
     'style_settings' => array(
1285
-      'default' => NULL,
1286
-      'left' => NULL,
1287
-      'right' => NULL,
1288
-      'top' => NULL,
1289
-      'bottom' => NULL,
1290
-      'middle' => NULL,
1285
+        'default' => NULL,
1286
+        'left' => NULL,
1287
+        'right' => NULL,
1288
+        'top' => NULL,
1289
+        'bottom' => NULL,
1290
+        'middle' => NULL,
1291 1291
     ),
1292
-  );
1293
-  $display->cache = array();
1294
-  $display->title = 'Teams';
1295
-  $display->storage_type = 'page_manager';
1296
-  $display->storage_id = 'page_view_team_panel_context_9';
1297
-  $display->content = array();
1298
-  $display->panels = array();
1292
+    );
1293
+    $display->cache = array();
1294
+    $display->title = 'Teams';
1295
+    $display->storage_type = 'page_manager';
1296
+    $display->storage_id = 'page_view_team_panel_context_9';
1297
+    $display->content = array();
1298
+    $display->panels = array();
1299 1299
     $pane = new stdClass;
1300 1300
     $pane->pid = 'new-1';
1301 1301
     $pane->panel = 'left';
@@ -1304,19 +1304,19 @@  discard block
 block discarded – undo
1304 1304
     $pane->shown = TRUE;
1305 1305
     $pane->access = array();
1306 1306
     $pane->configuration = array(
1307
-      'admin_title' => 'Respond to foundership request',
1308
-      'title' => '',
1309
-      'body' => '<?php echo boincteam_request_foundership_response_panel(%team_id:nid); ?>',
1310
-      'format' => '3',
1311
-      'substitute' => 1,
1307
+        'admin_title' => 'Respond to foundership request',
1308
+        'title' => '',
1309
+        'body' => '<?php echo boincteam_request_foundership_response_panel(%team_id:nid); ?>',
1310
+        'format' => '3',
1311
+        'substitute' => 1,
1312 1312
     );
1313 1313
     $pane->cache = array();
1314 1314
     $pane->style = array(
1315
-      'settings' => NULL,
1315
+        'settings' => NULL,
1316 1316
     );
1317 1317
     $pane->css = array(
1318
-      'css_id' => '',
1319
-      'css_class' => 'panel-primary container shadow',
1318
+        'css_id' => '',
1319
+        'css_class' => 'panel-primary container shadow',
1320 1320
     );
1321 1321
     $pane->extras = array();
1322 1322
     $pane->position = 0;
@@ -1330,17 +1330,17 @@  discard block
 block discarded – undo
1330 1330
     $pane->shown = TRUE;
1331 1331
     $pane->access = array();
1332 1332
     $pane->configuration = array(
1333
-      'items_per_page' => '25',
1334
-      'override_title' => 1,
1335
-      'override_title_text' => 'Change founder',
1333
+        'items_per_page' => '25',
1334
+        'override_title' => 1,
1335
+        'override_title_text' => 'Change founder',
1336 1336
     );
1337 1337
     $pane->cache = array();
1338 1338
     $pane->style = array(
1339
-      'settings' => NULL,
1339
+        'settings' => NULL,
1340 1340
     );
1341 1341
     $pane->css = array(
1342
-      'css_id' => '',
1343
-      'css_class' => 'panel-primary container shadow',
1342
+        'css_id' => '',
1343
+        'css_class' => 'panel-primary container shadow',
1344 1344
     );
1345 1345
     $pane->extras = array();
1346 1346
     $pane->position = 1;
@@ -1354,37 +1354,37 @@  discard block
 block discarded – undo
1354 1354
     $pane->shown = TRUE;
1355 1355
     $pane->access = array();
1356 1356
     $pane->configuration = array(
1357
-      'admin_title' => 'About changing team founder',
1358
-      'title' => '',
1359
-      'body' => '<?php echo boincteam_about_founder_panel(); ?>',
1360
-      'format' => '3',
1361
-      'substitute' => 1,
1357
+        'admin_title' => 'About changing team founder',
1358
+        'title' => '',
1359
+        'body' => '<?php echo boincteam_about_founder_panel(); ?>',
1360
+        'format' => '3',
1361
+        'substitute' => 1,
1362 1362
     );
1363 1363
     $pane->cache = array();
1364 1364
     $pane->style = array(
1365
-      'settings' => NULL,
1365
+        'settings' => NULL,
1366 1366
     );
1367 1367
     $pane->css = array(
1368
-      'css_id' => '',
1369
-      'css_class' => 'panel-secondary container shadow',
1368
+        'css_id' => '',
1369
+        'css_class' => 'panel-secondary container shadow',
1370 1370
     );
1371 1371
     $pane->extras = array();
1372 1372
     $pane->position = 0;
1373 1373
     $display->content['new-3'] = $pane;
1374 1374
     $display->panels['right'][0] = 'new-3';
1375
-  $display->hide_title = PANELS_TITLE_FIXED;
1376
-  $display->title_pane = '0';
1377
-  $handler->conf['display'] = $display;
1378
-  $page->default_handlers[$handler->name] = $handler;
1379
-  $handler = new stdClass;
1380
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1381
-  $handler->api_version = 1;
1382
-  $handler->name = 'page_view_team_panel_context_7';
1383
-  $handler->task = 'page';
1384
-  $handler->subtask = 'view_team';
1385
-  $handler->handler = 'panel_context';
1386
-  $handler->weight = -23;
1387
-  $handler->conf = array(
1375
+    $display->hide_title = PANELS_TITLE_FIXED;
1376
+    $display->title_pane = '0';
1377
+    $handler->conf['display'] = $display;
1378
+    $page->default_handlers[$handler->name] = $handler;
1379
+    $handler = new stdClass;
1380
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1381
+    $handler->api_version = 1;
1382
+    $handler->name = 'page_view_team_panel_context_7';
1383
+    $handler->task = 'page';
1384
+    $handler->subtask = 'view_team';
1385
+    $handler->handler = 'panel_context';
1386
+    $handler->weight = -23;
1387
+    $handler->conf = array(
1388 1388
     'title' => 'View forum',
1389 1389
     'no_blocks' => 0,
1390 1390
     'pipeline' => 'standard',
@@ -1393,59 +1393,59 @@  discard block
 block discarded – undo
1393 1393
     'contexts' => array(),
1394 1394
     'relationships' => array(),
1395 1395
     'access' => array(
1396
-      'plugins' => array(
1396
+        'plugins' => array(
1397 1397
         0 => array(
1398
-          'name' => 'path_visibility',
1399
-          'settings' => array(
1398
+            'name' => 'path_visibility',
1399
+            'settings' => array(
1400 1400
             'visibility_setting' => '1',
1401 1401
             'paths' => 'community/teams/*/forum/*',
1402
-          ),
1403
-          'context' => 'empty',
1404
-          'not' => FALSE,
1402
+            ),
1403
+            'context' => 'empty',
1404
+            'not' => FALSE,
1405 1405
         ),
1406 1406
         3 => array(
1407
-          'name' => 'role',
1408
-          'settings' => array(
1407
+            'name' => 'role',
1408
+            'settings' => array(
1409 1409
             'rids' => array(
1410
-              0 => 2,
1410
+                0 => 2,
1411
+            ),
1411 1412
             ),
1412
-          ),
1413
-          'context' => 'logged-in-user',
1414
-          'not' => FALSE,
1413
+            'context' => 'logged-in-user',
1414
+            'not' => FALSE,
1415 1415
         ),
1416 1416
         4 => array(
1417
-          'name' => 'php',
1418
-          'settings' => array(
1417
+            'name' => 'php',
1418
+            'settings' => array(
1419 1419
             'description' => 'A member of this team or the forum is public',
1420 1420
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1421 1421
 $team_forum_id = $contexts[\'argument_string_2\']->data;
1422 1422
 return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));',
1423
-          ),
1424
-          'not' => FALSE,
1423
+            ),
1424
+            'not' => FALSE,
1425 1425
         ),
1426
-      ),
1427
-      'logic' => 'and',
1426
+        ),
1427
+        'logic' => 'and',
1428 1428
     ),
1429
-  );
1430
-  $display = new panels_display;
1431
-  $display->layout = 'onecol';
1432
-  $display->layout_settings = array();
1433
-  $display->panel_settings = array(
1429
+    );
1430
+    $display = new panels_display;
1431
+    $display->layout = 'onecol';
1432
+    $display->layout_settings = array();
1433
+    $display->panel_settings = array(
1434 1434
     'style_settings' => array(
1435
-      'default' => NULL,
1436
-      'left' => NULL,
1437
-      'right' => NULL,
1438
-      'top' => NULL,
1439
-      'bottom' => NULL,
1440
-      'middle' => NULL,
1435
+        'default' => NULL,
1436
+        'left' => NULL,
1437
+        'right' => NULL,
1438
+        'top' => NULL,
1439
+        'bottom' => NULL,
1440
+        'middle' => NULL,
1441 1441
     ),
1442
-  );
1443
-  $display->cache = array();
1444
-  $display->title = 'Teams';
1445
-  $display->storage_type = 'page_manager';
1446
-  $display->storage_id = 'page_view_team_panel_context_7';
1447
-  $display->content = array();
1448
-  $display->panels = array();
1442
+    );
1443
+    $display->cache = array();
1444
+    $display->title = 'Teams';
1445
+    $display->storage_type = 'page_manager';
1446
+    $display->storage_id = 'page_view_team_panel_context_7';
1447
+    $display->content = array();
1448
+    $display->panels = array();
1449 1449
     $pane = new stdClass;
1450 1450
     $pane->pid = 'new-1';
1451 1451
     $pane->panel = 'middle';
@@ -1454,34 +1454,34 @@  discard block
 block discarded – undo
1454 1454
     $pane->shown = TRUE;
1455 1455
     $pane->access = array();
1456 1456
     $pane->configuration = array(
1457
-      'override_title' => 0,
1458
-      'override_title_text' => '',
1457
+        'override_title' => 0,
1458
+        'override_title_text' => '',
1459 1459
     );
1460 1460
     $pane->cache = array();
1461 1461
     $pane->style = array(
1462
-      'settings' => NULL,
1462
+        'settings' => NULL,
1463 1463
     );
1464 1464
     $pane->css = array(
1465
-      'css_id' => '',
1466
-      'css_class' => 'section framing container shadow',
1465
+        'css_id' => '',
1466
+        'css_class' => 'section framing container shadow',
1467 1467
     );
1468 1468
     $pane->extras = array();
1469 1469
     $pane->position = 0;
1470 1470
     $display->content['new-1'] = $pane;
1471 1471
     $display->panels['middle'][0] = 'new-1';
1472
-  $display->hide_title = PANELS_TITLE_FIXED;
1473
-  $display->title_pane = '0';
1474
-  $handler->conf['display'] = $display;
1475
-  $page->default_handlers[$handler->name] = $handler;
1476
-  $handler = new stdClass;
1477
-  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1478
-  $handler->api_version = 1;
1479
-  $handler->name = 'page_view_team_panel_context';
1480
-  $handler->task = 'page';
1481
-  $handler->subtask = 'view_team';
1482
-  $handler->handler = 'panel_context';
1483
-  $handler->weight = -22;
1484
-  $handler->conf = array(
1472
+    $display->hide_title = PANELS_TITLE_FIXED;
1473
+    $display->title_pane = '0';
1474
+    $handler->conf['display'] = $display;
1475
+    $page->default_handlers[$handler->name] = $handler;
1476
+    $handler = new stdClass;
1477
+    $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1478
+    $handler->api_version = 1;
1479
+    $handler->name = 'page_view_team_panel_context';
1480
+    $handler->task = 'page';
1481
+    $handler->subtask = 'view_team';
1482
+    $handler->handler = 'panel_context';
1483
+    $handler->weight = -22;
1484
+    $handler->conf = array(
1485 1485
     'title' => 'View team',
1486 1486
     'no_blocks' => 0,
1487 1487
     'pipeline' => 'standard',
@@ -1490,106 +1490,106 @@  discard block
 block discarded – undo
1490 1490
     'contexts' => array(),
1491 1491
     'relationships' => array(),
1492 1492
     'access' => array(
1493
-      'plugins' => array(
1493
+        'plugins' => array(
1494 1494
         0 => array(
1495
-          'name' => 'node_access',
1496
-          'settings' => array(
1495
+            'name' => 'node_access',
1496
+            'settings' => array(
1497 1497
             'type' => 'view',
1498
-          ),
1499
-          'context' => array(
1498
+            ),
1499
+            'context' => array(
1500 1500
             0 => 'logged-in-user',
1501 1501
             1 => 'argument_nid_1',
1502
-          ),
1503
-          'not' => FALSE,
1502
+            ),
1503
+            'not' => FALSE,
1504
+        ),
1504 1505
         ),
1505
-      ),
1506
-      'logic' => 'and',
1506
+        'logic' => 'and',
1507 1507
     ),
1508
-  );
1509
-  $display = new panels_display;
1510
-  $display->layout = 'twocol_stacked';
1511
-  $display->layout_settings = array(
1508
+    );
1509
+    $display = new panels_display;
1510
+    $display->layout = 'twocol_stacked';
1511
+    $display->layout_settings = array(
1512 1512
     'items' => array(
1513
-      'canvas' => array(
1513
+        'canvas' => array(
1514 1514
         'type' => 'row',
1515 1515
         'contains' => 'column',
1516 1516
         'children' => array(
1517
-          0 => 'main',
1518
-          1 => 2,
1517
+            0 => 'main',
1518
+            1 => 2,
1519 1519
         ),
1520 1520
         'parent' => NULL,
1521
-      ),
1522
-      'main' => array(
1521
+        ),
1522
+        'main' => array(
1523 1523
         'type' => 'column',
1524 1524
         'width' => 50,
1525 1525
         'width_type' => '%',
1526 1526
         'children' => array(
1527
-          0 => 'main-row',
1528
-          1 => 1,
1527
+            0 => 'main-row',
1528
+            1 => 1,
1529 1529
         ),
1530 1530
         'parent' => 'canvas',
1531
-      ),
1532
-      'main-row' => array(
1531
+        ),
1532
+        'main-row' => array(
1533 1533
         'type' => 'row',
1534 1534
         'contains' => 'region',
1535 1535
         'children' => array(
1536
-          0 => 'center',
1536
+            0 => 'center',
1537 1537
         ),
1538 1538
         'parent' => 'main',
1539
-      ),
1540
-      'center' => array(
1539
+        ),
1540
+        'center' => array(
1541 1541
         'type' => 'region',
1542 1542
         'title' => 'Center',
1543 1543
         'width' => 100,
1544 1544
         'width_type' => '%',
1545 1545
         'parent' => 'main-row',
1546
-      ),
1547
-      1 => array(
1546
+        ),
1547
+        1 => array(
1548 1548
         'type' => 'row',
1549 1549
         'contains' => 'region',
1550 1550
         'children' => array(
1551
-          0 => 'top_teams',
1551
+            0 => 'top_teams',
1552 1552
         ),
1553 1553
         'parent' => 'main',
1554 1554
         'class' => 'panel-primary container shadow',
1555
-      ),
1556
-      'top_teams' => array(
1555
+        ),
1556
+        'top_teams' => array(
1557 1557
         'type' => 'region',
1558 1558
         'title' => 'Top teams',
1559 1559
         'width' => 100,
1560 1560
         'width_type' => '%',
1561 1561
         'parent' => '1',
1562 1562
         'class' => 'panel-primary container shadow',
1563
-      ),
1564
-      2 => array(
1563
+        ),
1564
+        2 => array(
1565 1565
         'type' => 'column',
1566 1566
         'width' => 50,
1567 1567
         'width_type' => '%',
1568 1568
         'parent' => 'canvas',
1569 1569
         'children' => array(),
1570 1570
         'class' => '',
1571
-      ),
1571
+        ),
1572 1572
     ),
1573
-  );
1574
-  $display->panel_settings = array(
1573
+    );
1574
+    $display->panel_settings = array(
1575 1575
     'style_settings' => array(
1576
-      'default' => NULL,
1577
-      'center' => NULL,
1578
-      'top_teams' => NULL,
1579
-      'top' => NULL,
1580
-      'left' => NULL,
1581
-      'right' => NULL,
1582
-      'bottom' => NULL,
1583
-      'content' => NULL,
1584
-      'sidebar_first' => NULL,
1576
+        'default' => NULL,
1577
+        'center' => NULL,
1578
+        'top_teams' => NULL,
1579
+        'top' => NULL,
1580
+        'left' => NULL,
1581
+        'right' => NULL,
1582
+        'bottom' => NULL,
1583
+        'content' => NULL,
1584
+        'sidebar_first' => NULL,
1585 1585
     ),
1586
-  );
1587
-  $display->cache = array();
1588
-  $display->title = 'Teams';
1589
-  $display->storage_type = 'page_manager';
1590
-  $display->storage_id = 'page_view_team_panel_context';
1591
-  $display->content = array();
1592
-  $display->panels = array();
1586
+    );
1587
+    $display->cache = array();
1588
+    $display->title = 'Teams';
1589
+    $display->storage_type = 'page_manager';
1590
+    $display->storage_id = 'page_view_team_panel_context';
1591
+    $display->content = array();
1592
+    $display->panels = array();
1593 1593
     $pane = new stdClass;
1594 1594
     $pane->pid = 'new-1';
1595 1595
     $pane->panel = 'left';
@@ -1598,19 +1598,19 @@  discard block
 block discarded – undo
1598 1598
     $pane->shown = TRUE;
1599 1599
     $pane->access = array();
1600 1600
     $pane->configuration = array(
1601
-      'admin_title' => 'Team details',
1602
-      'title' => '',
1603
-      'body' => '<?php echo boincteam_view_team_panel(%team_id:nid); ?>',
1604
-      'format' => '3',
1605
-      'substitute' => 1,
1601
+        'admin_title' => 'Team details',
1602
+        'title' => '',
1603
+        'body' => '<?php echo boincteam_view_team_panel(%team_id:nid); ?>',
1604
+        'format' => '3',
1605
+        'substitute' => 1,
1606 1606
     );
1607 1607
     $pane->cache = array();
1608 1608
     $pane->style = array(
1609
-      'settings' => NULL,
1609
+        'settings' => NULL,
1610 1610
     );
1611 1611
     $pane->css = array(
1612
-      'css_id' => '',
1613
-      'css_class' => 'panel-primary container shadow',
1612
+        'css_id' => '',
1613
+        'css_class' => 'panel-primary container shadow',
1614 1614
     );
1615 1615
     $pane->extras = array();
1616 1616
     $pane->position = 0;
@@ -1623,33 +1623,33 @@  discard block
 block discarded – undo
1623 1623
     $pane->subtype = 'custom';
1624 1624
     $pane->shown = TRUE;
1625 1625
     $pane->access = array(
1626
-      'plugins' => array(
1626
+        'plugins' => array(
1627 1627
         0 => array(
1628
-          'name' => 'php',
1629
-          'settings' => array(
1628
+            'name' => 'php',
1629
+            'settings' => array(
1630 1630
             'description' => 'An admin of this team',
1631 1631
             'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1632 1632
 $team_id = $contexts[\'argument_nid_1\']->data->nid;
1633 1633
 return (boincteam_is_founder($team_id, $uid) OR boincteam_is_admin($team_id, $uid));',
1634
-          ),
1635
-          'not' => FALSE,
1634
+            ),
1635
+            'not' => FALSE,
1636
+        ),
1636 1637
         ),
1637
-      ),
1638 1638
     );
1639 1639
     $pane->configuration = array(
1640
-      'admin_title' => 'Manage team',
1641
-      'title' => '',
1642
-      'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
1643
-      'format' => '3',
1644
-      'substitute' => 1,
1640
+        'admin_title' => 'Manage team',
1641
+        'title' => '',
1642
+        'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
1643
+        'format' => '3',
1644
+        'substitute' => 1,
1645 1645
     );
1646 1646
     $pane->cache = array();
1647 1647
     $pane->style = array(
1648
-      'settings' => NULL,
1648
+        'settings' => NULL,
1649 1649
     );
1650 1650
     $pane->css = array(
1651
-      'css_id' => 'team-management',
1652
-      'css_class' => 'panel-secondary container shadow',
1651
+        'css_id' => 'team-management',
1652
+        'css_class' => 'panel-secondary container shadow',
1653 1653
     );
1654 1654
     $pane->extras = array();
1655 1655
     $pane->position = 0;
@@ -1662,10 +1662,10 @@  discard block
 block discarded – undo
1662 1662
     $pane->subtype = 'custom';
1663 1663
     $pane->shown = TRUE;
1664 1664
     $pane->access = array(
1665
-      'plugins' => array(
1665
+        'plugins' => array(
1666 1666
         0 => array(
1667
-          'name' => 'php',
1668
-          'settings' => array(
1667
+            'name' => 'php',
1668
+            'settings' => array(
1669 1669
             'description' => 'A member of this team, the forum is public, or has global team moderation',
1670 1670
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1671 1671
 return (
@@ -1677,25 +1677,25 @@  discard block
 block discarded – undo
1677 1677
    boincteam_forum_list($team_id)
1678 1678
   )
1679 1679
 );',
1680
-          ),
1681
-          'not' => FALSE,
1680
+            ),
1681
+            'not' => FALSE,
1682
+        ),
1682 1683
         ),
1683
-      ),
1684 1684
     );
1685 1685
     $pane->configuration = array(
1686
-      'admin_title' => 'Team forum',
1687
-      'title' => '',
1688
-      'body' => '<?php print boincteam_forum_link_panel(%team_id:nid); ?>',
1689
-      'format' => '3',
1690
-      'substitute' => 1,
1686
+        'admin_title' => 'Team forum',
1687
+        'title' => '',
1688
+        'body' => '<?php print boincteam_forum_link_panel(%team_id:nid); ?>',
1689
+        'format' => '3',
1690
+        'substitute' => 1,
1691 1691
     );
1692 1692
     $pane->cache = array();
1693 1693
     $pane->style = array(
1694
-      'settings' => NULL,
1694
+        'settings' => NULL,
1695 1695
     );
1696 1696
     $pane->css = array(
1697
-      'css_id' => '',
1698
-      'css_class' => 'panel-secondary container shadow',
1697
+        'css_id' => '',
1698
+        'css_class' => 'panel-secondary container shadow',
1699 1699
     );
1700 1700
     $pane->extras = array();
1701 1701
     $pane->position = 1;
@@ -1708,50 +1708,50 @@  discard block
 block discarded – undo
1708 1708
     $pane->subtype = 'custom';
1709 1709
     $pane->shown = TRUE;
1710 1710
     $pane->access = array(
1711
-      'plugins' => array(
1711
+        'plugins' => array(
1712 1712
         0 => array(
1713
-          'name' => 'php',
1714
-          'settings' => array(
1713
+            'name' => 'php',
1714
+            'settings' => array(
1715 1715
             'description' => 'Not in another team',
1716 1716
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1717 1717
 return ($account->team == 0);',
1718
-          ),
1719
-          'not' => FALSE,
1718
+            ),
1719
+            'not' => FALSE,
1720 1720
         ),
1721 1721
         1 => array(
1722
-          'name' => 'perm',
1723
-          'settings' => array(
1722
+            'name' => 'perm',
1723
+            'settings' => array(
1724 1724
             'perm' => 'join boincteam',
1725
-          ),
1726
-          'context' => 'logged-in-user',
1727
-          'not' => FALSE,
1725
+            ),
1726
+            'context' => 'logged-in-user',
1727
+            'not' => FALSE,
1728 1728
         ),
1729 1729
         2 => array(
1730
-          'name' => 'php',
1731
-          'settings' => array(
1730
+            'name' => 'php',
1731
+            'settings' => array(
1732 1732
             'description' => 'Team is open',
1733 1733
             'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1734 1734
 $boincteam = boincteam_load(boincteam_lookup_id($team_id));
1735 1735
 return $boincteam->joinable;',
1736
-          ),
1737
-          'not' => FALSE,
1736
+            ),
1737
+            'not' => FALSE,
1738
+        ),
1738 1739
         ),
1739
-      ),
1740 1740
     );
1741 1741
     $pane->configuration = array(
1742
-      'admin_title' => 'Join team',
1743
-      'title' => '',
1744
-      'body' => '<?php echo boincteam_join_team_panel(%team_id:nid); ?>',
1745
-      'format' => '3',
1746
-      'substitute' => 1,
1742
+        'admin_title' => 'Join team',
1743
+        'title' => '',
1744
+        'body' => '<?php echo boincteam_join_team_panel(%team_id:nid); ?>',
1745
+        'format' => '3',
1746
+        'substitute' => 1,
1747 1747
     );
1748 1748
     $pane->cache = array();
1749 1749
     $pane->style = array(
1750
-      'settings' => NULL,
1750
+        'settings' => NULL,
1751 1751
     );
1752 1752
     $pane->css = array(
1753
-      'css_id' => '',
1754
-      'css_class' => 'panel-secondary container shadow',
1753
+        'css_id' => '',
1754
+        'css_class' => 'panel-secondary container shadow',
1755 1755
     );
1756 1756
     $pane->extras = array();
1757 1757
     $pane->position = 2;
@@ -1764,32 +1764,32 @@  discard block
 block discarded – undo
1764 1764
     $pane->subtype = 'custom';
1765 1765
     $pane->shown = TRUE;
1766 1766
     $pane->access = array(
1767
-      'plugins' => array(
1767
+        'plugins' => array(
1768 1768
         0 => array(
1769
-          'name' => 'php',
1770
-          'settings' => array(
1769
+            'name' => 'php',
1770
+            'settings' => array(
1771 1771
             'description' => 'A member of this team',
1772 1772
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1773 1773
 return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1774
-          ),
1775
-          'not' => FALSE,
1774
+            ),
1775
+            'not' => FALSE,
1776
+        ),
1776 1777
         ),
1777
-      ),
1778 1778
     );
1779 1779
     $pane->configuration = array(
1780
-      'admin_title' => 'Leave team',
1781
-      'title' => '',
1782
-      'body' => '<?php echo boincteam_leave_team_panel(%team_id:nid); ?>',
1783
-      'format' => '3',
1784
-      'substitute' => 1,
1780
+        'admin_title' => 'Leave team',
1781
+        'title' => '',
1782
+        'body' => '<?php echo boincteam_leave_team_panel(%team_id:nid); ?>',
1783
+        'format' => '3',
1784
+        'substitute' => 1,
1785 1785
     );
1786 1786
     $pane->cache = array();
1787 1787
     $pane->style = array(
1788
-      'settings' => NULL,
1788
+        'settings' => NULL,
1789 1789
     );
1790 1790
     $pane->css = array(
1791
-      'css_id' => '',
1792
-      'css_class' => 'panel-secondary container shadow',
1791
+        'css_id' => '',
1792
+        'css_class' => 'panel-secondary container shadow',
1793 1793
     );
1794 1794
     $pane->extras = array();
1795 1795
     $pane->position = 3;
@@ -1802,42 +1802,42 @@  discard block
 block discarded – undo
1802 1802
     $pane->subtype = 'custom';
1803 1803
     $pane->shown = TRUE;
1804 1804
     $pane->access = array(
1805
-      'plugins' => array(
1805
+        'plugins' => array(
1806 1806
         0 => array(
1807
-          'name' => 'php',
1808
-          'settings' => array(
1807
+            'name' => 'php',
1808
+            'settings' => array(
1809 1809
             'description' => 'A member of this team',
1810 1810
             'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1811 1811
 return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1812
-          ),
1813
-          'not' => FALSE,
1812
+            ),
1813
+            'not' => FALSE,
1814 1814
         ),
1815 1815
         1 => array(
1816
-          'name' => 'php',
1817
-          'settings' => array(
1816
+            'name' => 'php',
1817
+            'settings' => array(
1818 1818
             'description' => 'User is team founder',
1819 1819
             'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1820 1820
 $team_id = $contexts[\'argument_nid_1\']->data->nid;
1821 1821
 return boincteam_is_founder($team_id, $uid);',
1822
-          ),
1823
-          'not' => TRUE,
1822
+            ),
1823
+            'not' => TRUE,
1824
+        ),
1824 1825
         ),
1825
-      ),
1826 1826
     );
1827 1827
     $pane->configuration = array(
1828
-      'admin_title' => 'Request foundership',
1829
-      'title' => '',
1830
-      'body' => '<?php echo boincteam_request_foundership_panel(%team_id:nid); ?>',
1831
-      'format' => '3',
1832
-      'substitute' => 1,
1828
+        'admin_title' => 'Request foundership',
1829
+        'title' => '',
1830
+        'body' => '<?php echo boincteam_request_foundership_panel(%team_id:nid); ?>',
1831
+        'format' => '3',
1832
+        'substitute' => 1,
1833 1833
     );
1834 1834
     $pane->cache = array();
1835 1835
     $pane->style = array(
1836
-      'settings' => NULL,
1836
+        'settings' => NULL,
1837 1837
     );
1838 1838
     $pane->css = array(
1839
-      'css_id' => '',
1840
-      'css_class' => 'panel-secondary container shadow',
1839
+        'css_id' => '',
1840
+        'css_class' => 'panel-secondary container shadow',
1841 1841
     );
1842 1842
     $pane->extras = array();
1843 1843
     $pane->position = 4;
@@ -1851,30 +1851,30 @@  discard block
 block discarded – undo
1851 1851
     $pane->shown = TRUE;
1852 1852
     $pane->access = array();
1853 1853
     $pane->configuration = array(
1854
-      'admin_title' => 'Search teams',
1855
-      'title' => '',
1856
-      'body' => '<?php echo boincteam_search_panel(); ?>',
1857
-      'format' => '3',
1858
-      'substitute' => TRUE,
1854
+        'admin_title' => 'Search teams',
1855
+        'title' => '',
1856
+        'body' => '<?php echo boincteam_search_panel(); ?>',
1857
+        'format' => '3',
1858
+        'substitute' => TRUE,
1859 1859
     );
1860 1860
     $pane->cache = array();
1861 1861
     $pane->style = array(
1862
-      'settings' => NULL,
1862
+        'settings' => NULL,
1863 1863
     );
1864 1864
     $pane->css = array(
1865
-      'css_id' => '',
1866
-      'css_class' => 'panel-secondary container shadow',
1865
+        'css_id' => '',
1866
+        'css_class' => 'panel-secondary container shadow',
1867 1867
     );
1868 1868
     $pane->extras = array();
1869 1869
     $pane->position = 5;
1870 1870
     $display->content['new-7'] = $pane;
1871 1871
     $display->panels['right'][5] = 'new-7';
1872
-  $display->hide_title = PANELS_TITLE_FIXED;
1873
-  $display->title_pane = 'new-1';
1874
-  $handler->conf['display'] = $display;
1875
-  $page->default_handlers[$handler->name] = $handler;
1876
-  $pages['view_team'] = $page;
1872
+    $display->hide_title = PANELS_TITLE_FIXED;
1873
+    $display->title_pane = 'new-1';
1874
+    $handler->conf['display'] = $display;
1875
+    $page->default_handlers[$handler->name] = $handler;
1876
+    $pages['view_team'] = $page;
1877 1877
 
1878
- return $pages;
1878
+    return $pages;
1879 1879
 
1880 1880
 }
Please login to merge, or discard this patch.