Completed
Pull Request — master (#2659)
by Christian
10:33
created
sites/all/features/spam_controls/spam_controls.features.user_permission.inc 1 patch
Switch Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -4,37 +4,37 @@
 block discarded – undo
4 4
  * Implementation of hook_user_default_permissions().
5 5
  */
6 6
 function spam_controls_user_default_permissions() {
7
-  $permissions = array();
7
+$permissions = array();
8 8
 
9
-  // Exported permission: administer CAPTCHA settings
10
-  $permissions['administer CAPTCHA settings'] = array(
11
-    'name' => 'administer CAPTCHA settings',
12
-    'roles' => array(
13
-      '0' => 'administrator',
14
-    ),
15
-  );
9
+// Exported permission: administer CAPTCHA settings
10
+$permissions['administer CAPTCHA settings'] = array(
11
+'name' => 'administer CAPTCHA settings',
12
+'roles' => array(
13
+  '0' => 'administrator',
14
+),
15
+);
16 16
 
17
-  // Exported permission: administer recaptcha
18
-  $permissions['administer recaptcha'] = array(
19
-    'name' => 'administer recaptcha',
20
-    'roles' => array(
21
-      '0' => 'administrator',
22
-    ),
23
-  );
17
+// Exported permission: administer recaptcha
18
+$permissions['administer recaptcha'] = array(
19
+'name' => 'administer recaptcha',
20
+'roles' => array(
21
+  '0' => 'administrator',
22
+),
23
+);
24 24
 
25
-  // Exported permission: administer spamicide
26
-  $permissions['administer spamicide'] = array(
27
-    'name' => 'administer spamicide',
28
-    'roles' => array(
29
-      '0' => 'administrator',
30
-    ),
31
-  );
25
+// Exported permission: administer spamicide
26
+$permissions['administer spamicide'] = array(
27
+'name' => 'administer spamicide',
28
+'roles' => array(
29
+  '0' => 'administrator',
30
+),
31
+);
32 32
 
33
-  // Exported permission: skip CAPTCHA
34
-  $permissions['skip CAPTCHA'] = array(
35
-    'name' => 'skip CAPTCHA',
36
-    'roles' => array(),
37
-  );
33
+// Exported permission: skip CAPTCHA
34
+$permissions['skip CAPTCHA'] = array(
35
+'name' => 'skip CAPTCHA',
36
+'roles' => array(),
37
+);
38 38
 
39
-  return $permissions;
39
+return $permissions;
40 40
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/spam_controls/spam_controls.module 1 patch
Switch Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 
5 5
 
6 6
 function spam_controls_menu() {
7
-  $items['user/register']['page access'] = FALSE;
8
-  $items['user/registration'] = array(
9
-    'title' => 'Create new account',
10
-    'page callback' => 'drupal_get_form',
11
-    'page arguments' => array('user_register'),
12
-    'access callback' => 'user_register_access',
13
-    'type' => MENU_LOCAL_TASK,
14
-    'file' => 'user.pages.inc',
15
-    'file path' => drupal_get_path('module', 'user'),
16
-  );
7
+$items['user/register']['page access'] = FALSE;
8
+$items['user/registration'] = array(
9
+'title' => 'Create new account',
10
+'page callback' => 'drupal_get_form',
11
+'page arguments' => array('user_register'),
12
+'access callback' => 'user_register_access',
13
+'type' => MENU_LOCAL_TASK,
14
+'file' => 'user.pages.inc',
15
+'file path' => drupal_get_path('module', 'user'),
16
+);
17 17
   
18
-  return $items;
18
+return $items;
19 19
 }
Please login to merge, or discard this patch.
all/features/boinc_server_migration/boinc_server_migration.features.inc 1 patch
Switch Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function boinc_server_migration_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "strongarm" && $api == "strongarm") {
9
-    return array("version" => 1);
10
-  }
7
+list($module, $api) = func_get_args();
8
+if ($module == "strongarm" && $api == "strongarm") {
9
+return array("version" => 1);
10
+}
11 11
 }
Please login to merge, or discard this patch.
all/features/boinc_server_migration/boinc_server_migration.strongarm.inc 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,14 +4,14 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function boinc_server_migration_strongarm() {
7
-  $export = array();
7
+$export = array();
8 8
 
9
-  $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
-  $strongarm->api_version = 1;
12
-  $strongarm->name = 'boincimport_input_format';
13
-  $strongarm->value = '4';
14
-  $export['boincimport_input_format'] = $strongarm;
9
+$strongarm = new stdClass;
10
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
+$strongarm->api_version = 1;
12
+$strongarm->name = 'boincimport_input_format';
13
+$strongarm->value = '4';
14
+$export['boincimport_input_format'] = $strongarm;
15 15
 
16
-  return $export;
16
+return $export;
17 17
 }
Please login to merge, or discard this patch.
all/features/work_and_host_stats/work_and_host_stats.pages_default.inc 1 patch
Switch Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -4,139 +4,139 @@
 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(
16
-    'type' => 'none',
17
-    'settings' => NULL,
18
-  );
19
-  $page->menu = array(
20
-    'type' => 'normal',
21
-    'title' => 'Statistics',
22
-    'name' => 'primary-links',
23
-    'weight' => '20',
24
-    'parent' => array(
25
-      'type' => 'none',
26
-      'title' => '',
27
-      'name' => 'navigation',
28
-      'weight' => '0',
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(
43
-    'title' => 'Panel',
44
-    'no_blocks' => 0,
45
-    'pipeline' => 'standard',
46
-    'css_id' => '',
47
-    'css' => '',
48
-    'contexts' => array(),
49
-    'relationships' => array(),
50
-  );
51
-  $display = new panels_display;
52
-  $display->layout = 'onecol';
53
-  $display->layout_settings = array();
54
-  $display->panel_settings = array(
55
-    'style_settings' => array(
56
-      'default' => NULL,
57
-      'middle' => NULL,
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();
66
-    $pane = new stdClass;
67
-    $pane->pid = 'new-1';
68
-    $pane->panel = 'middle';
69
-    $pane->type = 'views_panes';
70
-    $pane->subtype = 'boinc_users-panel_pane_1';
71
-    $pane->shown = TRUE;
72
-    $pane->access = array();
73
-    $pane->configuration = array();
74
-    $pane->cache = array();
75
-    $pane->style = array(
76
-      'settings' => NULL,
77
-    );
78
-    $pane->css = array(
79
-      'css_id' => '',
80
-      'css_class' => 'panel-primary container shadow',
81
-    );
82
-    $pane->extras = array();
83
-    $pane->position = 0;
84
-    $display->content['new-1'] = $pane;
85
-    $display->panels['middle'][0] = 'new-1';
86
-    $pane = new stdClass;
87
-    $pane->pid = 'new-2';
88
-    $pane->panel = 'middle';
89
-    $pane->type = 'views_panes';
90
-    $pane->subtype = 'boinc_host_list-panel_pane_1';
91
-    $pane->shown = TRUE;
92
-    $pane->access = array();
93
-    $pane->configuration = array();
94
-    $pane->cache = array();
95
-    $pane->style = array(
96
-      'settings' => NULL,
97
-    );
98
-    $pane->css = array(
99
-      'css_id' => '',
100
-      'css_class' => 'panel-primary container shadow',
101
-    );
102
-    $pane->extras = array();
103
-    $pane->position = 1;
104
-    $display->content['new-2'] = $pane;
105
-    $display->panels['middle'][1] = 'new-2';
106
-    $pane = new stdClass;
107
-    $pane->pid = 'new-3';
108
-    $pane->panel = 'middle';
109
-    $pane->type = 'views_panes';
110
-    $pane->subtype = 'boinc_teams-panel_pane_4';
111
-    $pane->shown = TRUE;
112
-    $pane->access = array();
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' => '',
121
-    );
122
-    $pane->cache = array();
123
-    $pane->style = array(
124
-      'settings' => NULL,
125
-    );
126
-    $pane->css = array(
127
-      'css_id' => '',
128
-      'css_class' => 'panel-primary container shadow',
129
-    );
130
-    $pane->extras = array();
131
-    $pane->position = 2;
132
-    $display->content['new-3'] = $pane;
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;
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
+'type' => 'none',
17
+'settings' => NULL,
18
+);
19
+$page->menu = array(
20
+'type' => 'normal',
21
+'title' => 'Statistics',
22
+'name' => 'primary-links',
23
+'weight' => '20',
24
+'parent' => array(
25
+  'type' => 'none',
26
+  'title' => '',
27
+  'name' => 'navigation',
28
+  'weight' => '0',
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(
43
+'title' => 'Panel',
44
+'no_blocks' => 0,
45
+'pipeline' => 'standard',
46
+'css_id' => '',
47
+'css' => '',
48
+'contexts' => array(),
49
+'relationships' => array(),
50
+);
51
+$display = new panels_display;
52
+$display->layout = 'onecol';
53
+$display->layout_settings = array();
54
+$display->panel_settings = array(
55
+'style_settings' => array(
56
+  'default' => NULL,
57
+  'middle' => NULL,
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();
66
+$pane = new stdClass;
67
+$pane->pid = 'new-1';
68
+$pane->panel = 'middle';
69
+$pane->type = 'views_panes';
70
+$pane->subtype = 'boinc_users-panel_pane_1';
71
+$pane->shown = TRUE;
72
+$pane->access = array();
73
+$pane->configuration = array();
74
+$pane->cache = array();
75
+$pane->style = array(
76
+  'settings' => NULL,
77
+);
78
+$pane->css = array(
79
+  'css_id' => '',
80
+  'css_class' => 'panel-primary container shadow',
81
+);
82
+$pane->extras = array();
83
+$pane->position = 0;
84
+$display->content['new-1'] = $pane;
85
+$display->panels['middle'][0] = 'new-1';
86
+$pane = new stdClass;
87
+$pane->pid = 'new-2';
88
+$pane->panel = 'middle';
89
+$pane->type = 'views_panes';
90
+$pane->subtype = 'boinc_host_list-panel_pane_1';
91
+$pane->shown = TRUE;
92
+$pane->access = array();
93
+$pane->configuration = array();
94
+$pane->cache = array();
95
+$pane->style = array(
96
+  'settings' => NULL,
97
+);
98
+$pane->css = array(
99
+  'css_id' => '',
100
+  'css_class' => 'panel-primary container shadow',
101
+);
102
+$pane->extras = array();
103
+$pane->position = 1;
104
+$display->content['new-2'] = $pane;
105
+$display->panels['middle'][1] = 'new-2';
106
+$pane = new stdClass;
107
+$pane->pid = 'new-3';
108
+$pane->panel = 'middle';
109
+$pane->type = 'views_panes';
110
+$pane->subtype = 'boinc_teams-panel_pane_4';
111
+$pane->shown = TRUE;
112
+$pane->access = array();
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' => '',
121
+);
122
+$pane->cache = array();
123
+$pane->style = array(
124
+  'settings' => NULL,
125
+);
126
+$pane->css = array(
127
+  'css_id' => '',
128
+  'css_class' => 'panel-primary container shadow',
129
+);
130
+$pane->extras = array();
131
+$pane->position = 2;
132
+$display->content['new-3'] = $pane;
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;
139 139
 
140
- return $pages;
140
+return $pages;
141 141
 
142 142
 }
Please login to merge, or discard this patch.
all/features/work_and_host_stats/work_and_host_stats.views_default.inc 1 patch
Switch Indentation   +12635 added lines, -12635 removed lines patch added patch discarded remove patch
@@ -4,538 +4,538 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_views_default_views().
5 5
  */
6 6
 function work_and_host_stats_views_default_views() {
7
-  $views = array();
7
+$views = array();
8 8
 
9
-  // Exported view: boinc_account_tasks_all
10
-  $view = new view;
11
-  $view->name = 'boinc_account_tasks_all';
12
-  $view->description = 'A list of all tasks for a user';
13
-  $view->tag = '';
14
-  $view->base_table = 'result';
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
-    'name' => array(
21
-      'label' => 'Name',
22
-      'alter' => array(
23
-        'alter_text' => 0,
24
-        'text' => '',
25
-        'make_link' => 0,
26
-        'path' => '',
27
-        'absolute' => 0,
28
-        'link_class' => '',
29
-        'alt' => '',
30
-        'rel' => '',
31
-        'prefix' => '',
32
-        'suffix' => '',
33
-        'target' => '',
34
-        'help' => '',
35
-        'trim' => 0,
36
-        'max_length' => '',
37
-        'word_boundary' => 1,
38
-        'ellipsis' => 1,
39
-        'html' => 0,
40
-        'strip_tags' => 0,
41
-      ),
42
-      'empty' => '',
43
-      'hide_empty' => 0,
44
-      'empty_zero' => 0,
45
-      'hide_alter_empty' => 1,
46
-      'exclude' => 1,
47
-      'id' => 'name',
48
-      'table' => 'result',
49
-      'field' => 'name',
50
-      'relationship' => 'none',
51
-    ),
52
-    'id' => array(
53
-      'label' => 'Task ID',
54
-      'alter' => array(
55
-        'alter_text' => 0,
56
-        'text' => '',
57
-        'make_link' => 0,
58
-        'path' => 'task/[id]',
59
-        'absolute' => 0,
60
-        'link_class' => '',
61
-        'alt' => '',
62
-        'rel' => '',
63
-        'prefix' => '',
64
-        'suffix' => '',
65
-        'target' => '',
66
-        'help' => '',
67
-        'trim' => 0,
68
-        'max_length' => '',
69
-        'word_boundary' => 1,
70
-        'ellipsis' => 1,
71
-        'html' => 0,
72
-        'strip_tags' => 0,
73
-      ),
74
-      'empty' => '',
75
-      'hide_empty' => 0,
76
-      'empty_zero' => 0,
77
-      'hide_alter_empty' => 1,
78
-      'set_precision' => FALSE,
79
-      'precision' => 0,
80
-      'decimal' => '.',
81
-      'separator' => '',
82
-      'format_plural' => 0,
83
-      'format_plural_singular' => '1',
84
-      'format_plural_plural' => '@count',
85
-      'prefix' => '',
86
-      'suffix' => '',
87
-      'exclude' => 0,
88
-      'id' => 'id',
89
-      'table' => 'result',
90
-      'field' => 'id',
91
-      'relationship' => 'none',
92
-    ),
93
-    'workunitid' => array(
94
-      'label' => 'Workunit ID',
95
-      'alter' => array(
96
-        'alter_text' => 0,
97
-        'text' => '',
98
-        'make_link' => 1,
99
-        'path' => 'workunit/[workunitid]',
100
-        'absolute' => 0,
101
-        'link_class' => '',
102
-        'alt' => '',
103
-        'rel' => '',
104
-        'prefix' => '',
105
-        'suffix' => '',
106
-        'target' => '',
107
-        'help' => '',
108
-        'trim' => 0,
109
-        'max_length' => '',
110
-        'word_boundary' => 1,
111
-        'ellipsis' => 1,
112
-        'html' => 0,
113
-        'strip_tags' => 0,
114
-      ),
115
-      'empty' => '',
116
-      'hide_empty' => 0,
117
-      'empty_zero' => 0,
118
-      'hide_alter_empty' => 1,
119
-      'set_precision' => FALSE,
120
-      'precision' => 0,
121
-      'decimal' => '.',
122
-      'separator' => '',
123
-      'format_plural' => 0,
124
-      'format_plural_singular' => '1',
125
-      'format_plural_plural' => '@count',
126
-      'prefix' => '',
127
-      'suffix' => '',
128
-      'exclude' => 0,
129
-      'id' => 'workunitid',
130
-      'table' => 'result',
131
-      'field' => 'workunitid',
132
-      'relationship' => 'none',
133
-    ),
134
-    'hostid' => array(
135
-      'label' => 'Computer',
136
-      'alter' => array(
137
-        'alter_text' => 0,
138
-        'text' => '',
139
-        'make_link' => 1,
140
-        'path' => 'host/[hostid]',
141
-        'absolute' => 0,
142
-        'link_class' => '',
143
-        'alt' => '',
144
-        'rel' => '',
145
-        'prefix' => '',
146
-        'suffix' => '',
147
-        'target' => '',
148
-        'help' => '',
149
-        'trim' => 0,
150
-        'max_length' => '',
151
-        'word_boundary' => 1,
152
-        'ellipsis' => 1,
153
-        'html' => 0,
154
-        'strip_tags' => 0,
155
-      ),
156
-      'empty' => '',
157
-      'hide_empty' => 0,
158
-      'empty_zero' => 0,
159
-      'hide_alter_empty' => 1,
160
-      'set_precision' => FALSE,
161
-      'precision' => 0,
162
-      'decimal' => '.',
163
-      'separator' => '',
164
-      'format_plural' => 0,
165
-      'format_plural_singular' => '1',
166
-      'format_plural_plural' => '@count',
167
-      'prefix' => '',
168
-      'suffix' => '',
169
-      'exclude' => 0,
170
-      'id' => 'hostid',
171
-      'table' => 'result',
172
-      'field' => 'hostid',
173
-      'relationship' => 'none',
174
-    ),
175
-    'sent_time' => array(
176
-      'label' => 'Sent',
177
-      'alter' => array(
178
-        'alter_text' => 0,
179
-        'text' => '',
180
-        'make_link' => 0,
181
-        'path' => '',
182
-        'link_class' => '',
183
-        'alt' => '',
184
-        'prefix' => '',
185
-        'suffix' => '',
186
-        'target' => '',
187
-        'help' => '',
188
-        'trim' => 0,
189
-        'max_length' => '',
190
-        'word_boundary' => 1,
191
-        'ellipsis' => 1,
192
-        'html' => 0,
193
-        'strip_tags' => 0,
194
-      ),
195
-      'empty' => '',
196
-      'hide_empty' => 0,
197
-      'empty_zero' => 0,
198
-      'date_format' => 'custom',
199
-      'custom_date_format' => 'j M Y G:i:s T',
200
-      'exclude' => 1,
201
-      'id' => 'sent_time',
202
-      'table' => 'result',
203
-      'field' => 'sent_time',
204
-      'relationship' => 'none',
205
-    ),
206
-    'received_time' => array(
207
-      'label' => 'Received time',
208
-      'alter' => array(
209
-        'alter_text' => 0,
210
-        'text' => '',
211
-        'make_link' => 0,
212
-        'path' => '',
213
-        'link_class' => '',
214
-        'alt' => '',
215
-        'prefix' => '',
216
-        'suffix' => '',
217
-        'target' => '',
218
-        'help' => '',
219
-        'trim' => 0,
220
-        'max_length' => '',
221
-        'word_boundary' => 1,
222
-        'ellipsis' => 1,
223
-        'html' => 0,
224
-        'strip_tags' => 0,
225
-      ),
226
-      'empty' => '',
227
-      'hide_empty' => 0,
228
-      'empty_zero' => 0,
229
-      'date_format' => 'small',
230
-      'custom_date_format' => '',
231
-      'exclude' => 1,
232
-      'id' => 'received_time',
233
-      'table' => 'result',
234
-      'field' => 'received_time',
235
-      'relationship' => 'none',
236
-    ),
237
-    'report_deadline' => array(
238
-      'label' => 'Report deadline',
239
-      'alter' => array(
240
-        'alter_text' => 0,
241
-        'text' => '',
242
-        'make_link' => 0,
243
-        'path' => '',
244
-        'link_class' => '',
245
-        'alt' => '',
246
-        'prefix' => '',
247
-        'suffix' => '',
248
-        'target' => '',
249
-        'help' => '',
250
-        'trim' => 0,
251
-        'max_length' => '',
252
-        'word_boundary' => 1,
253
-        'ellipsis' => 1,
254
-        'html' => 0,
255
-        'strip_tags' => 0,
256
-      ),
257
-      'empty' => '',
258
-      'hide_empty' => 0,
259
-      'empty_zero' => 0,
260
-      'date_format' => 'small',
261
-      'custom_date_format' => '',
262
-      'exclude' => 1,
263
-      'id' => 'report_deadline',
264
-      'table' => 'result',
265
-      'field' => 'report_deadline',
266
-      'relationship' => 'none',
267
-    ),
268
-    'phpcode_3' => array(
269
-      'label' => 'Sent',
270
-      'alter' => array(
271
-        'alter_text' => 0,
272
-        'text' => '',
273
-        'make_link' => 0,
274
-        'path' => '',
275
-        'absolute' => 0,
276
-        'link_class' => '',
277
-        'alt' => '',
278
-        'rel' => '',
279
-        'prefix' => '',
280
-        'suffix' => '',
281
-        'target' => '',
282
-        'help' => '',
283
-        'trim' => 0,
284
-        'max_length' => '',
285
-        'word_boundary' => 1,
286
-        'ellipsis' => 1,
287
-        'html' => 0,
288
-        'strip_tags' => 0,
289
-      ),
290
-      'empty' => '',
291
-      'hide_empty' => 0,
292
-      'empty_zero' => 0,
293
-      'hide_alter_empty' => 1,
294
-      'value' => '<?php
9
+// Exported view: boinc_account_tasks_all
10
+$view = new view;
11
+$view->name = 'boinc_account_tasks_all';
12
+$view->description = 'A list of all tasks for a user';
13
+$view->tag = '';
14
+$view->base_table = 'result';
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
+'name' => array(
21
+  'label' => 'Name',
22
+  'alter' => array(
23
+    'alter_text' => 0,
24
+    'text' => '',
25
+    'make_link' => 0,
26
+    'path' => '',
27
+    'absolute' => 0,
28
+    'link_class' => '',
29
+    'alt' => '',
30
+    'rel' => '',
31
+    'prefix' => '',
32
+    'suffix' => '',
33
+    'target' => '',
34
+    'help' => '',
35
+    'trim' => 0,
36
+    'max_length' => '',
37
+    'word_boundary' => 1,
38
+    'ellipsis' => 1,
39
+    'html' => 0,
40
+    'strip_tags' => 0,
41
+  ),
42
+  'empty' => '',
43
+  'hide_empty' => 0,
44
+  'empty_zero' => 0,
45
+  'hide_alter_empty' => 1,
46
+  'exclude' => 1,
47
+  'id' => 'name',
48
+  'table' => 'result',
49
+  'field' => 'name',
50
+  'relationship' => 'none',
51
+),
52
+'id' => array(
53
+  'label' => 'Task ID',
54
+  'alter' => array(
55
+    'alter_text' => 0,
56
+    'text' => '',
57
+    'make_link' => 0,
58
+    'path' => 'task/[id]',
59
+    'absolute' => 0,
60
+    'link_class' => '',
61
+    'alt' => '',
62
+    'rel' => '',
63
+    'prefix' => '',
64
+    'suffix' => '',
65
+    'target' => '',
66
+    'help' => '',
67
+    'trim' => 0,
68
+    'max_length' => '',
69
+    'word_boundary' => 1,
70
+    'ellipsis' => 1,
71
+    'html' => 0,
72
+    'strip_tags' => 0,
73
+  ),
74
+  'empty' => '',
75
+  'hide_empty' => 0,
76
+  'empty_zero' => 0,
77
+  'hide_alter_empty' => 1,
78
+  'set_precision' => FALSE,
79
+  'precision' => 0,
80
+  'decimal' => '.',
81
+  'separator' => '',
82
+  'format_plural' => 0,
83
+  'format_plural_singular' => '1',
84
+  'format_plural_plural' => '@count',
85
+  'prefix' => '',
86
+  'suffix' => '',
87
+  'exclude' => 0,
88
+  'id' => 'id',
89
+  'table' => 'result',
90
+  'field' => 'id',
91
+  'relationship' => 'none',
92
+),
93
+'workunitid' => array(
94
+  'label' => 'Workunit ID',
95
+  'alter' => array(
96
+    'alter_text' => 0,
97
+    'text' => '',
98
+    'make_link' => 1,
99
+    'path' => 'workunit/[workunitid]',
100
+    'absolute' => 0,
101
+    'link_class' => '',
102
+    'alt' => '',
103
+    'rel' => '',
104
+    'prefix' => '',
105
+    'suffix' => '',
106
+    'target' => '',
107
+    'help' => '',
108
+    'trim' => 0,
109
+    'max_length' => '',
110
+    'word_boundary' => 1,
111
+    'ellipsis' => 1,
112
+    'html' => 0,
113
+    'strip_tags' => 0,
114
+  ),
115
+  'empty' => '',
116
+  'hide_empty' => 0,
117
+  'empty_zero' => 0,
118
+  'hide_alter_empty' => 1,
119
+  'set_precision' => FALSE,
120
+  'precision' => 0,
121
+  'decimal' => '.',
122
+  'separator' => '',
123
+  'format_plural' => 0,
124
+  'format_plural_singular' => '1',
125
+  'format_plural_plural' => '@count',
126
+  'prefix' => '',
127
+  'suffix' => '',
128
+  'exclude' => 0,
129
+  'id' => 'workunitid',
130
+  'table' => 'result',
131
+  'field' => 'workunitid',
132
+  'relationship' => 'none',
133
+),
134
+'hostid' => array(
135
+  'label' => 'Computer',
136
+  'alter' => array(
137
+    'alter_text' => 0,
138
+    'text' => '',
139
+    'make_link' => 1,
140
+    'path' => 'host/[hostid]',
141
+    'absolute' => 0,
142
+    'link_class' => '',
143
+    'alt' => '',
144
+    'rel' => '',
145
+    'prefix' => '',
146
+    'suffix' => '',
147
+    'target' => '',
148
+    'help' => '',
149
+    'trim' => 0,
150
+    'max_length' => '',
151
+    'word_boundary' => 1,
152
+    'ellipsis' => 1,
153
+    'html' => 0,
154
+    'strip_tags' => 0,
155
+  ),
156
+  'empty' => '',
157
+  'hide_empty' => 0,
158
+  'empty_zero' => 0,
159
+  'hide_alter_empty' => 1,
160
+  'set_precision' => FALSE,
161
+  'precision' => 0,
162
+  'decimal' => '.',
163
+  'separator' => '',
164
+  'format_plural' => 0,
165
+  'format_plural_singular' => '1',
166
+  'format_plural_plural' => '@count',
167
+  'prefix' => '',
168
+  'suffix' => '',
169
+  'exclude' => 0,
170
+  'id' => 'hostid',
171
+  'table' => 'result',
172
+  'field' => 'hostid',
173
+  'relationship' => 'none',
174
+),
175
+'sent_time' => array(
176
+  'label' => 'Sent',
177
+  'alter' => array(
178
+    'alter_text' => 0,
179
+    'text' => '',
180
+    'make_link' => 0,
181
+    'path' => '',
182
+    'link_class' => '',
183
+    'alt' => '',
184
+    'prefix' => '',
185
+    'suffix' => '',
186
+    'target' => '',
187
+    'help' => '',
188
+    'trim' => 0,
189
+    'max_length' => '',
190
+    'word_boundary' => 1,
191
+    'ellipsis' => 1,
192
+    'html' => 0,
193
+    'strip_tags' => 0,
194
+  ),
195
+  'empty' => '',
196
+  'hide_empty' => 0,
197
+  'empty_zero' => 0,
198
+  'date_format' => 'custom',
199
+  'custom_date_format' => 'j M Y G:i:s T',
200
+  'exclude' => 1,
201
+  'id' => 'sent_time',
202
+  'table' => 'result',
203
+  'field' => 'sent_time',
204
+  'relationship' => 'none',
205
+),
206
+'received_time' => array(
207
+  'label' => 'Received time',
208
+  'alter' => array(
209
+    'alter_text' => 0,
210
+    'text' => '',
211
+    'make_link' => 0,
212
+    'path' => '',
213
+    'link_class' => '',
214
+    'alt' => '',
215
+    'prefix' => '',
216
+    'suffix' => '',
217
+    'target' => '',
218
+    'help' => '',
219
+    'trim' => 0,
220
+    'max_length' => '',
221
+    'word_boundary' => 1,
222
+    'ellipsis' => 1,
223
+    'html' => 0,
224
+    'strip_tags' => 0,
225
+  ),
226
+  'empty' => '',
227
+  'hide_empty' => 0,
228
+  'empty_zero' => 0,
229
+  'date_format' => 'small',
230
+  'custom_date_format' => '',
231
+  'exclude' => 1,
232
+  'id' => 'received_time',
233
+  'table' => 'result',
234
+  'field' => 'received_time',
235
+  'relationship' => 'none',
236
+),
237
+'report_deadline' => array(
238
+  'label' => 'Report deadline',
239
+  'alter' => array(
240
+    'alter_text' => 0,
241
+    'text' => '',
242
+    'make_link' => 0,
243
+    'path' => '',
244
+    'link_class' => '',
245
+    'alt' => '',
246
+    'prefix' => '',
247
+    'suffix' => '',
248
+    'target' => '',
249
+    'help' => '',
250
+    'trim' => 0,
251
+    'max_length' => '',
252
+    'word_boundary' => 1,
253
+    'ellipsis' => 1,
254
+    'html' => 0,
255
+    'strip_tags' => 0,
256
+  ),
257
+  'empty' => '',
258
+  'hide_empty' => 0,
259
+  'empty_zero' => 0,
260
+  'date_format' => 'small',
261
+  'custom_date_format' => '',
262
+  'exclude' => 1,
263
+  'id' => 'report_deadline',
264
+  'table' => 'result',
265
+  'field' => 'report_deadline',
266
+  'relationship' => 'none',
267
+),
268
+'phpcode_3' => array(
269
+  'label' => 'Sent',
270
+  'alter' => array(
271
+    'alter_text' => 0,
272
+    'text' => '',
273
+    'make_link' => 0,
274
+    'path' => '',
275
+    'absolute' => 0,
276
+    'link_class' => '',
277
+    'alt' => '',
278
+    'rel' => '',
279
+    'prefix' => '',
280
+    'suffix' => '',
281
+    'target' => '',
282
+    'help' => '',
283
+    'trim' => 0,
284
+    'max_length' => '',
285
+    'word_boundary' => 1,
286
+    'ellipsis' => 1,
287
+    'html' => 0,
288
+    'strip_tags' => 0,
289
+  ),
290
+  'empty' => '',
291
+  'hide_empty' => 0,
292
+  'empty_zero' => 0,
293
+  'hide_alter_empty' => 1,
294
+  'value' => '<?php
295 295
   require_boinc(\'util\');
296 296
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
297 297
 ?>',
298
-      'exclude' => 0,
299
-      'id' => 'phpcode_3',
300
-      'table' => 'customfield',
301
-      'field' => 'phpcode',
302
-      'relationship' => 'none',
303
-    ),
304
-    'phpcode' => array(
305
-      'label' => 'Time reported or deadline',
306
-      'alter' => array(
307
-        'alter_text' => 0,
308
-        'text' => '',
309
-        'make_link' => 0,
310
-        'path' => '',
311
-        'absolute' => 0,
312
-        'link_class' => '',
313
-        'alt' => '',
314
-        'rel' => '',
315
-        'prefix' => '',
316
-        'suffix' => '',
317
-        'target' => '',
318
-        'help' => '',
319
-        'trim' => 0,
320
-        'max_length' => '',
321
-        'word_boundary' => 1,
322
-        'ellipsis' => 1,
323
-        'html' => 0,
324
-        'strip_tags' => 0,
325
-      ),
326
-      'empty' => '',
327
-      'hide_empty' => 0,
328
-      'empty_zero' => 0,
329
-      'hide_alter_empty' => 1,
330
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
331
-      'exclude' => 0,
332
-      'id' => 'phpcode',
333
-      'table' => 'customfield',
334
-      'field' => 'phpcode',
335
-      'override' => array(
336
-        'button' => 'Override',
337
-      ),
338
-      'relationship' => 'none',
339
-    ),
340
-    'server_state' => array(
341
-      'label' => 'Server state',
342
-      'alter' => array(
343
-        'alter_text' => 0,
344
-        'text' => '',
345
-        'make_link' => 0,
346
-        'path' => '',
347
-        'link_class' => '',
348
-        'alt' => '',
349
-        'prefix' => '',
350
-        'suffix' => '',
351
-        'target' => '',
352
-        'help' => '',
353
-        'trim' => 0,
354
-        'max_length' => '',
355
-        'word_boundary' => 1,
356
-        'ellipsis' => 1,
357
-        'html' => 0,
358
-        'strip_tags' => 0,
359
-      ),
360
-      'empty' => '',
361
-      'hide_empty' => 0,
362
-      'empty_zero' => 0,
363
-      'set_precision' => FALSE,
364
-      'precision' => 0,
365
-      'decimal' => '.',
366
-      'separator' => '',
367
-      'prefix' => '',
368
-      'suffix' => '',
369
-      'exclude' => 1,
370
-      'id' => 'server_state',
371
-      'table' => 'result',
372
-      'field' => 'server_state',
373
-      'relationship' => 'none',
374
-    ),
375
-    'outcome' => array(
376
-      'label' => 'Outcome',
377
-      'alter' => array(
378
-        'alter_text' => 0,
379
-        'text' => '',
380
-        'make_link' => 0,
381
-        'path' => '',
382
-        'link_class' => '',
383
-        'alt' => '',
384
-        'prefix' => '',
385
-        'suffix' => '',
386
-        'target' => '',
387
-        'help' => '',
388
-        'trim' => 0,
389
-        'max_length' => '',
390
-        'word_boundary' => 1,
391
-        'ellipsis' => 1,
392
-        'html' => 0,
393
-        'strip_tags' => 0,
394
-      ),
395
-      'empty' => '',
396
-      'hide_empty' => 0,
397
-      'empty_zero' => 0,
398
-      'set_precision' => FALSE,
399
-      'precision' => 0,
400
-      'decimal' => '.',
401
-      'separator' => '',
402
-      'prefix' => '',
403
-      'suffix' => '',
404
-      'exclude' => 1,
405
-      'id' => 'outcome',
406
-      'table' => 'result',
407
-      'field' => 'outcome',
408
-      'relationship' => 'none',
409
-    ),
410
-    'client_state' => array(
411
-      'label' => 'Client state',
412
-      'alter' => array(
413
-        'alter_text' => 0,
414
-        'text' => '',
415
-        'make_link' => 0,
416
-        'path' => '',
417
-        'link_class' => '',
418
-        'alt' => '',
419
-        'prefix' => '',
420
-        'suffix' => '',
421
-        'target' => '',
422
-        'help' => '',
423
-        'trim' => 0,
424
-        'max_length' => '',
425
-        'word_boundary' => 1,
426
-        'ellipsis' => 1,
427
-        'html' => 0,
428
-        'strip_tags' => 0,
429
-      ),
430
-      'empty' => '',
431
-      'hide_empty' => 0,
432
-      'empty_zero' => 0,
433
-      'set_precision' => FALSE,
434
-      'precision' => 0,
435
-      'decimal' => '.',
436
-      'separator' => '',
437
-      'prefix' => '',
438
-      'suffix' => '',
439
-      'exclude' => 1,
440
-      'id' => 'client_state',
441
-      'table' => 'result',
442
-      'field' => 'client_state',
443
-      'relationship' => 'none',
444
-    ),
445
-    'validate_state' => array(
446
-      'label' => 'Validation state',
447
-      'alter' => array(
448
-        'alter_text' => 0,
449
-        'text' => '',
450
-        'make_link' => 0,
451
-        'path' => '',
452
-        'link_class' => '',
453
-        'alt' => '',
454
-        'prefix' => '',
455
-        'suffix' => '',
456
-        'target' => '',
457
-        'help' => '',
458
-        'trim' => 0,
459
-        'max_length' => '',
460
-        'word_boundary' => 1,
461
-        'ellipsis' => 1,
462
-        'html' => 0,
463
-        'strip_tags' => 0,
464
-      ),
465
-      'empty' => '',
466
-      'hide_empty' => 0,
467
-      'empty_zero' => 0,
468
-      'set_precision' => FALSE,
469
-      'precision' => 0,
470
-      'decimal' => '.',
471
-      'separator' => '',
472
-      'prefix' => '',
473
-      'suffix' => '',
474
-      'exclude' => 1,
475
-      'id' => 'validate_state',
476
-      'table' => 'result',
477
-      'field' => 'validate_state',
478
-      'relationship' => 'none',
479
-    ),
480
-    'exit_status' => array(
481
-      'label' => 'Exit status',
482
-      'alter' => array(
483
-        'alter_text' => 0,
484
-        'text' => '',
485
-        'make_link' => 0,
486
-        'path' => '',
487
-        'link_class' => '',
488
-        'alt' => '',
489
-        'prefix' => '',
490
-        'suffix' => '',
491
-        'target' => '',
492
-        'help' => '',
493
-        'trim' => 0,
494
-        'max_length' => '',
495
-        'word_boundary' => 1,
496
-        'ellipsis' => 1,
497
-        'html' => 0,
498
-        'strip_tags' => 0,
499
-      ),
500
-      'empty' => '',
501
-      'hide_empty' => 0,
502
-      'empty_zero' => 0,
503
-      'set_precision' => FALSE,
504
-      'precision' => 0,
505
-      'decimal' => '.',
506
-      'separator' => '',
507
-      'prefix' => '',
508
-      'suffix' => '',
509
-      'exclude' => 1,
510
-      'id' => 'exit_status',
511
-      'table' => 'result',
512
-      'field' => 'exit_status',
513
-      'relationship' => 'none',
514
-    ),
515
-    'phpcode_1' => array(
516
-      'label' => 'Status',
517
-      'alter' => array(
518
-        'alter_text' => 0,
519
-        'text' => '',
520
-        'make_link' => 0,
521
-        'path' => '',
522
-        'link_class' => '',
523
-        'alt' => '',
524
-        'prefix' => '',
525
-        'suffix' => '',
526
-        'target' => '',
527
-        'help' => '',
528
-        'trim' => 0,
529
-        'max_length' => '',
530
-        'word_boundary' => 1,
531
-        'ellipsis' => 1,
532
-        'html' => 0,
533
-        'strip_tags' => 0,
534
-      ),
535
-      'empty' => '',
536
-      'hide_empty' => 0,
537
-      'empty_zero' => 0,
538
-      'value' => '<?php
298
+  'exclude' => 0,
299
+  'id' => 'phpcode_3',
300
+  'table' => 'customfield',
301
+  'field' => 'phpcode',
302
+  'relationship' => 'none',
303
+),
304
+'phpcode' => array(
305
+  'label' => 'Time reported or deadline',
306
+  'alter' => array(
307
+    'alter_text' => 0,
308
+    'text' => '',
309
+    'make_link' => 0,
310
+    'path' => '',
311
+    'absolute' => 0,
312
+    'link_class' => '',
313
+    'alt' => '',
314
+    'rel' => '',
315
+    'prefix' => '',
316
+    'suffix' => '',
317
+    'target' => '',
318
+    'help' => '',
319
+    'trim' => 0,
320
+    'max_length' => '',
321
+    'word_boundary' => 1,
322
+    'ellipsis' => 1,
323
+    'html' => 0,
324
+    'strip_tags' => 0,
325
+  ),
326
+  'empty' => '',
327
+  'hide_empty' => 0,
328
+  'empty_zero' => 0,
329
+  'hide_alter_empty' => 1,
330
+  'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
331
+  'exclude' => 0,
332
+  'id' => 'phpcode',
333
+  'table' => 'customfield',
334
+  'field' => 'phpcode',
335
+  'override' => array(
336
+    'button' => 'Override',
337
+  ),
338
+  'relationship' => 'none',
339
+),
340
+'server_state' => array(
341
+  'label' => 'Server state',
342
+  'alter' => array(
343
+    'alter_text' => 0,
344
+    'text' => '',
345
+    'make_link' => 0,
346
+    'path' => '',
347
+    'link_class' => '',
348
+    'alt' => '',
349
+    'prefix' => '',
350
+    'suffix' => '',
351
+    'target' => '',
352
+    'help' => '',
353
+    'trim' => 0,
354
+    'max_length' => '',
355
+    'word_boundary' => 1,
356
+    'ellipsis' => 1,
357
+    'html' => 0,
358
+    'strip_tags' => 0,
359
+  ),
360
+  'empty' => '',
361
+  'hide_empty' => 0,
362
+  'empty_zero' => 0,
363
+  'set_precision' => FALSE,
364
+  'precision' => 0,
365
+  'decimal' => '.',
366
+  'separator' => '',
367
+  'prefix' => '',
368
+  'suffix' => '',
369
+  'exclude' => 1,
370
+  'id' => 'server_state',
371
+  'table' => 'result',
372
+  'field' => 'server_state',
373
+  'relationship' => 'none',
374
+),
375
+'outcome' => array(
376
+  'label' => 'Outcome',
377
+  'alter' => array(
378
+    'alter_text' => 0,
379
+    'text' => '',
380
+    'make_link' => 0,
381
+    'path' => '',
382
+    'link_class' => '',
383
+    'alt' => '',
384
+    'prefix' => '',
385
+    'suffix' => '',
386
+    'target' => '',
387
+    'help' => '',
388
+    'trim' => 0,
389
+    'max_length' => '',
390
+    'word_boundary' => 1,
391
+    'ellipsis' => 1,
392
+    'html' => 0,
393
+    'strip_tags' => 0,
394
+  ),
395
+  'empty' => '',
396
+  'hide_empty' => 0,
397
+  'empty_zero' => 0,
398
+  'set_precision' => FALSE,
399
+  'precision' => 0,
400
+  'decimal' => '.',
401
+  'separator' => '',
402
+  'prefix' => '',
403
+  'suffix' => '',
404
+  'exclude' => 1,
405
+  'id' => 'outcome',
406
+  'table' => 'result',
407
+  'field' => 'outcome',
408
+  'relationship' => 'none',
409
+),
410
+'client_state' => array(
411
+  'label' => 'Client state',
412
+  'alter' => array(
413
+    'alter_text' => 0,
414
+    'text' => '',
415
+    'make_link' => 0,
416
+    'path' => '',
417
+    'link_class' => '',
418
+    'alt' => '',
419
+    'prefix' => '',
420
+    'suffix' => '',
421
+    'target' => '',
422
+    'help' => '',
423
+    'trim' => 0,
424
+    'max_length' => '',
425
+    'word_boundary' => 1,
426
+    'ellipsis' => 1,
427
+    'html' => 0,
428
+    'strip_tags' => 0,
429
+  ),
430
+  'empty' => '',
431
+  'hide_empty' => 0,
432
+  'empty_zero' => 0,
433
+  'set_precision' => FALSE,
434
+  'precision' => 0,
435
+  'decimal' => '.',
436
+  'separator' => '',
437
+  'prefix' => '',
438
+  'suffix' => '',
439
+  'exclude' => 1,
440
+  'id' => 'client_state',
441
+  'table' => 'result',
442
+  'field' => 'client_state',
443
+  'relationship' => 'none',
444
+),
445
+'validate_state' => array(
446
+  'label' => 'Validation state',
447
+  'alter' => array(
448
+    'alter_text' => 0,
449
+    'text' => '',
450
+    'make_link' => 0,
451
+    'path' => '',
452
+    'link_class' => '',
453
+    'alt' => '',
454
+    'prefix' => '',
455
+    'suffix' => '',
456
+    'target' => '',
457
+    'help' => '',
458
+    'trim' => 0,
459
+    'max_length' => '',
460
+    'word_boundary' => 1,
461
+    'ellipsis' => 1,
462
+    'html' => 0,
463
+    'strip_tags' => 0,
464
+  ),
465
+  'empty' => '',
466
+  'hide_empty' => 0,
467
+  'empty_zero' => 0,
468
+  'set_precision' => FALSE,
469
+  'precision' => 0,
470
+  'decimal' => '.',
471
+  'separator' => '',
472
+  'prefix' => '',
473
+  'suffix' => '',
474
+  'exclude' => 1,
475
+  'id' => 'validate_state',
476
+  'table' => 'result',
477
+  'field' => 'validate_state',
478
+  'relationship' => 'none',
479
+),
480
+'exit_status' => array(
481
+  'label' => 'Exit status',
482
+  'alter' => array(
483
+    'alter_text' => 0,
484
+    'text' => '',
485
+    'make_link' => 0,
486
+    'path' => '',
487
+    'link_class' => '',
488
+    'alt' => '',
489
+    'prefix' => '',
490
+    'suffix' => '',
491
+    'target' => '',
492
+    'help' => '',
493
+    'trim' => 0,
494
+    'max_length' => '',
495
+    'word_boundary' => 1,
496
+    'ellipsis' => 1,
497
+    'html' => 0,
498
+    'strip_tags' => 0,
499
+  ),
500
+  'empty' => '',
501
+  'hide_empty' => 0,
502
+  'empty_zero' => 0,
503
+  'set_precision' => FALSE,
504
+  'precision' => 0,
505
+  'decimal' => '.',
506
+  'separator' => '',
507
+  'prefix' => '',
508
+  'suffix' => '',
509
+  'exclude' => 1,
510
+  'id' => 'exit_status',
511
+  'table' => 'result',
512
+  'field' => 'exit_status',
513
+  'relationship' => 'none',
514
+),
515
+'phpcode_1' => array(
516
+  'label' => 'Status',
517
+  'alter' => array(
518
+    'alter_text' => 0,
519
+    'text' => '',
520
+    'make_link' => 0,
521
+    'path' => '',
522
+    'link_class' => '',
523
+    'alt' => '',
524
+    'prefix' => '',
525
+    'suffix' => '',
526
+    'target' => '',
527
+    'help' => '',
528
+    'trim' => 0,
529
+    'max_length' => '',
530
+    'word_boundary' => 1,
531
+    'ellipsis' => 1,
532
+    'html' => 0,
533
+    'strip_tags' => 0,
534
+  ),
535
+  'empty' => '',
536
+  'hide_empty' => 0,
537
+  'empty_zero' => 0,
538
+  'value' => '<?php
539 539
   require_boinc(\'result\');
540 540
   $result = new stdClass();
541 541
   $result->server_state = $data->result_server_state;
@@ -545,1162 +545,1162 @@  discard block
 block discarded – undo
545 545
   $result->exit_status = $data->result_exit_status;
546 546
   return state_string($result);
547 547
 ?>',
548
-      'exclude' => 0,
549
-      'id' => 'phpcode_1',
550
-      'table' => 'customfield',
551
-      'field' => 'phpcode',
552
-      'override' => array(
553
-        'button' => 'Override',
554
-      ),
555
-      'relationship' => 'none',
556
-    ),
557
-    'elapsed_time' => array(
558
-      'label' => 'Run time',
559
-      'alter' => array(
560
-        'alter_text' => 0,
561
-        'text' => '',
562
-        'make_link' => 0,
563
-        'path' => '',
564
-        'absolute' => 0,
565
-        'link_class' => '',
566
-        'alt' => '',
567
-        'rel' => '',
568
-        'prefix' => '',
569
-        'suffix' => '',
570
-        'target' => '',
571
-        'help' => '',
572
-        'trim' => 0,
573
-        'max_length' => '',
574
-        'word_boundary' => 1,
575
-        'ellipsis' => 1,
576
-        'html' => 0,
577
-        'strip_tags' => 0,
578
-      ),
579
-      'empty' => '',
580
-      'hide_empty' => 0,
581
-      'empty_zero' => 0,
582
-      'hide_alter_empty' => 1,
583
-      'set_precision' => 1,
584
-      'precision' => '2',
585
-      'decimal' => '.',
586
-      'separator' => ',',
587
-      'format_plural' => 0,
588
-      'format_plural_singular' => '1',
589
-      'format_plural_plural' => '@count',
590
-      'prefix' => '',
591
-      'suffix' => '',
592
-      'exclude' => 0,
593
-      'id' => 'elapsed_time',
594
-      'table' => 'result',
595
-      'field' => 'elapsed_time',
596
-      'relationship' => 'none',
597
-    ),
598
-    'cpu_time' => array(
599
-      'label' => 'CPU time',
600
-      'alter' => array(
601
-        'alter_text' => 0,
602
-        'text' => '',
603
-        'make_link' => 0,
604
-        'path' => '',
605
-        'absolute' => 0,
606
-        'link_class' => '',
607
-        'alt' => '',
608
-        'rel' => '',
609
-        'prefix' => '',
610
-        'suffix' => '',
611
-        'target' => '',
612
-        'help' => '',
613
-        'trim' => 0,
614
-        'max_length' => '',
615
-        'word_boundary' => 1,
616
-        'ellipsis' => 1,
617
-        'html' => 0,
618
-        'strip_tags' => 0,
619
-      ),
620
-      'empty' => '',
621
-      'hide_empty' => 0,
622
-      'empty_zero' => 0,
623
-      'hide_alter_empty' => 1,
624
-      'set_precision' => 1,
625
-      'precision' => '2',
626
-      'decimal' => '.',
627
-      'separator' => ',',
628
-      'format_plural' => 0,
629
-      'format_plural_singular' => '1',
630
-      'format_plural_plural' => '@count',
631
-      'prefix' => '',
632
-      'suffix' => '',
633
-      'exclude' => 0,
634
-      'id' => 'cpu_time',
635
-      'table' => 'result',
636
-      'field' => 'cpu_time',
637
-      'relationship' => 'none',
638
-    ),
639
-    'granted_credit' => array(
640
-      'label' => 'Granted credit',
641
-      'alter' => array(
642
-        'alter_text' => 0,
643
-        'text' => '',
644
-        'make_link' => 0,
645
-        'path' => '',
646
-        'link_class' => '',
647
-        'alt' => '',
648
-        'prefix' => '',
649
-        'suffix' => '',
650
-        'target' => '',
651
-        'help' => '',
652
-        'trim' => 0,
653
-        'max_length' => '',
654
-        'word_boundary' => 1,
655
-        'ellipsis' => 1,
656
-        'html' => 0,
657
-        'strip_tags' => 0,
658
-      ),
659
-      'empty' => '',
660
-      'hide_empty' => 0,
661
-      'empty_zero' => 0,
662
-      'set_precision' => 1,
663
-      'precision' => '2',
664
-      'decimal' => '.',
665
-      'separator' => ',',
666
-      'prefix' => '',
667
-      'suffix' => '',
668
-      'exclude' => 0,
669
-      'id' => 'granted_credit',
670
-      'table' => 'result',
671
-      'field' => 'granted_credit',
672
-      'relationship' => 'none',
673
-    ),
674
-    'appid' => array(
675
-      'label' => 'Application ID',
676
-      'alter' => array(
677
-        'alter_text' => 0,
678
-        'text' => '',
679
-        'make_link' => 0,
680
-        'path' => '',
681
-        'absolute' => 0,
682
-        'link_class' => '',
683
-        'alt' => '',
684
-        'rel' => '',
685
-        'prefix' => '',
686
-        'suffix' => '',
687
-        'target' => '',
688
-        'help' => '',
689
-        'trim' => 0,
690
-        'max_length' => '',
691
-        'word_boundary' => 1,
692
-        'ellipsis' => 1,
693
-        'html' => 0,
694
-        'strip_tags' => 0,
695
-      ),
696
-      'empty' => '',
697
-      'hide_empty' => 0,
698
-      'empty_zero' => 0,
699
-      'hide_alter_empty' => 1,
700
-      'set_precision' => FALSE,
701
-      'precision' => 0,
702
-      'decimal' => '.',
703
-      'separator' => '',
704
-      'format_plural' => 0,
705
-      'format_plural_singular' => '1',
706
-      'format_plural_plural' => '@count',
707
-      'prefix' => '',
708
-      'suffix' => '',
709
-      'exclude' => 1,
710
-      'id' => 'appid',
711
-      'table' => 'result',
712
-      'field' => 'appid',
713
-      'relationship' => 'none',
714
-    ),
715
-    'app_version_id' => array(
716
-      'label' => 'Application version',
717
-      'alter' => array(
718
-        'alter_text' => 0,
719
-        'text' => '',
720
-        'make_link' => 0,
721
-        'path' => '',
722
-        'link_class' => '',
723
-        'alt' => '',
724
-        'prefix' => '',
725
-        'suffix' => '',
726
-        'target' => '',
727
-        'help' => '',
728
-        'trim' => 0,
729
-        'max_length' => '',
730
-        'word_boundary' => 1,
731
-        'ellipsis' => 1,
732
-        'html' => 0,
733
-        'strip_tags' => 0,
734
-      ),
735
-      'empty' => '',
736
-      'hide_empty' => 0,
737
-      'empty_zero' => 0,
738
-      'set_precision' => FALSE,
739
-      'precision' => 0,
740
-      'decimal' => '.',
741
-      'separator' => '',
742
-      'prefix' => '',
743
-      'suffix' => '',
744
-      'exclude' => 1,
745
-      'id' => 'app_version_id',
746
-      'table' => 'result',
747
-      'field' => 'app_version_id',
748
-      'relationship' => 'none',
749
-    ),
750
-    'phpcode_2' => array(
751
-      'label' => 'Application',
752
-      'alter' => array(
753
-        'alter_text' => 0,
754
-        'text' => '',
755
-        'make_link' => 0,
756
-        'path' => '',
757
-        'absolute' => 0,
758
-        'link_class' => '',
759
-        'alt' => '',
760
-        'rel' => '',
761
-        'prefix' => '',
762
-        'suffix' => '',
763
-        'target' => '',
764
-        'help' => '',
765
-        'trim' => 0,
766
-        'max_length' => '',
767
-        'word_boundary' => 1,
768
-        'ellipsis' => 1,
769
-        'html' => 0,
770
-        'strip_tags' => 0,
771
-      ),
772
-      'empty' => '',
773
-      'hide_empty' => 0,
774
-      'empty_zero' => 0,
775
-      'hide_alter_empty' => 1,
776
-      'value' => '<?php
548
+  'exclude' => 0,
549
+  'id' => 'phpcode_1',
550
+  'table' => 'customfield',
551
+  'field' => 'phpcode',
552
+  'override' => array(
553
+    'button' => 'Override',
554
+  ),
555
+  'relationship' => 'none',
556
+),
557
+'elapsed_time' => array(
558
+  'label' => 'Run time',
559
+  'alter' => array(
560
+    'alter_text' => 0,
561
+    'text' => '',
562
+    'make_link' => 0,
563
+    'path' => '',
564
+    'absolute' => 0,
565
+    'link_class' => '',
566
+    'alt' => '',
567
+    'rel' => '',
568
+    'prefix' => '',
569
+    'suffix' => '',
570
+    'target' => '',
571
+    'help' => '',
572
+    'trim' => 0,
573
+    'max_length' => '',
574
+    'word_boundary' => 1,
575
+    'ellipsis' => 1,
576
+    'html' => 0,
577
+    'strip_tags' => 0,
578
+  ),
579
+  'empty' => '',
580
+  'hide_empty' => 0,
581
+  'empty_zero' => 0,
582
+  'hide_alter_empty' => 1,
583
+  'set_precision' => 1,
584
+  'precision' => '2',
585
+  'decimal' => '.',
586
+  'separator' => ',',
587
+  'format_plural' => 0,
588
+  'format_plural_singular' => '1',
589
+  'format_plural_plural' => '@count',
590
+  'prefix' => '',
591
+  'suffix' => '',
592
+  'exclude' => 0,
593
+  'id' => 'elapsed_time',
594
+  'table' => 'result',
595
+  'field' => 'elapsed_time',
596
+  'relationship' => 'none',
597
+),
598
+'cpu_time' => array(
599
+  'label' => 'CPU time',
600
+  'alter' => array(
601
+    'alter_text' => 0,
602
+    'text' => '',
603
+    'make_link' => 0,
604
+    'path' => '',
605
+    'absolute' => 0,
606
+    'link_class' => '',
607
+    'alt' => '',
608
+    'rel' => '',
609
+    'prefix' => '',
610
+    'suffix' => '',
611
+    'target' => '',
612
+    'help' => '',
613
+    'trim' => 0,
614
+    'max_length' => '',
615
+    'word_boundary' => 1,
616
+    'ellipsis' => 1,
617
+    'html' => 0,
618
+    'strip_tags' => 0,
619
+  ),
620
+  'empty' => '',
621
+  'hide_empty' => 0,
622
+  'empty_zero' => 0,
623
+  'hide_alter_empty' => 1,
624
+  'set_precision' => 1,
625
+  'precision' => '2',
626
+  'decimal' => '.',
627
+  'separator' => ',',
628
+  'format_plural' => 0,
629
+  'format_plural_singular' => '1',
630
+  'format_plural_plural' => '@count',
631
+  'prefix' => '',
632
+  'suffix' => '',
633
+  'exclude' => 0,
634
+  'id' => 'cpu_time',
635
+  'table' => 'result',
636
+  'field' => 'cpu_time',
637
+  'relationship' => 'none',
638
+),
639
+'granted_credit' => array(
640
+  'label' => 'Granted credit',
641
+  'alter' => array(
642
+    'alter_text' => 0,
643
+    'text' => '',
644
+    'make_link' => 0,
645
+    'path' => '',
646
+    'link_class' => '',
647
+    'alt' => '',
648
+    'prefix' => '',
649
+    'suffix' => '',
650
+    'target' => '',
651
+    'help' => '',
652
+    'trim' => 0,
653
+    'max_length' => '',
654
+    'word_boundary' => 1,
655
+    'ellipsis' => 1,
656
+    'html' => 0,
657
+    'strip_tags' => 0,
658
+  ),
659
+  'empty' => '',
660
+  'hide_empty' => 0,
661
+  'empty_zero' => 0,
662
+  'set_precision' => 1,
663
+  'precision' => '2',
664
+  'decimal' => '.',
665
+  'separator' => ',',
666
+  'prefix' => '',
667
+  'suffix' => '',
668
+  'exclude' => 0,
669
+  'id' => 'granted_credit',
670
+  'table' => 'result',
671
+  'field' => 'granted_credit',
672
+  'relationship' => 'none',
673
+),
674
+'appid' => array(
675
+  'label' => 'Application ID',
676
+  'alter' => array(
677
+    'alter_text' => 0,
678
+    'text' => '',
679
+    'make_link' => 0,
680
+    'path' => '',
681
+    'absolute' => 0,
682
+    'link_class' => '',
683
+    'alt' => '',
684
+    'rel' => '',
685
+    'prefix' => '',
686
+    'suffix' => '',
687
+    'target' => '',
688
+    'help' => '',
689
+    'trim' => 0,
690
+    'max_length' => '',
691
+    'word_boundary' => 1,
692
+    'ellipsis' => 1,
693
+    'html' => 0,
694
+    'strip_tags' => 0,
695
+  ),
696
+  'empty' => '',
697
+  'hide_empty' => 0,
698
+  'empty_zero' => 0,
699
+  'hide_alter_empty' => 1,
700
+  'set_precision' => FALSE,
701
+  'precision' => 0,
702
+  'decimal' => '.',
703
+  'separator' => '',
704
+  'format_plural' => 0,
705
+  'format_plural_singular' => '1',
706
+  'format_plural_plural' => '@count',
707
+  'prefix' => '',
708
+  'suffix' => '',
709
+  'exclude' => 1,
710
+  'id' => 'appid',
711
+  'table' => 'result',
712
+  'field' => 'appid',
713
+  'relationship' => 'none',
714
+),
715
+'app_version_id' => array(
716
+  'label' => 'Application version',
717
+  'alter' => array(
718
+    'alter_text' => 0,
719
+    'text' => '',
720
+    'make_link' => 0,
721
+    'path' => '',
722
+    'link_class' => '',
723
+    'alt' => '',
724
+    'prefix' => '',
725
+    'suffix' => '',
726
+    'target' => '',
727
+    'help' => '',
728
+    'trim' => 0,
729
+    'max_length' => '',
730
+    'word_boundary' => 1,
731
+    'ellipsis' => 1,
732
+    'html' => 0,
733
+    'strip_tags' => 0,
734
+  ),
735
+  'empty' => '',
736
+  'hide_empty' => 0,
737
+  'empty_zero' => 0,
738
+  'set_precision' => FALSE,
739
+  'precision' => 0,
740
+  'decimal' => '.',
741
+  'separator' => '',
742
+  'prefix' => '',
743
+  'suffix' => '',
744
+  'exclude' => 1,
745
+  'id' => 'app_version_id',
746
+  'table' => 'result',
747
+  'field' => 'app_version_id',
748
+  'relationship' => 'none',
749
+),
750
+'phpcode_2' => array(
751
+  'label' => 'Application',
752
+  'alter' => array(
753
+    'alter_text' => 0,
754
+    'text' => '',
755
+    'make_link' => 0,
756
+    'path' => '',
757
+    'absolute' => 0,
758
+    'link_class' => '',
759
+    'alt' => '',
760
+    'rel' => '',
761
+    'prefix' => '',
762
+    'suffix' => '',
763
+    'target' => '',
764
+    'help' => '',
765
+    'trim' => 0,
766
+    'max_length' => '',
767
+    'word_boundary' => 1,
768
+    'ellipsis' => 1,
769
+    'html' => 0,
770
+    'strip_tags' => 0,
771
+  ),
772
+  'empty' => '',
773
+  'hide_empty' => 0,
774
+  'empty_zero' => 0,
775
+  'hide_alter_empty' => 1,
776
+  'value' => '<?php
777 777
   require_boinc(\'result\');
778 778
   $result = new stdClass();
779 779
   $result->appid = $data->result_appid;
780 780
   $result->app_version_id = $data->result_app_version_id;
781 781
   return app_version_string($result);
782 782
 ?>',
783
-      'exclude' => 0,
784
-      'id' => 'phpcode_2',
785
-      'table' => 'customfield',
786
-      'field' => 'phpcode',
787
-      'override' => array(
788
-        'button' => 'Override',
789
-      ),
790
-      'relationship' => 'none',
791
-    ),
792
-  ));
793
-  $handler->override_option('arguments', array(
794
-    'userid' => array(
795
-      'default_action' => 'default',
796
-      'style_plugin' => 'default_summary',
797
-      'style_options' => array(),
798
-      'wildcard' => 'all',
799
-      'wildcard_substitution' => 'All',
800
-      'title' => '',
801
-      'breadcrumb' => '',
802
-      'default_argument_type' => 'current_user',
803
-      'default_argument' => '',
804
-      'validate_type' => 'php',
805
-      'validate_fail' => 'empty',
806
-      'break_phrase' => 0,
807
-      'not' => 0,
808
-      'id' => 'userid',
809
-      'table' => 'result',
810
-      'field' => 'userid',
811
-      'validate_user_argument_type' => 'uid',
812
-      'validate_user_roles' => array(
813
-        2 => 0,
814
-        3519698132 => 0,
815
-        1110965548 => 0,
816
-        2938987599 => 0,
817
-        1257454314 => 0,
818
-        268174006 => 0,
819
-        1271379760 => 0,
820
-        933038561 => 0,
821
-      ),
822
-      'me_redirect' => 0,
823
-      'me_validate_user_argument_type' => 'uid',
824
-      'me_validate_user_roles' => array(
825
-        2 => 0,
826
-        3519698132 => 0,
827
-        1110965548 => 0,
828
-        2938987599 => 0,
829
-        1257454314 => 0,
830
-        268174006 => 0,
831
-        1271379760 => 0,
832
-        933038561 => 0,
833
-      ),
834
-      'relationship' => 'none',
835
-      'default_options_div_prefix' => '',
836
-      'default_taxonomy_tid_term_page' => 0,
837
-      'default_taxonomy_tid_node' => 0,
838
-      'default_taxonomy_tid_limit' => 0,
839
-      'default_taxonomy_tid_vids' => array(
840
-        1 => 0,
841
-        2 => 0,
842
-      ),
843
-      'default_argument_user' => 0,
844
-      'default_argument_fixed' => '',
845
-      'default_argument_php' => '',
846
-      'validate_argument_node_type' => array(
847
-        'page' => 0,
848
-        'news' => 0,
849
-        'team' => 0,
850
-        'team_forum' => 0,
851
-        'profile' => 0,
852
-        'forum' => 0,
853
-        'panel' => 0,
854
-        'story' => 0,
855
-      ),
856
-      'validate_argument_node_access' => 0,
857
-      'validate_argument_nid_type' => 'nid',
858
-      'validate_argument_vocabulary' => array(
859
-        1 => 0,
860
-        2 => 0,
861
-      ),
862
-      'validate_argument_type' => 'tid',
863
-      'validate_argument_transform' => 0,
864
-      'validate_user_restrict_roles' => 0,
865
-      'validate_argument_node_flag_name' => '*relationship*',
866
-      'validate_argument_node_flag_test' => 'flaggable',
867
-      'validate_argument_node_flag_id_type' => 'id',
868
-      'validate_argument_user_flag_name' => '*relationship*',
869
-      'validate_argument_user_flag_test' => 'flaggable',
870
-      'validate_argument_user_flag_id_type' => 'id',
871
-      'validate_argument_php' => 'return is_current_boinc_user($argument);',
872
-      'me_validate_user_restrict_roles' => 0,
873
-      'override' => array(
874
-        'button' => 'Override',
875
-      ),
876
-    ),
877
-  ));
878
-  $handler->override_option('access', array(
879
-    'type' => 'none',
880
-  ));
881
-  $handler->override_option('cache', array(
882
-    'type' => 'none',
883
-  ));
884
-  $handler->override_option('empty', '<?php
783
+  'exclude' => 0,
784
+  'id' => 'phpcode_2',
785
+  'table' => 'customfield',
786
+  'field' => 'phpcode',
787
+  'override' => array(
788
+    'button' => 'Override',
789
+  ),
790
+  'relationship' => 'none',
791
+),
792
+));
793
+$handler->override_option('arguments', array(
794
+'userid' => array(
795
+  'default_action' => 'default',
796
+  'style_plugin' => 'default_summary',
797
+  'style_options' => array(),
798
+  'wildcard' => 'all',
799
+  'wildcard_substitution' => 'All',
800
+  'title' => '',
801
+  'breadcrumb' => '',
802
+  'default_argument_type' => 'current_user',
803
+  'default_argument' => '',
804
+  'validate_type' => 'php',
805
+  'validate_fail' => 'empty',
806
+  'break_phrase' => 0,
807
+  'not' => 0,
808
+  'id' => 'userid',
809
+  'table' => 'result',
810
+  'field' => 'userid',
811
+  'validate_user_argument_type' => 'uid',
812
+  'validate_user_roles' => array(
813
+    2 => 0,
814
+    3519698132 => 0,
815
+    1110965548 => 0,
816
+    2938987599 => 0,
817
+    1257454314 => 0,
818
+    268174006 => 0,
819
+    1271379760 => 0,
820
+    933038561 => 0,
821
+  ),
822
+  'me_redirect' => 0,
823
+  'me_validate_user_argument_type' => 'uid',
824
+  'me_validate_user_roles' => array(
825
+    2 => 0,
826
+    3519698132 => 0,
827
+    1110965548 => 0,
828
+    2938987599 => 0,
829
+    1257454314 => 0,
830
+    268174006 => 0,
831
+    1271379760 => 0,
832
+    933038561 => 0,
833
+  ),
834
+  'relationship' => 'none',
835
+  'default_options_div_prefix' => '',
836
+  'default_taxonomy_tid_term_page' => 0,
837
+  'default_taxonomy_tid_node' => 0,
838
+  'default_taxonomy_tid_limit' => 0,
839
+  'default_taxonomy_tid_vids' => array(
840
+    1 => 0,
841
+    2 => 0,
842
+  ),
843
+  'default_argument_user' => 0,
844
+  'default_argument_fixed' => '',
845
+  'default_argument_php' => '',
846
+  'validate_argument_node_type' => array(
847
+    'page' => 0,
848
+    'news' => 0,
849
+    'team' => 0,
850
+    'team_forum' => 0,
851
+    'profile' => 0,
852
+    'forum' => 0,
853
+    'panel' => 0,
854
+    'story' => 0,
855
+  ),
856
+  'validate_argument_node_access' => 0,
857
+  'validate_argument_nid_type' => 'nid',
858
+  'validate_argument_vocabulary' => array(
859
+    1 => 0,
860
+    2 => 0,
861
+  ),
862
+  'validate_argument_type' => 'tid',
863
+  'validate_argument_transform' => 0,
864
+  'validate_user_restrict_roles' => 0,
865
+  'validate_argument_node_flag_name' => '*relationship*',
866
+  'validate_argument_node_flag_test' => 'flaggable',
867
+  'validate_argument_node_flag_id_type' => 'id',
868
+  'validate_argument_user_flag_name' => '*relationship*',
869
+  'validate_argument_user_flag_test' => 'flaggable',
870
+  'validate_argument_user_flag_id_type' => 'id',
871
+  'validate_argument_php' => 'return is_current_boinc_user($argument);',
872
+  'me_validate_user_restrict_roles' => 0,
873
+  'override' => array(
874
+    'button' => 'Override',
875
+  ),
876
+),
877
+));
878
+$handler->override_option('access', array(
879
+'type' => 'none',
880
+));
881
+$handler->override_option('cache', array(
882
+'type' => 'none',
883
+));
884
+$handler->override_option('empty', '<?php
885 885
   if (!user_is_logged_in()) {
886 886
     drupal_goto(\'user/login\', drupal_get_destination());
887 887
   }
888 888
 ?>');
889
-  $handler->override_option('empty_format', '3');
890
-  $handler->override_option('items_per_page', 20);
891
-  $handler->override_option('use_pager', '1');
892
-  $handler->override_option('style_plugin', 'table');
893
-  $handler->override_option('style_options', array(
894
-    'grouping' => '',
895
-    'override' => 1,
896
-    'sticky' => 1,
897
-    'order' => 'desc',
898
-    'summary' => '',
899
-    'columns' => array(
900
-      'id' => 'id',
901
-      'workunitid' => 'workunitid',
902
-      'hostid' => 'hostid',
903
-      'sent_time' => 'sent_time',
904
-      'received_time' => 'received_time',
905
-      'report_deadline' => 'report_deadline',
906
-      'phpcode_3' => 'phpcode_3',
907
-      'phpcode' => 'phpcode',
908
-      'server_state' => 'server_state',
909
-      'outcome' => 'outcome',
910
-      'client_state' => 'client_state',
911
-      'validate_state' => 'validate_state',
912
-      'exit_status' => 'exit_status',
913
-      'phpcode_1' => 'phpcode_1',
914
-      'elapsed_time' => 'elapsed_time',
915
-      'cpu_time' => 'cpu_time',
916
-      'claimed_credit_1' => 'claimed_credit_1',
917
-      'granted_credit' => 'granted_credit',
918
-      'app_version_id' => 'app_version_id',
919
-      'phpcode_2' => 'phpcode_2',
920
-    ),
921
-    'info' => array(
922
-      'id' => array(
923
-        'sortable' => 1,
924
-        'separator' => '',
925
-      ),
926
-      'workunitid' => array(
927
-        'sortable' => 1,
928
-        'separator' => '',
929
-      ),
930
-      'hostid' => array(
931
-        'sortable' => 1,
932
-        'separator' => '',
933
-      ),
934
-      'sent_time' => array(
935
-        'sortable' => 1,
936
-        'separator' => '',
937
-      ),
938
-      'received_time' => array(
939
-        'sortable' => 1,
940
-        'separator' => '',
941
-      ),
942
-      'report_deadline' => array(
943
-        'sortable' => 1,
944
-        'separator' => '',
945
-      ),
946
-      'phpcode_3' => array(
947
-        'separator' => '',
948
-      ),
949
-      'phpcode' => array(
950
-        'separator' => '',
951
-      ),
952
-      'server_state' => array(
953
-        'sortable' => 0,
954
-        'separator' => '',
955
-      ),
956
-      'outcome' => array(
957
-        'sortable' => 0,
958
-        'separator' => '',
959
-      ),
960
-      'client_state' => array(
961
-        'sortable' => 0,
962
-        'separator' => '',
963
-      ),
964
-      'validate_state' => array(
965
-        'sortable' => 0,
966
-        'separator' => '',
967
-      ),
968
-      'exit_status' => array(
969
-        'sortable' => 0,
970
-        'separator' => '',
971
-      ),
972
-      'phpcode_1' => array(
973
-        'separator' => '',
974
-      ),
975
-      'elapsed_time' => array(
976
-        'sortable' => 1,
977
-        'separator' => '',
978
-      ),
979
-      'cpu_time' => array(
980
-        'sortable' => 1,
981
-        'separator' => '',
982
-      ),
983
-      'claimed_credit_1' => array(
984
-        'sortable' => 1,
985
-        'separator' => '',
986
-      ),
987
-      'granted_credit' => array(
988
-        'sortable' => 1,
989
-        'separator' => '',
990
-      ),
991
-      'app_version_id' => array(
992
-        'sortable' => 1,
993
-        'separator' => '',
994
-      ),
995
-      'phpcode_2' => array(
996
-        'separator' => '',
997
-      ),
998
-    ),
999
-    'default' => 'id',
1000
-  ));
1001
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
1002
-  $handler->override_option('path', 'account/tasks/all');
1003
-  $handler->override_option('menu', array(
1004
-    'type' => 'default tab',
1005
-    'title' => 'All tasks',
1006
-    'description' => 'Show all tasks associated with the account',
1007
-    'weight' => '0',
1008
-    'name' => 'navigation',
1009
-  ));
1010
-  $handler->override_option('tab_options', array(
1011
-    'type' => 'normal',
1012
-    'title' => 'Tasks',
1013
-    'description' => 'Show all tasks',
1014
-    'weight' => '0',
1015
-    'name' => 'navigation',
1016
-  ));
1017
-  $handler = $view->new_display('page', 'Error', 'page_2');
1018
-  $handler->override_option('filters', array(
1019
-    'server_state' => array(
1020
-      'operator' => '=',
1021
-      'value' => array(
1022
-        'value' => '5',
1023
-        'min' => '',
1024
-        'max' => '',
1025
-      ),
1026
-      'group' => '0',
1027
-      'exposed' => FALSE,
1028
-      'expose' => array(
1029
-        'operator' => FALSE,
1030
-        'label' => '',
1031
-      ),
1032
-      'id' => 'server_state',
1033
-      'table' => 'result',
1034
-      'field' => 'server_state',
1035
-      'override' => array(
1036
-        'button' => 'Use default',
1037
-      ),
1038
-      'relationship' => 'none',
1039
-    ),
1040
-    'outcome' => array(
1041
-      'operator' => '>=',
1042
-      'value' => array(
1043
-        'value' => '3',
1044
-        'min' => '',
1045
-        'max' => '',
1046
-      ),
1047
-      'group' => '0',
1048
-      'exposed' => FALSE,
1049
-      'expose' => array(
1050
-        'operator' => FALSE,
1051
-        'label' => '',
1052
-      ),
1053
-      'id' => 'outcome',
1054
-      'table' => 'result',
1055
-      'field' => 'outcome',
1056
-      'override' => array(
1057
-        'button' => 'Use default',
1058
-      ),
1059
-      'relationship' => 'none',
1060
-    ),
1061
-    'outcome_1' => array(
1062
-      'operator' => 'not between',
1063
-      'value' => array(
1064
-        'value' => '',
1065
-        'min' => '4',
1066
-        'max' => '7',
1067
-      ),
1068
-      'group' => '0',
1069
-      'exposed' => FALSE,
1070
-      'expose' => array(
1071
-        'operator' => FALSE,
1072
-        'label' => '',
1073
-      ),
1074
-      'id' => 'outcome_1',
1075
-      'table' => 'result',
1076
-      'field' => 'outcome',
1077
-      'override' => array(
1078
-        'button' => 'Use default',
1079
-      ),
1080
-      'relationship' => 'none',
1081
-    ),
1082
-    'outcome_2' => array(
1083
-      'operator' => '<=',
1084
-      'value' => array(
1085
-        'value' => '7',
1086
-        'min' => '',
1087
-        'max' => '',
1088
-      ),
1089
-      'group' => '0',
1090
-      'exposed' => FALSE,
1091
-      'expose' => array(
1092
-        'operator' => FALSE,
1093
-        'label' => '',
1094
-      ),
1095
-      'id' => 'outcome_2',
1096
-      'table' => 'result',
1097
-      'field' => 'outcome',
1098
-      'override' => array(
1099
-        'button' => 'Use default',
1100
-      ),
1101
-      'relationship' => 'none',
1102
-    ),
1103
-  ));
1104
-  $handler->override_option('path', 'account/tasks/error');
1105
-  $handler->override_option('menu', array(
1106
-    'type' => 'tab',
1107
-    'title' => 'Error',
1108
-    'description' => 'Show tasks with errors associated with the account',
1109
-    'weight' => '5',
1110
-    'name' => 'navigation',
1111
-  ));
1112
-  $handler->override_option('tab_options', array(
1113
-    'type' => 'none',
1114
-    'title' => '',
1115
-    'description' => '',
1116
-    'weight' => 0,
1117
-    'name' => 'navigation',
1118
-  ));
1119
-  $handler = $view->new_display('page', 'In progress', 'page_3');
1120
-  $handler->override_option('filters', array(
1121
-    'server_state' => array(
1122
-      'operator' => '=',
1123
-      'value' => array(
1124
-        'value' => '4',
1125
-        'min' => '',
1126
-        'max' => '',
1127
-      ),
1128
-      'group' => '0',
1129
-      'exposed' => FALSE,
1130
-      'expose' => array(
1131
-        'operator' => FALSE,
1132
-        'label' => '',
1133
-      ),
1134
-      'id' => 'server_state',
1135
-      'table' => 'result',
1136
-      'field' => 'server_state',
1137
-      'override' => array(
1138
-        'button' => 'Use default',
1139
-      ),
1140
-      'relationship' => 'none',
1141
-    ),
1142
-  ));
1143
-  $handler->override_option('path', 'account/tasks/active');
1144
-  $handler->override_option('menu', array(
1145
-    'type' => 'tab',
1146
-    'title' => 'In progress',
1147
-    'description' => 'Show tasks in progress associated with the account',
1148
-    'weight' => '1',
1149
-    'name' => 'navigation',
1150
-  ));
1151
-  $handler->override_option('tab_options', array(
1152
-    'type' => 'none',
1153
-    'title' => '',
1154
-    'description' => '',
1155
-    'weight' => 0,
1156
-    'name' => 'navigation',
1157
-  ));
1158
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
1159
-  $handler->override_option('filters', array(
1160
-    'server_state' => array(
1161
-      'operator' => '=',
1162
-      'value' => array(
1163
-        'value' => '5',
1164
-        'min' => '',
1165
-        'max' => '',
1166
-      ),
1167
-      'group' => '0',
1168
-      'exposed' => FALSE,
1169
-      'expose' => array(
1170
-        'operator' => FALSE,
1171
-        'label' => '',
1172
-      ),
1173
-      'id' => 'server_state',
1174
-      'table' => 'result',
1175
-      'field' => 'server_state',
1176
-      'override' => array(
1177
-        'button' => 'Use default',
1178
-      ),
1179
-      'relationship' => 'none',
1180
-    ),
1181
-    'views_or_begin_2' => array(
1182
-      'id' => 'views_or_begin_2',
1183
-      'table' => 'views_or',
1184
-      'field' => 'views_or_begin',
1185
-    ),
1186
-    'outcome' => array(
1187
-      'operator' => '=',
1188
-      'value' => array(
1189
-        'value' => '6',
1190
-        'min' => '',
1191
-        'max' => '',
1192
-      ),
1193
-      'group' => '0',
1194
-      'exposed' => FALSE,
1195
-      'expose' => array(
1196
-        'operator' => FALSE,
1197
-        'label' => '',
1198
-      ),
1199
-      'id' => 'outcome',
1200
-      'table' => 'result',
1201
-      'field' => 'outcome',
1202
-      'override' => array(
1203
-        'button' => 'Use default',
1204
-      ),
1205
-      'relationship' => 'none',
1206
-    ),
1207
-    'views_or_next_5' => array(
1208
-      'id' => 'views_or_next_5',
1209
-      'table' => 'views_or',
1210
-      'field' => 'views_or_next',
1211
-    ),
1212
-    'outcome_1' => array(
1213
-      'operator' => '=',
1214
-      'value' => array(
1215
-        'value' => '1',
1216
-        'min' => '',
1217
-        'max' => '',
1218
-      ),
1219
-      'group' => '0',
1220
-      'exposed' => FALSE,
1221
-      'expose' => array(
1222
-        'operator' => FALSE,
1223
-        'label' => '',
1224
-      ),
1225
-      'id' => 'outcome_1',
1226
-      'table' => 'result',
1227
-      'field' => 'outcome',
1228
-      'override' => array(
1229
-        'button' => 'Use default',
1230
-      ),
1231
-      'relationship' => 'none',
1232
-    ),
1233
-    'views_or_begin_3' => array(
1234
-      'id' => 'views_or_begin_3',
1235
-      'table' => 'views_or',
1236
-      'field' => 'views_or_begin',
1237
-    ),
1238
-    'validate_state' => array(
1239
-      'operator' => '=',
1240
-      'value' => array(
1241
-        'value' => '2',
1242
-        'min' => '',
1243
-        'max' => '',
1244
-      ),
1245
-      'group' => '0',
1246
-      'exposed' => FALSE,
1247
-      'expose' => array(
1248
-        'operator' => FALSE,
1249
-        'label' => '',
1250
-      ),
1251
-      'id' => 'validate_state',
1252
-      'table' => 'result',
1253
-      'field' => 'validate_state',
1254
-      'override' => array(
1255
-        'button' => 'Use default',
1256
-      ),
1257
-      'relationship' => 'none',
1258
-    ),
1259
-    'views_or_next_3' => array(
1260
-      'id' => 'views_or_next_3',
1261
-      'table' => 'views_or',
1262
-      'field' => 'views_or_next',
1263
-    ),
1264
-    'validate_state_1' => array(
1265
-      'operator' => '=',
1266
-      'value' => array(
1267
-        'value' => '3',
1268
-        'min' => '',
1269
-        'max' => '',
1270
-      ),
1271
-      'group' => '0',
1272
-      'exposed' => FALSE,
1273
-      'expose' => array(
1274
-        'operator' => FALSE,
1275
-        'label' => '',
1276
-      ),
1277
-      'id' => 'validate_state_1',
1278
-      'table' => 'result',
1279
-      'field' => 'validate_state',
1280
-      'override' => array(
1281
-        'button' => 'Use default',
1282
-      ),
1283
-      'relationship' => 'none',
1284
-    ),
1285
-    'views_or_next_4' => array(
1286
-      'id' => 'views_or_next_4',
1287
-      'table' => 'views_or',
1288
-      'field' => 'views_or_next',
1289
-    ),
1290
-    'validate_state_2' => array(
1291
-      'operator' => '=',
1292
-      'value' => array(
1293
-        'value' => '5',
1294
-        'min' => '',
1295
-        'max' => '',
1296
-      ),
1297
-      'group' => '0',
1298
-      'exposed' => FALSE,
1299
-      'expose' => array(
1300
-        'operator' => FALSE,
1301
-        'label' => '',
1302
-      ),
1303
-      'id' => 'validate_state_2',
1304
-      'table' => 'result',
1305
-      'field' => 'validate_state',
1306
-      'override' => array(
1307
-        'button' => 'Use default',
1308
-      ),
1309
-      'relationship' => 'none',
1310
-    ),
1311
-    'views_or_end_3' => array(
1312
-      'id' => 'views_or_end_3',
1313
-      'table' => 'views_or',
1314
-      'field' => 'views_or_end',
1315
-    ),
1316
-    'views_or_end_2' => array(
1317
-      'id' => 'views_or_end_2',
1318
-      'table' => 'views_or',
1319
-      'field' => 'views_or_end',
1320
-    ),
1321
-  ));
1322
-  $handler->override_option('path', 'account/tasks/invalid');
1323
-  $handler->override_option('menu', array(
1324
-    'type' => 'tab',
1325
-    'title' => 'Invalid',
1326
-    'description' => 'Show invalidated tasks associated with the account',
1327
-    'weight' => '4',
1328
-    'name' => 'navigation',
1329
-  ));
1330
-  $handler->override_option('tab_options', array(
1331
-    'type' => 'none',
1332
-    'title' => '',
1333
-    'description' => '',
1334
-    'weight' => 0,
1335
-    'name' => 'navigation',
1336
-  ));
1337
-  $handler = $view->new_display('page', 'Pending', 'page_5');
1338
-  $handler->override_option('filters', array(
1339
-    'server_state' => array(
1340
-      'operator' => '=',
1341
-      'value' => array(
1342
-        'value' => '5',
1343
-        'min' => '',
1344
-        'max' => '',
1345
-      ),
1346
-      'group' => '0',
1347
-      'exposed' => FALSE,
1348
-      'expose' => array(
1349
-        'operator' => FALSE,
1350
-        'label' => '',
1351
-      ),
1352
-      'id' => 'server_state',
1353
-      'table' => 'result',
1354
-      'field' => 'server_state',
1355
-      'override' => array(
1356
-        'button' => 'Use default',
1357
-      ),
1358
-      'relationship' => 'none',
1359
-    ),
1360
-    'outcome' => array(
1361
-      'operator' => '=',
1362
-      'value' => array(
1363
-        'value' => '1',
1364
-        'min' => '',
1365
-        'max' => '',
1366
-      ),
1367
-      'group' => '0',
1368
-      'exposed' => FALSE,
1369
-      'expose' => array(
1370
-        'operator' => FALSE,
1371
-        'label' => '',
1372
-      ),
1373
-      'id' => 'outcome',
1374
-      'table' => 'result',
1375
-      'field' => 'outcome',
1376
-      'override' => array(
1377
-        'button' => 'Use default',
1378
-      ),
1379
-      'relationship' => 'none',
1380
-    ),
1381
-    'validate_state' => array(
1382
-      'operator' => '>=',
1383
-      'value' => array(
1384
-        'value' => '0',
1385
-        'min' => '',
1386
-        'max' => '',
1387
-      ),
1388
-      'group' => '0',
1389
-      'exposed' => FALSE,
1390
-      'expose' => array(
1391
-        'operator' => FALSE,
1392
-        'label' => '',
1393
-      ),
1394
-      'id' => 'validate_state',
1395
-      'table' => 'result',
1396
-      'field' => 'validate_state',
1397
-      'override' => array(
1398
-        'button' => 'Use default',
1399
-      ),
1400
-      'relationship' => 'none',
1401
-    ),
1402
-    'validate_state_1' => array(
1403
-      'operator' => 'not between',
1404
-      'value' => array(
1405
-        'value' => '',
1406
-        'min' => '0',
1407
-        'max' => '4',
1408
-      ),
1409
-      'group' => '0',
1410
-      'exposed' => FALSE,
1411
-      'expose' => array(
1412
-        'operator' => FALSE,
1413
-        'label' => '',
1414
-      ),
1415
-      'id' => 'validate_state_1',
1416
-      'table' => 'result',
1417
-      'field' => 'validate_state',
1418
-      'override' => array(
1419
-        'button' => 'Use default',
1420
-      ),
1421
-      'relationship' => 'none',
1422
-    ),
1423
-    'validate_state_2' => array(
1424
-      'operator' => '<=',
1425
-      'value' => array(
1426
-        'value' => '4',
1427
-        'min' => '',
1428
-        'max' => '',
1429
-      ),
1430
-      'group' => '0',
1431
-      'exposed' => FALSE,
1432
-      'expose' => array(
1433
-        'operator' => FALSE,
1434
-        'label' => '',
1435
-      ),
1436
-      'id' => 'validate_state_2',
1437
-      'table' => 'result',
1438
-      'field' => 'validate_state',
1439
-      'override' => array(
1440
-        'button' => 'Use default',
1441
-      ),
1442
-      'relationship' => 'none',
1443
-    ),
1444
-  ));
1445
-  $handler->override_option('path', 'account/tasks/pending');
1446
-  $handler->override_option('menu', array(
1447
-    'type' => 'tab',
1448
-    'title' => 'Pending',
1449
-    'description' => 'Show tasks associated with the account with results pending',
1450
-    'weight' => '2',
1451
-    'name' => 'navigation',
1452
-  ));
1453
-  $handler->override_option('tab_options', array(
1454
-    'type' => 'none',
1455
-    'title' => '',
1456
-    'description' => '',
1457
-    'weight' => 0,
1458
-    'name' => 'navigation',
1459
-  ));
1460
-  $handler = $view->new_display('page', 'Validated', 'page_6');
1461
-  $handler->override_option('filters', array(
1462
-    'server_state' => array(
1463
-      'operator' => '=',
1464
-      'value' => array(
1465
-        'value' => '5',
1466
-        'min' => '',
1467
-        'max' => '',
1468
-      ),
1469
-      'group' => '0',
1470
-      'exposed' => FALSE,
1471
-      'expose' => array(
1472
-        'operator' => FALSE,
1473
-        'label' => '',
1474
-      ),
1475
-      'id' => 'server_state',
1476
-      'table' => 'result',
1477
-      'field' => 'server_state',
1478
-      'override' => array(
1479
-        'button' => 'Use default',
1480
-      ),
1481
-      'relationship' => 'none',
1482
-    ),
1483
-    'outcome' => array(
1484
-      'operator' => '=',
1485
-      'value' => array(
1486
-        'value' => '1',
1487
-        'min' => '',
1488
-        'max' => '',
1489
-      ),
1490
-      'group' => '0',
1491
-      'exposed' => FALSE,
1492
-      'expose' => array(
1493
-        'operator' => FALSE,
1494
-        'label' => '',
1495
-      ),
1496
-      'id' => 'outcome',
1497
-      'table' => 'result',
1498
-      'field' => 'outcome',
1499
-      'override' => array(
1500
-        'button' => 'Use default',
1501
-      ),
1502
-      'relationship' => 'none',
1503
-    ),
1504
-    'validate_state' => array(
1505
-      'operator' => '=',
1506
-      'value' => array(
1507
-        'value' => '1',
1508
-        'min' => '',
1509
-        'max' => '',
1510
-      ),
1511
-      'group' => '0',
1512
-      'exposed' => FALSE,
1513
-      'expose' => array(
1514
-        'operator' => FALSE,
1515
-        'label' => '',
1516
-      ),
1517
-      'id' => 'validate_state',
1518
-      'table' => 'result',
1519
-      'field' => 'validate_state',
1520
-      'override' => array(
1521
-        'button' => 'Use default',
1522
-      ),
1523
-      'relationship' => 'none',
1524
-    ),
1525
-  ));
1526
-  $handler->override_option('path', 'account/tasks/valid');
1527
-  $handler->override_option('menu', array(
1528
-    'type' => 'tab',
1529
-    'title' => 'Valid',
1530
-    'description' => 'Show validated tasks associated with the account',
1531
-    'weight' => '3',
1532
-    'name' => 'navigation',
1533
-  ));
1534
-  $handler->override_option('tab_options', array(
1535
-    'type' => 'none',
1536
-    'title' => '',
1537
-    'description' => '',
1538
-    'weight' => 0,
1539
-    'name' => 'navigation',
1540
-  ));
889
+$handler->override_option('empty_format', '3');
890
+$handler->override_option('items_per_page', 20);
891
+$handler->override_option('use_pager', '1');
892
+$handler->override_option('style_plugin', 'table');
893
+$handler->override_option('style_options', array(
894
+'grouping' => '',
895
+'override' => 1,
896
+'sticky' => 1,
897
+'order' => 'desc',
898
+'summary' => '',
899
+'columns' => array(
900
+  'id' => 'id',
901
+  'workunitid' => 'workunitid',
902
+  'hostid' => 'hostid',
903
+  'sent_time' => 'sent_time',
904
+  'received_time' => 'received_time',
905
+  'report_deadline' => 'report_deadline',
906
+  'phpcode_3' => 'phpcode_3',
907
+  'phpcode' => 'phpcode',
908
+  'server_state' => 'server_state',
909
+  'outcome' => 'outcome',
910
+  'client_state' => 'client_state',
911
+  'validate_state' => 'validate_state',
912
+  'exit_status' => 'exit_status',
913
+  'phpcode_1' => 'phpcode_1',
914
+  'elapsed_time' => 'elapsed_time',
915
+  'cpu_time' => 'cpu_time',
916
+  'claimed_credit_1' => 'claimed_credit_1',
917
+  'granted_credit' => 'granted_credit',
918
+  'app_version_id' => 'app_version_id',
919
+  'phpcode_2' => 'phpcode_2',
920
+),
921
+'info' => array(
922
+  'id' => array(
923
+    'sortable' => 1,
924
+    'separator' => '',
925
+  ),
926
+  'workunitid' => array(
927
+    'sortable' => 1,
928
+    'separator' => '',
929
+  ),
930
+  'hostid' => array(
931
+    'sortable' => 1,
932
+    'separator' => '',
933
+  ),
934
+  'sent_time' => array(
935
+    'sortable' => 1,
936
+    'separator' => '',
937
+  ),
938
+  'received_time' => array(
939
+    'sortable' => 1,
940
+    'separator' => '',
941
+  ),
942
+  'report_deadline' => array(
943
+    'sortable' => 1,
944
+    'separator' => '',
945
+  ),
946
+  'phpcode_3' => array(
947
+    'separator' => '',
948
+  ),
949
+  'phpcode' => array(
950
+    'separator' => '',
951
+  ),
952
+  'server_state' => array(
953
+    'sortable' => 0,
954
+    'separator' => '',
955
+  ),
956
+  'outcome' => array(
957
+    'sortable' => 0,
958
+    'separator' => '',
959
+  ),
960
+  'client_state' => array(
961
+    'sortable' => 0,
962
+    'separator' => '',
963
+  ),
964
+  'validate_state' => array(
965
+    'sortable' => 0,
966
+    'separator' => '',
967
+  ),
968
+  'exit_status' => array(
969
+    'sortable' => 0,
970
+    'separator' => '',
971
+  ),
972
+  'phpcode_1' => array(
973
+    'separator' => '',
974
+  ),
975
+  'elapsed_time' => array(
976
+    'sortable' => 1,
977
+    'separator' => '',
978
+  ),
979
+  'cpu_time' => array(
980
+    'sortable' => 1,
981
+    'separator' => '',
982
+  ),
983
+  'claimed_credit_1' => array(
984
+    'sortable' => 1,
985
+    'separator' => '',
986
+  ),
987
+  'granted_credit' => array(
988
+    'sortable' => 1,
989
+    'separator' => '',
990
+  ),
991
+  'app_version_id' => array(
992
+    'sortable' => 1,
993
+    'separator' => '',
994
+  ),
995
+  'phpcode_2' => array(
996
+    'separator' => '',
997
+  ),
998
+),
999
+'default' => 'id',
1000
+));
1001
+$handler = $view->new_display('page', 'All tasks', 'page_1');
1002
+$handler->override_option('path', 'account/tasks/all');
1003
+$handler->override_option('menu', array(
1004
+'type' => 'default tab',
1005
+'title' => 'All tasks',
1006
+'description' => 'Show all tasks associated with the account',
1007
+'weight' => '0',
1008
+'name' => 'navigation',
1009
+));
1010
+$handler->override_option('tab_options', array(
1011
+'type' => 'normal',
1012
+'title' => 'Tasks',
1013
+'description' => 'Show all tasks',
1014
+'weight' => '0',
1015
+'name' => 'navigation',
1016
+));
1017
+$handler = $view->new_display('page', 'Error', 'page_2');
1018
+$handler->override_option('filters', array(
1019
+'server_state' => array(
1020
+  'operator' => '=',
1021
+  'value' => array(
1022
+    'value' => '5',
1023
+    'min' => '',
1024
+    'max' => '',
1025
+  ),
1026
+  'group' => '0',
1027
+  'exposed' => FALSE,
1028
+  'expose' => array(
1029
+    'operator' => FALSE,
1030
+    'label' => '',
1031
+  ),
1032
+  'id' => 'server_state',
1033
+  'table' => 'result',
1034
+  'field' => 'server_state',
1035
+  'override' => array(
1036
+    'button' => 'Use default',
1037
+  ),
1038
+  'relationship' => 'none',
1039
+),
1040
+'outcome' => array(
1041
+  'operator' => '>=',
1042
+  'value' => array(
1043
+    'value' => '3',
1044
+    'min' => '',
1045
+    'max' => '',
1046
+  ),
1047
+  'group' => '0',
1048
+  'exposed' => FALSE,
1049
+  'expose' => array(
1050
+    'operator' => FALSE,
1051
+    'label' => '',
1052
+  ),
1053
+  'id' => 'outcome',
1054
+  'table' => 'result',
1055
+  'field' => 'outcome',
1056
+  'override' => array(
1057
+    'button' => 'Use default',
1058
+  ),
1059
+  'relationship' => 'none',
1060
+),
1061
+'outcome_1' => array(
1062
+  'operator' => 'not between',
1063
+  'value' => array(
1064
+    'value' => '',
1065
+    'min' => '4',
1066
+    'max' => '7',
1067
+  ),
1068
+  'group' => '0',
1069
+  'exposed' => FALSE,
1070
+  'expose' => array(
1071
+    'operator' => FALSE,
1072
+    'label' => '',
1073
+  ),
1074
+  'id' => 'outcome_1',
1075
+  'table' => 'result',
1076
+  'field' => 'outcome',
1077
+  'override' => array(
1078
+    'button' => 'Use default',
1079
+  ),
1080
+  'relationship' => 'none',
1081
+),
1082
+'outcome_2' => array(
1083
+  'operator' => '<=',
1084
+  'value' => array(
1085
+    'value' => '7',
1086
+    'min' => '',
1087
+    'max' => '',
1088
+  ),
1089
+  'group' => '0',
1090
+  'exposed' => FALSE,
1091
+  'expose' => array(
1092
+    'operator' => FALSE,
1093
+    'label' => '',
1094
+  ),
1095
+  'id' => 'outcome_2',
1096
+  'table' => 'result',
1097
+  'field' => 'outcome',
1098
+  'override' => array(
1099
+    'button' => 'Use default',
1100
+  ),
1101
+  'relationship' => 'none',
1102
+),
1103
+));
1104
+$handler->override_option('path', 'account/tasks/error');
1105
+$handler->override_option('menu', array(
1106
+'type' => 'tab',
1107
+'title' => 'Error',
1108
+'description' => 'Show tasks with errors associated with the account',
1109
+'weight' => '5',
1110
+'name' => 'navigation',
1111
+));
1112
+$handler->override_option('tab_options', array(
1113
+'type' => 'none',
1114
+'title' => '',
1115
+'description' => '',
1116
+'weight' => 0,
1117
+'name' => 'navigation',
1118
+));
1119
+$handler = $view->new_display('page', 'In progress', 'page_3');
1120
+$handler->override_option('filters', array(
1121
+'server_state' => array(
1122
+  'operator' => '=',
1123
+  'value' => array(
1124
+    'value' => '4',
1125
+    'min' => '',
1126
+    'max' => '',
1127
+  ),
1128
+  'group' => '0',
1129
+  'exposed' => FALSE,
1130
+  'expose' => array(
1131
+    'operator' => FALSE,
1132
+    'label' => '',
1133
+  ),
1134
+  'id' => 'server_state',
1135
+  'table' => 'result',
1136
+  'field' => 'server_state',
1137
+  'override' => array(
1138
+    'button' => 'Use default',
1139
+  ),
1140
+  'relationship' => 'none',
1141
+),
1142
+));
1143
+$handler->override_option('path', 'account/tasks/active');
1144
+$handler->override_option('menu', array(
1145
+'type' => 'tab',
1146
+'title' => 'In progress',
1147
+'description' => 'Show tasks in progress associated with the account',
1148
+'weight' => '1',
1149
+'name' => 'navigation',
1150
+));
1151
+$handler->override_option('tab_options', array(
1152
+'type' => 'none',
1153
+'title' => '',
1154
+'description' => '',
1155
+'weight' => 0,
1156
+'name' => 'navigation',
1157
+));
1158
+$handler = $view->new_display('page', 'Invalidated', 'page_4');
1159
+$handler->override_option('filters', array(
1160
+'server_state' => array(
1161
+  'operator' => '=',
1162
+  'value' => array(
1163
+    'value' => '5',
1164
+    'min' => '',
1165
+    'max' => '',
1166
+  ),
1167
+  'group' => '0',
1168
+  'exposed' => FALSE,
1169
+  'expose' => array(
1170
+    'operator' => FALSE,
1171
+    'label' => '',
1172
+  ),
1173
+  'id' => 'server_state',
1174
+  'table' => 'result',
1175
+  'field' => 'server_state',
1176
+  'override' => array(
1177
+    'button' => 'Use default',
1178
+  ),
1179
+  'relationship' => 'none',
1180
+),
1181
+'views_or_begin_2' => array(
1182
+  'id' => 'views_or_begin_2',
1183
+  'table' => 'views_or',
1184
+  'field' => 'views_or_begin',
1185
+),
1186
+'outcome' => array(
1187
+  'operator' => '=',
1188
+  'value' => array(
1189
+    'value' => '6',
1190
+    'min' => '',
1191
+    'max' => '',
1192
+  ),
1193
+  'group' => '0',
1194
+  'exposed' => FALSE,
1195
+  'expose' => array(
1196
+    'operator' => FALSE,
1197
+    'label' => '',
1198
+  ),
1199
+  'id' => 'outcome',
1200
+  'table' => 'result',
1201
+  'field' => 'outcome',
1202
+  'override' => array(
1203
+    'button' => 'Use default',
1204
+  ),
1205
+  'relationship' => 'none',
1206
+),
1207
+'views_or_next_5' => array(
1208
+  'id' => 'views_or_next_5',
1209
+  'table' => 'views_or',
1210
+  'field' => 'views_or_next',
1211
+),
1212
+'outcome_1' => array(
1213
+  'operator' => '=',
1214
+  'value' => array(
1215
+    'value' => '1',
1216
+    'min' => '',
1217
+    'max' => '',
1218
+  ),
1219
+  'group' => '0',
1220
+  'exposed' => FALSE,
1221
+  'expose' => array(
1222
+    'operator' => FALSE,
1223
+    'label' => '',
1224
+  ),
1225
+  'id' => 'outcome_1',
1226
+  'table' => 'result',
1227
+  'field' => 'outcome',
1228
+  'override' => array(
1229
+    'button' => 'Use default',
1230
+  ),
1231
+  'relationship' => 'none',
1232
+),
1233
+'views_or_begin_3' => array(
1234
+  'id' => 'views_or_begin_3',
1235
+  'table' => 'views_or',
1236
+  'field' => 'views_or_begin',
1237
+),
1238
+'validate_state' => array(
1239
+  'operator' => '=',
1240
+  'value' => array(
1241
+    'value' => '2',
1242
+    'min' => '',
1243
+    'max' => '',
1244
+  ),
1245
+  'group' => '0',
1246
+  'exposed' => FALSE,
1247
+  'expose' => array(
1248
+    'operator' => FALSE,
1249
+    'label' => '',
1250
+  ),
1251
+  'id' => 'validate_state',
1252
+  'table' => 'result',
1253
+  'field' => 'validate_state',
1254
+  'override' => array(
1255
+    'button' => 'Use default',
1256
+  ),
1257
+  'relationship' => 'none',
1258
+),
1259
+'views_or_next_3' => array(
1260
+  'id' => 'views_or_next_3',
1261
+  'table' => 'views_or',
1262
+  'field' => 'views_or_next',
1263
+),
1264
+'validate_state_1' => array(
1265
+  'operator' => '=',
1266
+  'value' => array(
1267
+    'value' => '3',
1268
+    'min' => '',
1269
+    'max' => '',
1270
+  ),
1271
+  'group' => '0',
1272
+  'exposed' => FALSE,
1273
+  'expose' => array(
1274
+    'operator' => FALSE,
1275
+    'label' => '',
1276
+  ),
1277
+  'id' => 'validate_state_1',
1278
+  'table' => 'result',
1279
+  'field' => 'validate_state',
1280
+  'override' => array(
1281
+    'button' => 'Use default',
1282
+  ),
1283
+  'relationship' => 'none',
1284
+),
1285
+'views_or_next_4' => array(
1286
+  'id' => 'views_or_next_4',
1287
+  'table' => 'views_or',
1288
+  'field' => 'views_or_next',
1289
+),
1290
+'validate_state_2' => array(
1291
+  'operator' => '=',
1292
+  'value' => array(
1293
+    'value' => '5',
1294
+    'min' => '',
1295
+    'max' => '',
1296
+  ),
1297
+  'group' => '0',
1298
+  'exposed' => FALSE,
1299
+  'expose' => array(
1300
+    'operator' => FALSE,
1301
+    'label' => '',
1302
+  ),
1303
+  'id' => 'validate_state_2',
1304
+  'table' => 'result',
1305
+  'field' => 'validate_state',
1306
+  'override' => array(
1307
+    'button' => 'Use default',
1308
+  ),
1309
+  'relationship' => 'none',
1310
+),
1311
+'views_or_end_3' => array(
1312
+  'id' => 'views_or_end_3',
1313
+  'table' => 'views_or',
1314
+  'field' => 'views_or_end',
1315
+),
1316
+'views_or_end_2' => array(
1317
+  'id' => 'views_or_end_2',
1318
+  'table' => 'views_or',
1319
+  'field' => 'views_or_end',
1320
+),
1321
+));
1322
+$handler->override_option('path', 'account/tasks/invalid');
1323
+$handler->override_option('menu', array(
1324
+'type' => 'tab',
1325
+'title' => 'Invalid',
1326
+'description' => 'Show invalidated tasks associated with the account',
1327
+'weight' => '4',
1328
+'name' => 'navigation',
1329
+));
1330
+$handler->override_option('tab_options', array(
1331
+'type' => 'none',
1332
+'title' => '',
1333
+'description' => '',
1334
+'weight' => 0,
1335
+'name' => 'navigation',
1336
+));
1337
+$handler = $view->new_display('page', 'Pending', 'page_5');
1338
+$handler->override_option('filters', array(
1339
+'server_state' => array(
1340
+  'operator' => '=',
1341
+  'value' => array(
1342
+    'value' => '5',
1343
+    'min' => '',
1344
+    'max' => '',
1345
+  ),
1346
+  'group' => '0',
1347
+  'exposed' => FALSE,
1348
+  'expose' => array(
1349
+    'operator' => FALSE,
1350
+    'label' => '',
1351
+  ),
1352
+  'id' => 'server_state',
1353
+  'table' => 'result',
1354
+  'field' => 'server_state',
1355
+  'override' => array(
1356
+    'button' => 'Use default',
1357
+  ),
1358
+  'relationship' => 'none',
1359
+),
1360
+'outcome' => array(
1361
+  'operator' => '=',
1362
+  'value' => array(
1363
+    'value' => '1',
1364
+    'min' => '',
1365
+    'max' => '',
1366
+  ),
1367
+  'group' => '0',
1368
+  'exposed' => FALSE,
1369
+  'expose' => array(
1370
+    'operator' => FALSE,
1371
+    'label' => '',
1372
+  ),
1373
+  'id' => 'outcome',
1374
+  'table' => 'result',
1375
+  'field' => 'outcome',
1376
+  'override' => array(
1377
+    'button' => 'Use default',
1378
+  ),
1379
+  'relationship' => 'none',
1380
+),
1381
+'validate_state' => array(
1382
+  'operator' => '>=',
1383
+  'value' => array(
1384
+    'value' => '0',
1385
+    'min' => '',
1386
+    'max' => '',
1387
+  ),
1388
+  'group' => '0',
1389
+  'exposed' => FALSE,
1390
+  'expose' => array(
1391
+    'operator' => FALSE,
1392
+    'label' => '',
1393
+  ),
1394
+  'id' => 'validate_state',
1395
+  'table' => 'result',
1396
+  'field' => 'validate_state',
1397
+  'override' => array(
1398
+    'button' => 'Use default',
1399
+  ),
1400
+  'relationship' => 'none',
1401
+),
1402
+'validate_state_1' => array(
1403
+  'operator' => 'not between',
1404
+  'value' => array(
1405
+    'value' => '',
1406
+    'min' => '0',
1407
+    'max' => '4',
1408
+  ),
1409
+  'group' => '0',
1410
+  'exposed' => FALSE,
1411
+  'expose' => array(
1412
+    'operator' => FALSE,
1413
+    'label' => '',
1414
+  ),
1415
+  'id' => 'validate_state_1',
1416
+  'table' => 'result',
1417
+  'field' => 'validate_state',
1418
+  'override' => array(
1419
+    'button' => 'Use default',
1420
+  ),
1421
+  'relationship' => 'none',
1422
+),
1423
+'validate_state_2' => array(
1424
+  'operator' => '<=',
1425
+  'value' => array(
1426
+    'value' => '4',
1427
+    'min' => '',
1428
+    'max' => '',
1429
+  ),
1430
+  'group' => '0',
1431
+  'exposed' => FALSE,
1432
+  'expose' => array(
1433
+    'operator' => FALSE,
1434
+    'label' => '',
1435
+  ),
1436
+  'id' => 'validate_state_2',
1437
+  'table' => 'result',
1438
+  'field' => 'validate_state',
1439
+  'override' => array(
1440
+    'button' => 'Use default',
1441
+  ),
1442
+  'relationship' => 'none',
1443
+),
1444
+));
1445
+$handler->override_option('path', 'account/tasks/pending');
1446
+$handler->override_option('menu', array(
1447
+'type' => 'tab',
1448
+'title' => 'Pending',
1449
+'description' => 'Show tasks associated with the account with results pending',
1450
+'weight' => '2',
1451
+'name' => 'navigation',
1452
+));
1453
+$handler->override_option('tab_options', array(
1454
+'type' => 'none',
1455
+'title' => '',
1456
+'description' => '',
1457
+'weight' => 0,
1458
+'name' => 'navigation',
1459
+));
1460
+$handler = $view->new_display('page', 'Validated', 'page_6');
1461
+$handler->override_option('filters', array(
1462
+'server_state' => array(
1463
+  'operator' => '=',
1464
+  'value' => array(
1465
+    'value' => '5',
1466
+    'min' => '',
1467
+    'max' => '',
1468
+  ),
1469
+  'group' => '0',
1470
+  'exposed' => FALSE,
1471
+  'expose' => array(
1472
+    'operator' => FALSE,
1473
+    'label' => '',
1474
+  ),
1475
+  'id' => 'server_state',
1476
+  'table' => 'result',
1477
+  'field' => 'server_state',
1478
+  'override' => array(
1479
+    'button' => 'Use default',
1480
+  ),
1481
+  'relationship' => 'none',
1482
+),
1483
+'outcome' => array(
1484
+  'operator' => '=',
1485
+  'value' => array(
1486
+    'value' => '1',
1487
+    'min' => '',
1488
+    'max' => '',
1489
+  ),
1490
+  'group' => '0',
1491
+  'exposed' => FALSE,
1492
+  'expose' => array(
1493
+    'operator' => FALSE,
1494
+    'label' => '',
1495
+  ),
1496
+  'id' => 'outcome',
1497
+  'table' => 'result',
1498
+  'field' => 'outcome',
1499
+  'override' => array(
1500
+    'button' => 'Use default',
1501
+  ),
1502
+  'relationship' => 'none',
1503
+),
1504
+'validate_state' => array(
1505
+  'operator' => '=',
1506
+  'value' => array(
1507
+    'value' => '1',
1508
+    'min' => '',
1509
+    'max' => '',
1510
+  ),
1511
+  'group' => '0',
1512
+  'exposed' => FALSE,
1513
+  'expose' => array(
1514
+    'operator' => FALSE,
1515
+    'label' => '',
1516
+  ),
1517
+  'id' => 'validate_state',
1518
+  'table' => 'result',
1519
+  'field' => 'validate_state',
1520
+  'override' => array(
1521
+    'button' => 'Use default',
1522
+  ),
1523
+  'relationship' => 'none',
1524
+),
1525
+));
1526
+$handler->override_option('path', 'account/tasks/valid');
1527
+$handler->override_option('menu', array(
1528
+'type' => 'tab',
1529
+'title' => 'Valid',
1530
+'description' => 'Show validated tasks associated with the account',
1531
+'weight' => '3',
1532
+'name' => 'navigation',
1533
+));
1534
+$handler->override_option('tab_options', array(
1535
+'type' => 'none',
1536
+'title' => '',
1537
+'description' => '',
1538
+'weight' => 0,
1539
+'name' => 'navigation',
1540
+));
1541 1541
 
1542
-  $views[$view->name] = $view;
1542
+$views[$view->name] = $view;
1543 1543
 
1544
-  // Exported view: boinc_host
1545
-  $view = new view;
1546
-  $view->name = 'boinc_host';
1547
-  $view->description = 'Details for a specific host';
1548
-  $view->tag = '';
1549
-  $view->base_table = 'host';
1550
-  $view->core = 0;
1551
-  $view->api_version = '2';
1552
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
1553
-  $handler = $view->new_display('default', 'Defaults', 'default');
1554
-  $handler->override_option('fields', array(
1555
-    'userid' => array(
1556
-      'label' => 'User ID',
1557
-      'alter' => array(
1558
-        'alter_text' => 0,
1559
-        'text' => '',
1560
-        'make_link' => 0,
1561
-        'path' => '',
1562
-        'link_class' => '',
1563
-        'alt' => '',
1564
-        'prefix' => '',
1565
-        'suffix' => '',
1566
-        'target' => '',
1567
-        'help' => '',
1568
-        'trim' => 0,
1569
-        'max_length' => '',
1570
-        'word_boundary' => 1,
1571
-        'ellipsis' => 1,
1572
-        'html' => 0,
1573
-        'strip_tags' => 0,
1574
-      ),
1575
-      'empty' => '',
1576
-      'hide_empty' => 0,
1577
-      'empty_zero' => 0,
1578
-      'set_precision' => FALSE,
1579
-      'precision' => 0,
1580
-      'decimal' => '.',
1581
-      'separator' => '',
1582
-      'prefix' => '',
1583
-      'suffix' => '',
1584
-      'exclude' => 1,
1585
-      'id' => 'userid',
1586
-      'table' => 'host',
1587
-      'field' => 'userid',
1588
-      'relationship' => 'none',
1589
-    ),
1590
-    'last_ip_addr' => array(
1591
-      'label' => 'Last IP address',
1592
-      'alter' => array(
1593
-        'alter_text' => 0,
1594
-        'text' => '',
1595
-        'make_link' => 0,
1596
-        'path' => '',
1597
-        'link_class' => '',
1598
-        'alt' => '',
1599
-        'prefix' => '',
1600
-        'suffix' => '',
1601
-        'target' => '',
1602
-        'help' => '',
1603
-        'trim' => 0,
1604
-        'max_length' => '',
1605
-        'word_boundary' => 1,
1606
-        'ellipsis' => 1,
1607
-        'html' => 0,
1608
-        'strip_tags' => 0,
1609
-      ),
1610
-      'empty' => '',
1611
-      'hide_empty' => 0,
1612
-      'empty_zero' => 0,
1613
-      'exclude' => 1,
1614
-      'id' => 'last_ip_addr',
1615
-      'table' => 'host',
1616
-      'field' => 'last_ip_addr',
1617
-      'relationship' => 'none',
1618
-    ),
1619
-    'nsame_ip_addr' => array(
1620
-      'label' => 'Same IP address count',
1621
-      'alter' => array(
1622
-        'alter_text' => 0,
1623
-        'text' => '',
1624
-        'make_link' => 0,
1625
-        'path' => '',
1626
-        'link_class' => '',
1627
-        'alt' => '',
1628
-        'prefix' => '',
1629
-        'suffix' => '',
1630
-        'target' => '',
1631
-        'help' => '',
1632
-        'trim' => 0,
1633
-        'max_length' => '',
1634
-        'word_boundary' => 1,
1635
-        'ellipsis' => 1,
1636
-        'html' => 0,
1637
-        'strip_tags' => 0,
1638
-      ),
1639
-      'empty' => '',
1640
-      'hide_empty' => 0,
1641
-      'empty_zero' => 0,
1642
-      'exclude' => 1,
1643
-      'id' => 'nsame_ip_addr',
1644
-      'table' => 'host',
1645
-      'field' => 'nsame_ip_addr',
1646
-      'relationship' => 'none',
1647
-    ),
1648
-    'external_ip_addr' => array(
1649
-      'label' => 'External IP address',
1650
-      'alter' => array(
1651
-        'alter_text' => 0,
1652
-        'text' => '',
1653
-        'make_link' => 0,
1654
-        'path' => '',
1655
-        'link_class' => '',
1656
-        'alt' => '',
1657
-        'prefix' => '',
1658
-        'suffix' => '',
1659
-        'target' => '',
1660
-        'help' => '',
1661
-        'trim' => 0,
1662
-        'max_length' => '',
1663
-        'word_boundary' => 1,
1664
-        'ellipsis' => 1,
1665
-        'html' => 0,
1666
-        'strip_tags' => 0,
1667
-      ),
1668
-      'empty' => '',
1669
-      'hide_empty' => 0,
1670
-      'empty_zero' => 0,
1671
-      'exclude' => 1,
1672
-      'id' => 'external_ip_addr',
1673
-      'table' => 'host',
1674
-      'field' => 'external_ip_addr',
1675
-      'relationship' => 'none',
1676
-    ),
1677
-    'phpcode_26' => array(
1678
-      'label' => 'IP address',
1679
-      'alter' => array(
1680
-        'alter_text' => 0,
1681
-        'text' => '',
1682
-        'make_link' => 0,
1683
-        'path' => '',
1684
-        'absolute' => 0,
1685
-        'link_class' => '',
1686
-        'alt' => '',
1687
-        'rel' => '',
1688
-        'prefix' => '',
1689
-        'suffix' => '',
1690
-        'target' => '',
1691
-        'help' => '',
1692
-        'trim' => 0,
1693
-        'max_length' => '',
1694
-        'word_boundary' => 1,
1695
-        'ellipsis' => 1,
1696
-        'html' => 0,
1697
-        'strip_tags' => 0,
1698
-      ),
1699
-      'empty' => '',
1700
-      'hide_empty' => 1,
1701
-      'empty_zero' => 0,
1702
-      'hide_alter_empty' => 1,
1703
-      'value' => '<?php
1544
+// Exported view: boinc_host
1545
+$view = new view;
1546
+$view->name = 'boinc_host';
1547
+$view->description = 'Details for a specific host';
1548
+$view->tag = '';
1549
+$view->base_table = 'host';
1550
+$view->core = 0;
1551
+$view->api_version = '2';
1552
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
1553
+$handler = $view->new_display('default', 'Defaults', 'default');
1554
+$handler->override_option('fields', array(
1555
+'userid' => array(
1556
+  'label' => 'User ID',
1557
+  'alter' => array(
1558
+    'alter_text' => 0,
1559
+    'text' => '',
1560
+    'make_link' => 0,
1561
+    'path' => '',
1562
+    'link_class' => '',
1563
+    'alt' => '',
1564
+    'prefix' => '',
1565
+    'suffix' => '',
1566
+    'target' => '',
1567
+    'help' => '',
1568
+    'trim' => 0,
1569
+    'max_length' => '',
1570
+    'word_boundary' => 1,
1571
+    'ellipsis' => 1,
1572
+    'html' => 0,
1573
+    'strip_tags' => 0,
1574
+  ),
1575
+  'empty' => '',
1576
+  'hide_empty' => 0,
1577
+  'empty_zero' => 0,
1578
+  'set_precision' => FALSE,
1579
+  'precision' => 0,
1580
+  'decimal' => '.',
1581
+  'separator' => '',
1582
+  'prefix' => '',
1583
+  'suffix' => '',
1584
+  'exclude' => 1,
1585
+  'id' => 'userid',
1586
+  'table' => 'host',
1587
+  'field' => 'userid',
1588
+  'relationship' => 'none',
1589
+),
1590
+'last_ip_addr' => array(
1591
+  'label' => 'Last IP address',
1592
+  'alter' => array(
1593
+    'alter_text' => 0,
1594
+    'text' => '',
1595
+    'make_link' => 0,
1596
+    'path' => '',
1597
+    'link_class' => '',
1598
+    'alt' => '',
1599
+    'prefix' => '',
1600
+    'suffix' => '',
1601
+    'target' => '',
1602
+    'help' => '',
1603
+    'trim' => 0,
1604
+    'max_length' => '',
1605
+    'word_boundary' => 1,
1606
+    'ellipsis' => 1,
1607
+    'html' => 0,
1608
+    'strip_tags' => 0,
1609
+  ),
1610
+  'empty' => '',
1611
+  'hide_empty' => 0,
1612
+  'empty_zero' => 0,
1613
+  'exclude' => 1,
1614
+  'id' => 'last_ip_addr',
1615
+  'table' => 'host',
1616
+  'field' => 'last_ip_addr',
1617
+  'relationship' => 'none',
1618
+),
1619
+'nsame_ip_addr' => array(
1620
+  'label' => 'Same IP address count',
1621
+  'alter' => array(
1622
+    'alter_text' => 0,
1623
+    'text' => '',
1624
+    'make_link' => 0,
1625
+    'path' => '',
1626
+    'link_class' => '',
1627
+    'alt' => '',
1628
+    'prefix' => '',
1629
+    'suffix' => '',
1630
+    'target' => '',
1631
+    'help' => '',
1632
+    'trim' => 0,
1633
+    'max_length' => '',
1634
+    'word_boundary' => 1,
1635
+    'ellipsis' => 1,
1636
+    'html' => 0,
1637
+    'strip_tags' => 0,
1638
+  ),
1639
+  'empty' => '',
1640
+  'hide_empty' => 0,
1641
+  'empty_zero' => 0,
1642
+  'exclude' => 1,
1643
+  'id' => 'nsame_ip_addr',
1644
+  'table' => 'host',
1645
+  'field' => 'nsame_ip_addr',
1646
+  'relationship' => 'none',
1647
+),
1648
+'external_ip_addr' => array(
1649
+  'label' => 'External IP address',
1650
+  'alter' => array(
1651
+    'alter_text' => 0,
1652
+    'text' => '',
1653
+    'make_link' => 0,
1654
+    'path' => '',
1655
+    'link_class' => '',
1656
+    'alt' => '',
1657
+    'prefix' => '',
1658
+    'suffix' => '',
1659
+    'target' => '',
1660
+    'help' => '',
1661
+    'trim' => 0,
1662
+    'max_length' => '',
1663
+    'word_boundary' => 1,
1664
+    'ellipsis' => 1,
1665
+    'html' => 0,
1666
+    'strip_tags' => 0,
1667
+  ),
1668
+  'empty' => '',
1669
+  'hide_empty' => 0,
1670
+  'empty_zero' => 0,
1671
+  'exclude' => 1,
1672
+  'id' => 'external_ip_addr',
1673
+  'table' => 'host',
1674
+  'field' => 'external_ip_addr',
1675
+  'relationship' => 'none',
1676
+),
1677
+'phpcode_26' => array(
1678
+  'label' => 'IP address',
1679
+  'alter' => array(
1680
+    'alter_text' => 0,
1681
+    'text' => '',
1682
+    'make_link' => 0,
1683
+    'path' => '',
1684
+    'absolute' => 0,
1685
+    'link_class' => '',
1686
+    'alt' => '',
1687
+    'rel' => '',
1688
+    'prefix' => '',
1689
+    'suffix' => '',
1690
+    'target' => '',
1691
+    'help' => '',
1692
+    'trim' => 0,
1693
+    'max_length' => '',
1694
+    'word_boundary' => 1,
1695
+    'ellipsis' => 1,
1696
+    'html' => 0,
1697
+    'strip_tags' => 0,
1698
+  ),
1699
+  'empty' => '',
1700
+  'hide_empty' => 1,
1701
+  'empty_zero' => 0,
1702
+  'hide_alter_empty' => 1,
1703
+  'value' => '<?php
1704 1704
   if (is_current_boinc_user($data->host_userid)) {
1705 1705
     $showIP = arg(2);
1706 1706
     if ($showIP) {
@@ -1719,36 +1719,36 @@  discard block
 block discarded – undo
1719 1719
     }
1720 1720
   }
1721 1721
 ?>',
1722
-      'exclude' => 0,
1723
-      'id' => 'phpcode_26',
1724
-      'table' => 'customfield',
1725
-      'field' => 'phpcode',
1726
-      'relationship' => 'none',
1727
-    ),
1728
-    'phpcode_28' => array(
1729
-      'label' => 'External IP address',
1730
-      'alter' => array(
1731
-        'alter_text' => 0,
1732
-        'text' => '',
1733
-        'make_link' => 0,
1734
-        'path' => '',
1735
-        'link_class' => '',
1736
-        'alt' => '',
1737
-        'prefix' => '',
1738
-        'suffix' => '',
1739
-        'target' => '',
1740
-        'help' => '',
1741
-        'trim' => 0,
1742
-        'max_length' => '',
1743
-        'word_boundary' => 1,
1744
-        'ellipsis' => 1,
1745
-        'html' => 0,
1746
-        'strip_tags' => 0,
1747
-      ),
1748
-      'empty' => '',
1749
-      'hide_empty' => 1,
1750
-      'empty_zero' => 0,
1751
-      'value' => '<?php
1722
+  'exclude' => 0,
1723
+  'id' => 'phpcode_26',
1724
+  'table' => 'customfield',
1725
+  'field' => 'phpcode',
1726
+  'relationship' => 'none',
1727
+),
1728
+'phpcode_28' => array(
1729
+  'label' => 'External IP address',
1730
+  'alter' => array(
1731
+    'alter_text' => 0,
1732
+    'text' => '',
1733
+    'make_link' => 0,
1734
+    'path' => '',
1735
+    'link_class' => '',
1736
+    'alt' => '',
1737
+    'prefix' => '',
1738
+    'suffix' => '',
1739
+    'target' => '',
1740
+    'help' => '',
1741
+    'trim' => 0,
1742
+    'max_length' => '',
1743
+    'word_boundary' => 1,
1744
+    'ellipsis' => 1,
1745
+    'html' => 0,
1746
+    'strip_tags' => 0,
1747
+  ),
1748
+  'empty' => '',
1749
+  'hide_empty' => 1,
1750
+  'empty_zero' => 0,
1751
+  'value' => '<?php
1752 1752
   if (is_current_boinc_user($data->host_userid)) {
1753 1753
     $showIP = arg(2);
1754 1754
     if ($showIP) {
@@ -1756,208 +1756,208 @@  discard block
 block discarded – undo
1756 1756
     }
1757 1757
   }
1758 1758
 ?>',
1759
-      'exclude' => 0,
1760
-      'id' => 'phpcode_28',
1761
-      'table' => 'customfield',
1762
-      'field' => 'phpcode',
1763
-      'relationship' => 'none',
1764
-    ),
1765
-    'domain_name' => array(
1766
-      'label' => 'Domain name',
1767
-      'alter' => array(
1768
-        'alter_text' => 0,
1769
-        'text' => '',
1770
-        'make_link' => 0,
1771
-        'path' => '',
1772
-        'link_class' => '',
1773
-        'alt' => '',
1774
-        'prefix' => '',
1775
-        'suffix' => '',
1776
-        'target' => '',
1777
-        'help' => '',
1778
-        'trim' => 0,
1779
-        'max_length' => '',
1780
-        'word_boundary' => 1,
1781
-        'ellipsis' => 1,
1782
-        'html' => 0,
1783
-        'strip_tags' => 0,
1784
-      ),
1785
-      'empty' => '',
1786
-      'hide_empty' => 0,
1787
-      'empty_zero' => 0,
1788
-      'exclude' => 1,
1789
-      'id' => 'domain_name',
1790
-      'table' => 'host',
1791
-      'field' => 'domain_name',
1792
-      'relationship' => 'none',
1793
-    ),
1794
-    'phpcode_3' => array(
1795
-      'label' => 'Domain name',
1796
-      'alter' => array(
1797
-        'alter_text' => 0,
1798
-        'text' => '',
1799
-        'make_link' => 0,
1800
-        'path' => '',
1801
-        'link_class' => '',
1802
-        'alt' => '',
1803
-        'prefix' => '',
1804
-        'suffix' => '',
1805
-        'target' => '',
1806
-        'help' => '',
1807
-        'trim' => 0,
1808
-        'max_length' => '',
1809
-        'word_boundary' => 1,
1810
-        'ellipsis' => 1,
1811
-        'html' => 0,
1812
-        'strip_tags' => 0,
1813
-      ),
1814
-      'empty' => '',
1815
-      'hide_empty' => 1,
1816
-      'empty_zero' => 0,
1817
-      'value' => '<?php
1759
+  'exclude' => 0,
1760
+  'id' => 'phpcode_28',
1761
+  'table' => 'customfield',
1762
+  'field' => 'phpcode',
1763
+  'relationship' => 'none',
1764
+),
1765
+'domain_name' => array(
1766
+  'label' => 'Domain name',
1767
+  'alter' => array(
1768
+    'alter_text' => 0,
1769
+    'text' => '',
1770
+    'make_link' => 0,
1771
+    'path' => '',
1772
+    'link_class' => '',
1773
+    'alt' => '',
1774
+    'prefix' => '',
1775
+    'suffix' => '',
1776
+    'target' => '',
1777
+    'help' => '',
1778
+    'trim' => 0,
1779
+    'max_length' => '',
1780
+    'word_boundary' => 1,
1781
+    'ellipsis' => 1,
1782
+    'html' => 0,
1783
+    'strip_tags' => 0,
1784
+  ),
1785
+  'empty' => '',
1786
+  'hide_empty' => 0,
1787
+  'empty_zero' => 0,
1788
+  'exclude' => 1,
1789
+  'id' => 'domain_name',
1790
+  'table' => 'host',
1791
+  'field' => 'domain_name',
1792
+  'relationship' => 'none',
1793
+),
1794
+'phpcode_3' => array(
1795
+  'label' => 'Domain name',
1796
+  'alter' => array(
1797
+    'alter_text' => 0,
1798
+    'text' => '',
1799
+    'make_link' => 0,
1800
+    'path' => '',
1801
+    'link_class' => '',
1802
+    'alt' => '',
1803
+    'prefix' => '',
1804
+    'suffix' => '',
1805
+    'target' => '',
1806
+    'help' => '',
1807
+    'trim' => 0,
1808
+    'max_length' => '',
1809
+    'word_boundary' => 1,
1810
+    'ellipsis' => 1,
1811
+    'html' => 0,
1812
+    'strip_tags' => 0,
1813
+  ),
1814
+  'empty' => '',
1815
+  'hide_empty' => 1,
1816
+  'empty_zero' => 0,
1817
+  'value' => '<?php
1818 1818
   if (is_current_boinc_user($data->host_userid)) {
1819 1819
     echo $data->host_domain_name;
1820 1820
   }
1821 1821
 ?>',
1822
-      'exclude' => 0,
1823
-      'id' => 'phpcode_3',
1824
-      'table' => 'customfield',
1825
-      'field' => 'phpcode',
1826
-      'relationship' => 'none',
1827
-    ),
1828
-    'timezone' => array(
1829
-      'label' => 'Timezone',
1830
-      'alter' => array(
1831
-        'alter_text' => 0,
1832
-        'text' => '',
1833
-        'make_link' => 0,
1834
-        'path' => '',
1835
-        'link_class' => '',
1836
-        'alt' => '',
1837
-        'prefix' => '',
1838
-        'suffix' => '',
1839
-        'target' => '',
1840
-        'help' => '',
1841
-        'trim' => 0,
1842
-        'max_length' => '',
1843
-        'word_boundary' => 1,
1844
-        'ellipsis' => 1,
1845
-        'html' => 0,
1846
-        'strip_tags' => 0,
1847
-      ),
1848
-      'empty' => '',
1849
-      'hide_empty' => 0,
1850
-      'empty_zero' => 0,
1851
-      'set_precision' => FALSE,
1852
-      'precision' => 0,
1853
-      'decimal' => '.',
1854
-      'separator' => '',
1855
-      'prefix' => '',
1856
-      'suffix' => '',
1857
-      'exclude' => 1,
1858
-      'id' => 'timezone',
1859
-      'table' => 'host',
1860
-      'field' => 'timezone',
1861
-      'relationship' => 'none',
1862
-    ),
1863
-    'phpcode_4' => array(
1864
-      'label' => 'Local standard time',
1865
-      'alter' => array(
1866
-        'alter_text' => 0,
1867
-        'text' => '',
1868
-        'make_link' => 0,
1869
-        'path' => '',
1870
-        'absolute' => 0,
1871
-        'link_class' => '',
1872
-        'alt' => '',
1873
-        'rel' => '',
1874
-        'prefix' => '',
1875
-        'suffix' => '',
1876
-        'target' => '',
1877
-        'help' => '',
1878
-        'trim' => 0,
1879
-        'max_length' => '',
1880
-        'word_boundary' => 1,
1881
-        'ellipsis' => 1,
1882
-        'html' => 0,
1883
-        'strip_tags' => 0,
1884
-      ),
1885
-      'empty' => '',
1886
-      'hide_empty' => 1,
1887
-      'empty_zero' => 0,
1888
-      'hide_alter_empty' => 1,
1889
-      'value' => '<?php
1822
+  'exclude' => 0,
1823
+  'id' => 'phpcode_3',
1824
+  'table' => 'customfield',
1825
+  'field' => 'phpcode',
1826
+  'relationship' => 'none',
1827
+),
1828
+'timezone' => array(
1829
+  'label' => 'Timezone',
1830
+  'alter' => array(
1831
+    'alter_text' => 0,
1832
+    'text' => '',
1833
+    'make_link' => 0,
1834
+    'path' => '',
1835
+    'link_class' => '',
1836
+    'alt' => '',
1837
+    'prefix' => '',
1838
+    'suffix' => '',
1839
+    'target' => '',
1840
+    'help' => '',
1841
+    'trim' => 0,
1842
+    'max_length' => '',
1843
+    'word_boundary' => 1,
1844
+    'ellipsis' => 1,
1845
+    'html' => 0,
1846
+    'strip_tags' => 0,
1847
+  ),
1848
+  'empty' => '',
1849
+  'hide_empty' => 0,
1850
+  'empty_zero' => 0,
1851
+  'set_precision' => FALSE,
1852
+  'precision' => 0,
1853
+  'decimal' => '.',
1854
+  'separator' => '',
1855
+  'prefix' => '',
1856
+  'suffix' => '',
1857
+  'exclude' => 1,
1858
+  'id' => 'timezone',
1859
+  'table' => 'host',
1860
+  'field' => 'timezone',
1861
+  'relationship' => 'none',
1862
+),
1863
+'phpcode_4' => array(
1864
+  'label' => 'Local standard time',
1865
+  'alter' => array(
1866
+    'alter_text' => 0,
1867
+    'text' => '',
1868
+    'make_link' => 0,
1869
+    'path' => '',
1870
+    'absolute' => 0,
1871
+    'link_class' => '',
1872
+    'alt' => '',
1873
+    'rel' => '',
1874
+    'prefix' => '',
1875
+    'suffix' => '',
1876
+    'target' => '',
1877
+    'help' => '',
1878
+    'trim' => 0,
1879
+    'max_length' => '',
1880
+    'word_boundary' => 1,
1881
+    'ellipsis' => 1,
1882
+    'html' => 0,
1883
+    'strip_tags' => 0,
1884
+  ),
1885
+  'empty' => '',
1886
+  'hide_empty' => 1,
1887
+  'empty_zero' => 0,
1888
+  'hide_alter_empty' => 1,
1889
+  'value' => '<?php
1890 1890
   if (is_current_boinc_user($data->host_userid)) {
1891 1891
     echo \'UTC \' . ($data->host_timezone > 0 ? \'+\' : \'\') . $data->host_timezone / 3600 . \' \' . bts(\'hours\', array(), NULL, \'boinc:unit-of-time\');
1892 1892
   }
1893 1893
 ?>',
1894
-      'exclude' => 0,
1895
-      'id' => 'phpcode_4',
1896
-      'table' => 'customfield',
1897
-      'field' => 'phpcode',
1898
-      'relationship' => 'none',
1899
-    ),
1900
-    'phpcode_5' => array(
1901
-      'label' => 'Name',
1902
-      'alter' => array(
1903
-        'alter_text' => 0,
1904
-        'text' => '',
1905
-        'make_link' => 0,
1906
-        'path' => '',
1907
-        'link_class' => '',
1908
-        'alt' => '',
1909
-        'prefix' => '',
1910
-        'suffix' => '',
1911
-        'target' => '',
1912
-        'help' => '',
1913
-        'trim' => 0,
1914
-        'max_length' => '',
1915
-        'word_boundary' => 1,
1916
-        'ellipsis' => 1,
1917
-        'html' => 0,
1918
-        'strip_tags' => 0,
1919
-      ),
1920
-      'empty' => '',
1921
-      'hide_empty' => 1,
1922
-      'empty_zero' => 0,
1923
-      'value' => '<?php
1894
+  'exclude' => 0,
1895
+  'id' => 'phpcode_4',
1896
+  'table' => 'customfield',
1897
+  'field' => 'phpcode',
1898
+  'relationship' => 'none',
1899
+),
1900
+'phpcode_5' => array(
1901
+  'label' => 'Name',
1902
+  'alter' => array(
1903
+    'alter_text' => 0,
1904
+    'text' => '',
1905
+    'make_link' => 0,
1906
+    'path' => '',
1907
+    'link_class' => '',
1908
+    'alt' => '',
1909
+    'prefix' => '',
1910
+    'suffix' => '',
1911
+    'target' => '',
1912
+    'help' => '',
1913
+    'trim' => 0,
1914
+    'max_length' => '',
1915
+    'word_boundary' => 1,
1916
+    'ellipsis' => 1,
1917
+    'html' => 0,
1918
+    'strip_tags' => 0,
1919
+  ),
1920
+  'empty' => '',
1921
+  'hide_empty' => 1,
1922
+  'empty_zero' => 0,
1923
+  'value' => '<?php
1924 1924
   if (is_current_boinc_user($data->host_userid)) {
1925 1925
     echo $data->host_domain_name;
1926 1926
   }
1927 1927
 ?>',
1928
-      'exclude' => 0,
1929
-      'id' => 'phpcode_5',
1930
-      'table' => 'customfield',
1931
-      'field' => 'phpcode',
1932
-      'relationship' => 'none',
1933
-    ),
1934
-    'phpcode_29' => array(
1935
-      'label' => 'Owner',
1936
-      'alter' => array(
1937
-        'alter_text' => 0,
1938
-        'text' => '',
1939
-        'make_link' => 0,
1940
-        'path' => '',
1941
-        'absolute' => 0,
1942
-        'link_class' => '',
1943
-        'alt' => '',
1944
-        'rel' => '',
1945
-        'prefix' => '',
1946
-        'suffix' => '',
1947
-        'target' => '',
1948
-        'help' => '',
1949
-        'trim' => 0,
1950
-        'max_length' => '',
1951
-        'word_boundary' => 1,
1952
-        'ellipsis' => 1,
1953
-        'html' => 0,
1954
-        'strip_tags' => 0,
1955
-      ),
1956
-      'empty' => '',
1957
-      'hide_empty' => 1,
1958
-      'empty_zero' => 0,
1959
-      'hide_alter_empty' => 1,
1960
-      'value' => '<?php
1928
+  'exclude' => 0,
1929
+  'id' => 'phpcode_5',
1930
+  'table' => 'customfield',
1931
+  'field' => 'phpcode',
1932
+  'relationship' => 'none',
1933
+),
1934
+'phpcode_29' => array(
1935
+  'label' => 'Owner',
1936
+  'alter' => array(
1937
+    'alter_text' => 0,
1938
+    'text' => '',
1939
+    'make_link' => 0,
1940
+    'path' => '',
1941
+    'absolute' => 0,
1942
+    'link_class' => '',
1943
+    'alt' => '',
1944
+    'rel' => '',
1945
+    'prefix' => '',
1946
+    'suffix' => '',
1947
+    'target' => '',
1948
+    'help' => '',
1949
+    'trim' => 0,
1950
+    'max_length' => '',
1951
+    'word_boundary' => 1,
1952
+    'ellipsis' => 1,
1953
+    'html' => 0,
1954
+    'strip_tags' => 0,
1955
+  ),
1956
+  'empty' => '',
1957
+  'hide_empty' => 1,
1958
+  'empty_zero' => 0,
1959
+  'hide_alter_empty' => 1,
1960
+  'value' => '<?php
1961 1961
   if (!is_current_boinc_user($data->host_userid)) {
1962 1962
     require_boinc(\'boinc_db\');
1963 1963
     $owner = BoincUser::lookup_id($data->host_userid);
@@ -1966,178 +1966,178 @@  discard block
 block discarded – undo
1966 1966
     echo ($owner->show_hosts) ? $profile_link : bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
1967 1967
   }
1968 1968
 ?>',
1969
-      'exclude' => 0,
1970
-      'id' => 'phpcode_29',
1971
-      'table' => 'customfield',
1972
-      'field' => 'phpcode',
1973
-      'relationship' => 'none',
1974
-    ),
1975
-    'create_time' => array(
1976
-      'label' => 'Created',
1977
-      'alter' => array(
1978
-        'alter_text' => 0,
1979
-        'text' => '',
1980
-        'make_link' => 0,
1981
-        'path' => '',
1982
-        'absolute' => 0,
1983
-        'link_class' => '',
1984
-        'alt' => '',
1985
-        'rel' => '',
1986
-        'prefix' => '',
1987
-        'suffix' => '',
1988
-        'target' => '',
1989
-        'help' => '',
1990
-        'trim' => 0,
1991
-        'max_length' => '',
1992
-        'word_boundary' => 1,
1993
-        'ellipsis' => 1,
1994
-        'html' => 0,
1995
-        'strip_tags' => 0,
1996
-      ),
1997
-      'empty' => '',
1998
-      'hide_empty' => 0,
1999
-      'empty_zero' => 0,
2000
-      'hide_alter_empty' => 1,
2001
-      'date_format' => 'custom',
2002
-      'custom_date_format' => 'j M Y G:i:s T',
2003
-      'exclude' => 0,
2004
-      'id' => 'create_time',
2005
-      'table' => 'host',
2006
-      'field' => 'create_time',
2007
-      'relationship' => 'none',
2008
-    ),
2009
-    'total_credit' => array(
2010
-      'label' => 'Total credit',
2011
-      'alter' => array(
2012
-        'alter_text' => 0,
2013
-        'text' => '',
2014
-        'make_link' => 0,
2015
-        'path' => '',
2016
-        'absolute' => 0,
2017
-        'link_class' => '',
2018
-        'alt' => '',
2019
-        'rel' => '',
2020
-        'prefix' => '',
2021
-        'suffix' => '',
2022
-        'target' => '',
2023
-        'help' => '',
2024
-        'trim' => 0,
2025
-        'max_length' => '',
2026
-        'word_boundary' => 1,
2027
-        'ellipsis' => 1,
2028
-        'html' => 0,
2029
-        'strip_tags' => 0,
2030
-      ),
2031
-      'empty' => '0',
2032
-      'hide_empty' => 0,
2033
-      'empty_zero' => 0,
2034
-      'hide_alter_empty' => 0,
2035
-      'set_precision' => 1,
2036
-      'precision' => '0',
2037
-      'decimal' => '.',
2038
-      'separator' => ',',
2039
-      'format_plural' => 0,
2040
-      'format_plural_singular' => '1',
2041
-      'format_plural_plural' => '@count',
2042
-      'prefix' => '',
2043
-      'suffix' => '',
2044
-      'exclude' => 0,
2045
-      'id' => 'total_credit',
2046
-      'table' => 'host',
2047
-      'field' => 'total_credit',
2048
-      'relationship' => 'none',
2049
-    ),
2050
-    'expavg_credit' => array(
2051
-      'label' => 'Average credit',
2052
-      'alter' => array(
2053
-        'alter_text' => 0,
2054
-        'text' => '',
2055
-        'make_link' => 0,
2056
-        'path' => '',
2057
-        'link_class' => '',
2058
-        'alt' => '',
2059
-        'prefix' => '',
2060
-        'suffix' => '',
2061
-        'target' => '',
2062
-        'help' => '',
2063
-        'trim' => 0,
2064
-        'max_length' => '',
2065
-        'word_boundary' => 1,
2066
-        'ellipsis' => 1,
2067
-        'html' => 0,
2068
-        'strip_tags' => 0,
2069
-      ),
2070
-      'empty' => '',
2071
-      'hide_empty' => 0,
2072
-      'empty_zero' => 0,
2073
-      'set_precision' => 1,
2074
-      'precision' => '2',
2075
-      'decimal' => '.',
2076
-      'separator' => ',',
2077
-      'prefix' => '',
2078
-      'suffix' => '',
2079
-      'exclude' => 0,
2080
-      'id' => 'expavg_credit',
2081
-      'table' => 'host',
2082
-      'field' => 'expavg_credit',
2083
-      'relationship' => 'none',
2084
-    ),
2085
-    'host_cpid' => array(
2086
-      'label' => 'Cross project ID',
2087
-      'alter' => array(
2088
-        'alter_text' => 0,
2089
-        'text' => '',
2090
-        'make_link' => 0,
2091
-        'path' => '',
2092
-        'absolute' => 0,
2093
-        'link_class' => '',
2094
-        'alt' => '',
2095
-        'rel' => '',
2096
-        'prefix' => '',
2097
-        'suffix' => '',
2098
-        'target' => '',
2099
-        'help' => '',
2100
-        'trim' => 0,
2101
-        'max_length' => '',
2102
-        'word_boundary' => 1,
2103
-        'ellipsis' => 1,
2104
-        'html' => 0,
2105
-        'strip_tags' => 0,
2106
-      ),
2107
-      'empty' => '',
2108
-      'hide_empty' => 0,
2109
-      'empty_zero' => 0,
2110
-      'hide_alter_empty' => 1,
2111
-      'exclude' => 1,
2112
-      'id' => 'host_cpid',
2113
-      'table' => 'host',
2114
-      'field' => 'host_cpid',
2115
-      'relationship' => 'none',
2116
-    ),
2117
-    'phpcode_7' => array(
2118
-      'label' => 'Cross project credit',
2119
-      'alter' => array(
2120
-        'alter_text' => 0,
2121
-        'text' => '',
2122
-        'make_link' => 0,
2123
-        'path' => '',
2124
-        'link_class' => '',
2125
-        'alt' => '',
2126
-        'prefix' => '',
2127
-        'suffix' => '',
2128
-        'target' => '',
2129
-        'help' => '',
2130
-        'trim' => 0,
2131
-        'max_length' => '',
2132
-        'word_boundary' => 1,
2133
-        'ellipsis' => 1,
2134
-        'html' => 0,
2135
-        'strip_tags' => 0,
2136
-      ),
2137
-      'empty' => '',
2138
-      'hide_empty' => 1,
2139
-      'empty_zero' => 0,
2140
-      'value' => '<?php
1969
+  'exclude' => 0,
1970
+  'id' => 'phpcode_29',
1971
+  'table' => 'customfield',
1972
+  'field' => 'phpcode',
1973
+  'relationship' => 'none',
1974
+),
1975
+'create_time' => array(
1976
+  'label' => 'Created',
1977
+  'alter' => array(
1978
+    'alter_text' => 0,
1979
+    'text' => '',
1980
+    'make_link' => 0,
1981
+    'path' => '',
1982
+    'absolute' => 0,
1983
+    'link_class' => '',
1984
+    'alt' => '',
1985
+    'rel' => '',
1986
+    'prefix' => '',
1987
+    'suffix' => '',
1988
+    'target' => '',
1989
+    'help' => '',
1990
+    'trim' => 0,
1991
+    'max_length' => '',
1992
+    'word_boundary' => 1,
1993
+    'ellipsis' => 1,
1994
+    'html' => 0,
1995
+    'strip_tags' => 0,
1996
+  ),
1997
+  'empty' => '',
1998
+  'hide_empty' => 0,
1999
+  'empty_zero' => 0,
2000
+  'hide_alter_empty' => 1,
2001
+  'date_format' => 'custom',
2002
+  'custom_date_format' => 'j M Y G:i:s T',
2003
+  'exclude' => 0,
2004
+  'id' => 'create_time',
2005
+  'table' => 'host',
2006
+  'field' => 'create_time',
2007
+  'relationship' => 'none',
2008
+),
2009
+'total_credit' => array(
2010
+  'label' => 'Total credit',
2011
+  'alter' => array(
2012
+    'alter_text' => 0,
2013
+    'text' => '',
2014
+    'make_link' => 0,
2015
+    'path' => '',
2016
+    'absolute' => 0,
2017
+    'link_class' => '',
2018
+    'alt' => '',
2019
+    'rel' => '',
2020
+    'prefix' => '',
2021
+    'suffix' => '',
2022
+    'target' => '',
2023
+    'help' => '',
2024
+    'trim' => 0,
2025
+    'max_length' => '',
2026
+    'word_boundary' => 1,
2027
+    'ellipsis' => 1,
2028
+    'html' => 0,
2029
+    'strip_tags' => 0,
2030
+  ),
2031
+  'empty' => '0',
2032
+  'hide_empty' => 0,
2033
+  'empty_zero' => 0,
2034
+  'hide_alter_empty' => 0,
2035
+  'set_precision' => 1,
2036
+  'precision' => '0',
2037
+  'decimal' => '.',
2038
+  'separator' => ',',
2039
+  'format_plural' => 0,
2040
+  'format_plural_singular' => '1',
2041
+  'format_plural_plural' => '@count',
2042
+  'prefix' => '',
2043
+  'suffix' => '',
2044
+  'exclude' => 0,
2045
+  'id' => 'total_credit',
2046
+  'table' => 'host',
2047
+  'field' => 'total_credit',
2048
+  'relationship' => 'none',
2049
+),
2050
+'expavg_credit' => array(
2051
+  'label' => 'Average credit',
2052
+  'alter' => array(
2053
+    'alter_text' => 0,
2054
+    'text' => '',
2055
+    'make_link' => 0,
2056
+    'path' => '',
2057
+    'link_class' => '',
2058
+    'alt' => '',
2059
+    'prefix' => '',
2060
+    'suffix' => '',
2061
+    'target' => '',
2062
+    'help' => '',
2063
+    'trim' => 0,
2064
+    'max_length' => '',
2065
+    'word_boundary' => 1,
2066
+    'ellipsis' => 1,
2067
+    'html' => 0,
2068
+    'strip_tags' => 0,
2069
+  ),
2070
+  'empty' => '',
2071
+  'hide_empty' => 0,
2072
+  'empty_zero' => 0,
2073
+  'set_precision' => 1,
2074
+  'precision' => '2',
2075
+  'decimal' => '.',
2076
+  'separator' => ',',
2077
+  'prefix' => '',
2078
+  'suffix' => '',
2079
+  'exclude' => 0,
2080
+  'id' => 'expavg_credit',
2081
+  'table' => 'host',
2082
+  'field' => 'expavg_credit',
2083
+  'relationship' => 'none',
2084
+),
2085
+'host_cpid' => array(
2086
+  'label' => 'Cross project ID',
2087
+  'alter' => array(
2088
+    'alter_text' => 0,
2089
+    'text' => '',
2090
+    'make_link' => 0,
2091
+    'path' => '',
2092
+    'absolute' => 0,
2093
+    'link_class' => '',
2094
+    'alt' => '',
2095
+    'rel' => '',
2096
+    'prefix' => '',
2097
+    'suffix' => '',
2098
+    'target' => '',
2099
+    'help' => '',
2100
+    'trim' => 0,
2101
+    'max_length' => '',
2102
+    'word_boundary' => 1,
2103
+    'ellipsis' => 1,
2104
+    'html' => 0,
2105
+    'strip_tags' => 0,
2106
+  ),
2107
+  'empty' => '',
2108
+  'hide_empty' => 0,
2109
+  'empty_zero' => 0,
2110
+  'hide_alter_empty' => 1,
2111
+  'exclude' => 1,
2112
+  'id' => 'host_cpid',
2113
+  'table' => 'host',
2114
+  'field' => 'host_cpid',
2115
+  'relationship' => 'none',
2116
+),
2117
+'phpcode_7' => array(
2118
+  'label' => 'Cross project credit',
2119
+  'alter' => array(
2120
+    'alter_text' => 0,
2121
+    'text' => '',
2122
+    'make_link' => 0,
2123
+    'path' => '',
2124
+    'link_class' => '',
2125
+    'alt' => '',
2126
+    'prefix' => '',
2127
+    'suffix' => '',
2128
+    'target' => '',
2129
+    'help' => '',
2130
+    'trim' => 0,
2131
+    'max_length' => '',
2132
+    'word_boundary' => 1,
2133
+    'ellipsis' => 1,
2134
+    'html' => 0,
2135
+    'strip_tags' => 0,
2136
+  ),
2137
+  'empty' => '',
2138
+  'hide_empty' => 1,
2139
+  'empty_zero' => 0,
2140
+  'value' => '<?php
2141 2141
   require_boinc(\'util\');
2142 2142
   $owner = BoincUser::lookup_id($data->host_userid);
2143 2143
   if ($owner->show_hosts) {
@@ -2154,1060 +2154,1060 @@  discard block
 block discarded – undo
2154 2154
     echo $x;
2155 2155
   }
2156 2156
 ?>',
2157
-      'exclude' => 0,
2158
-      'id' => 'phpcode_7',
2159
-      'table' => 'customfield',
2160
-      'field' => 'phpcode',
2161
-      'relationship' => 'none',
2162
-    ),
2163
-    'serialnum' => array(
2164
-      'label' => 'Serial Number',
2165
-      'alter' => array(
2166
-        'alter_text' => 0,
2167
-        'text' => '',
2168
-        'make_link' => 0,
2169
-        'path' => '',
2170
-        'link_class' => '',
2171
-        'alt' => '',
2172
-        'prefix' => '',
2173
-        'suffix' => '',
2174
-        'target' => '',
2175
-        'help' => '',
2176
-        'trim' => 0,
2177
-        'max_length' => '',
2178
-        'word_boundary' => 1,
2179
-        'ellipsis' => 1,
2180
-        'html' => 0,
2181
-        'strip_tags' => 0,
2182
-      ),
2183
-      'empty' => '',
2184
-      'hide_empty' => 0,
2185
-      'empty_zero' => 0,
2186
-      'exclude' => 1,
2187
-      'id' => 'serialnum',
2188
-      'table' => 'host',
2189
-      'field' => 'serialnum',
2190
-      'relationship' => 'none',
2191
-    ),
2192
-    'p_vendor' => array(
2193
-      'label' => 'CPU',
2194
-      'alter' => array(
2195
-        'alter_text' => 0,
2196
-        'text' => '',
2197
-        'make_link' => 0,
2198
-        'path' => '',
2199
-        'link_class' => '',
2200
-        'alt' => '',
2201
-        'prefix' => '',
2202
-        'suffix' => '',
2203
-        'target' => '',
2204
-        'help' => '',
2205
-        'trim' => 0,
2206
-        'max_length' => '',
2207
-        'word_boundary' => 1,
2208
-        'ellipsis' => 1,
2209
-        'html' => 0,
2210
-        'strip_tags' => 0,
2211
-      ),
2212
-      'empty' => '',
2213
-      'hide_empty' => 0,
2214
-      'empty_zero' => 0,
2215
-      'exclude' => 1,
2216
-      'id' => 'p_vendor',
2217
-      'table' => 'host',
2218
-      'field' => 'p_vendor',
2219
-      'relationship' => 'none',
2220
-    ),
2221
-    'p_model' => array(
2222
-      'label' => 'CPU type',
2223
-      'alter' => array(
2224
-        'alter_text' => 1,
2225
-        'text' => '[p_vendor] [p_model]',
2226
-        'make_link' => 0,
2227
-        'path' => '',
2228
-        'absolute' => 0,
2229
-        'link_class' => '',
2230
-        'alt' => '',
2231
-        'rel' => '',
2232
-        'prefix' => '',
2233
-        'suffix' => '',
2234
-        'target' => '',
2235
-        'help' => '',
2236
-        'trim' => 0,
2237
-        'max_length' => '',
2238
-        'word_boundary' => 1,
2239
-        'ellipsis' => 1,
2240
-        'html' => 0,
2241
-        'strip_tags' => 0,
2242
-      ),
2243
-      'empty' => '',
2244
-      'hide_empty' => 0,
2245
-      'empty_zero' => 0,
2246
-      'hide_alter_empty' => 1,
2247
-      'exclude' => 0,
2248
-      'id' => 'p_model',
2249
-      'table' => 'host',
2250
-      'field' => 'p_model',
2251
-      'relationship' => 'none',
2252
-    ),
2253
-    'p_ncpus' => array(
2254
-      'label' => 'Number of processors',
2255
-      'alter' => array(
2256
-        'alter_text' => 0,
2257
-        'text' => '',
2258
-        'make_link' => 0,
2259
-        'path' => '',
2260
-        'link_class' => '',
2261
-        'alt' => '',
2262
-        'prefix' => '',
2263
-        'suffix' => '',
2264
-        'target' => '',
2265
-        'help' => '',
2266
-        'trim' => 0,
2267
-        'max_length' => '',
2268
-        'word_boundary' => 1,
2269
-        'ellipsis' => 1,
2270
-        'html' => 0,
2271
-        'strip_tags' => 0,
2272
-      ),
2273
-      'empty' => '',
2274
-      'hide_empty' => 0,
2275
-      'empty_zero' => 0,
2276
-      'exclude' => 0,
2277
-      'id' => 'p_ncpus',
2278
-      'table' => 'host',
2279
-      'field' => 'p_ncpus',
2280
-      'relationship' => 'none',
2281
-    ),
2282
-    'phpcode_1' => array(
2283
-      'label' => 'Coprocessors',
2284
-      'alter' => array(
2285
-        'alter_text' => 0,
2286
-        'text' => '',
2287
-        'make_link' => 0,
2288
-        'path' => '',
2289
-        'link_class' => '',
2290
-        'alt' => '',
2291
-        'prefix' => '',
2292
-        'suffix' => '',
2293
-        'target' => '',
2294
-        'help' => '',
2295
-        'trim' => 0,
2296
-        'max_length' => '',
2297
-        'word_boundary' => 1,
2298
-        'ellipsis' => 1,
2299
-        'html' => 0,
2300
-        'strip_tags' => 0,
2301
-      ),
2302
-      'empty' => '',
2303
-      'hide_empty' => 1,
2304
-      'empty_zero' => 0,
2305
-      'value' => '<?php
2157
+  'exclude' => 0,
2158
+  'id' => 'phpcode_7',
2159
+  'table' => 'customfield',
2160
+  'field' => 'phpcode',
2161
+  'relationship' => 'none',
2162
+),
2163
+'serialnum' => array(
2164
+  'label' => 'Serial Number',
2165
+  'alter' => array(
2166
+    'alter_text' => 0,
2167
+    'text' => '',
2168
+    'make_link' => 0,
2169
+    'path' => '',
2170
+    'link_class' => '',
2171
+    'alt' => '',
2172
+    'prefix' => '',
2173
+    'suffix' => '',
2174
+    'target' => '',
2175
+    'help' => '',
2176
+    'trim' => 0,
2177
+    'max_length' => '',
2178
+    'word_boundary' => 1,
2179
+    'ellipsis' => 1,
2180
+    'html' => 0,
2181
+    'strip_tags' => 0,
2182
+  ),
2183
+  'empty' => '',
2184
+  'hide_empty' => 0,
2185
+  'empty_zero' => 0,
2186
+  'exclude' => 1,
2187
+  'id' => 'serialnum',
2188
+  'table' => 'host',
2189
+  'field' => 'serialnum',
2190
+  'relationship' => 'none',
2191
+),
2192
+'p_vendor' => array(
2193
+  'label' => 'CPU',
2194
+  'alter' => array(
2195
+    'alter_text' => 0,
2196
+    'text' => '',
2197
+    'make_link' => 0,
2198
+    'path' => '',
2199
+    'link_class' => '',
2200
+    'alt' => '',
2201
+    'prefix' => '',
2202
+    'suffix' => '',
2203
+    'target' => '',
2204
+    'help' => '',
2205
+    'trim' => 0,
2206
+    'max_length' => '',
2207
+    'word_boundary' => 1,
2208
+    'ellipsis' => 1,
2209
+    'html' => 0,
2210
+    'strip_tags' => 0,
2211
+  ),
2212
+  'empty' => '',
2213
+  'hide_empty' => 0,
2214
+  'empty_zero' => 0,
2215
+  'exclude' => 1,
2216
+  'id' => 'p_vendor',
2217
+  'table' => 'host',
2218
+  'field' => 'p_vendor',
2219
+  'relationship' => 'none',
2220
+),
2221
+'p_model' => array(
2222
+  'label' => 'CPU type',
2223
+  'alter' => array(
2224
+    'alter_text' => 1,
2225
+    'text' => '[p_vendor] [p_model]',
2226
+    'make_link' => 0,
2227
+    'path' => '',
2228
+    'absolute' => 0,
2229
+    'link_class' => '',
2230
+    'alt' => '',
2231
+    'rel' => '',
2232
+    'prefix' => '',
2233
+    'suffix' => '',
2234
+    'target' => '',
2235
+    'help' => '',
2236
+    'trim' => 0,
2237
+    'max_length' => '',
2238
+    'word_boundary' => 1,
2239
+    'ellipsis' => 1,
2240
+    'html' => 0,
2241
+    'strip_tags' => 0,
2242
+  ),
2243
+  'empty' => '',
2244
+  'hide_empty' => 0,
2245
+  'empty_zero' => 0,
2246
+  'hide_alter_empty' => 1,
2247
+  'exclude' => 0,
2248
+  'id' => 'p_model',
2249
+  'table' => 'host',
2250
+  'field' => 'p_model',
2251
+  'relationship' => 'none',
2252
+),
2253
+'p_ncpus' => array(
2254
+  'label' => 'Number of processors',
2255
+  'alter' => array(
2256
+    'alter_text' => 0,
2257
+    'text' => '',
2258
+    'make_link' => 0,
2259
+    'path' => '',
2260
+    'link_class' => '',
2261
+    'alt' => '',
2262
+    'prefix' => '',
2263
+    'suffix' => '',
2264
+    'target' => '',
2265
+    'help' => '',
2266
+    'trim' => 0,
2267
+    'max_length' => '',
2268
+    'word_boundary' => 1,
2269
+    'ellipsis' => 1,
2270
+    'html' => 0,
2271
+    'strip_tags' => 0,
2272
+  ),
2273
+  'empty' => '',
2274
+  'hide_empty' => 0,
2275
+  'empty_zero' => 0,
2276
+  'exclude' => 0,
2277
+  'id' => 'p_ncpus',
2278
+  'table' => 'host',
2279
+  'field' => 'p_ncpus',
2280
+  'relationship' => 'none',
2281
+),
2282
+'phpcode_1' => array(
2283
+  'label' => 'Coprocessors',
2284
+  'alter' => array(
2285
+    'alter_text' => 0,
2286
+    'text' => '',
2287
+    'make_link' => 0,
2288
+    'path' => '',
2289
+    'link_class' => '',
2290
+    'alt' => '',
2291
+    'prefix' => '',
2292
+    'suffix' => '',
2293
+    'target' => '',
2294
+    'help' => '',
2295
+    'trim' => 0,
2296
+    'max_length' => '',
2297
+    'word_boundary' => 1,
2298
+    'ellipsis' => 1,
2299
+    'html' => 0,
2300
+    'strip_tags' => 0,
2301
+  ),
2302
+  'empty' => '',
2303
+  'hide_empty' => 1,
2304
+  'empty_zero' => 0,
2305
+  'value' => '<?php
2306 2306
   if ($data->host_serialnum) {
2307 2307
     require_boinc(\'host\');
2308 2308
     echo gpu_desc($data->host_serialnum);
2309 2309
   }
2310 2310
 ?>',
2311
-      'exclude' => 0,
2312
-      'id' => 'phpcode_1',
2313
-      'table' => 'customfield',
2314
-      'field' => 'phpcode',
2315
-      'relationship' => 'none',
2316
-    ),
2317
-    'os_name' => array(
2318
-      'label' => 'Operating system',
2319
-      'alter' => array(
2320
-        'alter_text' => 0,
2321
-        'text' => '',
2322
-        'make_link' => 0,
2323
-        'path' => '',
2324
-        'link_class' => '',
2325
-        'alt' => '',
2326
-        'prefix' => '',
2327
-        'suffix' => '',
2328
-        'target' => '',
2329
-        'help' => '',
2330
-        'trim' => 0,
2331
-        'max_length' => '',
2332
-        'word_boundary' => 1,
2333
-        'ellipsis' => 1,
2334
-        'html' => 0,
2335
-        'strip_tags' => 0,
2336
-      ),
2337
-      'empty' => '',
2338
-      'hide_empty' => 0,
2339
-      'empty_zero' => 0,
2340
-      'exclude' => 1,
2341
-      'id' => 'os_name',
2342
-      'table' => 'host',
2343
-      'field' => 'os_name',
2344
-      'relationship' => 'none',
2345
-    ),
2346
-    'os_version' => array(
2347
-      'label' => 'Operating system',
2348
-      'alter' => array(
2349
-        'alter_text' => 1,
2350
-        'text' => '[os_name] [os_version]',
2351
-        'make_link' => 0,
2352
-        'path' => '',
2353
-        'absolute' => 0,
2354
-        'link_class' => '',
2355
-        'alt' => '',
2356
-        'rel' => '',
2357
-        'prefix' => '',
2358
-        'suffix' => '',
2359
-        'target' => '',
2360
-        'help' => '',
2361
-        'trim' => 0,
2362
-        'max_length' => '',
2363
-        'word_boundary' => 1,
2364
-        'ellipsis' => 1,
2365
-        'html' => 0,
2366
-        'strip_tags' => 0,
2367
-      ),
2368
-      'empty' => '',
2369
-      'hide_empty' => 0,
2370
-      'empty_zero' => 0,
2371
-      'hide_alter_empty' => 1,
2372
-      'exclude' => 0,
2373
-      'id' => 'os_version',
2374
-      'table' => 'host',
2375
-      'field' => 'os_version',
2376
-      'relationship' => 'none',
2377
-    ),
2378
-    'phpcode' => array(
2379
-      'label' => 'BOINC client version',
2380
-      'alter' => array(
2381
-        'alter_text' => 0,
2382
-        'text' => '',
2383
-        'make_link' => 0,
2384
-        'path' => '',
2385
-        'link_class' => '',
2386
-        'alt' => '',
2387
-        'prefix' => '',
2388
-        'suffix' => '',
2389
-        'target' => '',
2390
-        'help' => '',
2391
-        'trim' => 0,
2392
-        'max_length' => '',
2393
-        'word_boundary' => 1,
2394
-        'ellipsis' => 1,
2395
-        'html' => 0,
2396
-        'strip_tags' => 0,
2397
-      ),
2398
-      'empty' => '',
2399
-      'hide_empty' => 1,
2400
-      'empty_zero' => 0,
2401
-      'value' => '<?php
2311
+  'exclude' => 0,
2312
+  'id' => 'phpcode_1',
2313
+  'table' => 'customfield',
2314
+  'field' => 'phpcode',
2315
+  'relationship' => 'none',
2316
+),
2317
+'os_name' => array(
2318
+  'label' => 'Operating system',
2319
+  'alter' => array(
2320
+    'alter_text' => 0,
2321
+    'text' => '',
2322
+    'make_link' => 0,
2323
+    'path' => '',
2324
+    'link_class' => '',
2325
+    'alt' => '',
2326
+    'prefix' => '',
2327
+    'suffix' => '',
2328
+    'target' => '',
2329
+    'help' => '',
2330
+    'trim' => 0,
2331
+    'max_length' => '',
2332
+    'word_boundary' => 1,
2333
+    'ellipsis' => 1,
2334
+    'html' => 0,
2335
+    'strip_tags' => 0,
2336
+  ),
2337
+  'empty' => '',
2338
+  'hide_empty' => 0,
2339
+  'empty_zero' => 0,
2340
+  'exclude' => 1,
2341
+  'id' => 'os_name',
2342
+  'table' => 'host',
2343
+  'field' => 'os_name',
2344
+  'relationship' => 'none',
2345
+),
2346
+'os_version' => array(
2347
+  'label' => 'Operating system',
2348
+  'alter' => array(
2349
+    'alter_text' => 1,
2350
+    'text' => '[os_name] [os_version]',
2351
+    'make_link' => 0,
2352
+    'path' => '',
2353
+    'absolute' => 0,
2354
+    'link_class' => '',
2355
+    'alt' => '',
2356
+    'rel' => '',
2357
+    'prefix' => '',
2358
+    'suffix' => '',
2359
+    'target' => '',
2360
+    'help' => '',
2361
+    'trim' => 0,
2362
+    'max_length' => '',
2363
+    'word_boundary' => 1,
2364
+    'ellipsis' => 1,
2365
+    'html' => 0,
2366
+    'strip_tags' => 0,
2367
+  ),
2368
+  'empty' => '',
2369
+  'hide_empty' => 0,
2370
+  'empty_zero' => 0,
2371
+  'hide_alter_empty' => 1,
2372
+  'exclude' => 0,
2373
+  'id' => 'os_version',
2374
+  'table' => 'host',
2375
+  'field' => 'os_version',
2376
+  'relationship' => 'none',
2377
+),
2378
+'phpcode' => array(
2379
+  'label' => 'BOINC client version',
2380
+  'alter' => array(
2381
+    'alter_text' => 0,
2382
+    'text' => '',
2383
+    'make_link' => 0,
2384
+    'path' => '',
2385
+    'link_class' => '',
2386
+    'alt' => '',
2387
+    'prefix' => '',
2388
+    'suffix' => '',
2389
+    'target' => '',
2390
+    'help' => '',
2391
+    'trim' => 0,
2392
+    'max_length' => '',
2393
+    'word_boundary' => 1,
2394
+    'ellipsis' => 1,
2395
+    'html' => 0,
2396
+    'strip_tags' => 0,
2397
+  ),
2398
+  'empty' => '',
2399
+  'hide_empty' => 1,
2400
+  'empty_zero' => 0,
2401
+  'value' => '<?php
2402 2402
   require_boinc(\'host\');
2403 2403
   $version = boinc_version($data->host_serialnum);
2404 2404
   if ($version) echo $version;
2405 2405
 ?>',
2406
-      'exclude' => 0,
2407
-      'id' => 'phpcode',
2408
-      'table' => 'customfield',
2409
-      'field' => 'phpcode',
2410
-      'relationship' => 'none',
2411
-    ),
2412
-    'm_nbytes' => array(
2413
-      'label' => 'Memory',
2414
-      'alter' => array(
2415
-        'alter_text' => 0,
2416
-        'text' => '',
2417
-        'make_link' => 0,
2418
-        'path' => '',
2419
-        'link_class' => '',
2420
-        'alt' => '',
2421
-        'prefix' => '',
2422
-        'suffix' => '',
2423
-        'target' => '',
2424
-        'help' => '',
2425
-        'trim' => 0,
2426
-        'max_length' => '',
2427
-        'word_boundary' => 1,
2428
-        'ellipsis' => 1,
2429
-        'html' => 0,
2430
-        'strip_tags' => 0,
2431
-      ),
2432
-      'empty' => '',
2433
-      'hide_empty' => 0,
2434
-      'empty_zero' => 0,
2435
-      'set_precision' => FALSE,
2436
-      'precision' => 0,
2437
-      'decimal' => '.',
2438
-      'separator' => '',
2439
-      'prefix' => '',
2440
-      'suffix' => '',
2441
-      'exclude' => 1,
2442
-      'id' => 'm_nbytes',
2443
-      'table' => 'host',
2444
-      'field' => 'm_nbytes',
2445
-      'relationship' => 'none',
2446
-    ),
2447
-    'm_cache' => array(
2448
-      'label' => 'Cache',
2449
-      'alter' => array(
2450
-        'alter_text' => 0,
2451
-        'text' => '',
2452
-        'make_link' => 0,
2453
-        'path' => '',
2454
-        'link_class' => '',
2455
-        'alt' => '',
2456
-        'prefix' => '',
2457
-        'suffix' => '',
2458
-        'target' => '',
2459
-        'help' => '',
2460
-        'trim' => 0,
2461
-        'max_length' => '',
2462
-        'word_boundary' => 1,
2463
-        'ellipsis' => 1,
2464
-        'html' => 0,
2465
-        'strip_tags' => 0,
2466
-      ),
2467
-      'empty' => '',
2468
-      'hide_empty' => 0,
2469
-      'empty_zero' => 0,
2470
-      'set_precision' => FALSE,
2471
-      'precision' => 0,
2472
-      'decimal' => '.',
2473
-      'separator' => '',
2474
-      'prefix' => '',
2475
-      'suffix' => '',
2476
-      'exclude' => 1,
2477
-      'id' => 'm_cache',
2478
-      'table' => 'host',
2479
-      'field' => 'm_cache',
2480
-      'relationship' => 'none',
2481
-    ),
2482
-    'phpcode_8' => array(
2483
-      'label' => 'Memory',
2484
-      'alter' => array(
2485
-        'alter_text' => 0,
2486
-        'text' => '',
2487
-        'make_link' => 0,
2488
-        'path' => '',
2489
-        'link_class' => '',
2490
-        'alt' => '',
2491
-        'prefix' => '',
2492
-        'suffix' => '',
2493
-        'target' => '',
2494
-        'help' => '',
2495
-        'trim' => 0,
2496
-        'max_length' => '',
2497
-        'word_boundary' => 1,
2498
-        'ellipsis' => 1,
2499
-        'html' => 0,
2500
-        'strip_tags' => 0,
2501
-      ),
2502
-      'empty' => '',
2503
-      'hide_empty' => 0,
2504
-      'empty_zero' => 0,
2505
-      'value' => '<?php
2406
+  'exclude' => 0,
2407
+  'id' => 'phpcode',
2408
+  'table' => 'customfield',
2409
+  'field' => 'phpcode',
2410
+  'relationship' => 'none',
2411
+),
2412
+'m_nbytes' => array(
2413
+  'label' => 'Memory',
2414
+  'alter' => array(
2415
+    'alter_text' => 0,
2416
+    'text' => '',
2417
+    'make_link' => 0,
2418
+    'path' => '',
2419
+    'link_class' => '',
2420
+    'alt' => '',
2421
+    'prefix' => '',
2422
+    'suffix' => '',
2423
+    'target' => '',
2424
+    'help' => '',
2425
+    'trim' => 0,
2426
+    'max_length' => '',
2427
+    'word_boundary' => 1,
2428
+    'ellipsis' => 1,
2429
+    'html' => 0,
2430
+    'strip_tags' => 0,
2431
+  ),
2432
+  'empty' => '',
2433
+  'hide_empty' => 0,
2434
+  'empty_zero' => 0,
2435
+  'set_precision' => FALSE,
2436
+  'precision' => 0,
2437
+  'decimal' => '.',
2438
+  'separator' => '',
2439
+  'prefix' => '',
2440
+  'suffix' => '',
2441
+  'exclude' => 1,
2442
+  'id' => 'm_nbytes',
2443
+  'table' => 'host',
2444
+  'field' => 'm_nbytes',
2445
+  'relationship' => 'none',
2446
+),
2447
+'m_cache' => array(
2448
+  'label' => 'Cache',
2449
+  'alter' => array(
2450
+    'alter_text' => 0,
2451
+    'text' => '',
2452
+    'make_link' => 0,
2453
+    'path' => '',
2454
+    'link_class' => '',
2455
+    'alt' => '',
2456
+    'prefix' => '',
2457
+    'suffix' => '',
2458
+    'target' => '',
2459
+    'help' => '',
2460
+    'trim' => 0,
2461
+    'max_length' => '',
2462
+    'word_boundary' => 1,
2463
+    'ellipsis' => 1,
2464
+    'html' => 0,
2465
+    'strip_tags' => 0,
2466
+  ),
2467
+  'empty' => '',
2468
+  'hide_empty' => 0,
2469
+  'empty_zero' => 0,
2470
+  'set_precision' => FALSE,
2471
+  'precision' => 0,
2472
+  'decimal' => '.',
2473
+  'separator' => '',
2474
+  'prefix' => '',
2475
+  'suffix' => '',
2476
+  'exclude' => 1,
2477
+  'id' => 'm_cache',
2478
+  'table' => 'host',
2479
+  'field' => 'm_cache',
2480
+  'relationship' => 'none',
2481
+),
2482
+'phpcode_8' => array(
2483
+  'label' => 'Memory',
2484
+  'alter' => array(
2485
+    'alter_text' => 0,
2486
+    'text' => '',
2487
+    'make_link' => 0,
2488
+    'path' => '',
2489
+    'link_class' => '',
2490
+    'alt' => '',
2491
+    'prefix' => '',
2492
+    'suffix' => '',
2493
+    'target' => '',
2494
+    'help' => '',
2495
+    'trim' => 0,
2496
+    'max_length' => '',
2497
+    'word_boundary' => 1,
2498
+    'ellipsis' => 1,
2499
+    'html' => 0,
2500
+    'strip_tags' => 0,
2501
+  ),
2502
+  'empty' => '',
2503
+  'hide_empty' => 0,
2504
+  'empty_zero' => 0,
2505
+  'value' => '<?php
2506 2506
   echo round($data->host_m_nbytes/(1024*1024), 2) . \' MiB\';
2507 2507
 ?>',
2508
-      'exclude' => 0,
2509
-      'id' => 'phpcode_8',
2510
-      'table' => 'customfield',
2511
-      'field' => 'phpcode',
2512
-      'relationship' => 'none',
2513
-    ),
2514
-    'phpcode_9' => array(
2515
-      'label' => 'Cache',
2516
-      'alter' => array(
2517
-        'alter_text' => 0,
2518
-        'text' => '',
2519
-        'make_link' => 0,
2520
-        'path' => '',
2521
-        'link_class' => '',
2522
-        'alt' => '',
2523
-        'prefix' => '',
2524
-        'suffix' => '',
2525
-        'target' => '',
2526
-        'help' => '',
2527
-        'trim' => 0,
2528
-        'max_length' => '',
2529
-        'word_boundary' => 1,
2530
-        'ellipsis' => 1,
2531
-        'html' => 0,
2532
-        'strip_tags' => 0,
2533
-      ),
2534
-      'empty' => '',
2535
-      'hide_empty' => 0,
2536
-      'empty_zero' => 0,
2537
-      'value' => '<?php
2508
+  'exclude' => 0,
2509
+  'id' => 'phpcode_8',
2510
+  'table' => 'customfield',
2511
+  'field' => 'phpcode',
2512
+  'relationship' => 'none',
2513
+),
2514
+'phpcode_9' => array(
2515
+  'label' => 'Cache',
2516
+  'alter' => array(
2517
+    'alter_text' => 0,
2518
+    'text' => '',
2519
+    'make_link' => 0,
2520
+    'path' => '',
2521
+    'link_class' => '',
2522
+    'alt' => '',
2523
+    'prefix' => '',
2524
+    'suffix' => '',
2525
+    'target' => '',
2526
+    'help' => '',
2527
+    'trim' => 0,
2528
+    'max_length' => '',
2529
+    'word_boundary' => 1,
2530
+    'ellipsis' => 1,
2531
+    'html' => 0,
2532
+    'strip_tags' => 0,
2533
+  ),
2534
+  'empty' => '',
2535
+  'hide_empty' => 0,
2536
+  'empty_zero' => 0,
2537
+  'value' => '<?php
2538 2538
   echo round($data->host_m_cache/(1024), 2) . \' KiB\';
2539 2539
 ?>',
2540
-      'exclude' => 0,
2541
-      'id' => 'phpcode_9',
2542
-      'table' => 'customfield',
2543
-      'field' => 'phpcode',
2544
-      'relationship' => 'none',
2545
-    ),
2546
-    'm_swap' => array(
2547
-      'label' => 'Swap space',
2548
-      'alter' => array(
2549
-        'alter_text' => 0,
2550
-        'text' => '',
2551
-        'make_link' => 0,
2552
-        'path' => '',
2553
-        'link_class' => '',
2554
-        'alt' => '',
2555
-        'prefix' => '',
2556
-        'suffix' => '',
2557
-        'target' => '',
2558
-        'help' => '',
2559
-        'trim' => 0,
2560
-        'max_length' => '',
2561
-        'word_boundary' => 1,
2562
-        'ellipsis' => 1,
2563
-        'html' => 0,
2564
-        'strip_tags' => 0,
2565
-      ),
2566
-      'empty' => '',
2567
-      'hide_empty' => 0,
2568
-      'empty_zero' => 0,
2569
-      'set_precision' => FALSE,
2570
-      'precision' => 0,
2571
-      'decimal' => '.',
2572
-      'separator' => '',
2573
-      'prefix' => '',
2574
-      'suffix' => '',
2575
-      'exclude' => 1,
2576
-      'id' => 'm_swap',
2577
-      'table' => 'host',
2578
-      'field' => 'm_swap',
2579
-      'relationship' => 'none',
2580
-    ),
2581
-    'd_total' => array(
2582
-      'label' => 'Total disk space',
2583
-      'alter' => array(
2584
-        'alter_text' => 0,
2585
-        'text' => '',
2586
-        'make_link' => 0,
2587
-        'path' => '',
2588
-        'link_class' => '',
2589
-        'alt' => '',
2590
-        'prefix' => '',
2591
-        'suffix' => '',
2592
-        'target' => '',
2593
-        'help' => '',
2594
-        'trim' => 0,
2595
-        'max_length' => '',
2596
-        'word_boundary' => 1,
2597
-        'ellipsis' => 1,
2598
-        'html' => 0,
2599
-        'strip_tags' => 0,
2600
-      ),
2601
-      'empty' => '',
2602
-      'hide_empty' => 0,
2603
-      'empty_zero' => 0,
2604
-      'set_precision' => FALSE,
2605
-      'precision' => 0,
2606
-      'decimal' => '.',
2607
-      'separator' => '',
2608
-      'prefix' => '',
2609
-      'suffix' => '',
2610
-      'exclude' => 1,
2611
-      'id' => 'd_total',
2612
-      'table' => 'host',
2613
-      'field' => 'd_total',
2614
-      'relationship' => 'none',
2615
-    ),
2616
-    'd_free' => array(
2617
-      'label' => 'Free disk space',
2618
-      'alter' => array(
2619
-        'alter_text' => 0,
2620
-        'text' => '',
2621
-        'make_link' => 0,
2622
-        'path' => '',
2623
-        'link_class' => '',
2624
-        'alt' => '',
2625
-        'prefix' => '',
2626
-        'suffix' => '',
2627
-        'target' => '',
2628
-        'help' => '',
2629
-        'trim' => 0,
2630
-        'max_length' => '',
2631
-        'word_boundary' => 1,
2632
-        'ellipsis' => 1,
2633
-        'html' => 0,
2634
-        'strip_tags' => 0,
2635
-      ),
2636
-      'empty' => '',
2637
-      'hide_empty' => 0,
2638
-      'empty_zero' => 0,
2639
-      'set_precision' => FALSE,
2640
-      'precision' => 0,
2641
-      'decimal' => '.',
2642
-      'separator' => '',
2643
-      'prefix' => '',
2644
-      'suffix' => '',
2645
-      'exclude' => 1,
2646
-      'id' => 'd_free',
2647
-      'table' => 'host',
2648
-      'field' => 'd_free',
2649
-      'relationship' => 'none',
2650
-    ),
2651
-    'phpcode_10' => array(
2652
-      'label' => 'Swap space',
2653
-      'alter' => array(
2654
-        'alter_text' => 0,
2655
-        'text' => '',
2656
-        'make_link' => 0,
2657
-        'path' => '',
2658
-        'link_class' => '',
2659
-        'alt' => '',
2660
-        'prefix' => '',
2661
-        'suffix' => '',
2662
-        'target' => '',
2663
-        'help' => '',
2664
-        'trim' => 0,
2665
-        'max_length' => '',
2666
-        'word_boundary' => 1,
2667
-        'ellipsis' => 1,
2668
-        'html' => 0,
2669
-        'strip_tags' => 0,
2670
-      ),
2671
-      'empty' => '',
2672
-      'hide_empty' => 1,
2673
-      'empty_zero' => 0,
2674
-      'value' => '<?php
2540
+  'exclude' => 0,
2541
+  'id' => 'phpcode_9',
2542
+  'table' => 'customfield',
2543
+  'field' => 'phpcode',
2544
+  'relationship' => 'none',
2545
+),
2546
+'m_swap' => array(
2547
+  'label' => 'Swap space',
2548
+  'alter' => array(
2549
+    'alter_text' => 0,
2550
+    'text' => '',
2551
+    'make_link' => 0,
2552
+    'path' => '',
2553
+    'link_class' => '',
2554
+    'alt' => '',
2555
+    'prefix' => '',
2556
+    'suffix' => '',
2557
+    'target' => '',
2558
+    'help' => '',
2559
+    'trim' => 0,
2560
+    'max_length' => '',
2561
+    'word_boundary' => 1,
2562
+    'ellipsis' => 1,
2563
+    'html' => 0,
2564
+    'strip_tags' => 0,
2565
+  ),
2566
+  'empty' => '',
2567
+  'hide_empty' => 0,
2568
+  'empty_zero' => 0,
2569
+  'set_precision' => FALSE,
2570
+  'precision' => 0,
2571
+  'decimal' => '.',
2572
+  'separator' => '',
2573
+  'prefix' => '',
2574
+  'suffix' => '',
2575
+  'exclude' => 1,
2576
+  'id' => 'm_swap',
2577
+  'table' => 'host',
2578
+  'field' => 'm_swap',
2579
+  'relationship' => 'none',
2580
+),
2581
+'d_total' => array(
2582
+  'label' => 'Total disk space',
2583
+  'alter' => array(
2584
+    'alter_text' => 0,
2585
+    'text' => '',
2586
+    'make_link' => 0,
2587
+    'path' => '',
2588
+    'link_class' => '',
2589
+    'alt' => '',
2590
+    'prefix' => '',
2591
+    'suffix' => '',
2592
+    'target' => '',
2593
+    'help' => '',
2594
+    'trim' => 0,
2595
+    'max_length' => '',
2596
+    'word_boundary' => 1,
2597
+    'ellipsis' => 1,
2598
+    'html' => 0,
2599
+    'strip_tags' => 0,
2600
+  ),
2601
+  'empty' => '',
2602
+  'hide_empty' => 0,
2603
+  'empty_zero' => 0,
2604
+  'set_precision' => FALSE,
2605
+  'precision' => 0,
2606
+  'decimal' => '.',
2607
+  'separator' => '',
2608
+  'prefix' => '',
2609
+  'suffix' => '',
2610
+  'exclude' => 1,
2611
+  'id' => 'd_total',
2612
+  'table' => 'host',
2613
+  'field' => 'd_total',
2614
+  'relationship' => 'none',
2615
+),
2616
+'d_free' => array(
2617
+  'label' => 'Free disk space',
2618
+  'alter' => array(
2619
+    'alter_text' => 0,
2620
+    'text' => '',
2621
+    'make_link' => 0,
2622
+    'path' => '',
2623
+    'link_class' => '',
2624
+    'alt' => '',
2625
+    'prefix' => '',
2626
+    'suffix' => '',
2627
+    'target' => '',
2628
+    'help' => '',
2629
+    'trim' => 0,
2630
+    'max_length' => '',
2631
+    'word_boundary' => 1,
2632
+    'ellipsis' => 1,
2633
+    'html' => 0,
2634
+    'strip_tags' => 0,
2635
+  ),
2636
+  'empty' => '',
2637
+  'hide_empty' => 0,
2638
+  'empty_zero' => 0,
2639
+  'set_precision' => FALSE,
2640
+  'precision' => 0,
2641
+  'decimal' => '.',
2642
+  'separator' => '',
2643
+  'prefix' => '',
2644
+  'suffix' => '',
2645
+  'exclude' => 1,
2646
+  'id' => 'd_free',
2647
+  'table' => 'host',
2648
+  'field' => 'd_free',
2649
+  'relationship' => 'none',
2650
+),
2651
+'phpcode_10' => array(
2652
+  'label' => 'Swap space',
2653
+  'alter' => array(
2654
+    'alter_text' => 0,
2655
+    'text' => '',
2656
+    'make_link' => 0,
2657
+    'path' => '',
2658
+    'link_class' => '',
2659
+    'alt' => '',
2660
+    'prefix' => '',
2661
+    'suffix' => '',
2662
+    'target' => '',
2663
+    'help' => '',
2664
+    'trim' => 0,
2665
+    'max_length' => '',
2666
+    'word_boundary' => 1,
2667
+    'ellipsis' => 1,
2668
+    'html' => 0,
2669
+    'strip_tags' => 0,
2670
+  ),
2671
+  'empty' => '',
2672
+  'hide_empty' => 1,
2673
+  'empty_zero' => 0,
2674
+  'value' => '<?php
2675 2675
   if (is_current_boinc_user($data->host_userid)) {
2676 2676
     echo round($data->host_m_swap/(1024*1024), 2) . \' MiB\';
2677 2677
   }
2678 2678
 ?>',
2679
-      'exclude' => 0,
2680
-      'id' => 'phpcode_10',
2681
-      'table' => 'customfield',
2682
-      'field' => 'phpcode',
2683
-      'relationship' => 'none',
2684
-    ),
2685
-    'phpcode_11' => array(
2686
-      'label' => 'Total disk space',
2687
-      'alter' => array(
2688
-        'alter_text' => 0,
2689
-        'text' => '',
2690
-        'make_link' => 0,
2691
-        'path' => '',
2692
-        'link_class' => '',
2693
-        'alt' => '',
2694
-        'prefix' => '',
2695
-        'suffix' => '',
2696
-        'target' => '',
2697
-        'help' => '',
2698
-        'trim' => 0,
2699
-        'max_length' => '',
2700
-        'word_boundary' => 1,
2701
-        'ellipsis' => 1,
2702
-        'html' => 0,
2703
-        'strip_tags' => 0,
2704
-      ),
2705
-      'empty' => '',
2706
-      'hide_empty' => 1,
2707
-      'empty_zero' => 0,
2708
-      'value' => '<?php
2679
+  'exclude' => 0,
2680
+  'id' => 'phpcode_10',
2681
+  'table' => 'customfield',
2682
+  'field' => 'phpcode',
2683
+  'relationship' => 'none',
2684
+),
2685
+'phpcode_11' => array(
2686
+  'label' => 'Total disk space',
2687
+  'alter' => array(
2688
+    'alter_text' => 0,
2689
+    'text' => '',
2690
+    'make_link' => 0,
2691
+    'path' => '',
2692
+    'link_class' => '',
2693
+    'alt' => '',
2694
+    'prefix' => '',
2695
+    'suffix' => '',
2696
+    'target' => '',
2697
+    'help' => '',
2698
+    'trim' => 0,
2699
+    'max_length' => '',
2700
+    'word_boundary' => 1,
2701
+    'ellipsis' => 1,
2702
+    'html' => 0,
2703
+    'strip_tags' => 0,
2704
+  ),
2705
+  'empty' => '',
2706
+  'hide_empty' => 1,
2707
+  'empty_zero' => 0,
2708
+  'value' => '<?php
2709 2709
   if (is_current_boinc_user($data->host_userid)) {
2710 2710
     echo round($data->host_d_total/(1024*1024*1024), 2) . \' GiB\';
2711 2711
   }
2712 2712
 ?>',
2713
-      'exclude' => 0,
2714
-      'id' => 'phpcode_11',
2715
-      'table' => 'customfield',
2716
-      'field' => 'phpcode',
2717
-      'relationship' => 'none',
2718
-    ),
2719
-    'phpcode_12' => array(
2720
-      'label' => 'Free disk space',
2721
-      'alter' => array(
2722
-        'alter_text' => 0,
2723
-        'text' => '',
2724
-        'make_link' => 0,
2725
-        'path' => '',
2726
-        'link_class' => '',
2727
-        'alt' => '',
2728
-        'prefix' => '',
2729
-        'suffix' => '',
2730
-        'target' => '',
2731
-        'help' => '',
2732
-        'trim' => 0,
2733
-        'max_length' => '',
2734
-        'word_boundary' => 1,
2735
-        'ellipsis' => 1,
2736
-        'html' => 0,
2737
-        'strip_tags' => 0,
2738
-      ),
2739
-      'empty' => '',
2740
-      'hide_empty' => 1,
2741
-      'empty_zero' => 0,
2742
-      'value' => '<?php
2713
+  'exclude' => 0,
2714
+  'id' => 'phpcode_11',
2715
+  'table' => 'customfield',
2716
+  'field' => 'phpcode',
2717
+  'relationship' => 'none',
2718
+),
2719
+'phpcode_12' => array(
2720
+  'label' => 'Free disk space',
2721
+  'alter' => array(
2722
+    'alter_text' => 0,
2723
+    'text' => '',
2724
+    'make_link' => 0,
2725
+    'path' => '',
2726
+    'link_class' => '',
2727
+    'alt' => '',
2728
+    'prefix' => '',
2729
+    'suffix' => '',
2730
+    'target' => '',
2731
+    'help' => '',
2732
+    'trim' => 0,
2733
+    'max_length' => '',
2734
+    'word_boundary' => 1,
2735
+    'ellipsis' => 1,
2736
+    'html' => 0,
2737
+    'strip_tags' => 0,
2738
+  ),
2739
+  'empty' => '',
2740
+  'hide_empty' => 1,
2741
+  'empty_zero' => 0,
2742
+  'value' => '<?php
2743 2743
   if (is_current_boinc_user($data->host_userid)) {
2744 2744
     echo round($data->host_d_free/(1024*1024*1024), 2) . \' GiB\';
2745 2745
   }
2746 2746
 ?>',
2747
-      'exclude' => 0,
2748
-      'id' => 'phpcode_12',
2749
-      'table' => 'customfield',
2750
-      'field' => 'phpcode',
2751
-      'relationship' => 'none',
2752
-    ),
2753
-    'n_bwdown' => array(
2754
-      'label' => 'Average download rate',
2755
-      'alter' => array(
2756
-        'alter_text' => 0,
2757
-        'text' => '',
2758
-        'make_link' => 0,
2759
-        'path' => '',
2760
-        'link_class' => '',
2761
-        'alt' => '',
2762
-        'prefix' => '',
2763
-        'suffix' => '',
2764
-        'target' => '',
2765
-        'help' => '',
2766
-        'trim' => 0,
2767
-        'max_length' => '',
2768
-        'word_boundary' => 1,
2769
-        'ellipsis' => 1,
2770
-        'html' => 0,
2771
-        'strip_tags' => 0,
2772
-      ),
2773
-      'empty' => '',
2774
-      'hide_empty' => 0,
2775
-      'empty_zero' => 0,
2776
-      'set_precision' => 0,
2777
-      'precision' => '0',
2778
-      'decimal' => '.',
2779
-      'separator' => '',
2780
-      'prefix' => '',
2781
-      'suffix' => '',
2782
-      'exclude' => 1,
2783
-      'id' => 'n_bwdown',
2784
-      'table' => 'host',
2785
-      'field' => 'n_bwdown',
2786
-      'relationship' => 'none',
2787
-    ),
2788
-    'avg_turnaround' => array(
2789
-      'label' => 'Average turnaround time',
2790
-      'alter' => array(
2791
-        'alter_text' => 0,
2792
-        'text' => '',
2793
-        'make_link' => 0,
2794
-        'path' => '',
2795
-        'link_class' => '',
2796
-        'alt' => '',
2797
-        'prefix' => '',
2798
-        'suffix' => '',
2799
-        'target' => '',
2800
-        'help' => '',
2801
-        'trim' => 0,
2802
-        'max_length' => '',
2803
-        'word_boundary' => 1,
2804
-        'ellipsis' => 1,
2805
-        'html' => 0,
2806
-        'strip_tags' => 0,
2807
-      ),
2808
-      'empty' => '',
2809
-      'hide_empty' => 0,
2810
-      'empty_zero' => 0,
2811
-      'set_precision' => 0,
2812
-      'precision' => '0',
2813
-      'decimal' => '.',
2814
-      'separator' => '',
2815
-      'prefix' => '',
2816
-      'suffix' => '',
2817
-      'exclude' => 1,
2818
-      'id' => 'avg_turnaround',
2819
-      'table' => 'host',
2820
-      'field' => 'avg_turnaround',
2821
-      'relationship' => 'none',
2822
-    ),
2823
-    'n_bwup' => array(
2824
-      'label' => 'Average upload rate',
2825
-      'alter' => array(
2826
-        'alter_text' => 0,
2827
-        'text' => '',
2828
-        'make_link' => 0,
2829
-        'path' => '',
2830
-        'link_class' => '',
2831
-        'alt' => '',
2832
-        'prefix' => '',
2833
-        'suffix' => '',
2834
-        'target' => '',
2835
-        'help' => '',
2836
-        'trim' => 0,
2837
-        'max_length' => '',
2838
-        'word_boundary' => 1,
2839
-        'ellipsis' => 1,
2840
-        'html' => 0,
2841
-        'strip_tags' => 0,
2842
-      ),
2843
-      'empty' => '',
2844
-      'hide_empty' => 0,
2845
-      'empty_zero' => 0,
2846
-      'set_precision' => 0,
2847
-      'precision' => '0',
2848
-      'decimal' => '.',
2849
-      'separator' => '',
2850
-      'prefix' => '',
2851
-      'suffix' => '',
2852
-      'exclude' => 1,
2853
-      'id' => 'n_bwup',
2854
-      'table' => 'host',
2855
-      'field' => 'n_bwup',
2856
-      'relationship' => 'none',
2857
-    ),
2858
-    'p_fpops' => array(
2859
-      'label' => 'Measured floating point speed',
2860
-      'alter' => array(
2861
-        'alter_text' => 0,
2862
-        'text' => '',
2863
-        'make_link' => 0,
2864
-        'path' => '',
2865
-        'link_class' => '',
2866
-        'alt' => '',
2867
-        'prefix' => '',
2868
-        'suffix' => '',
2869
-        'target' => '',
2870
-        'help' => '',
2871
-        'trim' => 0,
2872
-        'max_length' => '',
2873
-        'word_boundary' => 1,
2874
-        'ellipsis' => 1,
2875
-        'html' => 0,
2876
-        'strip_tags' => 0,
2877
-      ),
2878
-      'empty' => '',
2879
-      'hide_empty' => 0,
2880
-      'empty_zero' => 0,
2881
-      'set_precision' => 0,
2882
-      'precision' => '0',
2883
-      'decimal' => '.',
2884
-      'separator' => '',
2885
-      'prefix' => '',
2886
-      'suffix' => '',
2887
-      'exclude' => 1,
2888
-      'id' => 'p_fpops',
2889
-      'table' => 'host',
2890
-      'field' => 'p_fpops',
2891
-      'relationship' => 'none',
2892
-    ),
2893
-    'p_iops' => array(
2894
-      'label' => 'Measured integer speed',
2895
-      'alter' => array(
2896
-        'alter_text' => 0,
2897
-        'text' => '',
2898
-        'make_link' => 0,
2899
-        'path' => '',
2900
-        'link_class' => '',
2901
-        'alt' => '',
2902
-        'prefix' => '',
2903
-        'suffix' => '',
2904
-        'target' => '',
2905
-        'help' => '',
2906
-        'trim' => 0,
2907
-        'max_length' => '',
2908
-        'word_boundary' => 1,
2909
-        'ellipsis' => 1,
2910
-        'html' => 0,
2911
-        'strip_tags' => 0,
2912
-      ),
2913
-      'empty' => '',
2914
-      'hide_empty' => 0,
2915
-      'empty_zero' => 0,
2916
-      'set_precision' => 0,
2917
-      'precision' => '0',
2918
-      'decimal' => '.',
2919
-      'separator' => '',
2920
-      'prefix' => '',
2921
-      'suffix' => '',
2922
-      'exclude' => 1,
2923
-      'id' => 'p_iops',
2924
-      'table' => 'host',
2925
-      'field' => 'p_iops',
2926
-      'relationship' => 'none',
2927
-    ),
2928
-    'phpcode_13' => array(
2929
-      'label' => 'Measured floating point speed',
2930
-      'alter' => array(
2931
-        'alter_text' => 0,
2932
-        'text' => '',
2933
-        'make_link' => 0,
2934
-        'path' => '',
2935
-        'absolute' => 0,
2936
-        'link_class' => '',
2937
-        'alt' => '',
2938
-        'rel' => '',
2939
-        'prefix' => '',
2940
-        'suffix' => '',
2941
-        'target' => '',
2942
-        'help' => '',
2943
-        'trim' => 0,
2944
-        'max_length' => '',
2945
-        'word_boundary' => 1,
2946
-        'ellipsis' => 1,
2947
-        'html' => 0,
2948
-        'strip_tags' => 0,
2949
-      ),
2950
-      'empty' => '',
2951
-      'hide_empty' => 0,
2952
-      'empty_zero' => 0,
2953
-      'hide_alter_empty' => 1,
2954
-      'value' => '<?php
2747
+  'exclude' => 0,
2748
+  'id' => 'phpcode_12',
2749
+  'table' => 'customfield',
2750
+  'field' => 'phpcode',
2751
+  'relationship' => 'none',
2752
+),
2753
+'n_bwdown' => array(
2754
+  'label' => 'Average download rate',
2755
+  'alter' => array(
2756
+    'alter_text' => 0,
2757
+    'text' => '',
2758
+    'make_link' => 0,
2759
+    'path' => '',
2760
+    'link_class' => '',
2761
+    'alt' => '',
2762
+    'prefix' => '',
2763
+    'suffix' => '',
2764
+    'target' => '',
2765
+    'help' => '',
2766
+    'trim' => 0,
2767
+    'max_length' => '',
2768
+    'word_boundary' => 1,
2769
+    'ellipsis' => 1,
2770
+    'html' => 0,
2771
+    'strip_tags' => 0,
2772
+  ),
2773
+  'empty' => '',
2774
+  'hide_empty' => 0,
2775
+  'empty_zero' => 0,
2776
+  'set_precision' => 0,
2777
+  'precision' => '0',
2778
+  'decimal' => '.',
2779
+  'separator' => '',
2780
+  'prefix' => '',
2781
+  'suffix' => '',
2782
+  'exclude' => 1,
2783
+  'id' => 'n_bwdown',
2784
+  'table' => 'host',
2785
+  'field' => 'n_bwdown',
2786
+  'relationship' => 'none',
2787
+),
2788
+'avg_turnaround' => array(
2789
+  'label' => 'Average turnaround time',
2790
+  'alter' => array(
2791
+    'alter_text' => 0,
2792
+    'text' => '',
2793
+    'make_link' => 0,
2794
+    'path' => '',
2795
+    'link_class' => '',
2796
+    'alt' => '',
2797
+    'prefix' => '',
2798
+    'suffix' => '',
2799
+    'target' => '',
2800
+    'help' => '',
2801
+    'trim' => 0,
2802
+    'max_length' => '',
2803
+    'word_boundary' => 1,
2804
+    'ellipsis' => 1,
2805
+    'html' => 0,
2806
+    'strip_tags' => 0,
2807
+  ),
2808
+  'empty' => '',
2809
+  'hide_empty' => 0,
2810
+  'empty_zero' => 0,
2811
+  'set_precision' => 0,
2812
+  'precision' => '0',
2813
+  'decimal' => '.',
2814
+  'separator' => '',
2815
+  'prefix' => '',
2816
+  'suffix' => '',
2817
+  'exclude' => 1,
2818
+  'id' => 'avg_turnaround',
2819
+  'table' => 'host',
2820
+  'field' => 'avg_turnaround',
2821
+  'relationship' => 'none',
2822
+),
2823
+'n_bwup' => array(
2824
+  'label' => 'Average upload rate',
2825
+  'alter' => array(
2826
+    'alter_text' => 0,
2827
+    'text' => '',
2828
+    'make_link' => 0,
2829
+    'path' => '',
2830
+    'link_class' => '',
2831
+    'alt' => '',
2832
+    'prefix' => '',
2833
+    'suffix' => '',
2834
+    'target' => '',
2835
+    'help' => '',
2836
+    'trim' => 0,
2837
+    'max_length' => '',
2838
+    'word_boundary' => 1,
2839
+    'ellipsis' => 1,
2840
+    'html' => 0,
2841
+    'strip_tags' => 0,
2842
+  ),
2843
+  'empty' => '',
2844
+  'hide_empty' => 0,
2845
+  'empty_zero' => 0,
2846
+  'set_precision' => 0,
2847
+  'precision' => '0',
2848
+  'decimal' => '.',
2849
+  'separator' => '',
2850
+  'prefix' => '',
2851
+  'suffix' => '',
2852
+  'exclude' => 1,
2853
+  'id' => 'n_bwup',
2854
+  'table' => 'host',
2855
+  'field' => 'n_bwup',
2856
+  'relationship' => 'none',
2857
+),
2858
+'p_fpops' => array(
2859
+  'label' => 'Measured floating point speed',
2860
+  'alter' => array(
2861
+    'alter_text' => 0,
2862
+    'text' => '',
2863
+    'make_link' => 0,
2864
+    'path' => '',
2865
+    'link_class' => '',
2866
+    'alt' => '',
2867
+    'prefix' => '',
2868
+    'suffix' => '',
2869
+    'target' => '',
2870
+    'help' => '',
2871
+    'trim' => 0,
2872
+    'max_length' => '',
2873
+    'word_boundary' => 1,
2874
+    'ellipsis' => 1,
2875
+    'html' => 0,
2876
+    'strip_tags' => 0,
2877
+  ),
2878
+  'empty' => '',
2879
+  'hide_empty' => 0,
2880
+  'empty_zero' => 0,
2881
+  'set_precision' => 0,
2882
+  'precision' => '0',
2883
+  'decimal' => '.',
2884
+  'separator' => '',
2885
+  'prefix' => '',
2886
+  'suffix' => '',
2887
+  'exclude' => 1,
2888
+  'id' => 'p_fpops',
2889
+  'table' => 'host',
2890
+  'field' => 'p_fpops',
2891
+  'relationship' => 'none',
2892
+),
2893
+'p_iops' => array(
2894
+  'label' => 'Measured integer speed',
2895
+  'alter' => array(
2896
+    'alter_text' => 0,
2897
+    'text' => '',
2898
+    'make_link' => 0,
2899
+    'path' => '',
2900
+    'link_class' => '',
2901
+    'alt' => '',
2902
+    'prefix' => '',
2903
+    'suffix' => '',
2904
+    'target' => '',
2905
+    'help' => '',
2906
+    'trim' => 0,
2907
+    'max_length' => '',
2908
+    'word_boundary' => 1,
2909
+    'ellipsis' => 1,
2910
+    'html' => 0,
2911
+    'strip_tags' => 0,
2912
+  ),
2913
+  'empty' => '',
2914
+  'hide_empty' => 0,
2915
+  'empty_zero' => 0,
2916
+  'set_precision' => 0,
2917
+  'precision' => '0',
2918
+  'decimal' => '.',
2919
+  'separator' => '',
2920
+  'prefix' => '',
2921
+  'suffix' => '',
2922
+  'exclude' => 1,
2923
+  'id' => 'p_iops',
2924
+  'table' => 'host',
2925
+  'field' => 'p_iops',
2926
+  'relationship' => 'none',
2927
+),
2928
+'phpcode_13' => array(
2929
+  'label' => 'Measured floating point speed',
2930
+  'alter' => array(
2931
+    'alter_text' => 0,
2932
+    'text' => '',
2933
+    'make_link' => 0,
2934
+    'path' => '',
2935
+    'absolute' => 0,
2936
+    'link_class' => '',
2937
+    'alt' => '',
2938
+    'rel' => '',
2939
+    'prefix' => '',
2940
+    'suffix' => '',
2941
+    'target' => '',
2942
+    'help' => '',
2943
+    'trim' => 0,
2944
+    'max_length' => '',
2945
+    'word_boundary' => 1,
2946
+    'ellipsis' => 1,
2947
+    'html' => 0,
2948
+    'strip_tags' => 0,
2949
+  ),
2950
+  'empty' => '',
2951
+  'hide_empty' => 0,
2952
+  'empty_zero' => 0,
2953
+  'hide_alter_empty' => 1,
2954
+  'value' => '<?php
2955 2955
   echo bts(\'@count million ops/sec\',
2956 2956
     array(\'@count\' => round($data->host_p_fpops/(1000*1000), 2)),
2957 2957
     NULL, \'boinc:host-details\');
2958 2958
 ?>',
2959
-      'exclude' => 0,
2960
-      'id' => 'phpcode_13',
2961
-      'table' => 'customfield',
2962
-      'field' => 'phpcode',
2963
-      'relationship' => 'none',
2964
-    ),
2965
-    'phpcode_14' => array(
2966
-      'label' => 'Measured integer speed',
2967
-      'alter' => array(
2968
-        'alter_text' => 0,
2969
-        'text' => '',
2970
-        'make_link' => 0,
2971
-        'path' => '',
2972
-        'absolute' => 0,
2973
-        'link_class' => '',
2974
-        'alt' => '',
2975
-        'rel' => '',
2976
-        'prefix' => '',
2977
-        'suffix' => '',
2978
-        'target' => '',
2979
-        'help' => '',
2980
-        'trim' => 0,
2981
-        'max_length' => '',
2982
-        'word_boundary' => 1,
2983
-        'ellipsis' => 1,
2984
-        'html' => 0,
2985
-        'strip_tags' => 0,
2986
-      ),
2987
-      'empty' => '',
2988
-      'hide_empty' => 0,
2989
-      'empty_zero' => 0,
2990
-      'hide_alter_empty' => 1,
2991
-      'value' => '<?php
2959
+  'exclude' => 0,
2960
+  'id' => 'phpcode_13',
2961
+  'table' => 'customfield',
2962
+  'field' => 'phpcode',
2963
+  'relationship' => 'none',
2964
+),
2965
+'phpcode_14' => array(
2966
+  'label' => 'Measured integer speed',
2967
+  'alter' => array(
2968
+    'alter_text' => 0,
2969
+    'text' => '',
2970
+    'make_link' => 0,
2971
+    'path' => '',
2972
+    'absolute' => 0,
2973
+    'link_class' => '',
2974
+    'alt' => '',
2975
+    'rel' => '',
2976
+    'prefix' => '',
2977
+    'suffix' => '',
2978
+    'target' => '',
2979
+    'help' => '',
2980
+    'trim' => 0,
2981
+    'max_length' => '',
2982
+    'word_boundary' => 1,
2983
+    'ellipsis' => 1,
2984
+    'html' => 0,
2985
+    'strip_tags' => 0,
2986
+  ),
2987
+  'empty' => '',
2988
+  'hide_empty' => 0,
2989
+  'empty_zero' => 0,
2990
+  'hide_alter_empty' => 1,
2991
+  'value' => '<?php
2992 2992
   echo bts(\'@count million ops/sec\',
2993 2993
     array(\'@count\' => round($data->host_p_iops/(1000*1000), 2)),
2994 2994
     NULL, \'boinc:host-details\');
2995 2995
 ?>',
2996
-      'exclude' => 0,
2997
-      'id' => 'phpcode_14',
2998
-      'table' => 'customfield',
2999
-      'field' => 'phpcode',
3000
-      'relationship' => 'none',
3001
-    ),
3002
-    'phpcode_15' => array(
3003
-      'label' => 'Average upload rate',
3004
-      'alter' => array(
3005
-        'alter_text' => 0,
3006
-        'text' => '',
3007
-        'make_link' => 0,
3008
-        'path' => '',
3009
-        'absolute' => 0,
3010
-        'link_class' => '',
3011
-        'alt' => '',
3012
-        'rel' => '',
3013
-        'prefix' => '',
3014
-        'suffix' => '',
3015
-        'target' => '',
3016
-        'help' => '',
3017
-        'trim' => 0,
3018
-        'max_length' => '',
3019
-        'word_boundary' => 1,
3020
-        'ellipsis' => 1,
3021
-        'html' => 0,
3022
-        'strip_tags' => 0,
3023
-      ),
3024
-      'empty' => '',
3025
-      'hide_empty' => 0,
3026
-      'empty_zero' => 0,
3027
-      'hide_alter_empty' => 1,
3028
-      'value' => '<?php
2996
+  'exclude' => 0,
2997
+  'id' => 'phpcode_14',
2998
+  'table' => 'customfield',
2999
+  'field' => 'phpcode',
3000
+  'relationship' => 'none',
3001
+),
3002
+'phpcode_15' => array(
3003
+  'label' => 'Average upload rate',
3004
+  'alter' => array(
3005
+    'alter_text' => 0,
3006
+    'text' => '',
3007
+    'make_link' => 0,
3008
+    'path' => '',
3009
+    'absolute' => 0,
3010
+    'link_class' => '',
3011
+    'alt' => '',
3012
+    'rel' => '',
3013
+    'prefix' => '',
3014
+    'suffix' => '',
3015
+    'target' => '',
3016
+    'help' => '',
3017
+    'trim' => 0,
3018
+    'max_length' => '',
3019
+    'word_boundary' => 1,
3020
+    'ellipsis' => 1,
3021
+    'html' => 0,
3022
+    'strip_tags' => 0,
3023
+  ),
3024
+  'empty' => '',
3025
+  'hide_empty' => 0,
3026
+  'empty_zero' => 0,
3027
+  'hide_alter_empty' => 1,
3028
+  'value' => '<?php
3029 3029
   $rate = round($data->host_n_bwup/(1024), 2);
3030 3030
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3031 3031
 ?>',
3032
-      'exclude' => 0,
3033
-      'id' => 'phpcode_15',
3034
-      'table' => 'customfield',
3035
-      'field' => 'phpcode',
3036
-      'relationship' => 'none',
3037
-    ),
3038
-    'phpcode_16' => array(
3039
-      'label' => 'Average download rate',
3040
-      'alter' => array(
3041
-        'alter_text' => 0,
3042
-        'text' => '',
3043
-        'make_link' => 0,
3044
-        'path' => '',
3045
-        'absolute' => 0,
3046
-        'link_class' => '',
3047
-        'alt' => '',
3048
-        'rel' => '',
3049
-        'prefix' => '',
3050
-        'suffix' => '',
3051
-        'target' => '',
3052
-        'help' => '',
3053
-        'trim' => 0,
3054
-        'max_length' => '',
3055
-        'word_boundary' => 1,
3056
-        'ellipsis' => 1,
3057
-        'html' => 0,
3058
-        'strip_tags' => 0,
3059
-      ),
3060
-      'empty' => '',
3061
-      'hide_empty' => 0,
3062
-      'empty_zero' => 0,
3063
-      'hide_alter_empty' => 1,
3064
-      'value' => '<?php
3032
+  'exclude' => 0,
3033
+  'id' => 'phpcode_15',
3034
+  'table' => 'customfield',
3035
+  'field' => 'phpcode',
3036
+  'relationship' => 'none',
3037
+),
3038
+'phpcode_16' => array(
3039
+  'label' => 'Average download rate',
3040
+  'alter' => array(
3041
+    'alter_text' => 0,
3042
+    'text' => '',
3043
+    'make_link' => 0,
3044
+    'path' => '',
3045
+    'absolute' => 0,
3046
+    'link_class' => '',
3047
+    'alt' => '',
3048
+    'rel' => '',
3049
+    'prefix' => '',
3050
+    'suffix' => '',
3051
+    'target' => '',
3052
+    'help' => '',
3053
+    'trim' => 0,
3054
+    'max_length' => '',
3055
+    'word_boundary' => 1,
3056
+    'ellipsis' => 1,
3057
+    'html' => 0,
3058
+    'strip_tags' => 0,
3059
+  ),
3060
+  'empty' => '',
3061
+  'hide_empty' => 0,
3062
+  'empty_zero' => 0,
3063
+  'hide_alter_empty' => 1,
3064
+  'value' => '<?php
3065 3065
   $rate = round($data->host_n_bwdown/(1024), 2);
3066 3066
   echo ($rate > 0) ? bts(\'@rate KiB/sec\', array(\'@rate\' => $rate), NULL, \'boinc:host-details\') : bts(\'Unknown\', array(), NULL, \'boinc:host-details\');
3067 3067
 ?>',
3068
-      'exclude' => 0,
3069
-      'id' => 'phpcode_16',
3070
-      'table' => 'customfield',
3071
-      'field' => 'phpcode',
3072
-      'relationship' => 'none',
3073
-    ),
3074
-    'phpcode_17' => array(
3075
-      'label' => 'Average turnaround time',
3076
-      'alter' => array(
3077
-        'alter_text' => 0,
3078
-        'text' => '',
3079
-        'make_link' => 0,
3080
-        'path' => '',
3081
-        'absolute' => 0,
3082
-        'link_class' => '',
3083
-        'alt' => '',
3084
-        'rel' => '',
3085
-        'prefix' => '',
3086
-        'suffix' => '',
3087
-        'target' => '',
3088
-        'help' => '',
3089
-        'trim' => 0,
3090
-        'max_length' => '',
3091
-        'word_boundary' => 1,
3092
-        'ellipsis' => 1,
3093
-        'html' => 0,
3094
-        'strip_tags' => 0,
3095
-      ),
3096
-      'empty' => '',
3097
-      'hide_empty' => 0,
3098
-      'empty_zero' => 0,
3099
-      'hide_alter_empty' => 1,
3100
-      'value' => '<?php
3068
+  'exclude' => 0,
3069
+  'id' => 'phpcode_16',
3070
+  'table' => 'customfield',
3071
+  'field' => 'phpcode',
3072
+  'relationship' => 'none',
3073
+),
3074
+'phpcode_17' => array(
3075
+  'label' => 'Average turnaround time',
3076
+  'alter' => array(
3077
+    'alter_text' => 0,
3078
+    'text' => '',
3079
+    'make_link' => 0,
3080
+    'path' => '',
3081
+    'absolute' => 0,
3082
+    'link_class' => '',
3083
+    'alt' => '',
3084
+    'rel' => '',
3085
+    'prefix' => '',
3086
+    'suffix' => '',
3087
+    'target' => '',
3088
+    'help' => '',
3089
+    'trim' => 0,
3090
+    'max_length' => '',
3091
+    'word_boundary' => 1,
3092
+    'ellipsis' => 1,
3093
+    'html' => 0,
3094
+    'strip_tags' => 0,
3095
+  ),
3096
+  'empty' => '',
3097
+  'hide_empty' => 0,
3098
+  'empty_zero' => 0,
3099
+  'hide_alter_empty' => 1,
3100
+  'value' => '<?php
3101 3101
   echo bts(\'@count days\', array(\'@count\' => round($data->host_avg_turnaround/(60*60*24), 2)), NULL, \'boinc:host-details\');
3102 3102
 ?>',
3103
-      'exclude' => 0,
3104
-      'id' => 'phpcode_17',
3105
-      'table' => 'customfield',
3106
-      'field' => 'phpcode',
3107
-      'relationship' => 'none',
3108
-    ),
3109
-    'max_results_day' => array(
3110
-      'label' => 'Maximum daily WU quota per CPU',
3111
-      'alter' => array(
3112
-        'alter_text' => 0,
3113
-        'text' => '',
3114
-        'make_link' => 0,
3115
-        'path' => '',
3116
-        'absolute' => 0,
3117
-        'link_class' => '',
3118
-        'alt' => '',
3119
-        'rel' => '',
3120
-        'prefix' => '',
3121
-        'suffix' => '',
3122
-        'target' => '',
3123
-        'help' => '',
3124
-        'trim' => 0,
3125
-        'max_length' => '',
3126
-        'word_boundary' => 1,
3127
-        'ellipsis' => 1,
3128
-        'html' => 0,
3129
-        'strip_tags' => 0,
3130
-      ),
3131
-      'empty' => '',
3132
-      'hide_empty' => 0,
3133
-      'empty_zero' => 0,
3134
-      'hide_alter_empty' => 1,
3135
-      'set_precision' => FALSE,
3136
-      'precision' => 0,
3137
-      'decimal' => '.',
3138
-      'separator' => '',
3139
-      'format_plural' => 0,
3140
-      'format_plural_singular' => '1',
3141
-      'format_plural_plural' => '@count',
3142
-      'prefix' => '',
3143
-      'suffix' => '/day',
3144
-      'exclude' => 1,
3145
-      'id' => 'max_results_day',
3146
-      'table' => 'host',
3147
-      'field' => 'max_results_day',
3148
-      'relationship' => 'none',
3149
-    ),
3150
-    'nothing' => array(
3151
-      'label' => 'Application details',
3152
-      'alter' => array(
3153
-        'text' => 'Show',
3154
-        'make_link' => 1,
3155
-        'path' => 'host/!1/apps',
3156
-        'absolute' => 0,
3157
-        'link_class' => '',
3158
-        'alt' => '',
3159
-        'rel' => '',
3160
-        'prefix' => '',
3161
-        'suffix' => '',
3162
-        'target' => '',
3163
-        'help' => '',
3164
-        'trim' => 0,
3165
-        'max_length' => '',
3166
-        'word_boundary' => 1,
3167
-        'ellipsis' => 1,
3168
-        'html' => 0,
3169
-        'strip_tags' => 0,
3170
-      ),
3171
-      'empty' => '',
3172
-      'hide_empty' => 0,
3173
-      'empty_zero' => 0,
3174
-      'hide_alter_empty' => 1,
3175
-      'exclude' => 0,
3176
-      'id' => 'nothing',
3177
-      'table' => 'views',
3178
-      'field' => 'nothing',
3179
-      'override' => array(
3180
-        'button' => 'Override',
3181
-      ),
3182
-      'relationship' => 'none',
3183
-    ),
3184
-    'phpcode_18' => array(
3185
-      'label' => 'Tasks',
3186
-      'alter' => array(
3187
-        'alter_text' => 0,
3188
-        'text' => '',
3189
-        'make_link' => 0,
3190
-        'path' => '',
3191
-        'absolute' => 0,
3192
-        'link_class' => '',
3193
-        'alt' => '',
3194
-        'rel' => '',
3195
-        'prefix' => '',
3196
-        'suffix' => '',
3197
-        'target' => '',
3198
-        'help' => '',
3199
-        'trim' => 0,
3200
-        'max_length' => '',
3201
-        'word_boundary' => 1,
3202
-        'ellipsis' => 1,
3203
-        'html' => 0,
3204
-        'strip_tags' => 0,
3205
-      ),
3206
-      'empty' => '0',
3207
-      'hide_empty' => 0,
3208
-      'empty_zero' => 0,
3209
-      'hide_alter_empty' => 0,
3210
-      'value' => '<?php
3103
+  'exclude' => 0,
3104
+  'id' => 'phpcode_17',
3105
+  'table' => 'customfield',
3106
+  'field' => 'phpcode',
3107
+  'relationship' => 'none',
3108
+),
3109
+'max_results_day' => array(
3110
+  'label' => 'Maximum daily WU quota per CPU',
3111
+  'alter' => array(
3112
+    'alter_text' => 0,
3113
+    'text' => '',
3114
+    'make_link' => 0,
3115
+    'path' => '',
3116
+    'absolute' => 0,
3117
+    'link_class' => '',
3118
+    'alt' => '',
3119
+    'rel' => '',
3120
+    'prefix' => '',
3121
+    'suffix' => '',
3122
+    'target' => '',
3123
+    'help' => '',
3124
+    'trim' => 0,
3125
+    'max_length' => '',
3126
+    'word_boundary' => 1,
3127
+    'ellipsis' => 1,
3128
+    'html' => 0,
3129
+    'strip_tags' => 0,
3130
+  ),
3131
+  'empty' => '',
3132
+  'hide_empty' => 0,
3133
+  'empty_zero' => 0,
3134
+  'hide_alter_empty' => 1,
3135
+  'set_precision' => FALSE,
3136
+  'precision' => 0,
3137
+  'decimal' => '.',
3138
+  'separator' => '',
3139
+  'format_plural' => 0,
3140
+  'format_plural_singular' => '1',
3141
+  'format_plural_plural' => '@count',
3142
+  'prefix' => '',
3143
+  'suffix' => '/day',
3144
+  'exclude' => 1,
3145
+  'id' => 'max_results_day',
3146
+  'table' => 'host',
3147
+  'field' => 'max_results_day',
3148
+  'relationship' => 'none',
3149
+),
3150
+'nothing' => array(
3151
+  'label' => 'Application details',
3152
+  'alter' => array(
3153
+    'text' => 'Show',
3154
+    'make_link' => 1,
3155
+    'path' => 'host/!1/apps',
3156
+    'absolute' => 0,
3157
+    'link_class' => '',
3158
+    'alt' => '',
3159
+    'rel' => '',
3160
+    'prefix' => '',
3161
+    'suffix' => '',
3162
+    'target' => '',
3163
+    'help' => '',
3164
+    'trim' => 0,
3165
+    'max_length' => '',
3166
+    'word_boundary' => 1,
3167
+    'ellipsis' => 1,
3168
+    'html' => 0,
3169
+    'strip_tags' => 0,
3170
+  ),
3171
+  'empty' => '',
3172
+  'hide_empty' => 0,
3173
+  'empty_zero' => 0,
3174
+  'hide_alter_empty' => 1,
3175
+  'exclude' => 0,
3176
+  'id' => 'nothing',
3177
+  'table' => 'views',
3178
+  'field' => 'nothing',
3179
+  'override' => array(
3180
+    'button' => 'Override',
3181
+  ),
3182
+  'relationship' => 'none',
3183
+),
3184
+'phpcode_18' => array(
3185
+  'label' => 'Tasks',
3186
+  'alter' => array(
3187
+    'alter_text' => 0,
3188
+    'text' => '',
3189
+    'make_link' => 0,
3190
+    'path' => '',
3191
+    'absolute' => 0,
3192
+    'link_class' => '',
3193
+    'alt' => '',
3194
+    'rel' => '',
3195
+    'prefix' => '',
3196
+    'suffix' => '',
3197
+    'target' => '',
3198
+    'help' => '',
3199
+    'trim' => 0,
3200
+    'max_length' => '',
3201
+    'word_boundary' => 1,
3202
+    'ellipsis' => 1,
3203
+    'html' => 0,
3204
+    'strip_tags' => 0,
3205
+  ),
3206
+  'empty' => '0',
3207
+  'hide_empty' => 0,
3208
+  'empty_zero' => 0,
3209
+  'hide_alter_empty' => 0,
3210
+  'value' => '<?php
3211 3211
   //require_boint(\'util\');
3212 3212
   //$config = get_config();
3213 3213
   //if (parse_bool($config, "show_results")) {
@@ -3220,1780 +3220,1780 @@  discard block
 block discarded – undo
3220 3220
     }
3221 3221
   //}
3222 3222
 ?>',
3223
-      'exclude' => 0,
3224
-      'id' => 'phpcode_18',
3225
-      'table' => 'customfield',
3226
-      'field' => 'phpcode',
3227
-      'relationship' => 'none',
3228
-    ),
3229
-    'rpc_seqno' => array(
3230
-      'label' => 'Number of times client has contacted server',
3231
-      'alter' => array(
3232
-        'alter_text' => 0,
3233
-        'text' => '',
3234
-        'make_link' => 0,
3235
-        'path' => '',
3236
-        'link_class' => '',
3237
-        'alt' => '',
3238
-        'prefix' => '',
3239
-        'suffix' => '',
3240
-        'target' => '',
3241
-        'help' => '',
3242
-        'trim' => 0,
3243
-        'max_length' => '',
3244
-        'word_boundary' => 1,
3245
-        'ellipsis' => 1,
3246
-        'html' => 0,
3247
-        'strip_tags' => 0,
3248
-      ),
3249
-      'empty' => '',
3250
-      'hide_empty' => 0,
3251
-      'empty_zero' => 0,
3252
-      'set_precision' => FALSE,
3253
-      'precision' => 0,
3254
-      'decimal' => '.',
3255
-      'separator' => '',
3256
-      'prefix' => '',
3257
-      'suffix' => '',
3258
-      'exclude' => 1,
3259
-      'id' => 'rpc_seqno',
3260
-      'table' => 'host',
3261
-      'field' => 'rpc_seqno',
3262
-      'relationship' => 'none',
3263
-    ),
3264
-    'phpcode_2' => array(
3265
-      'label' => 'Number of times client has contacted server',
3266
-      'alter' => array(
3267
-        'alter_text' => 0,
3268
-        'text' => '',
3269
-        'make_link' => 0,
3270
-        'path' => '',
3271
-        'absolute' => 0,
3272
-        'link_class' => '',
3273
-        'alt' => '',
3274
-        'rel' => '',
3275
-        'prefix' => '',
3276
-        'suffix' => '',
3277
-        'target' => '',
3278
-        'help' => '',
3279
-        'trim' => 0,
3280
-        'max_length' => '',
3281
-        'word_boundary' => 1,
3282
-        'ellipsis' => 1,
3283
-        'html' => 0,
3284
-        'strip_tags' => 0,
3285
-      ),
3286
-      'empty' => '0',
3287
-      'hide_empty' => 0,
3288
-      'empty_zero' => 0,
3289
-      'hide_alter_empty' => 0,
3290
-      'value' => '<?php
3223
+  'exclude' => 0,
3224
+  'id' => 'phpcode_18',
3225
+  'table' => 'customfield',
3226
+  'field' => 'phpcode',
3227
+  'relationship' => 'none',
3228
+),
3229
+'rpc_seqno' => array(
3230
+  'label' => 'Number of times client has contacted server',
3231
+  'alter' => array(
3232
+    'alter_text' => 0,
3233
+    'text' => '',
3234
+    'make_link' => 0,
3235
+    'path' => '',
3236
+    'link_class' => '',
3237
+    'alt' => '',
3238
+    'prefix' => '',
3239
+    'suffix' => '',
3240
+    'target' => '',
3241
+    'help' => '',
3242
+    'trim' => 0,
3243
+    'max_length' => '',
3244
+    'word_boundary' => 1,
3245
+    'ellipsis' => 1,
3246
+    'html' => 0,
3247
+    'strip_tags' => 0,
3248
+  ),
3249
+  'empty' => '',
3250
+  'hide_empty' => 0,
3251
+  'empty_zero' => 0,
3252
+  'set_precision' => FALSE,
3253
+  'precision' => 0,
3254
+  'decimal' => '.',
3255
+  'separator' => '',
3256
+  'prefix' => '',
3257
+  'suffix' => '',
3258
+  'exclude' => 1,
3259
+  'id' => 'rpc_seqno',
3260
+  'table' => 'host',
3261
+  'field' => 'rpc_seqno',
3262
+  'relationship' => 'none',
3263
+),
3264
+'phpcode_2' => array(
3265
+  'label' => 'Number of times client has contacted server',
3266
+  'alter' => array(
3267
+    'alter_text' => 0,
3268
+    'text' => '',
3269
+    'make_link' => 0,
3270
+    'path' => '',
3271
+    'absolute' => 0,
3272
+    'link_class' => '',
3273
+    'alt' => '',
3274
+    'rel' => '',
3275
+    'prefix' => '',
3276
+    'suffix' => '',
3277
+    'target' => '',
3278
+    'help' => '',
3279
+    'trim' => 0,
3280
+    'max_length' => '',
3281
+    'word_boundary' => 1,
3282
+    'ellipsis' => 1,
3283
+    'html' => 0,
3284
+    'strip_tags' => 0,
3285
+  ),
3286
+  'empty' => '0',
3287
+  'hide_empty' => 0,
3288
+  'empty_zero' => 0,
3289
+  'hide_alter_empty' => 0,
3290
+  'value' => '<?php
3291 3291
   echo $data->host_rpc_seqno;
3292 3292
 ?>',
3293
-      'exclude' => 0,
3294
-      'id' => 'phpcode_2',
3295
-      'table' => 'customfield',
3296
-      'field' => 'phpcode',
3297
-      'relationship' => 'none',
3298
-    ),
3299
-    'on_frac' => array(
3300
-      'label' => '% of time BOINC client is running',
3301
-      'alter' => array(
3302
-        'alter_text' => 0,
3303
-        'text' => '',
3304
-        'make_link' => 0,
3305
-        'path' => '',
3306
-        'link_class' => '',
3307
-        'alt' => '',
3308
-        'prefix' => '',
3309
-        'suffix' => '',
3310
-        'target' => '',
3311
-        'help' => '',
3312
-        'trim' => 0,
3313
-        'max_length' => '',
3314
-        'word_boundary' => 1,
3315
-        'ellipsis' => 1,
3316
-        'html' => 0,
3317
-        'strip_tags' => 0,
3318
-      ),
3319
-      'empty' => '',
3320
-      'hide_empty' => 0,
3321
-      'empty_zero' => 0,
3322
-      'set_precision' => 0,
3323
-      'precision' => '0',
3324
-      'decimal' => '.',
3325
-      'separator' => '',
3326
-      'prefix' => '',
3327
-      'suffix' => '',
3328
-      'exclude' => 1,
3329
-      'id' => 'on_frac',
3330
-      'table' => 'host',
3331
-      'field' => 'on_frac',
3332
-      'relationship' => 'none',
3333
-    ),
3334
-    'rpc_time_1' => array(
3335
-      'label' => 'Last contact',
3336
-      'alter' => array(
3337
-        'alter_text' => 0,
3338
-        'text' => '',
3339
-        'make_link' => 0,
3340
-        'path' => '',
3341
-        'link_class' => '',
3342
-        'alt' => '',
3343
-        'prefix' => '',
3344
-        'suffix' => '',
3345
-        'target' => '',
3346
-        'help' => '',
3347
-        'trim' => 0,
3348
-        'max_length' => '',
3349
-        'word_boundary' => 1,
3350
-        'ellipsis' => 1,
3351
-        'html' => 0,
3352
-        'strip_tags' => 0,
3353
-      ),
3354
-      'empty' => '',
3355
-      'hide_empty' => 0,
3356
-      'empty_zero' => 0,
3357
-      'date_format' => 'small',
3358
-      'custom_date_format' => '',
3359
-      'exclude' => 1,
3360
-      'id' => 'rpc_time_1',
3361
-      'table' => 'host',
3362
-      'field' => 'rpc_time',
3363
-      'relationship' => 'none',
3364
-    ),
3365
-    'cpu_efficiency' => array(
3366
-      'label' => 'Average CPU efficiency',
3367
-      'alter' => array(
3368
-        'alter_text' => 0,
3369
-        'text' => '',
3370
-        'make_link' => 0,
3371
-        'path' => '',
3372
-        'link_class' => '',
3373
-        'alt' => '',
3374
-        'prefix' => '',
3375
-        'suffix' => '',
3376
-        'target' => '',
3377
-        'help' => '',
3378
-        'trim' => 0,
3379
-        'max_length' => '',
3380
-        'word_boundary' => 1,
3381
-        'ellipsis' => 1,
3382
-        'html' => 0,
3383
-        'strip_tags' => 0,
3384
-      ),
3385
-      'empty' => '',
3386
-      'hide_empty' => 0,
3387
-      'empty_zero' => 0,
3388
-      'set_precision' => 0,
3389
-      'precision' => '0',
3390
-      'decimal' => '.',
3391
-      'separator' => '',
3392
-      'prefix' => '',
3393
-      'suffix' => '',
3394
-      'exclude' => 1,
3395
-      'id' => 'cpu_efficiency',
3396
-      'table' => 'host',
3397
-      'field' => 'cpu_efficiency',
3398
-      'relationship' => 'none',
3399
-    ),
3400
-    'duration_correction_factor' => array(
3401
-      'label' => 'Task duration correction factor',
3402
-      'alter' => array(
3403
-        'alter_text' => 0,
3404
-        'text' => '',
3405
-        'make_link' => 0,
3406
-        'path' => '',
3407
-        'link_class' => '',
3408
-        'alt' => '',
3409
-        'prefix' => '',
3410
-        'suffix' => '',
3411
-        'target' => '',
3412
-        'help' => '',
3413
-        'trim' => 0,
3414
-        'max_length' => '',
3415
-        'word_boundary' => 1,
3416
-        'ellipsis' => 1,
3417
-        'html' => 0,
3418
-        'strip_tags' => 0,
3419
-      ),
3420
-      'empty' => '',
3421
-      'hide_empty' => 0,
3422
-      'empty_zero' => 0,
3423
-      'set_precision' => FALSE,
3424
-      'precision' => 0,
3425
-      'decimal' => '.',
3426
-      'separator' => '',
3427
-      'prefix' => '',
3428
-      'suffix' => '',
3429
-      'exclude' => 1,
3430
-      'id' => 'duration_correction_factor',
3431
-      'table' => 'host',
3432
-      'field' => 'duration_correction_factor',
3433
-      'relationship' => 'none',
3434
-    ),
3435
-    'connected_frac' => array(
3436
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3437
-      'alter' => array(
3438
-        'alter_text' => 0,
3439
-        'text' => '',
3440
-        'make_link' => 0,
3441
-        'path' => '',
3442
-        'link_class' => '',
3443
-        'alt' => '',
3444
-        'prefix' => '',
3445
-        'suffix' => '',
3446
-        'target' => '',
3447
-        'help' => '',
3448
-        'trim' => 0,
3449
-        'max_length' => '',
3450
-        'word_boundary' => 1,
3451
-        'ellipsis' => 1,
3452
-        'html' => 0,
3453
-        'strip_tags' => 0,
3454
-      ),
3455
-      'empty' => '',
3456
-      'hide_empty' => 0,
3457
-      'empty_zero' => 0,
3458
-      'set_precision' => 0,
3459
-      'precision' => '0',
3460
-      'decimal' => '.',
3461
-      'separator' => '',
3462
-      'prefix' => '',
3463
-      'suffix' => '',
3464
-      'exclude' => 1,
3465
-      'id' => 'connected_frac',
3466
-      'table' => 'host',
3467
-      'field' => 'connected_frac',
3468
-      'relationship' => 'none',
3469
-    ),
3470
-    'active_frac' => array(
3471
-      'label' => 'While BOINC running, % of time work is allowed',
3472
-      'alter' => array(
3473
-        'alter_text' => 0,
3474
-        'text' => '',
3475
-        'make_link' => 0,
3476
-        'path' => '',
3477
-        'link_class' => '',
3478
-        'alt' => '',
3479
-        'prefix' => '',
3480
-        'suffix' => '',
3481
-        'target' => '',
3482
-        'help' => '',
3483
-        'trim' => 0,
3484
-        'max_length' => '',
3485
-        'word_boundary' => 1,
3486
-        'ellipsis' => 1,
3487
-        'html' => 0,
3488
-        'strip_tags' => 0,
3489
-      ),
3490
-      'empty' => '',
3491
-      'hide_empty' => 0,
3492
-      'empty_zero' => 0,
3493
-      'set_precision' => 0,
3494
-      'precision' => '0',
3495
-      'decimal' => '.',
3496
-      'separator' => '',
3497
-      'prefix' => '',
3498
-      'suffix' => '',
3499
-      'exclude' => 1,
3500
-      'id' => 'active_frac',
3501
-      'table' => 'host',
3502
-      'field' => 'active_frac',
3503
-      'relationship' => 'none',
3504
-    ),
3505
-    'phpcode_19' => array(
3506
-      'label' => 'Last time contacted server',
3507
-      'alter' => array(
3508
-        'alter_text' => 0,
3509
-        'text' => '',
3510
-        'make_link' => 0,
3511
-        'path' => '',
3512
-        'absolute' => 0,
3513
-        'link_class' => '',
3514
-        'alt' => '',
3515
-        'rel' => '',
3516
-        'prefix' => '',
3517
-        'suffix' => '',
3518
-        'target' => '',
3519
-        'help' => '',
3520
-        'trim' => 0,
3521
-        'max_length' => '',
3522
-        'word_boundary' => 1,
3523
-        'ellipsis' => 1,
3524
-        'html' => 0,
3525
-        'strip_tags' => 0,
3526
-      ),
3527
-      'empty' => '',
3528
-      'hide_empty' => 1,
3529
-      'empty_zero' => 0,
3530
-      'hide_alter_empty' => 1,
3531
-      'value' => '<?php
3293
+  'exclude' => 0,
3294
+  'id' => 'phpcode_2',
3295
+  'table' => 'customfield',
3296
+  'field' => 'phpcode',
3297
+  'relationship' => 'none',
3298
+),
3299
+'on_frac' => array(
3300
+  'label' => '% of time BOINC client is running',
3301
+  'alter' => array(
3302
+    'alter_text' => 0,
3303
+    'text' => '',
3304
+    'make_link' => 0,
3305
+    'path' => '',
3306
+    'link_class' => '',
3307
+    'alt' => '',
3308
+    'prefix' => '',
3309
+    'suffix' => '',
3310
+    'target' => '',
3311
+    'help' => '',
3312
+    'trim' => 0,
3313
+    'max_length' => '',
3314
+    'word_boundary' => 1,
3315
+    'ellipsis' => 1,
3316
+    'html' => 0,
3317
+    'strip_tags' => 0,
3318
+  ),
3319
+  'empty' => '',
3320
+  'hide_empty' => 0,
3321
+  'empty_zero' => 0,
3322
+  'set_precision' => 0,
3323
+  'precision' => '0',
3324
+  'decimal' => '.',
3325
+  'separator' => '',
3326
+  'prefix' => '',
3327
+  'suffix' => '',
3328
+  'exclude' => 1,
3329
+  'id' => 'on_frac',
3330
+  'table' => 'host',
3331
+  'field' => 'on_frac',
3332
+  'relationship' => 'none',
3333
+),
3334
+'rpc_time_1' => array(
3335
+  'label' => 'Last contact',
3336
+  'alter' => array(
3337
+    'alter_text' => 0,
3338
+    'text' => '',
3339
+    'make_link' => 0,
3340
+    'path' => '',
3341
+    'link_class' => '',
3342
+    'alt' => '',
3343
+    'prefix' => '',
3344
+    'suffix' => '',
3345
+    'target' => '',
3346
+    'help' => '',
3347
+    'trim' => 0,
3348
+    'max_length' => '',
3349
+    'word_boundary' => 1,
3350
+    'ellipsis' => 1,
3351
+    'html' => 0,
3352
+    'strip_tags' => 0,
3353
+  ),
3354
+  'empty' => '',
3355
+  'hide_empty' => 0,
3356
+  'empty_zero' => 0,
3357
+  'date_format' => 'small',
3358
+  'custom_date_format' => '',
3359
+  'exclude' => 1,
3360
+  'id' => 'rpc_time_1',
3361
+  'table' => 'host',
3362
+  'field' => 'rpc_time',
3363
+  'relationship' => 'none',
3364
+),
3365
+'cpu_efficiency' => array(
3366
+  'label' => 'Average CPU efficiency',
3367
+  'alter' => array(
3368
+    'alter_text' => 0,
3369
+    'text' => '',
3370
+    'make_link' => 0,
3371
+    'path' => '',
3372
+    'link_class' => '',
3373
+    'alt' => '',
3374
+    'prefix' => '',
3375
+    'suffix' => '',
3376
+    'target' => '',
3377
+    'help' => '',
3378
+    'trim' => 0,
3379
+    'max_length' => '',
3380
+    'word_boundary' => 1,
3381
+    'ellipsis' => 1,
3382
+    'html' => 0,
3383
+    'strip_tags' => 0,
3384
+  ),
3385
+  'empty' => '',
3386
+  'hide_empty' => 0,
3387
+  'empty_zero' => 0,
3388
+  'set_precision' => 0,
3389
+  'precision' => '0',
3390
+  'decimal' => '.',
3391
+  'separator' => '',
3392
+  'prefix' => '',
3393
+  'suffix' => '',
3394
+  'exclude' => 1,
3395
+  'id' => 'cpu_efficiency',
3396
+  'table' => 'host',
3397
+  'field' => 'cpu_efficiency',
3398
+  'relationship' => 'none',
3399
+),
3400
+'duration_correction_factor' => array(
3401
+  'label' => 'Task duration correction factor',
3402
+  'alter' => array(
3403
+    'alter_text' => 0,
3404
+    'text' => '',
3405
+    'make_link' => 0,
3406
+    'path' => '',
3407
+    'link_class' => '',
3408
+    'alt' => '',
3409
+    'prefix' => '',
3410
+    'suffix' => '',
3411
+    'target' => '',
3412
+    'help' => '',
3413
+    'trim' => 0,
3414
+    'max_length' => '',
3415
+    'word_boundary' => 1,
3416
+    'ellipsis' => 1,
3417
+    'html' => 0,
3418
+    'strip_tags' => 0,
3419
+  ),
3420
+  'empty' => '',
3421
+  'hide_empty' => 0,
3422
+  'empty_zero' => 0,
3423
+  'set_precision' => FALSE,
3424
+  'precision' => 0,
3425
+  'decimal' => '.',
3426
+  'separator' => '',
3427
+  'prefix' => '',
3428
+  'suffix' => '',
3429
+  'exclude' => 1,
3430
+  'id' => 'duration_correction_factor',
3431
+  'table' => 'host',
3432
+  'field' => 'duration_correction_factor',
3433
+  'relationship' => 'none',
3434
+),
3435
+'connected_frac' => array(
3436
+  'label' => 'While BOINC running, % of time host has an Internet connection',
3437
+  'alter' => array(
3438
+    'alter_text' => 0,
3439
+    'text' => '',
3440
+    'make_link' => 0,
3441
+    'path' => '',
3442
+    'link_class' => '',
3443
+    'alt' => '',
3444
+    'prefix' => '',
3445
+    'suffix' => '',
3446
+    'target' => '',
3447
+    'help' => '',
3448
+    'trim' => 0,
3449
+    'max_length' => '',
3450
+    'word_boundary' => 1,
3451
+    'ellipsis' => 1,
3452
+    'html' => 0,
3453
+    'strip_tags' => 0,
3454
+  ),
3455
+  'empty' => '',
3456
+  'hide_empty' => 0,
3457
+  'empty_zero' => 0,
3458
+  'set_precision' => 0,
3459
+  'precision' => '0',
3460
+  'decimal' => '.',
3461
+  'separator' => '',
3462
+  'prefix' => '',
3463
+  'suffix' => '',
3464
+  'exclude' => 1,
3465
+  'id' => 'connected_frac',
3466
+  'table' => 'host',
3467
+  'field' => 'connected_frac',
3468
+  'relationship' => 'none',
3469
+),
3470
+'active_frac' => array(
3471
+  'label' => 'While BOINC running, % of time work is allowed',
3472
+  'alter' => array(
3473
+    'alter_text' => 0,
3474
+    'text' => '',
3475
+    'make_link' => 0,
3476
+    'path' => '',
3477
+    'link_class' => '',
3478
+    'alt' => '',
3479
+    'prefix' => '',
3480
+    'suffix' => '',
3481
+    'target' => '',
3482
+    'help' => '',
3483
+    'trim' => 0,
3484
+    'max_length' => '',
3485
+    'word_boundary' => 1,
3486
+    'ellipsis' => 1,
3487
+    'html' => 0,
3488
+    'strip_tags' => 0,
3489
+  ),
3490
+  'empty' => '',
3491
+  'hide_empty' => 0,
3492
+  'empty_zero' => 0,
3493
+  'set_precision' => 0,
3494
+  'precision' => '0',
3495
+  'decimal' => '.',
3496
+  'separator' => '',
3497
+  'prefix' => '',
3498
+  'suffix' => '',
3499
+  'exclude' => 1,
3500
+  'id' => 'active_frac',
3501
+  'table' => 'host',
3502
+  'field' => 'active_frac',
3503
+  'relationship' => 'none',
3504
+),
3505
+'phpcode_19' => array(
3506
+  'label' => 'Last time contacted server',
3507
+  'alter' => array(
3508
+    'alter_text' => 0,
3509
+    'text' => '',
3510
+    'make_link' => 0,
3511
+    'path' => '',
3512
+    'absolute' => 0,
3513
+    'link_class' => '',
3514
+    'alt' => '',
3515
+    'rel' => '',
3516
+    'prefix' => '',
3517
+    'suffix' => '',
3518
+    'target' => '',
3519
+    'help' => '',
3520
+    'trim' => 0,
3521
+    'max_length' => '',
3522
+    'word_boundary' => 1,
3523
+    'ellipsis' => 1,
3524
+    'html' => 0,
3525
+    'strip_tags' => 0,
3526
+  ),
3527
+  'empty' => '',
3528
+  'hide_empty' => 1,
3529
+  'empty_zero' => 0,
3530
+  'hide_alter_empty' => 1,
3531
+  'value' => '<?php
3532 3532
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
3533 3533
 ?>',
3534
-      'exclude' => 0,
3535
-      'id' => 'phpcode_19',
3536
-      'table' => 'customfield',
3537
-      'field' => 'phpcode',
3538
-      'relationship' => 'none',
3539
-    ),
3540
-    'phpcode_20' => array(
3541
-      'label' => '% of time BOINC client is running',
3542
-      'alter' => array(
3543
-        'alter_text' => 0,
3544
-        'text' => '',
3545
-        'make_link' => 0,
3546
-        'path' => '',
3547
-        'link_class' => '',
3548
-        'alt' => '',
3549
-        'prefix' => '',
3550
-        'suffix' => '',
3551
-        'target' => '',
3552
-        'help' => '',
3553
-        'trim' => 0,
3554
-        'max_length' => '',
3555
-        'word_boundary' => 1,
3556
-        'ellipsis' => 1,
3557
-        'html' => 0,
3558
-        'strip_tags' => 0,
3559
-      ),
3560
-      'empty' => '',
3561
-      'hide_empty' => 1,
3562
-      'empty_zero' => 0,
3563
-      'value' => '<?php
3534
+  'exclude' => 0,
3535
+  'id' => 'phpcode_19',
3536
+  'table' => 'customfield',
3537
+  'field' => 'phpcode',
3538
+  'relationship' => 'none',
3539
+),
3540
+'phpcode_20' => array(
3541
+  'label' => '% of time BOINC client is running',
3542
+  'alter' => array(
3543
+    'alter_text' => 0,
3544
+    'text' => '',
3545
+    'make_link' => 0,
3546
+    'path' => '',
3547
+    'link_class' => '',
3548
+    'alt' => '',
3549
+    'prefix' => '',
3550
+    'suffix' => '',
3551
+    'target' => '',
3552
+    'help' => '',
3553
+    'trim' => 0,
3554
+    'max_length' => '',
3555
+    'word_boundary' => 1,
3556
+    'ellipsis' => 1,
3557
+    'html' => 0,
3558
+    'strip_tags' => 0,
3559
+  ),
3560
+  'empty' => '',
3561
+  'hide_empty' => 1,
3562
+  'empty_zero' => 0,
3563
+  'value' => '<?php
3564 3564
   if (is_current_boinc_user($data->host_userid)) {
3565 3565
     echo ($data->host_on_frac * 100) . \' %\';
3566 3566
   }
3567 3567
 ?>',
3568
-      'exclude' => 0,
3569
-      'id' => 'phpcode_20',
3570
-      'table' => 'customfield',
3571
-      'field' => 'phpcode',
3572
-      'relationship' => 'none',
3573
-    ),
3574
-    'phpcode_21' => array(
3575
-      'label' => 'While BOINC running, % of time host has an Internet connection',
3576
-      'alter' => array(
3577
-        'alter_text' => 0,
3578
-        'text' => '',
3579
-        'make_link' => 0,
3580
-        'path' => '',
3581
-        'link_class' => '',
3582
-        'alt' => '',
3583
-        'prefix' => '',
3584
-        'suffix' => '',
3585
-        'target' => '',
3586
-        'help' => '',
3587
-        'trim' => 0,
3588
-        'max_length' => '',
3589
-        'word_boundary' => 1,
3590
-        'ellipsis' => 1,
3591
-        'html' => 0,
3592
-        'strip_tags' => 0,
3593
-      ),
3594
-      'empty' => '',
3595
-      'hide_empty' => 1,
3596
-      'empty_zero' => 0,
3597
-      'value' => '<?php
3568
+  'exclude' => 0,
3569
+  'id' => 'phpcode_20',
3570
+  'table' => 'customfield',
3571
+  'field' => 'phpcode',
3572
+  'relationship' => 'none',
3573
+),
3574
+'phpcode_21' => array(
3575
+  'label' => 'While BOINC running, % of time host has an Internet connection',
3576
+  'alter' => array(
3577
+    'alter_text' => 0,
3578
+    'text' => '',
3579
+    'make_link' => 0,
3580
+    'path' => '',
3581
+    'link_class' => '',
3582
+    'alt' => '',
3583
+    'prefix' => '',
3584
+    'suffix' => '',
3585
+    'target' => '',
3586
+    'help' => '',
3587
+    'trim' => 0,
3588
+    'max_length' => '',
3589
+    'word_boundary' => 1,
3590
+    'ellipsis' => 1,
3591
+    'html' => 0,
3592
+    'strip_tags' => 0,
3593
+  ),
3594
+  'empty' => '',
3595
+  'hide_empty' => 1,
3596
+  'empty_zero' => 0,
3597
+  'value' => '<?php
3598 3598
   if (is_current_boinc_user($data->host_userid)) {
3599 3599
     if ($data->host_connected_frac > 0) {
3600 3600
       echo ($data->host_connected_frac * 100) . \' %\';
3601 3601
     }
3602 3602
   }
3603 3603
 ?>',
3604
-      'exclude' => 0,
3605
-      'id' => 'phpcode_21',
3606
-      'table' => 'customfield',
3607
-      'field' => 'phpcode',
3608
-      'relationship' => 'none',
3609
-    ),
3610
-    'phpcode_22' => array(
3611
-      'label' => 'While BOINC running, % of time work is allowed',
3612
-      'alter' => array(
3613
-        'alter_text' => 0,
3614
-        'text' => '',
3615
-        'make_link' => 0,
3616
-        'path' => '',
3617
-        'absolute' => 0,
3618
-        'link_class' => '',
3619
-        'alt' => '',
3620
-        'rel' => '',
3621
-        'prefix' => '',
3622
-        'suffix' => '',
3623
-        'target' => '',
3624
-        'help' => '',
3625
-        'trim' => 0,
3626
-        'max_length' => '',
3627
-        'word_boundary' => 1,
3628
-        'ellipsis' => 1,
3629
-        'html' => 0,
3630
-        'strip_tags' => 0,
3631
-      ),
3632
-      'empty' => '',
3633
-      'hide_empty' => 1,
3634
-      'empty_zero' => 0,
3635
-      'hide_alter_empty' => 1,
3636
-      'value' => '<?php
3604
+  'exclude' => 0,
3605
+  'id' => 'phpcode_21',
3606
+  'table' => 'customfield',
3607
+  'field' => 'phpcode',
3608
+  'relationship' => 'none',
3609
+),
3610
+'phpcode_22' => array(
3611
+  'label' => 'While BOINC running, % of time work is allowed',
3612
+  'alter' => array(
3613
+    'alter_text' => 0,
3614
+    'text' => '',
3615
+    'make_link' => 0,
3616
+    'path' => '',
3617
+    'absolute' => 0,
3618
+    'link_class' => '',
3619
+    'alt' => '',
3620
+    'rel' => '',
3621
+    'prefix' => '',
3622
+    'suffix' => '',
3623
+    'target' => '',
3624
+    'help' => '',
3625
+    'trim' => 0,
3626
+    'max_length' => '',
3627
+    'word_boundary' => 1,
3628
+    'ellipsis' => 1,
3629
+    'html' => 0,
3630
+    'strip_tags' => 0,
3631
+  ),
3632
+  'empty' => '',
3633
+  'hide_empty' => 1,
3634
+  'empty_zero' => 0,
3635
+  'hide_alter_empty' => 1,
3636
+  'value' => '<?php
3637 3637
   if (is_current_boinc_user($data->host_userid)) {
3638 3638
     echo ($data->host_active_frac * 100) . \' %\';
3639 3639
   }
3640 3640
 ?>',
3641
-      'exclude' => 0,
3642
-      'id' => 'phpcode_22',
3643
-      'table' => 'customfield',
3644
-      'field' => 'phpcode',
3645
-      'relationship' => 'none',
3646
-    ),
3647
-    'phpcode_27' => array(
3648
-      'label' => 'Average CPU efficiency',
3649
-      'alter' => array(
3650
-        'alter_text' => 0,
3651
-        'text' => '',
3652
-        'make_link' => 0,
3653
-        'path' => '',
3654
-        'link_class' => '',
3655
-        'alt' => '',
3656
-        'prefix' => '',
3657
-        'suffix' => '',
3658
-        'target' => '',
3659
-        'help' => '',
3660
-        'trim' => 0,
3661
-        'max_length' => '',
3662
-        'word_boundary' => 1,
3663
-        'ellipsis' => 1,
3664
-        'html' => 0,
3665
-        'strip_tags' => 0,
3666
-      ),
3667
-      'empty' => '',
3668
-      'hide_empty' => 1,
3669
-      'empty_zero' => 0,
3670
-      'value' => '<?php
3641
+  'exclude' => 0,
3642
+  'id' => 'phpcode_22',
3643
+  'table' => 'customfield',
3644
+  'field' => 'phpcode',
3645
+  'relationship' => 'none',
3646
+),
3647
+'phpcode_27' => array(
3648
+  'label' => 'Average CPU efficiency',
3649
+  'alter' => array(
3650
+    'alter_text' => 0,
3651
+    'text' => '',
3652
+    'make_link' => 0,
3653
+    'path' => '',
3654
+    'link_class' => '',
3655
+    'alt' => '',
3656
+    'prefix' => '',
3657
+    'suffix' => '',
3658
+    'target' => '',
3659
+    'help' => '',
3660
+    'trim' => 0,
3661
+    'max_length' => '',
3662
+    'word_boundary' => 1,
3663
+    'ellipsis' => 1,
3664
+    'html' => 0,
3665
+    'strip_tags' => 0,
3666
+  ),
3667
+  'empty' => '',
3668
+  'hide_empty' => 1,
3669
+  'empty_zero' => 0,
3670
+  'value' => '<?php
3671 3671
   if (is_current_boinc_user($data->host_userid)) {
3672 3672
     if ($data->host_cpu_efficiency) {
3673 3673
       echo $data->host_cpu_efficiency;
3674 3674
     }
3675 3675
   }
3676 3676
 ?>',
3677
-      'exclude' => 0,
3678
-      'id' => 'phpcode_27',
3679
-      'table' => 'customfield',
3680
-      'field' => 'phpcode',
3681
-      'relationship' => 'none',
3682
-    ),
3683
-    'phpcode_23' => array(
3684
-      'label' => 'Task duration correction factor',
3685
-      'alter' => array(
3686
-        'alter_text' => 0,
3687
-        'text' => '',
3688
-        'make_link' => 0,
3689
-        'path' => '',
3690
-        'link_class' => '',
3691
-        'alt' => '',
3692
-        'prefix' => '',
3693
-        'suffix' => '',
3694
-        'target' => '',
3695
-        'help' => '',
3696
-        'trim' => 0,
3697
-        'max_length' => '',
3698
-        'word_boundary' => 1,
3699
-        'ellipsis' => 1,
3700
-        'html' => 0,
3701
-        'strip_tags' => 0,
3702
-      ),
3703
-      'empty' => '',
3704
-      'hide_empty' => 1,
3705
-      'empty_zero' => 0,
3706
-      'value' => '<?php
3677
+  'exclude' => 0,
3678
+  'id' => 'phpcode_27',
3679
+  'table' => 'customfield',
3680
+  'field' => 'phpcode',
3681
+  'relationship' => 'none',
3682
+),
3683
+'phpcode_23' => array(
3684
+  'label' => 'Task duration correction factor',
3685
+  'alter' => array(
3686
+    'alter_text' => 0,
3687
+    'text' => '',
3688
+    'make_link' => 0,
3689
+    'path' => '',
3690
+    'link_class' => '',
3691
+    'alt' => '',
3692
+    'prefix' => '',
3693
+    'suffix' => '',
3694
+    'target' => '',
3695
+    'help' => '',
3696
+    'trim' => 0,
3697
+    'max_length' => '',
3698
+    'word_boundary' => 1,
3699
+    'ellipsis' => 1,
3700
+    'html' => 0,
3701
+    'strip_tags' => 0,
3702
+  ),
3703
+  'empty' => '',
3704
+  'hide_empty' => 1,
3705
+  'empty_zero' => 0,
3706
+  'value' => '<?php
3707 3707
   if (is_current_boinc_user($data->host_userid)) {
3708 3708
     if ($data->host_duration_correction_factor) {
3709 3709
       echo $data->host_duration_correction_factor;
3710 3710
     }
3711 3711
   }
3712 3712
 ?>',
3713
-      'exclude' => 0,
3714
-      'id' => 'phpcode_23',
3715
-      'table' => 'customfield',
3716
-      'field' => 'phpcode',
3717
-      'relationship' => 'none',
3718
-    ),
3719
-    'phpcode_24' => array(
3720
-      'label' => 'Location',
3721
-      'alter' => array(
3722
-        'alter_text' => 0,
3723
-        'text' => '',
3724
-        'make_link' => 0,
3725
-        'path' => '',
3726
-        'absolute' => 0,
3727
-        'link_class' => '',
3728
-        'alt' => '',
3729
-        'rel' => '',
3730
-        'prefix' => '',
3731
-        'suffix' => '',
3732
-        'target' => '',
3733
-        'help' => '',
3734
-        'trim' => 0,
3735
-        'max_length' => '',
3736
-        'word_boundary' => 1,
3737
-        'ellipsis' => 1,
3738
-        'html' => 0,
3739
-        'strip_tags' => 0,
3740
-      ),
3741
-      'empty' => '',
3742
-      'hide_empty' => 1,
3743
-      'empty_zero' => 0,
3744
-      'hide_alter_empty' => 1,
3745
-      'value' => '<?php
3713
+  'exclude' => 0,
3714
+  'id' => 'phpcode_23',
3715
+  'table' => 'customfield',
3716
+  'field' => 'phpcode',
3717
+  'relationship' => 'none',
3718
+),
3719
+'phpcode_24' => array(
3720
+  'label' => 'Location',
3721
+  'alter' => array(
3722
+    'alter_text' => 0,
3723
+    'text' => '',
3724
+    'make_link' => 0,
3725
+    'path' => '',
3726
+    'absolute' => 0,
3727
+    'link_class' => '',
3728
+    'alt' => '',
3729
+    'rel' => '',
3730
+    'prefix' => '',
3731
+    'suffix' => '',
3732
+    'target' => '',
3733
+    'help' => '',
3734
+    'trim' => 0,
3735
+    'max_length' => '',
3736
+    'word_boundary' => 1,
3737
+    'ellipsis' => 1,
3738
+    'html' => 0,
3739
+    'strip_tags' => 0,
3740
+  ),
3741
+  'empty' => '',
3742
+  'hide_empty' => 1,
3743
+  'empty_zero' => 0,
3744
+  'hide_alter_empty' => 1,
3745
+  'value' => '<?php
3746 3746
   if (is_current_boinc_user($data->host_userid)) {
3747 3747
     echo boincwork_host_venue_selector($data->id);
3748 3748
   }
3749 3749
 ?>',
3750
-      'exclude' => 0,
3751
-      'id' => 'phpcode_24',
3752
-      'table' => 'customfield',
3753
-      'field' => 'phpcode',
3754
-      'relationship' => 'none',
3755
-    ),
3756
-    'phpcode_25' => array(
3757
-      'label' => 'Actions ',
3758
-      'alter' => array(
3759
-        'alter_text' => 0,
3760
-        'text' => '',
3761
-        'make_link' => 0,
3762
-        'path' => '',
3763
-        'absolute' => 0,
3764
-        'link_class' => '',
3765
-        'alt' => '',
3766
-        'rel' => '',
3767
-        'prefix' => '',
3768
-        'suffix' => '',
3769
-        'target' => '',
3770
-        'help' => '',
3771
-        'trim' => 0,
3772
-        'max_length' => '',
3773
-        'word_boundary' => 1,
3774
-        'ellipsis' => 1,
3775
-        'html' => 0,
3776
-        'strip_tags' => 0,
3777
-      ),
3778
-      'empty' => '',
3779
-      'hide_empty' => 1,
3780
-      'empty_zero' => 0,
3781
-      'hide_alter_empty' => 1,
3782
-      'value' => '<?php
3750
+  'exclude' => 0,
3751
+  'id' => 'phpcode_24',
3752
+  'table' => 'customfield',
3753
+  'field' => 'phpcode',
3754
+  'relationship' => 'none',
3755
+),
3756
+'phpcode_25' => array(
3757
+  'label' => 'Actions ',
3758
+  'alter' => array(
3759
+    'alter_text' => 0,
3760
+    'text' => '',
3761
+    'make_link' => 0,
3762
+    'path' => '',
3763
+    'absolute' => 0,
3764
+    'link_class' => '',
3765
+    'alt' => '',
3766
+    'rel' => '',
3767
+    'prefix' => '',
3768
+    'suffix' => '',
3769
+    'target' => '',
3770
+    'help' => '',
3771
+    'trim' => 0,
3772
+    'max_length' => '',
3773
+    'word_boundary' => 1,
3774
+    'ellipsis' => 1,
3775
+    'html' => 0,
3776
+    'strip_tags' => 0,
3777
+  ),
3778
+  'empty' => '',
3779
+  'hide_empty' => 1,
3780
+  'empty_zero' => 0,
3781
+  'hide_alter_empty' => 1,
3782
+  'value' => '<?php
3783 3783
   echo boincwork_host_action_links($data->id);
3784 3784
 ?>',
3785
-      'exclude' => 0,
3786
-      'id' => 'phpcode_25',
3787
-      'table' => 'customfield',
3788
-      'field' => 'phpcode',
3789
-      'relationship' => 'none',
3790
-    ),
3791
-  ));
3792
-  $handler->override_option('arguments', array(
3793
-    'id' => array(
3794
-      'default_action' => 'not found',
3795
-      'style_plugin' => 'default_summary',
3796
-      'style_options' => array(),
3797
-      'wildcard' => 'all',
3798
-      'wildcard_substitution' => 'All',
3799
-      'title' => 'Computer %1',
3800
-      'breadcrumb' => '',
3801
-      'default_argument_type' => 'fixed',
3802
-      'default_argument' => '',
3803
-      'validate_type' => 'numeric',
3804
-      'validate_fail' => 'not found',
3805
-      'id' => 'id',
3806
-      'table' => 'host',
3807
-      'field' => 'id',
3808
-      'validate_user_argument_type' => 'uid',
3809
-      'validate_user_roles' => array(
3810
-        2 => 0,
3811
-        3 => 0,
3812
-      ),
3813
-      'relationship' => 'none',
3814
-      'default_options_div_prefix' => '',
3815
-      'default_argument_fixed' => '',
3816
-      'default_argument_user' => 0,
3817
-      'default_argument_php' => '',
3818
-      'validate_argument_node_type' => array(
3819
-        'forum' => 0,
3820
-        'job_post' => 0,
3821
-        'news' => 0,
3822
-        'page' => 0,
3823
-        'profile' => 0,
3824
-        'story' => 0,
3825
-        'team' => 0,
3826
-      ),
3827
-      'validate_argument_node_access' => 0,
3828
-      'validate_argument_nid_type' => 'nid',
3829
-      'validate_argument_vocabulary' => array(
3830
-        1 => 0,
3831
-      ),
3832
-      'validate_argument_type' => 'tid',
3833
-      'validate_argument_transform' => 0,
3834
-      'validate_user_restrict_roles' => 0,
3835
-      'validate_argument_php' => '',
3836
-    ),
3837
-    'null' => array(
3838
-      'default_action' => 'default',
3839
-      'style_plugin' => 'default_summary',
3840
-      'style_options' => array(),
3841
-      'wildcard' => 'all',
3842
-      'wildcard_substitution' => 'All',
3843
-      'title' => '',
3844
-      'breadcrumb' => '',
3845
-      'default_argument_type' => 'fixed',
3846
-      'default_argument' => '',
3847
-      'validate_type' => 'none',
3848
-      'validate_fail' => 'not found',
3849
-      'must_not_be' => 0,
3850
-      'id' => 'null',
3851
-      'table' => 'views',
3852
-      'field' => 'null',
3853
-      'validate_user_argument_type' => 'uid',
3854
-      'validate_user_roles' => array(
3855
-        2 => 0,
3856
-        3 => 0,
3857
-      ),
3858
-      'relationship' => 'none',
3859
-      'default_options_div_prefix' => '',
3860
-      'default_argument_fixed' => '0',
3861
-      'default_argument_user' => 0,
3862
-      'default_argument_php' => '',
3863
-      'validate_argument_node_type' => array(
3864
-        'forum' => 0,
3865
-        'job_post' => 0,
3866
-        'news' => 0,
3867
-        'page' => 0,
3868
-        'profile' => 0,
3869
-        'story' => 0,
3870
-        'team' => 0,
3871
-      ),
3872
-      'validate_argument_node_access' => 0,
3873
-      'validate_argument_nid_type' => 'nid',
3874
-      'validate_argument_vocabulary' => array(
3875
-        1 => 0,
3876
-      ),
3877
-      'validate_argument_type' => 'tid',
3878
-      'validate_argument_transform' => 0,
3879
-      'validate_user_restrict_roles' => 0,
3880
-      'validate_argument_php' => '',
3881
-    ),
3882
-  ));
3883
-  $handler->override_option('access', array(
3884
-    'type' => 'none',
3885
-  ));
3886
-  $handler->override_option('cache', array(
3887
-    'type' => 'none',
3888
-  ));
3889
-  $handler->override_option('items_per_page', 0);
3890
-  $handler->override_option('distinct', 0);
3891
-  $handler->override_option('style_plugin', 'grid');
3892
-  $handler->override_option('style_options', array(
3893
-    'grouping' => '',
3894
-    'columns' => '2',
3895
-    'alignment' => 'vertical',
3896
-    'fill_single_line' => 1,
3897
-  ));
3898
-  $handler->override_option('row_options', array(
3899
-    'inline' => array(),
3900
-    'separator' => '',
3901
-    'hide_empty' => 0,
3902
-  ));
3903
-  $handler = $view->new_display('page', 'Page', 'page_1');
3904
-  $handler->override_option('row_options', array());
3905
-  $handler->override_option('path', 'host');
3906
-  $handler->override_option('menu', array(
3907
-    'type' => 'none',
3908
-    'title' => 'All computers',
3909
-    'description' => 'Show all computers associated with the account',
3910
-    'weight' => '1',
3911
-    'name' => 'navigation',
3912
-  ));
3913
-  $handler->override_option('tab_options', array(
3914
-    'type' => 'none',
3915
-    'title' => '',
3916
-    'description' => '',
3917
-    'weight' => 0,
3918
-    'name' => 'navigation',
3919
-  ));
3785
+  'exclude' => 0,
3786
+  'id' => 'phpcode_25',
3787
+  'table' => 'customfield',
3788
+  'field' => 'phpcode',
3789
+  'relationship' => 'none',
3790
+),
3791
+));
3792
+$handler->override_option('arguments', array(
3793
+'id' => array(
3794
+  'default_action' => 'not found',
3795
+  'style_plugin' => 'default_summary',
3796
+  'style_options' => array(),
3797
+  'wildcard' => 'all',
3798
+  'wildcard_substitution' => 'All',
3799
+  'title' => 'Computer %1',
3800
+  'breadcrumb' => '',
3801
+  'default_argument_type' => 'fixed',
3802
+  'default_argument' => '',
3803
+  'validate_type' => 'numeric',
3804
+  'validate_fail' => 'not found',
3805
+  'id' => 'id',
3806
+  'table' => 'host',
3807
+  'field' => 'id',
3808
+  'validate_user_argument_type' => 'uid',
3809
+  'validate_user_roles' => array(
3810
+    2 => 0,
3811
+    3 => 0,
3812
+  ),
3813
+  'relationship' => 'none',
3814
+  'default_options_div_prefix' => '',
3815
+  'default_argument_fixed' => '',
3816
+  'default_argument_user' => 0,
3817
+  'default_argument_php' => '',
3818
+  'validate_argument_node_type' => array(
3819
+    'forum' => 0,
3820
+    'job_post' => 0,
3821
+    'news' => 0,
3822
+    'page' => 0,
3823
+    'profile' => 0,
3824
+    'story' => 0,
3825
+    'team' => 0,
3826
+  ),
3827
+  'validate_argument_node_access' => 0,
3828
+  'validate_argument_nid_type' => 'nid',
3829
+  'validate_argument_vocabulary' => array(
3830
+    1 => 0,
3831
+  ),
3832
+  'validate_argument_type' => 'tid',
3833
+  'validate_argument_transform' => 0,
3834
+  'validate_user_restrict_roles' => 0,
3835
+  'validate_argument_php' => '',
3836
+),
3837
+'null' => array(
3838
+  'default_action' => 'default',
3839
+  'style_plugin' => 'default_summary',
3840
+  'style_options' => array(),
3841
+  'wildcard' => 'all',
3842
+  'wildcard_substitution' => 'All',
3843
+  'title' => '',
3844
+  'breadcrumb' => '',
3845
+  'default_argument_type' => 'fixed',
3846
+  'default_argument' => '',
3847
+  'validate_type' => 'none',
3848
+  'validate_fail' => 'not found',
3849
+  'must_not_be' => 0,
3850
+  'id' => 'null',
3851
+  'table' => 'views',
3852
+  'field' => 'null',
3853
+  'validate_user_argument_type' => 'uid',
3854
+  'validate_user_roles' => array(
3855
+    2 => 0,
3856
+    3 => 0,
3857
+  ),
3858
+  'relationship' => 'none',
3859
+  'default_options_div_prefix' => '',
3860
+  'default_argument_fixed' => '0',
3861
+  'default_argument_user' => 0,
3862
+  'default_argument_php' => '',
3863
+  'validate_argument_node_type' => array(
3864
+    'forum' => 0,
3865
+    'job_post' => 0,
3866
+    'news' => 0,
3867
+    'page' => 0,
3868
+    'profile' => 0,
3869
+    'story' => 0,
3870
+    'team' => 0,
3871
+  ),
3872
+  'validate_argument_node_access' => 0,
3873
+  'validate_argument_nid_type' => 'nid',
3874
+  'validate_argument_vocabulary' => array(
3875
+    1 => 0,
3876
+  ),
3877
+  'validate_argument_type' => 'tid',
3878
+  'validate_argument_transform' => 0,
3879
+  'validate_user_restrict_roles' => 0,
3880
+  'validate_argument_php' => '',
3881
+),
3882
+));
3883
+$handler->override_option('access', array(
3884
+'type' => 'none',
3885
+));
3886
+$handler->override_option('cache', array(
3887
+'type' => 'none',
3888
+));
3889
+$handler->override_option('items_per_page', 0);
3890
+$handler->override_option('distinct', 0);
3891
+$handler->override_option('style_plugin', 'grid');
3892
+$handler->override_option('style_options', array(
3893
+'grouping' => '',
3894
+'columns' => '2',
3895
+'alignment' => 'vertical',
3896
+'fill_single_line' => 1,
3897
+));
3898
+$handler->override_option('row_options', array(
3899
+'inline' => array(),
3900
+'separator' => '',
3901
+'hide_empty' => 0,
3902
+));
3903
+$handler = $view->new_display('page', 'Page', 'page_1');
3904
+$handler->override_option('row_options', array());
3905
+$handler->override_option('path', 'host');
3906
+$handler->override_option('menu', array(
3907
+'type' => 'none',
3908
+'title' => 'All computers',
3909
+'description' => 'Show all computers associated with the account',
3910
+'weight' => '1',
3911
+'name' => 'navigation',
3912
+));
3913
+$handler->override_option('tab_options', array(
3914
+'type' => 'none',
3915
+'title' => '',
3916
+'description' => '',
3917
+'weight' => 0,
3918
+'name' => 'navigation',
3919
+));
3920 3920
 
3921
-  $views[$view->name] = $view;
3921
+$views[$view->name] = $view;
3922 3922
 
3923
-  // Exported view: boinc_host_apps
3924
-  $view = new view;
3925
-  $view->name = 'boinc_host_apps';
3926
-  $view->description = '';
3927
-  $view->tag = '';
3928
-  $view->base_table = 'host';
3929
-  $view->core = 6;
3930
-  $view->api_version = '2';
3931
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3932
-  $handler = $view->new_display('default', 'Defaults', 'default');
3933
-  $handler->override_option('relationships', array(
3934
-    'app_version_id' => array(
3935
-      'label' => 'App version',
3936
-      'required' => 1,
3937
-      'id' => 'app_version_id',
3938
-      'table' => 'host_app_version',
3939
-      'field' => 'app_version_id',
3940
-      'relationship' => 'none',
3941
-    ),
3942
-    'appid' => array(
3943
-      'label' => 'App ID',
3944
-      'required' => 1,
3945
-      'id' => 'appid',
3946
-      'table' => 'app_version',
3947
-      'field' => 'appid',
3948
-      'relationship' => 'app_version_id',
3949
-    ),
3950
-    'platformid' => array(
3951
-      'label' => 'Platform ID',
3952
-      'required' => 1,
3953
-      'id' => 'platformid',
3954
-      'table' => 'app_version',
3955
-      'field' => 'platformid',
3956
-      'relationship' => 'app_version_id',
3957
-    ),
3958
-  ));
3959
-  $handler->override_option('fields', array(
3960
-    'user_friendly_name' => array(
3961
-      'label' => '',
3962
-      'alter' => array(
3963
-        'alter_text' => 0,
3964
-        'text' => '',
3965
-        'make_link' => 0,
3966
-        'path' => '',
3967
-        'absolute' => 0,
3968
-        'link_class' => '',
3969
-        'alt' => '',
3970
-        'rel' => '',
3971
-        'prefix' => '',
3972
-        'suffix' => '',
3973
-        'target' => '',
3974
-        'help' => '',
3975
-        'trim' => 0,
3976
-        'max_length' => '',
3977
-        'word_boundary' => 1,
3978
-        'ellipsis' => 1,
3979
-        'html' => 0,
3980
-        'strip_tags' => 0,
3981
-      ),
3982
-      'empty' => '',
3983
-      'hide_empty' => 0,
3984
-      'empty_zero' => 0,
3985
-      'hide_alter_empty' => 1,
3986
-      'exclude' => 0,
3987
-      'id' => 'user_friendly_name',
3988
-      'table' => 'app',
3989
-      'field' => 'user_friendly_name',
3990
-      'relationship' => 'appid',
3991
-    ),
3992
-    'version_num' => array(
3993
-      'label' => '',
3994
-      'alter' => array(
3995
-        'alter_text' => 0,
3996
-        'text' => '',
3997
-        'make_link' => 0,
3998
-        'path' => '',
3999
-        'absolute' => 0,
4000
-        'link_class' => '',
4001
-        'alt' => '',
4002
-        'rel' => '',
4003
-        'prefix' => '',
4004
-        'suffix' => '',
4005
-        'target' => '',
4006
-        'help' => '',
4007
-        'trim' => 0,
4008
-        'max_length' => '',
4009
-        'word_boundary' => 1,
4010
-        'ellipsis' => 1,
4011
-        'html' => 0,
4012
-        'strip_tags' => 0,
4013
-      ),
4014
-      'empty' => '',
4015
-      'hide_empty' => 0,
4016
-      'empty_zero' => 0,
4017
-      'hide_alter_empty' => 1,
4018
-      'exclude' => 0,
4019
-      'set_precision' => 0,
4020
-      'precision' => '2',
4021
-      'decimal' => '.',
4022
-      'separator' => '',
4023
-      'format_plural' => 0,
4024
-      'format_plural_singular' => '1',
4025
-      'format_plural_plural' => '@count',
4026
-      'prefix' => '',
4027
-      'suffix' => '',
4028
-      'id' => 'version_num',
4029
-      'table' => 'app_version',
4030
-      'field' => 'version_num',
4031
-      'relationship' => 'app_version_id',
4032
-    ),
4033
-    'name' => array(
4034
-      'label' => '',
4035
-      'alter' => array(
4036
-        'alter_text' => 0,
4037
-        'text' => '',
4038
-        'make_link' => 0,
4039
-        'path' => '',
4040
-        'absolute' => 0,
4041
-        'link_class' => '',
4042
-        'alt' => '',
4043
-        'rel' => '',
4044
-        'prefix' => '',
4045
-        'suffix' => '',
4046
-        'target' => '',
4047
-        'help' => '',
4048
-        'trim' => 0,
4049
-        'max_length' => '',
4050
-        'word_boundary' => 1,
4051
-        'ellipsis' => 1,
4052
-        'html' => 0,
4053
-        'strip_tags' => 0,
4054
-      ),
4055
-      'empty' => '',
4056
-      'hide_empty' => 0,
4057
-      'empty_zero' => 0,
4058
-      'hide_alter_empty' => 1,
4059
-      'exclude' => 0,
4060
-      'id' => 'name',
4061
-      'table' => 'platform',
4062
-      'field' => 'name',
4063
-      'relationship' => 'platformid',
4064
-    ),
4065
-    'plan_class' => array(
4066
-      'label' => '',
4067
-      'alter' => array(
4068
-        'alter_text' => 1,
4069
-        'text' => '([plan_class])',
4070
-        'make_link' => 0,
4071
-        'path' => '',
4072
-        'absolute' => 0,
4073
-        'link_class' => '',
4074
-        'alt' => '',
4075
-        'rel' => '',
4076
-        'prefix' => '',
4077
-        'suffix' => '',
4078
-        'target' => '',
4079
-        'help' => '',
4080
-        'trim' => 0,
4081
-        'max_length' => '',
4082
-        'word_boundary' => 1,
4083
-        'ellipsis' => 1,
4084
-        'html' => 0,
4085
-        'strip_tags' => 0,
4086
-      ),
4087
-      'empty' => '',
4088
-      'hide_empty' => 0,
4089
-      'empty_zero' => 0,
4090
-      'hide_alter_empty' => 1,
4091
-      'exclude' => 0,
4092
-      'id' => 'plan_class',
4093
-      'table' => 'app_version',
4094
-      'field' => 'plan_class',
4095
-      'relationship' => 'app_version_id',
4096
-    ),
4097
-    'et_n' => array(
4098
-      'label' => 'Number of tasks completed',
4099
-      'alter' => array(
4100
-        'alter_text' => 0,
4101
-        'text' => '',
4102
-        'make_link' => 0,
4103
-        'path' => '',
4104
-        'absolute' => 0,
4105
-        'link_class' => '',
4106
-        'alt' => '',
4107
-        'rel' => '',
4108
-        'prefix' => '',
4109
-        'suffix' => '',
4110
-        'target' => '',
4111
-        'help' => '',
4112
-        'trim' => 0,
4113
-        'max_length' => '',
4114
-        'word_boundary' => 1,
4115
-        'ellipsis' => 1,
4116
-        'html' => 0,
4117
-        'strip_tags' => 0,
4118
-      ),
4119
-      'empty' => '',
4120
-      'hide_empty' => 0,
4121
-      'empty_zero' => 0,
4122
-      'hide_alter_empty' => 0,
4123
-      'set_precision' => FALSE,
4124
-      'precision' => 0,
4125
-      'decimal' => '.',
4126
-      'separator' => '',
4127
-      'format_plural' => 0,
4128
-      'format_plural_singular' => '1',
4129
-      'format_plural_plural' => '@count',
4130
-      'prefix' => '',
4131
-      'suffix' => '',
4132
-      'exclude' => 0,
4133
-      'id' => 'et_n',
4134
-      'table' => 'host_app_version',
4135
-      'field' => 'et_n',
4136
-      'relationship' => 'none',
4137
-    ),
4138
-    'max_jobs_per_day' => array(
4139
-      'label' => 'Max tasks per day',
4140
-      'alter' => array(
4141
-        'alter_text' => 0,
4142
-        'text' => '',
4143
-        'make_link' => 0,
4144
-        'path' => '',
4145
-        'absolute' => 0,
4146
-        'link_class' => '',
4147
-        'alt' => '',
4148
-        'rel' => '',
4149
-        'prefix' => '',
4150
-        'suffix' => '',
4151
-        'target' => '',
4152
-        'help' => '',
4153
-        'trim' => 0,
4154
-        'max_length' => '',
4155
-        'word_boundary' => 1,
4156
-        'ellipsis' => 1,
4157
-        'html' => 0,
4158
-        'strip_tags' => 0,
4159
-      ),
4160
-      'empty' => '',
4161
-      'hide_empty' => 0,
4162
-      'empty_zero' => 0,
4163
-      'hide_alter_empty' => 0,
4164
-      'set_precision' => FALSE,
4165
-      'precision' => 0,
4166
-      'decimal' => '.',
4167
-      'separator' => '',
4168
-      'format_plural' => 0,
4169
-      'format_plural_singular' => '1',
4170
-      'format_plural_plural' => '@count',
4171
-      'prefix' => '',
4172
-      'suffix' => '',
4173
-      'exclude' => 0,
4174
-      'id' => 'max_jobs_per_day',
4175
-      'table' => 'host_app_version',
4176
-      'field' => 'max_jobs_per_day',
4177
-      'relationship' => 'none',
4178
-    ),
4179
-    'n_jobs_today' => array(
4180
-      'label' => 'Number of tasks today',
4181
-      'alter' => array(
4182
-        'alter_text' => 0,
4183
-        'text' => '',
4184
-        'make_link' => 0,
4185
-        'path' => '',
4186
-        'absolute' => 0,
4187
-        'link_class' => '',
4188
-        'alt' => '',
4189
-        'rel' => '',
4190
-        'prefix' => '',
4191
-        'suffix' => '',
4192
-        'target' => '',
4193
-        'help' => '',
4194
-        'trim' => 0,
4195
-        'max_length' => '',
4196
-        'word_boundary' => 1,
4197
-        'ellipsis' => 1,
4198
-        'html' => 0,
4199
-        'strip_tags' => 0,
4200
-      ),
4201
-      'empty' => '',
4202
-      'hide_empty' => 0,
4203
-      'empty_zero' => 0,
4204
-      'hide_alter_empty' => 0,
4205
-      'set_precision' => FALSE,
4206
-      'precision' => 0,
4207
-      'decimal' => '.',
4208
-      'separator' => '',
4209
-      'format_plural' => 0,
4210
-      'format_plural_singular' => '1',
4211
-      'format_plural_plural' => '@count',
4212
-      'prefix' => '',
4213
-      'suffix' => '',
4214
-      'exclude' => 0,
4215
-      'id' => 'n_jobs_today',
4216
-      'table' => 'host_app_version',
4217
-      'field' => 'n_jobs_today',
4218
-      'relationship' => 'none',
4219
-    ),
4220
-    'consecutive_valid' => array(
4221
-      'label' => 'Consecutive valid tasks',
4222
-      'alter' => array(
4223
-        'alter_text' => 0,
4224
-        'text' => '',
4225
-        'make_link' => 0,
4226
-        'path' => '',
4227
-        'absolute' => 0,
4228
-        'link_class' => '',
4229
-        'alt' => '',
4230
-        'rel' => '',
4231
-        'prefix' => '',
4232
-        'suffix' => '',
4233
-        'target' => '',
4234
-        'help' => '',
4235
-        'trim' => 0,
4236
-        'max_length' => '',
4237
-        'word_boundary' => 1,
4238
-        'ellipsis' => 1,
4239
-        'html' => 0,
4240
-        'strip_tags' => 0,
4241
-      ),
4242
-      'empty' => '',
4243
-      'hide_empty' => 0,
4244
-      'empty_zero' => 0,
4245
-      'hide_alter_empty' => 0,
4246
-      'set_precision' => FALSE,
4247
-      'precision' => 0,
4248
-      'decimal' => '.',
4249
-      'separator' => '',
4250
-      'format_plural' => 0,
4251
-      'format_plural_singular' => '1',
4252
-      'format_plural_plural' => '@count',
4253
-      'prefix' => '',
4254
-      'suffix' => '',
4255
-      'exclude' => 0,
4256
-      'id' => 'consecutive_valid',
4257
-      'table' => 'host_app_version',
4258
-      'field' => 'consecutive_valid',
4259
-      'relationship' => 'none',
4260
-    ),
4261
-    'et_avg' => array(
4262
-      'label' => 'Average processing rate',
4263
-      'alter' => array(
4264
-        'alter_text' => 0,
4265
-        'text' => '',
4266
-        'make_link' => 0,
4267
-        'path' => '',
4268
-        'absolute' => 0,
4269
-        'link_class' => '',
4270
-        'alt' => '',
4271
-        'rel' => '',
4272
-        'prefix' => '',
4273
-        'suffix' => '',
4274
-        'target' => '',
4275
-        'help' => '',
4276
-        'trim' => 0,
4277
-        'max_length' => '',
4278
-        'word_boundary' => 1,
4279
-        'ellipsis' => 1,
4280
-        'html' => 0,
4281
-        'strip_tags' => 0,
4282
-      ),
4283
-      'empty' => '',
4284
-      'hide_empty' => 0,
4285
-      'empty_zero' => 0,
4286
-      'hide_alter_empty' => 1,
4287
-      'exclude' => 0,
4288
-      'set_precision' => FALSE,
4289
-      'precision' => 0,
4290
-      'decimal' => '.',
4291
-      'separator' => ',',
4292
-      'format_plural' => 0,
4293
-      'format_plural_singular' => '1',
4294
-      'format_plural_plural' => '@count',
4295
-      'prefix' => '',
4296
-      'suffix' => '',
4297
-      'id' => 'et_avg',
4298
-      'table' => 'host_app_version',
4299
-      'field' => 'et_avg',
4300
-      'relationship' => 'none',
4301
-    ),
4302
-    'turnaround_avg' => array(
4303
-      'label' => 'Average turnaround time',
4304
-      'alter' => array(
4305
-        'alter_text' => 0,
4306
-        'text' => '',
4307
-        'make_link' => 0,
4308
-        'path' => '',
4309
-        'absolute' => 0,
4310
-        'link_class' => '',
4311
-        'alt' => '',
4312
-        'rel' => '',
4313
-        'prefix' => '',
4314
-        'suffix' => '',
4315
-        'target' => '',
4316
-        'help' => '',
4317
-        'trim' => 0,
4318
-        'max_length' => '',
4319
-        'word_boundary' => 1,
4320
-        'ellipsis' => 1,
4321
-        'html' => 0,
4322
-        'strip_tags' => 0,
4323
-      ),
4324
-      'empty' => '',
4325
-      'hide_empty' => 0,
4326
-      'empty_zero' => 0,
4327
-      'hide_alter_empty' => 1,
4328
-      'exclude' => 0,
4329
-      'set_precision' => 0,
4330
-      'precision' => '2',
4331
-      'decimal' => '.',
4332
-      'separator' => '',
4333
-      'format_plural' => 0,
4334
-      'format_plural_singular' => '1',
4335
-      'format_plural_plural' => '@count',
4336
-      'prefix' => '',
4337
-      'suffix' => '',
4338
-      'id' => 'turnaround_avg',
4339
-      'table' => 'host_app_version',
4340
-      'field' => 'turnaround_avg',
4341
-      'relationship' => 'none',
4342
-    ),
4343
-  ));
4344
-  $handler->override_option('arguments', array(
4345
-    'host_id' => array(
4346
-      'default_action' => 'not found',
4347
-      'style_plugin' => 'default_summary',
4348
-      'style_options' => array(),
4349
-      'wildcard' => 'all',
4350
-      'wildcard_substitution' => 'All',
4351
-      'title' => '',
4352
-      'breadcrumb' => '',
4353
-      'default_argument_type' => 'fixed',
4354
-      'default_argument' => '',
4355
-      'validate_type' => 'numeric',
4356
-      'validate_fail' => 'not found',
4357
-      'id' => 'host_id',
4358
-      'table' => 'host_app_version',
4359
-      'field' => 'host_id',
4360
-      'validate_user_argument_type' => 'uid',
4361
-      'validate_user_roles' => array(
4362
-        2 => 0,
4363
-        3519698132 => 0,
4364
-        1110965548 => 0,
4365
-        2938987599 => 0,
4366
-        1257454314 => 0,
4367
-        1271379760 => 0,
4368
-        933038561 => 0,
4369
-      ),
4370
-      'me_redirect' => 0,
4371
-      'me_validate_user_argument_type' => 'uid',
4372
-      'me_validate_user_roles' => array(
4373
-        2 => 0,
4374
-        3519698132 => 0,
4375
-        1110965548 => 0,
4376
-        2938987599 => 0,
4377
-        1257454314 => 0,
4378
-        1271379760 => 0,
4379
-        933038561 => 0,
4380
-      ),
4381
-      'relationship' => 'none',
4382
-      'default_options_div_prefix' => '',
4383
-      'default_taxonomy_tid_term_page' => 0,
4384
-      'default_taxonomy_tid_node' => 0,
4385
-      'default_taxonomy_tid_limit' => 0,
4386
-      'default_taxonomy_tid_vids' => array(
4387
-        1 => 0,
4388
-        2 => 0,
4389
-      ),
4390
-      'default_argument_user' => 0,
4391
-      'default_argument_fixed' => '',
4392
-      'default_argument_php' => '',
4393
-      'validate_argument_node_type' => array(
4394
-        'page' => 0,
4395
-        'news' => 0,
4396
-        'team' => 0,
4397
-        'team_forum' => 0,
4398
-        'profile' => 0,
4399
-        'forum' => 0,
4400
-        'panel' => 0,
4401
-        'story' => 0,
4402
-      ),
4403
-      'validate_argument_node_access' => 0,
4404
-      'validate_argument_nid_type' => 'nid',
4405
-      'validate_argument_vocabulary' => array(
4406
-        1 => 0,
4407
-        2 => 0,
4408
-      ),
4409
-      'validate_argument_type' => 'tid',
4410
-      'validate_argument_transform' => 0,
4411
-      'validate_user_restrict_roles' => 0,
4412
-      'validate_argument_node_flag_name' => '*relationship*',
4413
-      'validate_argument_node_flag_test' => 'flaggable',
4414
-      'validate_argument_node_flag_id_type' => 'id',
4415
-      'validate_argument_user_flag_name' => '*relationship*',
4416
-      'validate_argument_user_flag_test' => 'flaggable',
4417
-      'validate_argument_user_flag_id_type' => 'id',
4418
-      'validate_argument_php' => '',
4419
-      'me_validate_user_restrict_roles' => 0,
4420
-    ),
4421
-  ));
4422
-  $handler->override_option('access', array(
4423
-    'type' => 'none',
4424
-  ));
4425
-  $handler->override_option('cache', array(
4426
-    'type' => 'none',
4427
-  ));
4428
-  $handler->override_option('use_pager', '1');
4429
-  $handler->override_option('style_options', array(
4430
-    'grouping' => '',
4431
-  ));
4432
-  $handler->override_option('row_options', array(
4433
-    'inline' => array(
4434
-      'user_friendly_name' => 'user_friendly_name',
4435
-      'version_num' => 'version_num',
4436
-      'name' => 'name',
4437
-      'plan_class' => 'plan_class',
4438
-    ),
4439
-    'separator' => ' ',
4440
-    'hide_empty' => 0,
4441
-  ));
4442
-  $handler = $view->new_display('page', 'Page', 'page_1');
4443
-  $handler->override_option('fields', array(
4444
-    'user_friendly_name' => array(
4445
-      'label' => '',
4446
-      'alter' => array(
4447
-        'alter_text' => 1,
4448
-        'text' => '<b>[user_friendly_name]',
4449
-        'make_link' => 0,
4450
-        'path' => '',
4451
-        'absolute' => 0,
4452
-        'link_class' => '',
4453
-        'alt' => '',
4454
-        'rel' => '',
4455
-        'prefix' => '',
4456
-        'suffix' => '',
4457
-        'target' => '',
4458
-        'help' => '',
4459
-        'trim' => 0,
4460
-        'max_length' => '',
4461
-        'word_boundary' => 1,
4462
-        'ellipsis' => 1,
4463
-        'html' => 0,
4464
-        'strip_tags' => 0,
4465
-      ),
4466
-      'empty' => '',
4467
-      'hide_empty' => 0,
4468
-      'empty_zero' => 0,
4469
-      'hide_alter_empty' => 1,
4470
-      'exclude' => 0,
4471
-      'id' => 'user_friendly_name',
4472
-      'table' => 'app',
4473
-      'field' => 'user_friendly_name',
4474
-      'relationship' => 'appid',
4475
-      'override' => array(
4476
-        'button' => 'Use default',
4477
-      ),
4478
-    ),
4479
-    'version_num' => array(
4480
-      'label' => '',
4481
-      'alter' => array(
4482
-        'alter_text' => 0,
4483
-        'text' => '',
4484
-        'make_link' => 0,
4485
-        'path' => '',
4486
-        'absolute' => 0,
4487
-        'link_class' => '',
4488
-        'alt' => '',
4489
-        'rel' => '',
4490
-        'prefix' => '',
4491
-        'suffix' => '',
4492
-        'target' => '',
4493
-        'help' => '',
4494
-        'trim' => 0,
4495
-        'max_length' => '',
4496
-        'word_boundary' => 1,
4497
-        'ellipsis' => 1,
4498
-        'html' => 0,
4499
-        'strip_tags' => 0,
4500
-      ),
4501
-      'empty' => '',
4502
-      'hide_empty' => 0,
4503
-      'empty_zero' => 0,
4504
-      'hide_alter_empty' => 1,
4505
-      'exclude' => 0,
4506
-      'set_precision' => 0,
4507
-      'precision' => '2',
4508
-      'decimal' => '.',
4509
-      'separator' => '',
4510
-      'format_plural' => 0,
4511
-      'format_plural_singular' => '1',
4512
-      'format_plural_plural' => '@count',
4513
-      'prefix' => '',
4514
-      'suffix' => '',
4515
-      'id' => 'version_num',
4516
-      'table' => 'app_version',
4517
-      'field' => 'version_num',
4518
-      'relationship' => 'app_version_id',
4519
-    ),
4520
-    'name' => array(
4521
-      'label' => '',
4522
-      'alter' => array(
4523
-        'alter_text' => 0,
4524
-        'text' => '',
4525
-        'make_link' => 0,
4526
-        'path' => '',
4527
-        'absolute' => 0,
4528
-        'link_class' => '',
4529
-        'alt' => '',
4530
-        'rel' => '',
4531
-        'prefix' => '',
4532
-        'suffix' => '',
4533
-        'target' => '',
4534
-        'help' => '',
4535
-        'trim' => 0,
4536
-        'max_length' => '',
4537
-        'word_boundary' => 1,
4538
-        'ellipsis' => 1,
4539
-        'html' => 0,
4540
-        'strip_tags' => 0,
4541
-      ),
4542
-      'empty' => '',
4543
-      'hide_empty' => 0,
4544
-      'empty_zero' => 0,
4545
-      'hide_alter_empty' => 1,
4546
-      'exclude' => 0,
4547
-      'id' => 'name',
4548
-      'table' => 'platform',
4549
-      'field' => 'name',
4550
-      'relationship' => 'platformid',
4551
-    ),
4552
-    'plan_class' => array(
4553
-      'label' => '',
4554
-      'alter' => array(
4555
-        'alter_text' => 1,
4556
-        'text' => '([plan_class])</b>',
4557
-        'make_link' => 0,
4558
-        'path' => '',
4559
-        'absolute' => 0,
4560
-        'link_class' => '',
4561
-        'alt' => '',
4562
-        'rel' => '',
4563
-        'prefix' => '',
4564
-        'suffix' => '',
4565
-        'target' => '',
4566
-        'help' => '',
4567
-        'trim' => 0,
4568
-        'max_length' => '',
4569
-        'word_boundary' => 1,
4570
-        'ellipsis' => 1,
4571
-        'html' => 0,
4572
-        'strip_tags' => 0,
4573
-      ),
4574
-      'empty' => '',
4575
-      'hide_empty' => 0,
4576
-      'empty_zero' => 0,
4577
-      'hide_alter_empty' => 0,
4578
-      'exclude' => 0,
4579
-      'id' => 'plan_class',
4580
-      'table' => 'app_version',
4581
-      'field' => 'plan_class',
4582
-      'relationship' => 'app_version_id',
4583
-      'override' => array(
4584
-        'button' => 'Use default',
4585
-      ),
4586
-    ),
4587
-    'et_n' => array(
4588
-      'label' => 'Number of tasks completed',
4589
-      'alter' => array(
4590
-        'alter_text' => 0,
4591
-        'text' => '',
4592
-        'make_link' => 0,
4593
-        'path' => '',
4594
-        'absolute' => 0,
4595
-        'link_class' => '',
4596
-        'alt' => '',
4597
-        'rel' => '',
4598
-        'prefix' => '',
4599
-        'suffix' => '',
4600
-        'target' => '',
4601
-        'help' => '',
4602
-        'trim' => 0,
4603
-        'max_length' => '',
4604
-        'word_boundary' => 1,
4605
-        'ellipsis' => 1,
4606
-        'html' => 0,
4607
-        'strip_tags' => 0,
4608
-      ),
4609
-      'empty' => '',
4610
-      'hide_empty' => 0,
4611
-      'empty_zero' => 0,
4612
-      'hide_alter_empty' => 0,
4613
-      'set_precision' => FALSE,
4614
-      'precision' => 0,
4615
-      'decimal' => '.',
4616
-      'separator' => '',
4617
-      'format_plural' => 0,
4618
-      'format_plural_singular' => '1',
4619
-      'format_plural_plural' => '@count',
4620
-      'prefix' => '',
4621
-      'suffix' => '',
4622
-      'exclude' => 0,
4623
-      'id' => 'et_n',
4624
-      'table' => 'host_app_version',
4625
-      'field' => 'et_n',
4626
-      'relationship' => 'none',
4627
-    ),
4628
-    'max_jobs_per_day' => array(
4629
-      'label' => 'Max tasks per day',
4630
-      'alter' => array(
4631
-        'alter_text' => 0,
4632
-        'text' => '',
4633
-        'make_link' => 0,
4634
-        'path' => '',
4635
-        'absolute' => 0,
4636
-        'link_class' => '',
4637
-        'alt' => '',
4638
-        'rel' => '',
4639
-        'prefix' => '',
4640
-        'suffix' => '',
4641
-        'target' => '',
4642
-        'help' => '',
4643
-        'trim' => 0,
4644
-        'max_length' => '',
4645
-        'word_boundary' => 1,
4646
-        'ellipsis' => 1,
4647
-        'html' => 0,
4648
-        'strip_tags' => 0,
4649
-      ),
4650
-      'empty' => '',
4651
-      'hide_empty' => 0,
4652
-      'empty_zero' => 0,
4653
-      'hide_alter_empty' => 0,
4654
-      'set_precision' => FALSE,
4655
-      'precision' => 0,
4656
-      'decimal' => '.',
4657
-      'separator' => '',
4658
-      'format_plural' => 0,
4659
-      'format_plural_singular' => '1',
4660
-      'format_plural_plural' => '@count',
4661
-      'prefix' => '',
4662
-      'suffix' => '',
4663
-      'exclude' => 0,
4664
-      'id' => 'max_jobs_per_day',
4665
-      'table' => 'host_app_version',
4666
-      'field' => 'max_jobs_per_day',
4667
-      'relationship' => 'none',
4668
-    ),
4669
-    'n_jobs_today' => array(
4670
-      'label' => 'Number of tasks today',
4671
-      'alter' => array(
4672
-        'alter_text' => 0,
4673
-        'text' => '',
4674
-        'make_link' => 0,
4675
-        'path' => '',
4676
-        'absolute' => 0,
4677
-        'link_class' => '',
4678
-        'alt' => '',
4679
-        'rel' => '',
4680
-        'prefix' => '',
4681
-        'suffix' => '',
4682
-        'target' => '',
4683
-        'help' => '',
4684
-        'trim' => 0,
4685
-        'max_length' => '',
4686
-        'word_boundary' => 1,
4687
-        'ellipsis' => 1,
4688
-        'html' => 0,
4689
-        'strip_tags' => 0,
4690
-      ),
4691
-      'empty' => '',
4692
-      'hide_empty' => 0,
4693
-      'empty_zero' => 0,
4694
-      'hide_alter_empty' => 0,
4695
-      'set_precision' => FALSE,
4696
-      'precision' => 0,
4697
-      'decimal' => '.',
4698
-      'separator' => '',
4699
-      'format_plural' => 0,
4700
-      'format_plural_singular' => '1',
4701
-      'format_plural_plural' => '@count',
4702
-      'prefix' => '',
4703
-      'suffix' => '',
4704
-      'exclude' => 0,
4705
-      'id' => 'n_jobs_today',
4706
-      'table' => 'host_app_version',
4707
-      'field' => 'n_jobs_today',
4708
-      'relationship' => 'none',
4709
-    ),
4710
-    'consecutive_valid' => array(
4711
-      'label' => 'Consecutive valid tasks',
4712
-      'alter' => array(
4713
-        'alter_text' => 0,
4714
-        'text' => '',
4715
-        'make_link' => 0,
4716
-        'path' => '',
4717
-        'absolute' => 0,
4718
-        'link_class' => '',
4719
-        'alt' => '',
4720
-        'rel' => '',
4721
-        'prefix' => '',
4722
-        'suffix' => '',
4723
-        'target' => '',
4724
-        'help' => '',
4725
-        'trim' => 0,
4726
-        'max_length' => '',
4727
-        'word_boundary' => 1,
4728
-        'ellipsis' => 1,
4729
-        'html' => 0,
4730
-        'strip_tags' => 0,
4731
-      ),
4732
-      'empty' => '',
4733
-      'hide_empty' => 0,
4734
-      'empty_zero' => 0,
4735
-      'hide_alter_empty' => 0,
4736
-      'set_precision' => FALSE,
4737
-      'precision' => 0,
4738
-      'decimal' => '.',
4739
-      'separator' => '',
4740
-      'format_plural' => 0,
4741
-      'format_plural_singular' => '1',
4742
-      'format_plural_plural' => '@count',
4743
-      'prefix' => '',
4744
-      'suffix' => '',
4745
-      'exclude' => 0,
4746
-      'id' => 'consecutive_valid',
4747
-      'table' => 'host_app_version',
4748
-      'field' => 'consecutive_valid',
4749
-      'relationship' => 'none',
4750
-    ),
4751
-    'et_avg' => array(
4752
-      'label' => 'Average processing rate',
4753
-      'alter' => array(
4754
-        'alter_text' => 0,
4755
-        'text' => '',
4756
-        'make_link' => 0,
4757
-        'path' => '',
4758
-        'absolute' => 0,
4759
-        'link_class' => '',
4760
-        'alt' => '',
4761
-        'rel' => '',
4762
-        'prefix' => '',
4763
-        'suffix' => '',
4764
-        'target' => '',
4765
-        'help' => '',
4766
-        'trim' => 0,
4767
-        'max_length' => '',
4768
-        'word_boundary' => 1,
4769
-        'ellipsis' => 1,
4770
-        'html' => 0,
4771
-        'strip_tags' => 0,
4772
-      ),
4773
-      'empty' => '',
4774
-      'hide_empty' => 0,
4775
-      'empty_zero' => 0,
4776
-      'hide_alter_empty' => 1,
4777
-      'exclude' => 0,
4778
-      'set_precision' => FALSE,
4779
-      'precision' => 0,
4780
-      'decimal' => '.',
4781
-      'separator' => ',',
4782
-      'format_plural' => 0,
4783
-      'format_plural_singular' => '1',
4784
-      'format_plural_plural' => '@count',
4785
-      'prefix' => '',
4786
-      'suffix' => '',
4787
-      'id' => 'et_avg',
4788
-      'table' => 'host_app_version',
4789
-      'field' => 'et_avg',
4790
-      'relationship' => 'none',
4791
-    ),
4792
-    'turnaround_avg' => array(
4793
-      'label' => 'Average turnaround time',
4794
-      'alter' => array(
4795
-        'alter_text' => 0,
4796
-        'text' => '',
4797
-        'make_link' => 0,
4798
-        'path' => '',
4799
-        'absolute' => 0,
4800
-        'link_class' => '',
4801
-        'alt' => '',
4802
-        'rel' => '',
4803
-        'prefix' => '',
4804
-        'suffix' => '',
4805
-        'target' => '',
4806
-        'help' => '',
4807
-        'trim' => 0,
4808
-        'max_length' => '',
4809
-        'word_boundary' => 1,
4810
-        'ellipsis' => 1,
4811
-        'html' => 0,
4812
-        'strip_tags' => 0,
4813
-      ),
4814
-      'empty' => '',
4815
-      'hide_empty' => 0,
4816
-      'empty_zero' => 0,
4817
-      'hide_alter_empty' => 1,
4818
-      'exclude' => 0,
4819
-      'set_precision' => 0,
4820
-      'precision' => '2',
4821
-      'decimal' => '.',
4822
-      'separator' => '',
4823
-      'format_plural' => 0,
4824
-      'format_plural_singular' => '1',
4825
-      'format_plural_plural' => '@count',
4826
-      'prefix' => '',
4827
-      'suffix' => '',
4828
-      'id' => 'turnaround_avg',
4829
-      'table' => 'host_app_version',
4830
-      'field' => 'turnaround_avg',
4831
-      'relationship' => 'none',
4832
-    ),
4833
-  ));
4834
-  $handler->override_option('title', 'Application details');
4835
-  $handler->override_option('path', 'host/%/apps');
4836
-  $handler->override_option('menu', array(
4837
-    'type' => 'none',
4838
-    'title' => '',
4839
-    'description' => '',
4840
-    'weight' => 0,
4841
-    'name' => 'primary-links',
4842
-  ));
4843
-  $handler->override_option('tab_options', array(
4844
-    'type' => 'none',
4845
-    'title' => '',
4846
-    'description' => '',
4847
-    'weight' => 0,
4848
-    'name' => 'navigation',
4849
-  ));
3923
+// Exported view: boinc_host_apps
3924
+$view = new view;
3925
+$view->name = 'boinc_host_apps';
3926
+$view->description = '';
3927
+$view->tag = '';
3928
+$view->base_table = 'host';
3929
+$view->core = 6;
3930
+$view->api_version = '2';
3931
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
3932
+$handler = $view->new_display('default', 'Defaults', 'default');
3933
+$handler->override_option('relationships', array(
3934
+'app_version_id' => array(
3935
+  'label' => 'App version',
3936
+  'required' => 1,
3937
+  'id' => 'app_version_id',
3938
+  'table' => 'host_app_version',
3939
+  'field' => 'app_version_id',
3940
+  'relationship' => 'none',
3941
+),
3942
+'appid' => array(
3943
+  'label' => 'App ID',
3944
+  'required' => 1,
3945
+  'id' => 'appid',
3946
+  'table' => 'app_version',
3947
+  'field' => 'appid',
3948
+  'relationship' => 'app_version_id',
3949
+),
3950
+'platformid' => array(
3951
+  'label' => 'Platform ID',
3952
+  'required' => 1,
3953
+  'id' => 'platformid',
3954
+  'table' => 'app_version',
3955
+  'field' => 'platformid',
3956
+  'relationship' => 'app_version_id',
3957
+),
3958
+));
3959
+$handler->override_option('fields', array(
3960
+'user_friendly_name' => array(
3961
+  'label' => '',
3962
+  'alter' => array(
3963
+    'alter_text' => 0,
3964
+    'text' => '',
3965
+    'make_link' => 0,
3966
+    'path' => '',
3967
+    'absolute' => 0,
3968
+    'link_class' => '',
3969
+    'alt' => '',
3970
+    'rel' => '',
3971
+    'prefix' => '',
3972
+    'suffix' => '',
3973
+    'target' => '',
3974
+    'help' => '',
3975
+    'trim' => 0,
3976
+    'max_length' => '',
3977
+    'word_boundary' => 1,
3978
+    'ellipsis' => 1,
3979
+    'html' => 0,
3980
+    'strip_tags' => 0,
3981
+  ),
3982
+  'empty' => '',
3983
+  'hide_empty' => 0,
3984
+  'empty_zero' => 0,
3985
+  'hide_alter_empty' => 1,
3986
+  'exclude' => 0,
3987
+  'id' => 'user_friendly_name',
3988
+  'table' => 'app',
3989
+  'field' => 'user_friendly_name',
3990
+  'relationship' => 'appid',
3991
+),
3992
+'version_num' => array(
3993
+  'label' => '',
3994
+  'alter' => array(
3995
+    'alter_text' => 0,
3996
+    'text' => '',
3997
+    'make_link' => 0,
3998
+    'path' => '',
3999
+    'absolute' => 0,
4000
+    'link_class' => '',
4001
+    'alt' => '',
4002
+    'rel' => '',
4003
+    'prefix' => '',
4004
+    'suffix' => '',
4005
+    'target' => '',
4006
+    'help' => '',
4007
+    'trim' => 0,
4008
+    'max_length' => '',
4009
+    'word_boundary' => 1,
4010
+    'ellipsis' => 1,
4011
+    'html' => 0,
4012
+    'strip_tags' => 0,
4013
+  ),
4014
+  'empty' => '',
4015
+  'hide_empty' => 0,
4016
+  'empty_zero' => 0,
4017
+  'hide_alter_empty' => 1,
4018
+  'exclude' => 0,
4019
+  'set_precision' => 0,
4020
+  'precision' => '2',
4021
+  'decimal' => '.',
4022
+  'separator' => '',
4023
+  'format_plural' => 0,
4024
+  'format_plural_singular' => '1',
4025
+  'format_plural_plural' => '@count',
4026
+  'prefix' => '',
4027
+  'suffix' => '',
4028
+  'id' => 'version_num',
4029
+  'table' => 'app_version',
4030
+  'field' => 'version_num',
4031
+  'relationship' => 'app_version_id',
4032
+),
4033
+'name' => array(
4034
+  'label' => '',
4035
+  'alter' => array(
4036
+    'alter_text' => 0,
4037
+    'text' => '',
4038
+    'make_link' => 0,
4039
+    'path' => '',
4040
+    'absolute' => 0,
4041
+    'link_class' => '',
4042
+    'alt' => '',
4043
+    'rel' => '',
4044
+    'prefix' => '',
4045
+    'suffix' => '',
4046
+    'target' => '',
4047
+    'help' => '',
4048
+    'trim' => 0,
4049
+    'max_length' => '',
4050
+    'word_boundary' => 1,
4051
+    'ellipsis' => 1,
4052
+    'html' => 0,
4053
+    'strip_tags' => 0,
4054
+  ),
4055
+  'empty' => '',
4056
+  'hide_empty' => 0,
4057
+  'empty_zero' => 0,
4058
+  'hide_alter_empty' => 1,
4059
+  'exclude' => 0,
4060
+  'id' => 'name',
4061
+  'table' => 'platform',
4062
+  'field' => 'name',
4063
+  'relationship' => 'platformid',
4064
+),
4065
+'plan_class' => array(
4066
+  'label' => '',
4067
+  'alter' => array(
4068
+    'alter_text' => 1,
4069
+    'text' => '([plan_class])',
4070
+    'make_link' => 0,
4071
+    'path' => '',
4072
+    'absolute' => 0,
4073
+    'link_class' => '',
4074
+    'alt' => '',
4075
+    'rel' => '',
4076
+    'prefix' => '',
4077
+    'suffix' => '',
4078
+    'target' => '',
4079
+    'help' => '',
4080
+    'trim' => 0,
4081
+    'max_length' => '',
4082
+    'word_boundary' => 1,
4083
+    'ellipsis' => 1,
4084
+    'html' => 0,
4085
+    'strip_tags' => 0,
4086
+  ),
4087
+  'empty' => '',
4088
+  'hide_empty' => 0,
4089
+  'empty_zero' => 0,
4090
+  'hide_alter_empty' => 1,
4091
+  'exclude' => 0,
4092
+  'id' => 'plan_class',
4093
+  'table' => 'app_version',
4094
+  'field' => 'plan_class',
4095
+  'relationship' => 'app_version_id',
4096
+),
4097
+'et_n' => array(
4098
+  'label' => 'Number of tasks completed',
4099
+  'alter' => array(
4100
+    'alter_text' => 0,
4101
+    'text' => '',
4102
+    'make_link' => 0,
4103
+    'path' => '',
4104
+    'absolute' => 0,
4105
+    'link_class' => '',
4106
+    'alt' => '',
4107
+    'rel' => '',
4108
+    'prefix' => '',
4109
+    'suffix' => '',
4110
+    'target' => '',
4111
+    'help' => '',
4112
+    'trim' => 0,
4113
+    'max_length' => '',
4114
+    'word_boundary' => 1,
4115
+    'ellipsis' => 1,
4116
+    'html' => 0,
4117
+    'strip_tags' => 0,
4118
+  ),
4119
+  'empty' => '',
4120
+  'hide_empty' => 0,
4121
+  'empty_zero' => 0,
4122
+  'hide_alter_empty' => 0,
4123
+  'set_precision' => FALSE,
4124
+  'precision' => 0,
4125
+  'decimal' => '.',
4126
+  'separator' => '',
4127
+  'format_plural' => 0,
4128
+  'format_plural_singular' => '1',
4129
+  'format_plural_plural' => '@count',
4130
+  'prefix' => '',
4131
+  'suffix' => '',
4132
+  'exclude' => 0,
4133
+  'id' => 'et_n',
4134
+  'table' => 'host_app_version',
4135
+  'field' => 'et_n',
4136
+  'relationship' => 'none',
4137
+),
4138
+'max_jobs_per_day' => array(
4139
+  'label' => 'Max tasks per day',
4140
+  'alter' => array(
4141
+    'alter_text' => 0,
4142
+    'text' => '',
4143
+    'make_link' => 0,
4144
+    'path' => '',
4145
+    'absolute' => 0,
4146
+    'link_class' => '',
4147
+    'alt' => '',
4148
+    'rel' => '',
4149
+    'prefix' => '',
4150
+    'suffix' => '',
4151
+    'target' => '',
4152
+    'help' => '',
4153
+    'trim' => 0,
4154
+    'max_length' => '',
4155
+    'word_boundary' => 1,
4156
+    'ellipsis' => 1,
4157
+    'html' => 0,
4158
+    'strip_tags' => 0,
4159
+  ),
4160
+  'empty' => '',
4161
+  'hide_empty' => 0,
4162
+  'empty_zero' => 0,
4163
+  'hide_alter_empty' => 0,
4164
+  'set_precision' => FALSE,
4165
+  'precision' => 0,
4166
+  'decimal' => '.',
4167
+  'separator' => '',
4168
+  'format_plural' => 0,
4169
+  'format_plural_singular' => '1',
4170
+  'format_plural_plural' => '@count',
4171
+  'prefix' => '',
4172
+  'suffix' => '',
4173
+  'exclude' => 0,
4174
+  'id' => 'max_jobs_per_day',
4175
+  'table' => 'host_app_version',
4176
+  'field' => 'max_jobs_per_day',
4177
+  'relationship' => 'none',
4178
+),
4179
+'n_jobs_today' => array(
4180
+  'label' => 'Number of tasks today',
4181
+  'alter' => array(
4182
+    'alter_text' => 0,
4183
+    'text' => '',
4184
+    'make_link' => 0,
4185
+    'path' => '',
4186
+    'absolute' => 0,
4187
+    'link_class' => '',
4188
+    'alt' => '',
4189
+    'rel' => '',
4190
+    'prefix' => '',
4191
+    'suffix' => '',
4192
+    'target' => '',
4193
+    'help' => '',
4194
+    'trim' => 0,
4195
+    'max_length' => '',
4196
+    'word_boundary' => 1,
4197
+    'ellipsis' => 1,
4198
+    'html' => 0,
4199
+    'strip_tags' => 0,
4200
+  ),
4201
+  'empty' => '',
4202
+  'hide_empty' => 0,
4203
+  'empty_zero' => 0,
4204
+  'hide_alter_empty' => 0,
4205
+  'set_precision' => FALSE,
4206
+  'precision' => 0,
4207
+  'decimal' => '.',
4208
+  'separator' => '',
4209
+  'format_plural' => 0,
4210
+  'format_plural_singular' => '1',
4211
+  'format_plural_plural' => '@count',
4212
+  'prefix' => '',
4213
+  'suffix' => '',
4214
+  'exclude' => 0,
4215
+  'id' => 'n_jobs_today',
4216
+  'table' => 'host_app_version',
4217
+  'field' => 'n_jobs_today',
4218
+  'relationship' => 'none',
4219
+),
4220
+'consecutive_valid' => array(
4221
+  'label' => 'Consecutive valid tasks',
4222
+  'alter' => array(
4223
+    'alter_text' => 0,
4224
+    'text' => '',
4225
+    'make_link' => 0,
4226
+    'path' => '',
4227
+    'absolute' => 0,
4228
+    'link_class' => '',
4229
+    'alt' => '',
4230
+    'rel' => '',
4231
+    'prefix' => '',
4232
+    'suffix' => '',
4233
+    'target' => '',
4234
+    'help' => '',
4235
+    'trim' => 0,
4236
+    'max_length' => '',
4237
+    'word_boundary' => 1,
4238
+    'ellipsis' => 1,
4239
+    'html' => 0,
4240
+    'strip_tags' => 0,
4241
+  ),
4242
+  'empty' => '',
4243
+  'hide_empty' => 0,
4244
+  'empty_zero' => 0,
4245
+  'hide_alter_empty' => 0,
4246
+  'set_precision' => FALSE,
4247
+  'precision' => 0,
4248
+  'decimal' => '.',
4249
+  'separator' => '',
4250
+  'format_plural' => 0,
4251
+  'format_plural_singular' => '1',
4252
+  'format_plural_plural' => '@count',
4253
+  'prefix' => '',
4254
+  'suffix' => '',
4255
+  'exclude' => 0,
4256
+  'id' => 'consecutive_valid',
4257
+  'table' => 'host_app_version',
4258
+  'field' => 'consecutive_valid',
4259
+  'relationship' => 'none',
4260
+),
4261
+'et_avg' => array(
4262
+  'label' => 'Average processing rate',
4263
+  'alter' => array(
4264
+    'alter_text' => 0,
4265
+    'text' => '',
4266
+    'make_link' => 0,
4267
+    'path' => '',
4268
+    'absolute' => 0,
4269
+    'link_class' => '',
4270
+    'alt' => '',
4271
+    'rel' => '',
4272
+    'prefix' => '',
4273
+    'suffix' => '',
4274
+    'target' => '',
4275
+    'help' => '',
4276
+    'trim' => 0,
4277
+    'max_length' => '',
4278
+    'word_boundary' => 1,
4279
+    'ellipsis' => 1,
4280
+    'html' => 0,
4281
+    'strip_tags' => 0,
4282
+  ),
4283
+  'empty' => '',
4284
+  'hide_empty' => 0,
4285
+  'empty_zero' => 0,
4286
+  'hide_alter_empty' => 1,
4287
+  'exclude' => 0,
4288
+  'set_precision' => FALSE,
4289
+  'precision' => 0,
4290
+  'decimal' => '.',
4291
+  'separator' => ',',
4292
+  'format_plural' => 0,
4293
+  'format_plural_singular' => '1',
4294
+  'format_plural_plural' => '@count',
4295
+  'prefix' => '',
4296
+  'suffix' => '',
4297
+  'id' => 'et_avg',
4298
+  'table' => 'host_app_version',
4299
+  'field' => 'et_avg',
4300
+  'relationship' => 'none',
4301
+),
4302
+'turnaround_avg' => array(
4303
+  'label' => 'Average turnaround time',
4304
+  'alter' => array(
4305
+    'alter_text' => 0,
4306
+    'text' => '',
4307
+    'make_link' => 0,
4308
+    'path' => '',
4309
+    'absolute' => 0,
4310
+    'link_class' => '',
4311
+    'alt' => '',
4312
+    'rel' => '',
4313
+    'prefix' => '',
4314
+    'suffix' => '',
4315
+    'target' => '',
4316
+    'help' => '',
4317
+    'trim' => 0,
4318
+    'max_length' => '',
4319
+    'word_boundary' => 1,
4320
+    'ellipsis' => 1,
4321
+    'html' => 0,
4322
+    'strip_tags' => 0,
4323
+  ),
4324
+  'empty' => '',
4325
+  'hide_empty' => 0,
4326
+  'empty_zero' => 0,
4327
+  'hide_alter_empty' => 1,
4328
+  'exclude' => 0,
4329
+  'set_precision' => 0,
4330
+  'precision' => '2',
4331
+  'decimal' => '.',
4332
+  'separator' => '',
4333
+  'format_plural' => 0,
4334
+  'format_plural_singular' => '1',
4335
+  'format_plural_plural' => '@count',
4336
+  'prefix' => '',
4337
+  'suffix' => '',
4338
+  'id' => 'turnaround_avg',
4339
+  'table' => 'host_app_version',
4340
+  'field' => 'turnaround_avg',
4341
+  'relationship' => 'none',
4342
+),
4343
+));
4344
+$handler->override_option('arguments', array(
4345
+'host_id' => array(
4346
+  'default_action' => 'not found',
4347
+  'style_plugin' => 'default_summary',
4348
+  'style_options' => array(),
4349
+  'wildcard' => 'all',
4350
+  'wildcard_substitution' => 'All',
4351
+  'title' => '',
4352
+  'breadcrumb' => '',
4353
+  'default_argument_type' => 'fixed',
4354
+  'default_argument' => '',
4355
+  'validate_type' => 'numeric',
4356
+  'validate_fail' => 'not found',
4357
+  'id' => 'host_id',
4358
+  'table' => 'host_app_version',
4359
+  'field' => 'host_id',
4360
+  'validate_user_argument_type' => 'uid',
4361
+  'validate_user_roles' => array(
4362
+    2 => 0,
4363
+    3519698132 => 0,
4364
+    1110965548 => 0,
4365
+    2938987599 => 0,
4366
+    1257454314 => 0,
4367
+    1271379760 => 0,
4368
+    933038561 => 0,
4369
+  ),
4370
+  'me_redirect' => 0,
4371
+  'me_validate_user_argument_type' => 'uid',
4372
+  'me_validate_user_roles' => array(
4373
+    2 => 0,
4374
+    3519698132 => 0,
4375
+    1110965548 => 0,
4376
+    2938987599 => 0,
4377
+    1257454314 => 0,
4378
+    1271379760 => 0,
4379
+    933038561 => 0,
4380
+  ),
4381
+  'relationship' => 'none',
4382
+  'default_options_div_prefix' => '',
4383
+  'default_taxonomy_tid_term_page' => 0,
4384
+  'default_taxonomy_tid_node' => 0,
4385
+  'default_taxonomy_tid_limit' => 0,
4386
+  'default_taxonomy_tid_vids' => array(
4387
+    1 => 0,
4388
+    2 => 0,
4389
+  ),
4390
+  'default_argument_user' => 0,
4391
+  'default_argument_fixed' => '',
4392
+  'default_argument_php' => '',
4393
+  'validate_argument_node_type' => array(
4394
+    'page' => 0,
4395
+    'news' => 0,
4396
+    'team' => 0,
4397
+    'team_forum' => 0,
4398
+    'profile' => 0,
4399
+    'forum' => 0,
4400
+    'panel' => 0,
4401
+    'story' => 0,
4402
+  ),
4403
+  'validate_argument_node_access' => 0,
4404
+  'validate_argument_nid_type' => 'nid',
4405
+  'validate_argument_vocabulary' => array(
4406
+    1 => 0,
4407
+    2 => 0,
4408
+  ),
4409
+  'validate_argument_type' => 'tid',
4410
+  'validate_argument_transform' => 0,
4411
+  'validate_user_restrict_roles' => 0,
4412
+  'validate_argument_node_flag_name' => '*relationship*',
4413
+  'validate_argument_node_flag_test' => 'flaggable',
4414
+  'validate_argument_node_flag_id_type' => 'id',
4415
+  'validate_argument_user_flag_name' => '*relationship*',
4416
+  'validate_argument_user_flag_test' => 'flaggable',
4417
+  'validate_argument_user_flag_id_type' => 'id',
4418
+  'validate_argument_php' => '',
4419
+  'me_validate_user_restrict_roles' => 0,
4420
+),
4421
+));
4422
+$handler->override_option('access', array(
4423
+'type' => 'none',
4424
+));
4425
+$handler->override_option('cache', array(
4426
+'type' => 'none',
4427
+));
4428
+$handler->override_option('use_pager', '1');
4429
+$handler->override_option('style_options', array(
4430
+'grouping' => '',
4431
+));
4432
+$handler->override_option('row_options', array(
4433
+'inline' => array(
4434
+  'user_friendly_name' => 'user_friendly_name',
4435
+  'version_num' => 'version_num',
4436
+  'name' => 'name',
4437
+  'plan_class' => 'plan_class',
4438
+),
4439
+'separator' => ' ',
4440
+'hide_empty' => 0,
4441
+));
4442
+$handler = $view->new_display('page', 'Page', 'page_1');
4443
+$handler->override_option('fields', array(
4444
+'user_friendly_name' => array(
4445
+  'label' => '',
4446
+  'alter' => array(
4447
+    'alter_text' => 1,
4448
+    'text' => '<b>[user_friendly_name]',
4449
+    'make_link' => 0,
4450
+    'path' => '',
4451
+    'absolute' => 0,
4452
+    'link_class' => '',
4453
+    'alt' => '',
4454
+    'rel' => '',
4455
+    'prefix' => '',
4456
+    'suffix' => '',
4457
+    'target' => '',
4458
+    'help' => '',
4459
+    'trim' => 0,
4460
+    'max_length' => '',
4461
+    'word_boundary' => 1,
4462
+    'ellipsis' => 1,
4463
+    'html' => 0,
4464
+    'strip_tags' => 0,
4465
+  ),
4466
+  'empty' => '',
4467
+  'hide_empty' => 0,
4468
+  'empty_zero' => 0,
4469
+  'hide_alter_empty' => 1,
4470
+  'exclude' => 0,
4471
+  'id' => 'user_friendly_name',
4472
+  'table' => 'app',
4473
+  'field' => 'user_friendly_name',
4474
+  'relationship' => 'appid',
4475
+  'override' => array(
4476
+    'button' => 'Use default',
4477
+  ),
4478
+),
4479
+'version_num' => array(
4480
+  'label' => '',
4481
+  'alter' => array(
4482
+    'alter_text' => 0,
4483
+    'text' => '',
4484
+    'make_link' => 0,
4485
+    'path' => '',
4486
+    'absolute' => 0,
4487
+    'link_class' => '',
4488
+    'alt' => '',
4489
+    'rel' => '',
4490
+    'prefix' => '',
4491
+    'suffix' => '',
4492
+    'target' => '',
4493
+    'help' => '',
4494
+    'trim' => 0,
4495
+    'max_length' => '',
4496
+    'word_boundary' => 1,
4497
+    'ellipsis' => 1,
4498
+    'html' => 0,
4499
+    'strip_tags' => 0,
4500
+  ),
4501
+  'empty' => '',
4502
+  'hide_empty' => 0,
4503
+  'empty_zero' => 0,
4504
+  'hide_alter_empty' => 1,
4505
+  'exclude' => 0,
4506
+  'set_precision' => 0,
4507
+  'precision' => '2',
4508
+  'decimal' => '.',
4509
+  'separator' => '',
4510
+  'format_plural' => 0,
4511
+  'format_plural_singular' => '1',
4512
+  'format_plural_plural' => '@count',
4513
+  'prefix' => '',
4514
+  'suffix' => '',
4515
+  'id' => 'version_num',
4516
+  'table' => 'app_version',
4517
+  'field' => 'version_num',
4518
+  'relationship' => 'app_version_id',
4519
+),
4520
+'name' => array(
4521
+  'label' => '',
4522
+  'alter' => array(
4523
+    'alter_text' => 0,
4524
+    'text' => '',
4525
+    'make_link' => 0,
4526
+    'path' => '',
4527
+    'absolute' => 0,
4528
+    'link_class' => '',
4529
+    'alt' => '',
4530
+    'rel' => '',
4531
+    'prefix' => '',
4532
+    'suffix' => '',
4533
+    'target' => '',
4534
+    'help' => '',
4535
+    'trim' => 0,
4536
+    'max_length' => '',
4537
+    'word_boundary' => 1,
4538
+    'ellipsis' => 1,
4539
+    'html' => 0,
4540
+    'strip_tags' => 0,
4541
+  ),
4542
+  'empty' => '',
4543
+  'hide_empty' => 0,
4544
+  'empty_zero' => 0,
4545
+  'hide_alter_empty' => 1,
4546
+  'exclude' => 0,
4547
+  'id' => 'name',
4548
+  'table' => 'platform',
4549
+  'field' => 'name',
4550
+  'relationship' => 'platformid',
4551
+),
4552
+'plan_class' => array(
4553
+  'label' => '',
4554
+  'alter' => array(
4555
+    'alter_text' => 1,
4556
+    'text' => '([plan_class])</b>',
4557
+    'make_link' => 0,
4558
+    'path' => '',
4559
+    'absolute' => 0,
4560
+    'link_class' => '',
4561
+    'alt' => '',
4562
+    'rel' => '',
4563
+    'prefix' => '',
4564
+    'suffix' => '',
4565
+    'target' => '',
4566
+    'help' => '',
4567
+    'trim' => 0,
4568
+    'max_length' => '',
4569
+    'word_boundary' => 1,
4570
+    'ellipsis' => 1,
4571
+    'html' => 0,
4572
+    'strip_tags' => 0,
4573
+  ),
4574
+  'empty' => '',
4575
+  'hide_empty' => 0,
4576
+  'empty_zero' => 0,
4577
+  'hide_alter_empty' => 0,
4578
+  'exclude' => 0,
4579
+  'id' => 'plan_class',
4580
+  'table' => 'app_version',
4581
+  'field' => 'plan_class',
4582
+  'relationship' => 'app_version_id',
4583
+  'override' => array(
4584
+    'button' => 'Use default',
4585
+  ),
4586
+),
4587
+'et_n' => array(
4588
+  'label' => 'Number of tasks completed',
4589
+  'alter' => array(
4590
+    'alter_text' => 0,
4591
+    'text' => '',
4592
+    'make_link' => 0,
4593
+    'path' => '',
4594
+    'absolute' => 0,
4595
+    'link_class' => '',
4596
+    'alt' => '',
4597
+    'rel' => '',
4598
+    'prefix' => '',
4599
+    'suffix' => '',
4600
+    'target' => '',
4601
+    'help' => '',
4602
+    'trim' => 0,
4603
+    'max_length' => '',
4604
+    'word_boundary' => 1,
4605
+    'ellipsis' => 1,
4606
+    'html' => 0,
4607
+    'strip_tags' => 0,
4608
+  ),
4609
+  'empty' => '',
4610
+  'hide_empty' => 0,
4611
+  'empty_zero' => 0,
4612
+  'hide_alter_empty' => 0,
4613
+  'set_precision' => FALSE,
4614
+  'precision' => 0,
4615
+  'decimal' => '.',
4616
+  'separator' => '',
4617
+  'format_plural' => 0,
4618
+  'format_plural_singular' => '1',
4619
+  'format_plural_plural' => '@count',
4620
+  'prefix' => '',
4621
+  'suffix' => '',
4622
+  'exclude' => 0,
4623
+  'id' => 'et_n',
4624
+  'table' => 'host_app_version',
4625
+  'field' => 'et_n',
4626
+  'relationship' => 'none',
4627
+),
4628
+'max_jobs_per_day' => array(
4629
+  'label' => 'Max tasks per day',
4630
+  'alter' => array(
4631
+    'alter_text' => 0,
4632
+    'text' => '',
4633
+    'make_link' => 0,
4634
+    'path' => '',
4635
+    'absolute' => 0,
4636
+    'link_class' => '',
4637
+    'alt' => '',
4638
+    'rel' => '',
4639
+    'prefix' => '',
4640
+    'suffix' => '',
4641
+    'target' => '',
4642
+    'help' => '',
4643
+    'trim' => 0,
4644
+    'max_length' => '',
4645
+    'word_boundary' => 1,
4646
+    'ellipsis' => 1,
4647
+    'html' => 0,
4648
+    'strip_tags' => 0,
4649
+  ),
4650
+  'empty' => '',
4651
+  'hide_empty' => 0,
4652
+  'empty_zero' => 0,
4653
+  'hide_alter_empty' => 0,
4654
+  'set_precision' => FALSE,
4655
+  'precision' => 0,
4656
+  'decimal' => '.',
4657
+  'separator' => '',
4658
+  'format_plural' => 0,
4659
+  'format_plural_singular' => '1',
4660
+  'format_plural_plural' => '@count',
4661
+  'prefix' => '',
4662
+  'suffix' => '',
4663
+  'exclude' => 0,
4664
+  'id' => 'max_jobs_per_day',
4665
+  'table' => 'host_app_version',
4666
+  'field' => 'max_jobs_per_day',
4667
+  'relationship' => 'none',
4668
+),
4669
+'n_jobs_today' => array(
4670
+  'label' => 'Number of tasks today',
4671
+  'alter' => array(
4672
+    'alter_text' => 0,
4673
+    'text' => '',
4674
+    'make_link' => 0,
4675
+    'path' => '',
4676
+    'absolute' => 0,
4677
+    'link_class' => '',
4678
+    'alt' => '',
4679
+    'rel' => '',
4680
+    'prefix' => '',
4681
+    'suffix' => '',
4682
+    'target' => '',
4683
+    'help' => '',
4684
+    'trim' => 0,
4685
+    'max_length' => '',
4686
+    'word_boundary' => 1,
4687
+    'ellipsis' => 1,
4688
+    'html' => 0,
4689
+    'strip_tags' => 0,
4690
+  ),
4691
+  'empty' => '',
4692
+  'hide_empty' => 0,
4693
+  'empty_zero' => 0,
4694
+  'hide_alter_empty' => 0,
4695
+  'set_precision' => FALSE,
4696
+  'precision' => 0,
4697
+  'decimal' => '.',
4698
+  'separator' => '',
4699
+  'format_plural' => 0,
4700
+  'format_plural_singular' => '1',
4701
+  'format_plural_plural' => '@count',
4702
+  'prefix' => '',
4703
+  'suffix' => '',
4704
+  'exclude' => 0,
4705
+  'id' => 'n_jobs_today',
4706
+  'table' => 'host_app_version',
4707
+  'field' => 'n_jobs_today',
4708
+  'relationship' => 'none',
4709
+),
4710
+'consecutive_valid' => array(
4711
+  'label' => 'Consecutive valid tasks',
4712
+  'alter' => array(
4713
+    'alter_text' => 0,
4714
+    'text' => '',
4715
+    'make_link' => 0,
4716
+    'path' => '',
4717
+    'absolute' => 0,
4718
+    'link_class' => '',
4719
+    'alt' => '',
4720
+    'rel' => '',
4721
+    'prefix' => '',
4722
+    'suffix' => '',
4723
+    'target' => '',
4724
+    'help' => '',
4725
+    'trim' => 0,
4726
+    'max_length' => '',
4727
+    'word_boundary' => 1,
4728
+    'ellipsis' => 1,
4729
+    'html' => 0,
4730
+    'strip_tags' => 0,
4731
+  ),
4732
+  'empty' => '',
4733
+  'hide_empty' => 0,
4734
+  'empty_zero' => 0,
4735
+  'hide_alter_empty' => 0,
4736
+  'set_precision' => FALSE,
4737
+  'precision' => 0,
4738
+  'decimal' => '.',
4739
+  'separator' => '',
4740
+  'format_plural' => 0,
4741
+  'format_plural_singular' => '1',
4742
+  'format_plural_plural' => '@count',
4743
+  'prefix' => '',
4744
+  'suffix' => '',
4745
+  'exclude' => 0,
4746
+  'id' => 'consecutive_valid',
4747
+  'table' => 'host_app_version',
4748
+  'field' => 'consecutive_valid',
4749
+  'relationship' => 'none',
4750
+),
4751
+'et_avg' => array(
4752
+  'label' => 'Average processing rate',
4753
+  'alter' => array(
4754
+    'alter_text' => 0,
4755
+    'text' => '',
4756
+    'make_link' => 0,
4757
+    'path' => '',
4758
+    'absolute' => 0,
4759
+    'link_class' => '',
4760
+    'alt' => '',
4761
+    'rel' => '',
4762
+    'prefix' => '',
4763
+    'suffix' => '',
4764
+    'target' => '',
4765
+    'help' => '',
4766
+    'trim' => 0,
4767
+    'max_length' => '',
4768
+    'word_boundary' => 1,
4769
+    'ellipsis' => 1,
4770
+    'html' => 0,
4771
+    'strip_tags' => 0,
4772
+  ),
4773
+  'empty' => '',
4774
+  'hide_empty' => 0,
4775
+  'empty_zero' => 0,
4776
+  'hide_alter_empty' => 1,
4777
+  'exclude' => 0,
4778
+  'set_precision' => FALSE,
4779
+  'precision' => 0,
4780
+  'decimal' => '.',
4781
+  'separator' => ',',
4782
+  'format_plural' => 0,
4783
+  'format_plural_singular' => '1',
4784
+  'format_plural_plural' => '@count',
4785
+  'prefix' => '',
4786
+  'suffix' => '',
4787
+  'id' => 'et_avg',
4788
+  'table' => 'host_app_version',
4789
+  'field' => 'et_avg',
4790
+  'relationship' => 'none',
4791
+),
4792
+'turnaround_avg' => array(
4793
+  'label' => 'Average turnaround time',
4794
+  'alter' => array(
4795
+    'alter_text' => 0,
4796
+    'text' => '',
4797
+    'make_link' => 0,
4798
+    'path' => '',
4799
+    'absolute' => 0,
4800
+    'link_class' => '',
4801
+    'alt' => '',
4802
+    'rel' => '',
4803
+    'prefix' => '',
4804
+    'suffix' => '',
4805
+    'target' => '',
4806
+    'help' => '',
4807
+    'trim' => 0,
4808
+    'max_length' => '',
4809
+    'word_boundary' => 1,
4810
+    'ellipsis' => 1,
4811
+    'html' => 0,
4812
+    'strip_tags' => 0,
4813
+  ),
4814
+  'empty' => '',
4815
+  'hide_empty' => 0,
4816
+  'empty_zero' => 0,
4817
+  'hide_alter_empty' => 1,
4818
+  'exclude' => 0,
4819
+  'set_precision' => 0,
4820
+  'precision' => '2',
4821
+  'decimal' => '.',
4822
+  'separator' => '',
4823
+  'format_plural' => 0,
4824
+  'format_plural_singular' => '1',
4825
+  'format_plural_plural' => '@count',
4826
+  'prefix' => '',
4827
+  'suffix' => '',
4828
+  'id' => 'turnaround_avg',
4829
+  'table' => 'host_app_version',
4830
+  'field' => 'turnaround_avg',
4831
+  'relationship' => 'none',
4832
+),
4833
+));
4834
+$handler->override_option('title', 'Application details');
4835
+$handler->override_option('path', 'host/%/apps');
4836
+$handler->override_option('menu', array(
4837
+'type' => 'none',
4838
+'title' => '',
4839
+'description' => '',
4840
+'weight' => 0,
4841
+'name' => 'primary-links',
4842
+));
4843
+$handler->override_option('tab_options', array(
4844
+'type' => 'none',
4845
+'title' => '',
4846
+'description' => '',
4847
+'weight' => 0,
4848
+'name' => 'navigation',
4849
+));
4850 4850
 
4851
-  $views[$view->name] = $view;
4851
+$views[$view->name] = $view;
4852 4852
 
4853
-  // Exported view: boinc_host_list
4854
-  $view = new view;
4855
-  $view->name = 'boinc_host_list';
4856
-  $view->description = 'A list of computers associated with a given user';
4857
-  $view->tag = '';
4858
-  $view->base_table = 'host';
4859
-  $view->core = 0;
4860
-  $view->api_version = '2';
4861
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4862
-  $handler = $view->new_display('default', 'Defaults', 'default');
4863
-  $handler->override_option('relationships', array(
4864
-    'userid' => array(
4865
-      'id' => 'userid',
4866
-      'table' => 'host',
4867
-      'field' => 'userid',
4868
-    ),
4869
-  ));
4870
-  $handler->override_option('fields', array(
4871
-    'id' => array(
4872
-      'label' => 'Computer ID',
4873
-      'alter' => array(
4874
-        'alter_text' => 0,
4875
-        'text' => 'ID: [id]
4853
+// Exported view: boinc_host_list
4854
+$view = new view;
4855
+$view->name = 'boinc_host_list';
4856
+$view->description = 'A list of computers associated with a given user';
4857
+$view->tag = '';
4858
+$view->base_table = 'host';
4859
+$view->core = 0;
4860
+$view->api_version = '2';
4861
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
4862
+$handler = $view->new_display('default', 'Defaults', 'default');
4863
+$handler->override_option('relationships', array(
4864
+'userid' => array(
4865
+  'id' => 'userid',
4866
+  'table' => 'host',
4867
+  'field' => 'userid',
4868
+),
4869
+));
4870
+$handler->override_option('fields', array(
4871
+'id' => array(
4872
+  'label' => 'Computer ID',
4873
+  'alter' => array(
4874
+    'alter_text' => 0,
4875
+    'text' => 'ID: [id]
4876 4876
 <a href="">Details</a> | <a href="">Tasks</a>
4877 4877
 Cross-project stats:
4878 4878
 ...',
4879
-        'make_link' => 0,
4880
-        'path' => '',
4881
-        'link_class' => '',
4882
-        'alt' => '',
4883
-        'prefix' => '',
4884
-        'suffix' => '',
4885
-        'target' => '',
4886
-        'help' => '',
4887
-        'trim' => 0,
4888
-        'max_length' => '',
4889
-        'word_boundary' => 1,
4890
-        'ellipsis' => 1,
4891
-        'html' => 0,
4892
-        'strip_tags' => 0,
4893
-      ),
4894
-      'empty' => '',
4895
-      'hide_empty' => 0,
4896
-      'empty_zero' => 0,
4897
-      'set_precision' => FALSE,
4898
-      'precision' => 0,
4899
-      'decimal' => '.',
4900
-      'separator' => '',
4901
-      'prefix' => 'ID: ',
4902
-      'suffix' => '',
4903
-      'exclude' => 0,
4904
-      'id' => 'id',
4905
-      'table' => 'host',
4906
-      'field' => 'id',
4907
-      'relationship' => 'none',
4908
-    ),
4909
-    'phpcode_3' => array(
4910
-      'label' => 'Computer links',
4911
-      'alter' => array(
4912
-        'alter_text' => 0,
4913
-        'text' => '',
4914
-        'make_link' => 0,
4915
-        'path' => '',
4916
-        'absolute' => 0,
4917
-        'link_class' => '',
4918
-        'alt' => '',
4919
-        'rel' => '',
4920
-        'prefix' => '',
4921
-        'suffix' => '',
4922
-        'target' => '',
4923
-        'help' => '',
4924
-        'trim' => 0,
4925
-        'max_length' => '',
4926
-        'word_boundary' => 1,
4927
-        'ellipsis' => 1,
4928
-        'html' => 0,
4929
-        'strip_tags' => 0,
4930
-      ),
4931
-      'empty' => '',
4932
-      'hide_empty' => 0,
4933
-      'empty_zero' => 0,
4934
-      'hide_alter_empty' => 1,
4935
-      'value' => '<?php
4879
+    'make_link' => 0,
4880
+    'path' => '',
4881
+    'link_class' => '',
4882
+    'alt' => '',
4883
+    'prefix' => '',
4884
+    'suffix' => '',
4885
+    'target' => '',
4886
+    'help' => '',
4887
+    'trim' => 0,
4888
+    'max_length' => '',
4889
+    'word_boundary' => 1,
4890
+    'ellipsis' => 1,
4891
+    'html' => 0,
4892
+    'strip_tags' => 0,
4893
+  ),
4894
+  'empty' => '',
4895
+  'hide_empty' => 0,
4896
+  'empty_zero' => 0,
4897
+  'set_precision' => FALSE,
4898
+  'precision' => 0,
4899
+  'decimal' => '.',
4900
+  'separator' => '',
4901
+  'prefix' => 'ID: ',
4902
+  'suffix' => '',
4903
+  'exclude' => 0,
4904
+  'id' => 'id',
4905
+  'table' => 'host',
4906
+  'field' => 'id',
4907
+  'relationship' => 'none',
4908
+),
4909
+'phpcode_3' => array(
4910
+  'label' => 'Computer links',
4911
+  'alter' => array(
4912
+    'alter_text' => 0,
4913
+    'text' => '',
4914
+    'make_link' => 0,
4915
+    'path' => '',
4916
+    'absolute' => 0,
4917
+    'link_class' => '',
4918
+    'alt' => '',
4919
+    'rel' => '',
4920
+    'prefix' => '',
4921
+    'suffix' => '',
4922
+    'target' => '',
4923
+    'help' => '',
4924
+    'trim' => 0,
4925
+    'max_length' => '',
4926
+    'word_boundary' => 1,
4927
+    'ellipsis' => 1,
4928
+    'html' => 0,
4929
+    'strip_tags' => 0,
4930
+  ),
4931
+  'empty' => '',
4932
+  'hide_empty' => 0,
4933
+  'empty_zero' => 0,
4934
+  'hide_alter_empty' => 1,
4935
+  'value' => '<?php
4936 4936
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
4937 4937
 ?>',
4938
-      'exclude' => 0,
4939
-      'id' => 'phpcode_3',
4940
-      'table' => 'customfield',
4941
-      'field' => 'phpcode',
4942
-      'relationship' => 'none',
4943
-    ),
4944
-    'host_cpid' => array(
4945
-      'label' => 'Cross project ID',
4946
-      'alter' => array(
4947
-        'alter_text' => 0,
4948
-        'text' => '',
4949
-        'make_link' => 0,
4950
-        'path' => '',
4951
-        'link_class' => '',
4952
-        'alt' => '',
4953
-        'prefix' => '',
4954
-        'suffix' => '',
4955
-        'target' => '',
4956
-        'help' => '',
4957
-        'trim' => 0,
4958
-        'max_length' => '',
4959
-        'word_boundary' => 1,
4960
-        'ellipsis' => 1,
4961
-        'html' => 0,
4962
-        'strip_tags' => 0,
4963
-      ),
4964
-      'empty' => '',
4965
-      'hide_empty' => 0,
4966
-      'empty_zero' => 0,
4967
-      'exclude' => 1,
4968
-      'id' => 'host_cpid',
4969
-      'table' => 'host',
4970
-      'field' => 'host_cpid',
4971
-      'relationship' => 'none',
4972
-    ),
4973
-    'phpcode_4' => array(
4974
-      'label' => 'Cross-project statistics',
4975
-      'alter' => array(
4976
-        'alter_text' => 0,
4977
-        'text' => '',
4978
-        'make_link' => 0,
4979
-        'path' => '',
4980
-        'link_class' => '',
4981
-        'alt' => '',
4982
-        'prefix' => '',
4983
-        'suffix' => '',
4984
-        'target' => '',
4985
-        'help' => '',
4986
-        'trim' => 0,
4987
-        'max_length' => '',
4988
-        'word_boundary' => 1,
4989
-        'ellipsis' => 1,
4990
-        'html' => 0,
4991
-        'strip_tags' => 0,
4992
-      ),
4993
-      'empty' => '',
4994
-      'hide_empty' => 0,
4995
-      'empty_zero' => 0,
4996
-      'value' => '<?php
4938
+  'exclude' => 0,
4939
+  'id' => 'phpcode_3',
4940
+  'table' => 'customfield',
4941
+  'field' => 'phpcode',
4942
+  'relationship' => 'none',
4943
+),
4944
+'host_cpid' => array(
4945
+  'label' => 'Cross project ID',
4946
+  'alter' => array(
4947
+    'alter_text' => 0,
4948
+    'text' => '',
4949
+    'make_link' => 0,
4950
+    'path' => '',
4951
+    'link_class' => '',
4952
+    'alt' => '',
4953
+    'prefix' => '',
4954
+    'suffix' => '',
4955
+    'target' => '',
4956
+    'help' => '',
4957
+    'trim' => 0,
4958
+    'max_length' => '',
4959
+    'word_boundary' => 1,
4960
+    'ellipsis' => 1,
4961
+    'html' => 0,
4962
+    'strip_tags' => 0,
4963
+  ),
4964
+  'empty' => '',
4965
+  'hide_empty' => 0,
4966
+  'empty_zero' => 0,
4967
+  'exclude' => 1,
4968
+  'id' => 'host_cpid',
4969
+  'table' => 'host',
4970
+  'field' => 'host_cpid',
4971
+  'relationship' => 'none',
4972
+),
4973
+'phpcode_4' => array(
4974
+  'label' => 'Cross-project statistics',
4975
+  'alter' => array(
4976
+    'alter_text' => 0,
4977
+    'text' => '',
4978
+    'make_link' => 0,
4979
+    'path' => '',
4980
+    'link_class' => '',
4981
+    'alt' => '',
4982
+    'prefix' => '',
4983
+    'suffix' => '',
4984
+    'target' => '',
4985
+    'help' => '',
4986
+    'trim' => 0,
4987
+    'max_length' => '',
4988
+    'word_boundary' => 1,
4989
+    'ellipsis' => 1,
4990
+    'html' => 0,
4991
+    'strip_tags' => 0,
4992
+  ),
4993
+  'empty' => '',
4994
+  'hide_empty' => 0,
4995
+  'empty_zero' => 0,
4996
+  'value' => '<?php
4997 4997
   require_boinc(\'stats_sites\');
4998 4998
   global $host_sites;
4999 4999
   $x = "";
@@ -5006,925 +5006,925 @@  discard block
 block discarded – undo
5006 5006
   }
5007 5007
   echo "Cross-project stats: {$x}";
5008 5008
 ?>',
5009
-      'exclude' => 0,
5010
-      'id' => 'phpcode_4',
5011
-      'table' => 'customfield',
5012
-      'field' => 'phpcode',
5013
-      'relationship' => 'none',
5014
-    ),
5015
-    'rownumber' => array(
5016
-      'label' => 'Rank',
5017
-      'alter' => array(
5018
-        'alter_text' => 0,
5019
-        'text' => '',
5020
-        'make_link' => 0,
5021
-        'path' => '',
5022
-        'link_class' => '',
5023
-        'alt' => '',
5024
-        'prefix' => '',
5025
-        'suffix' => '',
5026
-        'target' => '',
5027
-        'help' => '',
5028
-        'trim' => 0,
5029
-        'max_length' => '',
5030
-        'word_boundary' => 1,
5031
-        'ellipsis' => 1,
5032
-        'html' => 0,
5033
-        'strip_tags' => 0,
5034
-      ),
5035
-      'empty' => '',
5036
-      'hide_empty' => 0,
5037
-      'empty_zero' => 0,
5038
-      'exclude' => 0,
5039
-      'id' => 'rownumber',
5040
-      'table' => 'customfield',
5041
-      'field' => 'rownumber',
5042
-      'relationship' => 'none',
5043
-    ),
5044
-    'expavg_credit' => array(
5045
-      'label' => 'Avg. credit',
5046
-      'alter' => array(
5047
-        'alter_text' => 0,
5048
-        'text' => '',
5049
-        'make_link' => 0,
5050
-        'path' => '',
5051
-        'link_class' => '',
5052
-        'alt' => '',
5053
-        'prefix' => '',
5054
-        'suffix' => '',
5055
-        'target' => '',
5056
-        'help' => '',
5057
-        'trim' => 0,
5058
-        'max_length' => '',
5059
-        'word_boundary' => 1,
5060
-        'ellipsis' => 1,
5061
-        'html' => 0,
5062
-        'strip_tags' => 0,
5063
-      ),
5064
-      'empty' => '',
5065
-      'hide_empty' => 0,
5066
-      'empty_zero' => 0,
5067
-      'set_precision' => 1,
5068
-      'precision' => '2',
5069
-      'decimal' => '.',
5070
-      'separator' => ',',
5071
-      'prefix' => '',
5072
-      'suffix' => '',
5073
-      'exclude' => 0,
5074
-      'id' => 'expavg_credit',
5075
-      'table' => 'host',
5076
-      'field' => 'expavg_credit',
5077
-      'relationship' => 'none',
5078
-    ),
5079
-    'total_credit' => array(
5080
-      'label' => 'Total credit',
5081
-      'alter' => array(
5082
-        'alter_text' => 0,
5083
-        'text' => '',
5084
-        'make_link' => 0,
5085
-        'path' => '',
5086
-        'absolute' => 0,
5087
-        'link_class' => '',
5088
-        'alt' => '',
5089
-        'rel' => '',
5090
-        'prefix' => '',
5091
-        'suffix' => '',
5092
-        'target' => '',
5093
-        'help' => '',
5094
-        'trim' => 0,
5095
-        'max_length' => '',
5096
-        'word_boundary' => 1,
5097
-        'ellipsis' => 1,
5098
-        'html' => 0,
5099
-        'strip_tags' => 0,
5100
-      ),
5101
-      'empty' => '',
5102
-      'hide_empty' => 0,
5103
-      'empty_zero' => 0,
5104
-      'hide_alter_empty' => 1,
5105
-      'set_precision' => 1,
5106
-      'precision' => '0',
5107
-      'decimal' => '.',
5108
-      'separator' => ',',
5109
-      'format_plural' => 0,
5110
-      'format_plural_singular' => '1',
5111
-      'format_plural_plural' => '@count',
5112
-      'prefix' => '',
5113
-      'suffix' => '',
5114
-      'exclude' => 0,
5115
-      'id' => 'total_credit',
5116
-      'table' => 'host',
5117
-      'field' => 'total_credit',
5118
-      'relationship' => 'none',
5119
-    ),
5120
-    'serialnum' => array(
5121
-      'label' => 'Serial Number',
5122
-      'alter' => array(
5123
-        'alter_text' => 0,
5124
-        'text' => '',
5125
-        'make_link' => 0,
5126
-        'path' => '',
5127
-        'link_class' => '',
5128
-        'alt' => '',
5129
-        'prefix' => '',
5130
-        'suffix' => '',
5131
-        'target' => '',
5132
-        'help' => '',
5133
-        'trim' => 0,
5134
-        'max_length' => '',
5135
-        'word_boundary' => 1,
5136
-        'ellipsis' => 1,
5137
-        'html' => 0,
5138
-        'strip_tags' => 0,
5139
-      ),
5140
-      'empty' => '',
5141
-      'hide_empty' => 0,
5142
-      'empty_zero' => 0,
5143
-      'exclude' => 1,
5144
-      'id' => 'serialnum',
5145
-      'table' => 'host',
5146
-      'field' => 'serialnum',
5147
-      'relationship' => 'none',
5148
-    ),
5149
-    'phpcode' => array(
5150
-      'label' => 'BOINC version',
5151
-      'alter' => array(
5152
-        'alter_text' => 0,
5153
-        'text' => '',
5154
-        'make_link' => 0,
5155
-        'path' => '',
5156
-        'link_class' => '',
5157
-        'alt' => '',
5158
-        'prefix' => '',
5159
-        'suffix' => '',
5160
-        'target' => '',
5161
-        'help' => '',
5162
-        'trim' => 0,
5163
-        'max_length' => '',
5164
-        'word_boundary' => 1,
5165
-        'ellipsis' => 1,
5166
-        'html' => 0,
5167
-        'strip_tags' => 0,
5168
-      ),
5169
-      'empty' => '',
5170
-      'hide_empty' => 0,
5171
-      'empty_zero' => 0,
5172
-      'value' => '<?php
5009
+  'exclude' => 0,
5010
+  'id' => 'phpcode_4',
5011
+  'table' => 'customfield',
5012
+  'field' => 'phpcode',
5013
+  'relationship' => 'none',
5014
+),
5015
+'rownumber' => array(
5016
+  'label' => 'Rank',
5017
+  'alter' => array(
5018
+    'alter_text' => 0,
5019
+    'text' => '',
5020
+    'make_link' => 0,
5021
+    'path' => '',
5022
+    'link_class' => '',
5023
+    'alt' => '',
5024
+    'prefix' => '',
5025
+    'suffix' => '',
5026
+    'target' => '',
5027
+    'help' => '',
5028
+    'trim' => 0,
5029
+    'max_length' => '',
5030
+    'word_boundary' => 1,
5031
+    'ellipsis' => 1,
5032
+    'html' => 0,
5033
+    'strip_tags' => 0,
5034
+  ),
5035
+  'empty' => '',
5036
+  'hide_empty' => 0,
5037
+  'empty_zero' => 0,
5038
+  'exclude' => 0,
5039
+  'id' => 'rownumber',
5040
+  'table' => 'customfield',
5041
+  'field' => 'rownumber',
5042
+  'relationship' => 'none',
5043
+),
5044
+'expavg_credit' => array(
5045
+  'label' => 'Avg. credit',
5046
+  'alter' => array(
5047
+    'alter_text' => 0,
5048
+    'text' => '',
5049
+    'make_link' => 0,
5050
+    'path' => '',
5051
+    'link_class' => '',
5052
+    'alt' => '',
5053
+    'prefix' => '',
5054
+    'suffix' => '',
5055
+    'target' => '',
5056
+    'help' => '',
5057
+    'trim' => 0,
5058
+    'max_length' => '',
5059
+    'word_boundary' => 1,
5060
+    'ellipsis' => 1,
5061
+    'html' => 0,
5062
+    'strip_tags' => 0,
5063
+  ),
5064
+  'empty' => '',
5065
+  'hide_empty' => 0,
5066
+  'empty_zero' => 0,
5067
+  'set_precision' => 1,
5068
+  'precision' => '2',
5069
+  'decimal' => '.',
5070
+  'separator' => ',',
5071
+  'prefix' => '',
5072
+  'suffix' => '',
5073
+  'exclude' => 0,
5074
+  'id' => 'expavg_credit',
5075
+  'table' => 'host',
5076
+  'field' => 'expavg_credit',
5077
+  'relationship' => 'none',
5078
+),
5079
+'total_credit' => array(
5080
+  'label' => 'Total credit',
5081
+  'alter' => array(
5082
+    'alter_text' => 0,
5083
+    'text' => '',
5084
+    'make_link' => 0,
5085
+    'path' => '',
5086
+    'absolute' => 0,
5087
+    'link_class' => '',
5088
+    'alt' => '',
5089
+    'rel' => '',
5090
+    'prefix' => '',
5091
+    'suffix' => '',
5092
+    'target' => '',
5093
+    'help' => '',
5094
+    'trim' => 0,
5095
+    'max_length' => '',
5096
+    'word_boundary' => 1,
5097
+    'ellipsis' => 1,
5098
+    'html' => 0,
5099
+    'strip_tags' => 0,
5100
+  ),
5101
+  'empty' => '',
5102
+  'hide_empty' => 0,
5103
+  'empty_zero' => 0,
5104
+  'hide_alter_empty' => 1,
5105
+  'set_precision' => 1,
5106
+  'precision' => '0',
5107
+  'decimal' => '.',
5108
+  'separator' => ',',
5109
+  'format_plural' => 0,
5110
+  'format_plural_singular' => '1',
5111
+  'format_plural_plural' => '@count',
5112
+  'prefix' => '',
5113
+  'suffix' => '',
5114
+  'exclude' => 0,
5115
+  'id' => 'total_credit',
5116
+  'table' => 'host',
5117
+  'field' => 'total_credit',
5118
+  'relationship' => 'none',
5119
+),
5120
+'serialnum' => array(
5121
+  'label' => 'Serial Number',
5122
+  'alter' => array(
5123
+    'alter_text' => 0,
5124
+    'text' => '',
5125
+    'make_link' => 0,
5126
+    'path' => '',
5127
+    'link_class' => '',
5128
+    'alt' => '',
5129
+    'prefix' => '',
5130
+    'suffix' => '',
5131
+    'target' => '',
5132
+    'help' => '',
5133
+    'trim' => 0,
5134
+    'max_length' => '',
5135
+    'word_boundary' => 1,
5136
+    'ellipsis' => 1,
5137
+    'html' => 0,
5138
+    'strip_tags' => 0,
5139
+  ),
5140
+  'empty' => '',
5141
+  'hide_empty' => 0,
5142
+  'empty_zero' => 0,
5143
+  'exclude' => 1,
5144
+  'id' => 'serialnum',
5145
+  'table' => 'host',
5146
+  'field' => 'serialnum',
5147
+  'relationship' => 'none',
5148
+),
5149
+'phpcode' => array(
5150
+  'label' => 'BOINC version',
5151
+  'alter' => array(
5152
+    'alter_text' => 0,
5153
+    'text' => '',
5154
+    'make_link' => 0,
5155
+    'path' => '',
5156
+    'link_class' => '',
5157
+    'alt' => '',
5158
+    'prefix' => '',
5159
+    'suffix' => '',
5160
+    'target' => '',
5161
+    'help' => '',
5162
+    'trim' => 0,
5163
+    'max_length' => '',
5164
+    'word_boundary' => 1,
5165
+    'ellipsis' => 1,
5166
+    'html' => 0,
5167
+    'strip_tags' => 0,
5168
+  ),
5169
+  'empty' => '',
5170
+  'hide_empty' => 0,
5171
+  'empty_zero' => 0,
5172
+  'value' => '<?php
5173 5173
   require_boinc(\'host\');
5174 5174
   echo boinc_version($data->host_serialnum);
5175 5175
 ?>',
5176
-      'exclude' => 0,
5177
-      'id' => 'phpcode',
5178
-      'table' => 'customfield',
5179
-      'field' => 'phpcode',
5180
-      'relationship' => 'none',
5181
-    ),
5182
-    'p_vendor' => array(
5183
-      'label' => 'CPU',
5184
-      'alter' => array(
5185
-        'alter_text' => 0,
5186
-        'text' => '',
5187
-        'make_link' => 0,
5188
-        'path' => '',
5189
-        'link_class' => '',
5190
-        'alt' => '',
5191
-        'prefix' => '',
5192
-        'suffix' => '',
5193
-        'target' => '',
5194
-        'help' => '',
5195
-        'trim' => 0,
5196
-        'max_length' => '',
5197
-        'word_boundary' => 1,
5198
-        'ellipsis' => 1,
5199
-        'html' => 0,
5200
-        'strip_tags' => 0,
5201
-      ),
5202
-      'empty' => '',
5203
-      'hide_empty' => 0,
5204
-      'empty_zero' => 0,
5205
-      'exclude' => 0,
5206
-      'id' => 'p_vendor',
5207
-      'table' => 'host',
5208
-      'field' => 'p_vendor',
5209
-      'relationship' => 'none',
5210
-      'override' => array(
5211
-        'button' => 'Override',
5212
-      ),
5213
-    ),
5214
-    'p_model' => array(
5215
-      'label' => 'CPU model',
5216
-      'alter' => array(
5217
-        'alter_text' => 0,
5218
-        'text' => '',
5219
-        'make_link' => 0,
5220
-        'path' => '',
5221
-        'link_class' => '',
5222
-        'alt' => '',
5223
-        'prefix' => '',
5224
-        'suffix' => '',
5225
-        'target' => '',
5226
-        'help' => '',
5227
-        'trim' => 0,
5228
-        'max_length' => '',
5229
-        'word_boundary' => 1,
5230
-        'ellipsis' => 1,
5231
-        'html' => 0,
5232
-        'strip_tags' => 0,
5233
-      ),
5234
-      'empty' => '',
5235
-      'hide_empty' => 0,
5236
-      'empty_zero' => 0,
5237
-      'exclude' => 0,
5238
-      'id' => 'p_model',
5239
-      'table' => 'host',
5240
-      'field' => 'p_model',
5241
-      'relationship' => 'none',
5242
-    ),
5243
-    'p_ncpus' => array(
5244
-      'label' => 'Number of CPUs',
5245
-      'alter' => array(
5246
-        'alter_text' => 1,
5247
-        'text' => '([p_ncpus] processors)',
5248
-        'make_link' => 0,
5249
-        'path' => '',
5250
-        'link_class' => '',
5251
-        'alt' => '',
5252
-        'prefix' => '',
5253
-        'suffix' => '',
5254
-        'target' => '',
5255
-        'help' => '',
5256
-        'trim' => 0,
5257
-        'max_length' => '',
5258
-        'word_boundary' => 1,
5259
-        'ellipsis' => 1,
5260
-        'html' => 0,
5261
-        'strip_tags' => 0,
5262
-      ),
5263
-      'empty' => '',
5264
-      'hide_empty' => 0,
5265
-      'empty_zero' => 0,
5266
-      'exclude' => 0,
5267
-      'id' => 'p_ncpus',
5268
-      'table' => 'host',
5269
-      'field' => 'p_ncpus',
5270
-      'relationship' => 'none',
5271
-    ),
5272
-    'phpcode_1' => array(
5273
-      'label' => 'GPU',
5274
-      'alter' => array(
5275
-        'alter_text' => 0,
5276
-        'text' => '',
5277
-        'make_link' => 0,
5278
-        'path' => '',
5279
-        'link_class' => '',
5280
-        'alt' => '',
5281
-        'prefix' => '',
5282
-        'suffix' => '',
5283
-        'target' => '',
5284
-        'help' => '',
5285
-        'trim' => 0,
5286
-        'max_length' => '',
5287
-        'word_boundary' => 1,
5288
-        'ellipsis' => 1,
5289
-        'html' => 0,
5290
-        'strip_tags' => 0,
5291
-      ),
5292
-      'empty' => '',
5293
-      'hide_empty' => 0,
5294
-      'empty_zero' => 0,
5295
-      'value' => '<?php
5176
+  'exclude' => 0,
5177
+  'id' => 'phpcode',
5178
+  'table' => 'customfield',
5179
+  'field' => 'phpcode',
5180
+  'relationship' => 'none',
5181
+),
5182
+'p_vendor' => array(
5183
+  'label' => 'CPU',
5184
+  'alter' => array(
5185
+    'alter_text' => 0,
5186
+    'text' => '',
5187
+    'make_link' => 0,
5188
+    'path' => '',
5189
+    'link_class' => '',
5190
+    'alt' => '',
5191
+    'prefix' => '',
5192
+    'suffix' => '',
5193
+    'target' => '',
5194
+    'help' => '',
5195
+    'trim' => 0,
5196
+    'max_length' => '',
5197
+    'word_boundary' => 1,
5198
+    'ellipsis' => 1,
5199
+    'html' => 0,
5200
+    'strip_tags' => 0,
5201
+  ),
5202
+  'empty' => '',
5203
+  'hide_empty' => 0,
5204
+  'empty_zero' => 0,
5205
+  'exclude' => 0,
5206
+  'id' => 'p_vendor',
5207
+  'table' => 'host',
5208
+  'field' => 'p_vendor',
5209
+  'relationship' => 'none',
5210
+  'override' => array(
5211
+    'button' => 'Override',
5212
+  ),
5213
+),
5214
+'p_model' => array(
5215
+  'label' => 'CPU model',
5216
+  'alter' => array(
5217
+    'alter_text' => 0,
5218
+    'text' => '',
5219
+    'make_link' => 0,
5220
+    'path' => '',
5221
+    'link_class' => '',
5222
+    'alt' => '',
5223
+    'prefix' => '',
5224
+    'suffix' => '',
5225
+    'target' => '',
5226
+    'help' => '',
5227
+    'trim' => 0,
5228
+    'max_length' => '',
5229
+    'word_boundary' => 1,
5230
+    'ellipsis' => 1,
5231
+    'html' => 0,
5232
+    'strip_tags' => 0,
5233
+  ),
5234
+  'empty' => '',
5235
+  'hide_empty' => 0,
5236
+  'empty_zero' => 0,
5237
+  'exclude' => 0,
5238
+  'id' => 'p_model',
5239
+  'table' => 'host',
5240
+  'field' => 'p_model',
5241
+  'relationship' => 'none',
5242
+),
5243
+'p_ncpus' => array(
5244
+  'label' => 'Number of CPUs',
5245
+  'alter' => array(
5246
+    'alter_text' => 1,
5247
+    'text' => '([p_ncpus] processors)',
5248
+    'make_link' => 0,
5249
+    'path' => '',
5250
+    'link_class' => '',
5251
+    'alt' => '',
5252
+    'prefix' => '',
5253
+    'suffix' => '',
5254
+    'target' => '',
5255
+    'help' => '',
5256
+    'trim' => 0,
5257
+    'max_length' => '',
5258
+    'word_boundary' => 1,
5259
+    'ellipsis' => 1,
5260
+    'html' => 0,
5261
+    'strip_tags' => 0,
5262
+  ),
5263
+  'empty' => '',
5264
+  'hide_empty' => 0,
5265
+  'empty_zero' => 0,
5266
+  'exclude' => 0,
5267
+  'id' => 'p_ncpus',
5268
+  'table' => 'host',
5269
+  'field' => 'p_ncpus',
5270
+  'relationship' => 'none',
5271
+),
5272
+'phpcode_1' => array(
5273
+  'label' => 'GPU',
5274
+  'alter' => array(
5275
+    'alter_text' => 0,
5276
+    'text' => '',
5277
+    'make_link' => 0,
5278
+    'path' => '',
5279
+    'link_class' => '',
5280
+    'alt' => '',
5281
+    'prefix' => '',
5282
+    'suffix' => '',
5283
+    'target' => '',
5284
+    'help' => '',
5285
+    'trim' => 0,
5286
+    'max_length' => '',
5287
+    'word_boundary' => 1,
5288
+    'ellipsis' => 1,
5289
+    'html' => 0,
5290
+    'strip_tags' => 0,
5291
+  ),
5292
+  'empty' => '',
5293
+  'hide_empty' => 0,
5294
+  'empty_zero' => 0,
5295
+  'value' => '<?php
5296 5296
   require_boinc(\'host\');
5297 5297
   echo gpu_desc($data->host_serialnum);
5298 5298
 ?>',
5299
-      'exclude' => 0,
5300
-      'id' => 'phpcode_1',
5301
-      'table' => 'customfield',
5302
-      'field' => 'phpcode',
5303
-      'relationship' => 'none',
5304
-    ),
5305
-    'os_name' => array(
5306
-      'label' => 'Operating system',
5307
-      'alter' => array(
5308
-        'alter_text' => 0,
5309
-        'text' => '',
5310
-        'make_link' => 0,
5311
-        'path' => '',
5312
-        'link_class' => '',
5313
-        'alt' => '',
5314
-        'prefix' => '',
5315
-        'suffix' => '',
5316
-        'target' => '',
5317
-        'help' => '',
5318
-        'trim' => 0,
5319
-        'max_length' => '',
5320
-        'word_boundary' => 1,
5321
-        'ellipsis' => 1,
5322
-        'html' => 0,
5323
-        'strip_tags' => 0,
5324
-      ),
5325
-      'empty' => '',
5326
-      'hide_empty' => 0,
5327
-      'empty_zero' => 0,
5328
-      'exclude' => 0,
5329
-      'id' => 'os_name',
5330
-      'table' => 'host',
5331
-      'field' => 'os_name',
5332
-      'relationship' => 'none',
5333
-    ),
5334
-    'os_version' => array(
5335
-      'label' => 'Operating system version',
5336
-      'alter' => array(
5337
-        'alter_text' => 0,
5338
-        'text' => '',
5339
-        'make_link' => 0,
5340
-        'path' => '',
5341
-        'link_class' => '',
5342
-        'alt' => '',
5343
-        'prefix' => '',
5344
-        'suffix' => '',
5345
-        'target' => '',
5346
-        'help' => '',
5347
-        'trim' => 0,
5348
-        'max_length' => '',
5349
-        'word_boundary' => 1,
5350
-        'ellipsis' => 1,
5351
-        'html' => 0,
5352
-        'strip_tags' => 0,
5353
-      ),
5354
-      'empty' => '',
5355
-      'hide_empty' => 0,
5356
-      'empty_zero' => 0,
5357
-      'exclude' => 0,
5358
-      'id' => 'os_version',
5359
-      'table' => 'host',
5360
-      'field' => 'os_version',
5361
-      'relationship' => 'none',
5362
-    ),
5363
-    'rpc_time' => array(
5364
-      'label' => 'Last contact',
5365
-      'alter' => array(
5366
-        'alter_text' => 0,
5367
-        'text' => '',
5368
-        'make_link' => 0,
5369
-        'path' => '',
5370
-        'absolute' => 0,
5371
-        'link_class' => '',
5372
-        'alt' => '',
5373
-        'rel' => '',
5374
-        'prefix' => '',
5375
-        'suffix' => '',
5376
-        'target' => '',
5377
-        'help' => '',
5378
-        'trim' => 0,
5379
-        'max_length' => '',
5380
-        'word_boundary' => 1,
5381
-        'ellipsis' => 1,
5382
-        'html' => 0,
5383
-        'strip_tags' => 0,
5384
-      ),
5385
-      'empty' => '',
5386
-      'hide_empty' => 0,
5387
-      'empty_zero' => 0,
5388
-      'hide_alter_empty' => 1,
5389
-      'date_format' => 'custom',
5390
-      'custom_date_format' => 'j M Y G:i:s T',
5391
-      'exclude' => 1,
5392
-      'id' => 'rpc_time',
5393
-      'table' => 'host',
5394
-      'field' => 'rpc_time',
5395
-      'relationship' => 'none',
5396
-    ),
5397
-    'phpcode_2' => array(
5398
-      'label' => 'Last contact',
5399
-      'alter' => array(
5400
-        'alter_text' => 0,
5401
-        'text' => '',
5402
-        'make_link' => 0,
5403
-        'path' => '',
5404
-        'absolute' => 0,
5405
-        'link_class' => '',
5406
-        'alt' => '',
5407
-        'rel' => '',
5408
-        'prefix' => '',
5409
-        'suffix' => '',
5410
-        'target' => '',
5411
-        'help' => '',
5412
-        'trim' => 0,
5413
-        'max_length' => '',
5414
-        'word_boundary' => 1,
5415
-        'ellipsis' => 1,
5416
-        'html' => 0,
5417
-        'strip_tags' => 0,
5418
-      ),
5419
-      'empty' => '',
5420
-      'hide_empty' => 0,
5421
-      'empty_zero' => 0,
5422
-      'hide_alter_empty' => 1,
5423
-      'value' => '<?php
5299
+  'exclude' => 0,
5300
+  'id' => 'phpcode_1',
5301
+  'table' => 'customfield',
5302
+  'field' => 'phpcode',
5303
+  'relationship' => 'none',
5304
+),
5305
+'os_name' => array(
5306
+  'label' => 'Operating system',
5307
+  'alter' => array(
5308
+    'alter_text' => 0,
5309
+    'text' => '',
5310
+    'make_link' => 0,
5311
+    'path' => '',
5312
+    'link_class' => '',
5313
+    'alt' => '',
5314
+    'prefix' => '',
5315
+    'suffix' => '',
5316
+    'target' => '',
5317
+    'help' => '',
5318
+    'trim' => 0,
5319
+    'max_length' => '',
5320
+    'word_boundary' => 1,
5321
+    'ellipsis' => 1,
5322
+    'html' => 0,
5323
+    'strip_tags' => 0,
5324
+  ),
5325
+  'empty' => '',
5326
+  'hide_empty' => 0,
5327
+  'empty_zero' => 0,
5328
+  'exclude' => 0,
5329
+  'id' => 'os_name',
5330
+  'table' => 'host',
5331
+  'field' => 'os_name',
5332
+  'relationship' => 'none',
5333
+),
5334
+'os_version' => array(
5335
+  'label' => 'Operating system version',
5336
+  'alter' => array(
5337
+    'alter_text' => 0,
5338
+    'text' => '',
5339
+    'make_link' => 0,
5340
+    'path' => '',
5341
+    'link_class' => '',
5342
+    'alt' => '',
5343
+    'prefix' => '',
5344
+    'suffix' => '',
5345
+    'target' => '',
5346
+    'help' => '',
5347
+    'trim' => 0,
5348
+    'max_length' => '',
5349
+    'word_boundary' => 1,
5350
+    'ellipsis' => 1,
5351
+    'html' => 0,
5352
+    'strip_tags' => 0,
5353
+  ),
5354
+  'empty' => '',
5355
+  'hide_empty' => 0,
5356
+  'empty_zero' => 0,
5357
+  'exclude' => 0,
5358
+  'id' => 'os_version',
5359
+  'table' => 'host',
5360
+  'field' => 'os_version',
5361
+  'relationship' => 'none',
5362
+),
5363
+'rpc_time' => array(
5364
+  'label' => 'Last contact',
5365
+  'alter' => array(
5366
+    'alter_text' => 0,
5367
+    'text' => '',
5368
+    'make_link' => 0,
5369
+    'path' => '',
5370
+    'absolute' => 0,
5371
+    'link_class' => '',
5372
+    'alt' => '',
5373
+    'rel' => '',
5374
+    'prefix' => '',
5375
+    'suffix' => '',
5376
+    'target' => '',
5377
+    'help' => '',
5378
+    'trim' => 0,
5379
+    'max_length' => '',
5380
+    'word_boundary' => 1,
5381
+    'ellipsis' => 1,
5382
+    'html' => 0,
5383
+    'strip_tags' => 0,
5384
+  ),
5385
+  'empty' => '',
5386
+  'hide_empty' => 0,
5387
+  'empty_zero' => 0,
5388
+  'hide_alter_empty' => 1,
5389
+  'date_format' => 'custom',
5390
+  'custom_date_format' => 'j M Y G:i:s T',
5391
+  'exclude' => 1,
5392
+  'id' => 'rpc_time',
5393
+  'table' => 'host',
5394
+  'field' => 'rpc_time',
5395
+  'relationship' => 'none',
5396
+),
5397
+'phpcode_2' => array(
5398
+  'label' => 'Last contact',
5399
+  'alter' => array(
5400
+    'alter_text' => 0,
5401
+    'text' => '',
5402
+    'make_link' => 0,
5403
+    'path' => '',
5404
+    'absolute' => 0,
5405
+    'link_class' => '',
5406
+    'alt' => '',
5407
+    'rel' => '',
5408
+    'prefix' => '',
5409
+    'suffix' => '',
5410
+    'target' => '',
5411
+    'help' => '',
5412
+    'trim' => 0,
5413
+    'max_length' => '',
5414
+    'word_boundary' => 1,
5415
+    'ellipsis' => 1,
5416
+    'html' => 0,
5417
+    'strip_tags' => 0,
5418
+  ),
5419
+  'empty' => '',
5420
+  'hide_empty' => 0,
5421
+  'empty_zero' => 0,
5422
+  'hide_alter_empty' => 1,
5423
+  'value' => '<?php
5424 5424
   echo boincwork_host_last_contact($data->host_rpc_time, $data->id);
5425 5425
 ?>',
5426
-      'exclude' => 0,
5427
-      'id' => 'phpcode_2',
5428
-      'table' => 'customfield',
5429
-      'field' => 'phpcode',
5430
-      'relationship' => 'none',
5431
-    ),
5432
-  ));
5433
-  $handler->override_option('arguments', array(
5434
-    'userid' => array(
5435
-      'default_action' => 'not found',
5436
-      'style_plugin' => 'default_summary',
5437
-      'style_options' => array(),
5438
-      'wildcard' => 'all',
5439
-      'wildcard_substitution' => 'All',
5440
-      'title' => '',
5441
-      'breadcrumb' => '',
5442
-      'default_argument_type' => 'fixed',
5443
-      'default_argument' => '',
5444
-      'validate_type' => 'numeric',
5445
-      'validate_fail' => 'not found',
5446
-      'id' => 'userid',
5447
-      'table' => 'host',
5448
-      'field' => 'userid',
5449
-      'validate_user_argument_type' => 'uid',
5450
-      'validate_user_roles' => array(
5451
-        2 => 0,
5452
-        3 => 0,
5453
-      ),
5454
-      'relationship' => 'none',
5455
-      'default_options_div_prefix' => '',
5456
-      'default_argument_fixed' => '',
5457
-      'default_argument_user' => 0,
5458
-      'default_argument_php' => '',
5459
-      'validate_argument_node_type' => array(
5460
-        'forum' => 0,
5461
-        'job_post' => 0,
5462
-        'news' => 0,
5463
-        'page' => 0,
5464
-        'profile' => 0,
5465
-        'story' => 0,
5466
-        'team' => 0,
5467
-      ),
5468
-      'validate_argument_node_access' => 0,
5469
-      'validate_argument_nid_type' => 'nid',
5470
-      'validate_argument_vocabulary' => array(
5471
-        1 => 0,
5472
-      ),
5473
-      'validate_argument_type' => 'tid',
5474
-      'validate_argument_transform' => 0,
5475
-      'validate_user_restrict_roles' => 0,
5476
-      'validate_argument_php' => '',
5477
-    ),
5478
-  ));
5479
-  $handler->override_option('filters', array(
5480
-    'show_hosts' => array(
5481
-      'operator' => '=',
5482
-      'value' => array(
5483
-        'value' => '1',
5484
-        'min' => '',
5485
-        'max' => '',
5486
-      ),
5487
-      'group' => '0',
5488
-      'exposed' => FALSE,
5489
-      'expose' => array(
5490
-        'operator' => FALSE,
5491
-        'label' => '',
5492
-      ),
5493
-      'id' => 'show_hosts',
5494
-      'table' => 'user',
5495
-      'field' => 'show_hosts',
5496
-      'relationship' => 'userid',
5497
-    ),
5498
-  ));
5499
-  $handler->override_option('access', array(
5500
-    'type' => 'none',
5501
-  ));
5502
-  $handler->override_option('cache', array(
5503
-    'type' => 'none',
5504
-  ));
5505
-  $handler->override_option('empty_format', '1');
5506
-  $handler->override_option('items_per_page', 20);
5507
-  $handler->override_option('use_pager', '1');
5508
-  $handler->override_option('style_plugin', 'table');
5509
-  $handler->override_option('style_options', array(
5510
-    'grouping' => '',
5511
-    'override' => 1,
5512
-    'sticky' => 1,
5513
-    'order' => 'desc',
5514
-    'summary' => '',
5515
-    'columns' => array(
5516
-      'id' => 'id',
5517
-      'phpcode_3' => 'id',
5518
-      'host_cpid' => 'host_cpid',
5519
-      'phpcode_4' => 'id',
5520
-      'rownumber' => 'rownumber',
5521
-      'expavg_credit' => 'expavg_credit',
5522
-      'total_credit' => 'total_credit',
5523
-      'serialnum' => 'serialnum',
5524
-      'phpcode' => 'phpcode',
5525
-      'p_vendor' => 'p_vendor',
5526
-      'p_model' => 'p_vendor',
5527
-      'p_ncpus' => 'p_vendor',
5528
-      'phpcode_1' => 'phpcode_1',
5529
-      'os_name' => 'os_name',
5530
-      'os_version' => 'os_name',
5531
-      'rpc_time' => 'rpc_time',
5532
-      'phpcode_2' => 'phpcode_2',
5533
-    ),
5534
-    'info' => array(
5535
-      'id' => array(
5536
-        'sortable' => 1,
5537
-        'separator' => '<br/>',
5538
-      ),
5539
-      'phpcode_3' => array(
5540
-        'separator' => '',
5541
-      ),
5542
-      'host_cpid' => array(
5543
-        'sortable' => 0,
5544
-        'separator' => '',
5545
-      ),
5546
-      'phpcode_4' => array(
5547
-        'separator' => '',
5548
-      ),
5549
-      'rownumber' => array(
5550
-        'separator' => '',
5551
-      ),
5552
-      'expavg_credit' => array(
5553
-        'sortable' => 1,
5554
-        'separator' => '',
5555
-      ),
5556
-      'total_credit' => array(
5557
-        'sortable' => 1,
5558
-        'separator' => '',
5559
-      ),
5560
-      'serialnum' => array(
5561
-        'sortable' => 0,
5562
-        'separator' => '',
5563
-      ),
5564
-      'phpcode' => array(
5565
-        'separator' => '',
5566
-      ),
5567
-      'p_vendor' => array(
5568
-        'sortable' => 1,
5569
-        'separator' => '<br/>',
5570
-      ),
5571
-      'p_model' => array(
5572
-        'sortable' => 0,
5573
-        'separator' => '',
5574
-      ),
5575
-      'p_ncpus' => array(
5576
-        'sortable' => 0,
5577
-        'separator' => '',
5578
-      ),
5579
-      'phpcode_1' => array(
5580
-        'separator' => '',
5581
-      ),
5582
-      'os_name' => array(
5583
-        'sortable' => 1,
5584
-        'separator' => '<br/>',
5585
-      ),
5586
-      'os_version' => array(
5587
-        'sortable' => 0,
5588
-        'separator' => '',
5589
-      ),
5590
-      'rpc_time' => array(
5591
-        'sortable' => 1,
5592
-        'separator' => '',
5593
-      ),
5594
-      'phpcode_2' => array(
5595
-        'separator' => '',
5596
-      ),
5597
-    ),
5598
-    'default' => 'rpc_time',
5599
-  ));
5600
-  $handler = $view->new_display('page', 'User active hosts', 'page_1');
5601
-  $handler->override_option('filters', array(
5602
-    'rpc_time' => array(
5603
-      'operator' => '>',
5604
-      'value' => array(
5605
-        'type' => 'offset',
5606
-        'value' => '-30 days',
5607
-        'min' => '',
5608
-        'max' => '',
5609
-      ),
5610
-      'group' => '0',
5611
-      'exposed' => FALSE,
5612
-      'expose' => array(
5613
-        'operator' => FALSE,
5614
-        'label' => '',
5615
-      ),
5616
-      'id' => 'rpc_time',
5617
-      'table' => 'host',
5618
-      'field' => 'rpc_time',
5619
-      'relationship' => 'none',
5620
-    ),
5621
-    'show_hosts' => array(
5622
-      'operator' => '=',
5623
-      'value' => array(
5624
-        'value' => '1',
5625
-        'min' => '',
5626
-        'max' => '',
5627
-      ),
5628
-      'group' => '0',
5629
-      'exposed' => FALSE,
5630
-      'expose' => array(
5631
-        'operator' => FALSE,
5632
-        'label' => '',
5633
-      ),
5634
-      'id' => 'show_hosts',
5635
-      'table' => 'user',
5636
-      'field' => 'show_hosts',
5637
-      'relationship' => 'userid',
5638
-    ),
5639
-  ));
5640
-  $handler->override_option('path', 'account/%/computers/active');
5641
-  $handler->override_option('menu', array(
5642
-    'type' => 'default tab',
5643
-    'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'),
5644
-    'description' => 'Show only computers that have been active in the past month',
5645
-    'weight' => '0',
5646
-    'name' => 'navigation',
5647
-  ));
5648
-  $handler->override_option('tab_options', array(
5649
-    'type' => 'tab',
5650
-    'title' => 'Computers',
5651
-    'description' => 'Show the computers associated with this user',
5652
-    'weight' => '0',
5653
-    'name' => 'secondary-links',
5654
-  ));
5655
-  $handler = $view->new_display('page', 'User all hosts', 'page_2');
5656
-  $handler->override_option('path', 'account/%/computers/all');
5657
-  $handler->override_option('menu', array(
5658
-    'type' => 'tab',
5659
-    'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
5660
-    'description' => 'Show all computers associated with the account',
5661
-    'weight' => '1',
5662
-    'name' => 'navigation',
5663
-  ));
5664
-  $handler->override_option('tab_options', array(
5665
-    'type' => 'none',
5666
-    'title' => '',
5667
-    'description' => '',
5668
-    'weight' => 0,
5669
-    'name' => 'navigation',
5670
-  ));
5671
-  $handler = $view->new_display('page', 'Top hosts', 'page_3');
5672
-  $handler->override_option('fields', array(
5673
-    'id_1' => array(
5674
-      'label' => 'Id',
5675
-      'alter' => array(
5676
-        'alter_text' => 0,
5677
-        'text' => '',
5678
-        'make_link' => 0,
5679
-        'path' => '',
5680
-        'absolute' => 0,
5681
-        'link_class' => '',
5682
-        'alt' => '',
5683
-        'rel' => '',
5684
-        'prefix' => '',
5685
-        'suffix' => '',
5686
-        'target' => '',
5687
-        'help' => '',
5688
-        'trim' => 0,
5689
-        'max_length' => '',
5690
-        'word_boundary' => 1,
5691
-        'ellipsis' => 1,
5692
-        'html' => 0,
5693
-        'strip_tags' => 0,
5694
-      ),
5695
-      'empty' => '',
5696
-      'hide_empty' => 0,
5697
-      'empty_zero' => 0,
5698
-      'hide_alter_empty' => 1,
5699
-      'set_precision' => FALSE,
5700
-      'precision' => 0,
5701
-      'decimal' => '.',
5702
-      'separator' => ',',
5703
-      'format_plural' => 0,
5704
-      'format_plural_singular' => '1',
5705
-      'format_plural_plural' => '@count',
5706
-      'prefix' => '',
5707
-      'suffix' => '',
5708
-      'exclude' => 1,
5709
-      'id' => 'id_1',
5710
-      'table' => 'user',
5711
-      'field' => 'id',
5712
-      'relationship' => 'userid',
5713
-      'override' => array(
5714
-        'button' => 'Use default',
5715
-      ),
5716
-    ),
5717
-    'name' => array(
5718
-      'label' => 'Name',
5719
-      'alter' => array(
5720
-        'alter_text' => 0,
5721
-        'text' => '',
5722
-        'make_link' => 0,
5723
-        'path' => '',
5724
-        'absolute' => 0,
5725
-        'link_class' => '',
5726
-        'alt' => '',
5727
-        'rel' => '',
5728
-        'prefix' => '',
5729
-        'suffix' => '',
5730
-        'target' => '',
5731
-        'help' => '',
5732
-        'trim' => 0,
5733
-        'max_length' => '',
5734
-        'word_boundary' => 1,
5735
-        'ellipsis' => 1,
5736
-        'html' => 0,
5737
-        'strip_tags' => 0,
5738
-      ),
5739
-      'empty' => '',
5740
-      'hide_empty' => 0,
5741
-      'empty_zero' => 0,
5742
-      'hide_alter_empty' => 1,
5743
-      'exclude' => 1,
5744
-      'id' => 'name',
5745
-      'table' => 'user',
5746
-      'field' => 'name',
5747
-      'relationship' => 'userid',
5748
-      'override' => array(
5749
-        'button' => 'Use default',
5750
-      ),
5751
-    ),
5752
-    'show_hosts' => array(
5753
-      'label' => 'Show Hosts',
5754
-      'alter' => array(
5755
-        'alter_text' => 0,
5756
-        'text' => '',
5757
-        'make_link' => 0,
5758
-        'path' => '',
5759
-        'absolute' => 0,
5760
-        'link_class' => '',
5761
-        'alt' => '',
5762
-        'rel' => '',
5763
-        'prefix' => '',
5764
-        'suffix' => '',
5765
-        'target' => '',
5766
-        'help' => '',
5767
-        'trim' => 0,
5768
-        'max_length' => '',
5769
-        'word_boundary' => 1,
5770
-        'ellipsis' => 1,
5771
-        'html' => 0,
5772
-        'strip_tags' => 0,
5773
-      ),
5774
-      'empty' => '',
5775
-      'hide_empty' => 0,
5776
-      'empty_zero' => 0,
5777
-      'hide_alter_empty' => 1,
5778
-      'set_precision' => FALSE,
5779
-      'precision' => 0,
5780
-      'decimal' => '.',
5781
-      'separator' => ',',
5782
-      'format_plural' => 0,
5783
-      'format_plural_singular' => '1',
5784
-      'format_plural_plural' => '@count',
5785
-      'prefix' => '',
5786
-      'suffix' => '',
5787
-      'exclude' => 1,
5788
-      'id' => 'show_hosts',
5789
-      'table' => 'user',
5790
-      'field' => 'show_hosts',
5791
-      'relationship' => 'userid',
5792
-      'override' => array(
5793
-        'button' => 'Use default',
5794
-      ),
5795
-    ),
5796
-    'id' => array(
5797
-      'label' => 'Computer ID',
5798
-      'alter' => array(
5799
-        'alter_text' => 0,
5800
-        'text' => 'ID: [id]
5426
+  'exclude' => 0,
5427
+  'id' => 'phpcode_2',
5428
+  'table' => 'customfield',
5429
+  'field' => 'phpcode',
5430
+  'relationship' => 'none',
5431
+),
5432
+));
5433
+$handler->override_option('arguments', array(
5434
+'userid' => array(
5435
+  'default_action' => 'not found',
5436
+  'style_plugin' => 'default_summary',
5437
+  'style_options' => array(),
5438
+  'wildcard' => 'all',
5439
+  'wildcard_substitution' => 'All',
5440
+  'title' => '',
5441
+  'breadcrumb' => '',
5442
+  'default_argument_type' => 'fixed',
5443
+  'default_argument' => '',
5444
+  'validate_type' => 'numeric',
5445
+  'validate_fail' => 'not found',
5446
+  'id' => 'userid',
5447
+  'table' => 'host',
5448
+  'field' => 'userid',
5449
+  'validate_user_argument_type' => 'uid',
5450
+  'validate_user_roles' => array(
5451
+    2 => 0,
5452
+    3 => 0,
5453
+  ),
5454
+  'relationship' => 'none',
5455
+  'default_options_div_prefix' => '',
5456
+  'default_argument_fixed' => '',
5457
+  'default_argument_user' => 0,
5458
+  'default_argument_php' => '',
5459
+  'validate_argument_node_type' => array(
5460
+    'forum' => 0,
5461
+    'job_post' => 0,
5462
+    'news' => 0,
5463
+    'page' => 0,
5464
+    'profile' => 0,
5465
+    'story' => 0,
5466
+    'team' => 0,
5467
+  ),
5468
+  'validate_argument_node_access' => 0,
5469
+  'validate_argument_nid_type' => 'nid',
5470
+  'validate_argument_vocabulary' => array(
5471
+    1 => 0,
5472
+  ),
5473
+  'validate_argument_type' => 'tid',
5474
+  'validate_argument_transform' => 0,
5475
+  'validate_user_restrict_roles' => 0,
5476
+  'validate_argument_php' => '',
5477
+),
5478
+));
5479
+$handler->override_option('filters', array(
5480
+'show_hosts' => array(
5481
+  'operator' => '=',
5482
+  'value' => array(
5483
+    'value' => '1',
5484
+    'min' => '',
5485
+    'max' => '',
5486
+  ),
5487
+  'group' => '0',
5488
+  'exposed' => FALSE,
5489
+  'expose' => array(
5490
+    'operator' => FALSE,
5491
+    'label' => '',
5492
+  ),
5493
+  'id' => 'show_hosts',
5494
+  'table' => 'user',
5495
+  'field' => 'show_hosts',
5496
+  'relationship' => 'userid',
5497
+),
5498
+));
5499
+$handler->override_option('access', array(
5500
+'type' => 'none',
5501
+));
5502
+$handler->override_option('cache', array(
5503
+'type' => 'none',
5504
+));
5505
+$handler->override_option('empty_format', '1');
5506
+$handler->override_option('items_per_page', 20);
5507
+$handler->override_option('use_pager', '1');
5508
+$handler->override_option('style_plugin', 'table');
5509
+$handler->override_option('style_options', array(
5510
+'grouping' => '',
5511
+'override' => 1,
5512
+'sticky' => 1,
5513
+'order' => 'desc',
5514
+'summary' => '',
5515
+'columns' => array(
5516
+  'id' => 'id',
5517
+  'phpcode_3' => 'id',
5518
+  'host_cpid' => 'host_cpid',
5519
+  'phpcode_4' => 'id',
5520
+  'rownumber' => 'rownumber',
5521
+  'expavg_credit' => 'expavg_credit',
5522
+  'total_credit' => 'total_credit',
5523
+  'serialnum' => 'serialnum',
5524
+  'phpcode' => 'phpcode',
5525
+  'p_vendor' => 'p_vendor',
5526
+  'p_model' => 'p_vendor',
5527
+  'p_ncpus' => 'p_vendor',
5528
+  'phpcode_1' => 'phpcode_1',
5529
+  'os_name' => 'os_name',
5530
+  'os_version' => 'os_name',
5531
+  'rpc_time' => 'rpc_time',
5532
+  'phpcode_2' => 'phpcode_2',
5533
+),
5534
+'info' => array(
5535
+  'id' => array(
5536
+    'sortable' => 1,
5537
+    'separator' => '<br/>',
5538
+  ),
5539
+  'phpcode_3' => array(
5540
+    'separator' => '',
5541
+  ),
5542
+  'host_cpid' => array(
5543
+    'sortable' => 0,
5544
+    'separator' => '',
5545
+  ),
5546
+  'phpcode_4' => array(
5547
+    'separator' => '',
5548
+  ),
5549
+  'rownumber' => array(
5550
+    'separator' => '',
5551
+  ),
5552
+  'expavg_credit' => array(
5553
+    'sortable' => 1,
5554
+    'separator' => '',
5555
+  ),
5556
+  'total_credit' => array(
5557
+    'sortable' => 1,
5558
+    'separator' => '',
5559
+  ),
5560
+  'serialnum' => array(
5561
+    'sortable' => 0,
5562
+    'separator' => '',
5563
+  ),
5564
+  'phpcode' => array(
5565
+    'separator' => '',
5566
+  ),
5567
+  'p_vendor' => array(
5568
+    'sortable' => 1,
5569
+    'separator' => '<br/>',
5570
+  ),
5571
+  'p_model' => array(
5572
+    'sortable' => 0,
5573
+    'separator' => '',
5574
+  ),
5575
+  'p_ncpus' => array(
5576
+    'sortable' => 0,
5577
+    'separator' => '',
5578
+  ),
5579
+  'phpcode_1' => array(
5580
+    'separator' => '',
5581
+  ),
5582
+  'os_name' => array(
5583
+    'sortable' => 1,
5584
+    'separator' => '<br/>',
5585
+  ),
5586
+  'os_version' => array(
5587
+    'sortable' => 0,
5588
+    'separator' => '',
5589
+  ),
5590
+  'rpc_time' => array(
5591
+    'sortable' => 1,
5592
+    'separator' => '',
5593
+  ),
5594
+  'phpcode_2' => array(
5595
+    'separator' => '',
5596
+  ),
5597
+),
5598
+'default' => 'rpc_time',
5599
+));
5600
+$handler = $view->new_display('page', 'User active hosts', 'page_1');
5601
+$handler->override_option('filters', array(
5602
+'rpc_time' => array(
5603
+  'operator' => '>',
5604
+  'value' => array(
5605
+    'type' => 'offset',
5606
+    'value' => '-30 days',
5607
+    'min' => '',
5608
+    'max' => '',
5609
+  ),
5610
+  'group' => '0',
5611
+  'exposed' => FALSE,
5612
+  'expose' => array(
5613
+    'operator' => FALSE,
5614
+    'label' => '',
5615
+  ),
5616
+  'id' => 'rpc_time',
5617
+  'table' => 'host',
5618
+  'field' => 'rpc_time',
5619
+  'relationship' => 'none',
5620
+),
5621
+'show_hosts' => array(
5622
+  'operator' => '=',
5623
+  'value' => array(
5624
+    'value' => '1',
5625
+    'min' => '',
5626
+    'max' => '',
5627
+  ),
5628
+  'group' => '0',
5629
+  'exposed' => FALSE,
5630
+  'expose' => array(
5631
+    'operator' => FALSE,
5632
+    'label' => '',
5633
+  ),
5634
+  'id' => 'show_hosts',
5635
+  'table' => 'user',
5636
+  'field' => 'show_hosts',
5637
+  'relationship' => 'userid',
5638
+),
5639
+));
5640
+$handler->override_option('path', 'account/%/computers/active');
5641
+$handler->override_option('menu', array(
5642
+'type' => 'default tab',
5643
+'title' => bts('Active in past 30 days', array(), NULL, 'boinc:account-host-list'),
5644
+'description' => 'Show only computers that have been active in the past month',
5645
+'weight' => '0',
5646
+'name' => 'navigation',
5647
+));
5648
+$handler->override_option('tab_options', array(
5649
+'type' => 'tab',
5650
+'title' => 'Computers',
5651
+'description' => 'Show the computers associated with this user',
5652
+'weight' => '0',
5653
+'name' => 'secondary-links',
5654
+));
5655
+$handler = $view->new_display('page', 'User all hosts', 'page_2');
5656
+$handler->override_option('path', 'account/%/computers/all');
5657
+$handler->override_option('menu', array(
5658
+'type' => 'tab',
5659
+'title' => bts('All computers', array(), NULL, 'boinc:account-host-list'),
5660
+'description' => 'Show all computers associated with the account',
5661
+'weight' => '1',
5662
+'name' => 'navigation',
5663
+));
5664
+$handler->override_option('tab_options', array(
5665
+'type' => 'none',
5666
+'title' => '',
5667
+'description' => '',
5668
+'weight' => 0,
5669
+'name' => 'navigation',
5670
+));
5671
+$handler = $view->new_display('page', 'Top hosts', 'page_3');
5672
+$handler->override_option('fields', array(
5673
+'id_1' => array(
5674
+  'label' => 'Id',
5675
+  'alter' => array(
5676
+    'alter_text' => 0,
5677
+    'text' => '',
5678
+    'make_link' => 0,
5679
+    'path' => '',
5680
+    'absolute' => 0,
5681
+    'link_class' => '',
5682
+    'alt' => '',
5683
+    'rel' => '',
5684
+    'prefix' => '',
5685
+    'suffix' => '',
5686
+    'target' => '',
5687
+    'help' => '',
5688
+    'trim' => 0,
5689
+    'max_length' => '',
5690
+    'word_boundary' => 1,
5691
+    'ellipsis' => 1,
5692
+    'html' => 0,
5693
+    'strip_tags' => 0,
5694
+  ),
5695
+  'empty' => '',
5696
+  'hide_empty' => 0,
5697
+  'empty_zero' => 0,
5698
+  'hide_alter_empty' => 1,
5699
+  'set_precision' => FALSE,
5700
+  'precision' => 0,
5701
+  'decimal' => '.',
5702
+  'separator' => ',',
5703
+  'format_plural' => 0,
5704
+  'format_plural_singular' => '1',
5705
+  'format_plural_plural' => '@count',
5706
+  'prefix' => '',
5707
+  'suffix' => '',
5708
+  'exclude' => 1,
5709
+  'id' => 'id_1',
5710
+  'table' => 'user',
5711
+  'field' => 'id',
5712
+  'relationship' => 'userid',
5713
+  'override' => array(
5714
+    'button' => 'Use default',
5715
+  ),
5716
+),
5717
+'name' => array(
5718
+  'label' => 'Name',
5719
+  'alter' => array(
5720
+    'alter_text' => 0,
5721
+    'text' => '',
5722
+    'make_link' => 0,
5723
+    'path' => '',
5724
+    'absolute' => 0,
5725
+    'link_class' => '',
5726
+    'alt' => '',
5727
+    'rel' => '',
5728
+    'prefix' => '',
5729
+    'suffix' => '',
5730
+    'target' => '',
5731
+    'help' => '',
5732
+    'trim' => 0,
5733
+    'max_length' => '',
5734
+    'word_boundary' => 1,
5735
+    'ellipsis' => 1,
5736
+    'html' => 0,
5737
+    'strip_tags' => 0,
5738
+  ),
5739
+  'empty' => '',
5740
+  'hide_empty' => 0,
5741
+  'empty_zero' => 0,
5742
+  'hide_alter_empty' => 1,
5743
+  'exclude' => 1,
5744
+  'id' => 'name',
5745
+  'table' => 'user',
5746
+  'field' => 'name',
5747
+  'relationship' => 'userid',
5748
+  'override' => array(
5749
+    'button' => 'Use default',
5750
+  ),
5751
+),
5752
+'show_hosts' => array(
5753
+  'label' => 'Show Hosts',
5754
+  'alter' => array(
5755
+    'alter_text' => 0,
5756
+    'text' => '',
5757
+    'make_link' => 0,
5758
+    'path' => '',
5759
+    'absolute' => 0,
5760
+    'link_class' => '',
5761
+    'alt' => '',
5762
+    'rel' => '',
5763
+    'prefix' => '',
5764
+    'suffix' => '',
5765
+    'target' => '',
5766
+    'help' => '',
5767
+    'trim' => 0,
5768
+    'max_length' => '',
5769
+    'word_boundary' => 1,
5770
+    'ellipsis' => 1,
5771
+    'html' => 0,
5772
+    'strip_tags' => 0,
5773
+  ),
5774
+  'empty' => '',
5775
+  'hide_empty' => 0,
5776
+  'empty_zero' => 0,
5777
+  'hide_alter_empty' => 1,
5778
+  'set_precision' => FALSE,
5779
+  'precision' => 0,
5780
+  'decimal' => '.',
5781
+  'separator' => ',',
5782
+  'format_plural' => 0,
5783
+  'format_plural_singular' => '1',
5784
+  'format_plural_plural' => '@count',
5785
+  'prefix' => '',
5786
+  'suffix' => '',
5787
+  'exclude' => 1,
5788
+  'id' => 'show_hosts',
5789
+  'table' => 'user',
5790
+  'field' => 'show_hosts',
5791
+  'relationship' => 'userid',
5792
+  'override' => array(
5793
+    'button' => 'Use default',
5794
+  ),
5795
+),
5796
+'id' => array(
5797
+  'label' => 'Computer ID',
5798
+  'alter' => array(
5799
+    'alter_text' => 0,
5800
+    'text' => 'ID: [id]
5801 5801
 <a href="">Details</a> | <a href="">Tasks</a>
5802 5802
 Cross-project stats:
5803 5803
 ...',
5804
-        'make_link' => 0,
5805
-        'path' => '',
5806
-        'link_class' => '',
5807
-        'alt' => '',
5808
-        'prefix' => '',
5809
-        'suffix' => '',
5810
-        'target' => '',
5811
-        'help' => '',
5812
-        'trim' => 0,
5813
-        'max_length' => '',
5814
-        'word_boundary' => 1,
5815
-        'ellipsis' => 1,
5816
-        'html' => 0,
5817
-        'strip_tags' => 0,
5818
-      ),
5819
-      'empty' => '',
5820
-      'hide_empty' => 0,
5821
-      'empty_zero' => 0,
5822
-      'set_precision' => FALSE,
5823
-      'precision' => 0,
5824
-      'decimal' => '.',
5825
-      'separator' => '',
5826
-      'prefix' => 'ID: ',
5827
-      'suffix' => '',
5828
-      'exclude' => 0,
5829
-      'id' => 'id',
5830
-      'table' => 'host',
5831
-      'field' => 'id',
5832
-      'relationship' => 'none',
5833
-    ),
5834
-    'phpcode_3' => array(
5835
-      'label' => 'Computer links',
5836
-      'alter' => array(
5837
-        'alter_text' => 0,
5838
-        'text' => '',
5839
-        'make_link' => 0,
5840
-        'path' => '',
5841
-        'absolute' => 0,
5842
-        'link_class' => '',
5843
-        'alt' => '',
5844
-        'rel' => '',
5845
-        'prefix' => '',
5846
-        'suffix' => '',
5847
-        'target' => '',
5848
-        'help' => '',
5849
-        'trim' => 0,
5850
-        'max_length' => '',
5851
-        'word_boundary' => 1,
5852
-        'ellipsis' => 1,
5853
-        'html' => 0,
5854
-        'strip_tags' => 0,
5855
-      ),
5856
-      'empty' => '',
5857
-      'hide_empty' => 0,
5858
-      'empty_zero' => 0,
5859
-      'hide_alter_empty' => 1,
5860
-      'value' => '<?php
5804
+    'make_link' => 0,
5805
+    'path' => '',
5806
+    'link_class' => '',
5807
+    'alt' => '',
5808
+    'prefix' => '',
5809
+    'suffix' => '',
5810
+    'target' => '',
5811
+    'help' => '',
5812
+    'trim' => 0,
5813
+    'max_length' => '',
5814
+    'word_boundary' => 1,
5815
+    'ellipsis' => 1,
5816
+    'html' => 0,
5817
+    'strip_tags' => 0,
5818
+  ),
5819
+  'empty' => '',
5820
+  'hide_empty' => 0,
5821
+  'empty_zero' => 0,
5822
+  'set_precision' => FALSE,
5823
+  'precision' => 0,
5824
+  'decimal' => '.',
5825
+  'separator' => '',
5826
+  'prefix' => 'ID: ',
5827
+  'suffix' => '',
5828
+  'exclude' => 0,
5829
+  'id' => 'id',
5830
+  'table' => 'host',
5831
+  'field' => 'id',
5832
+  'relationship' => 'none',
5833
+),
5834
+'phpcode_3' => array(
5835
+  'label' => 'Computer links',
5836
+  'alter' => array(
5837
+    'alter_text' => 0,
5838
+    'text' => '',
5839
+    'make_link' => 0,
5840
+    'path' => '',
5841
+    'absolute' => 0,
5842
+    'link_class' => '',
5843
+    'alt' => '',
5844
+    'rel' => '',
5845
+    'prefix' => '',
5846
+    'suffix' => '',
5847
+    'target' => '',
5848
+    'help' => '',
5849
+    'trim' => 0,
5850
+    'max_length' => '',
5851
+    'word_boundary' => 1,
5852
+    'ellipsis' => 1,
5853
+    'html' => 0,
5854
+    'strip_tags' => 0,
5855
+  ),
5856
+  'empty' => '',
5857
+  'hide_empty' => 0,
5858
+  'empty_zero' => 0,
5859
+  'hide_alter_empty' => 1,
5860
+  'value' => '<?php
5861 5861
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
5862 5862
 ?>',
5863
-      'exclude' => 0,
5864
-      'id' => 'phpcode_3',
5865
-      'table' => 'customfield',
5866
-      'field' => 'phpcode',
5867
-      'relationship' => 'none',
5868
-      'override' => array(
5869
-        'button' => 'Use default',
5870
-      ),
5871
-    ),
5872
-    'host_cpid' => array(
5873
-      'label' => 'Cross project ID',
5874
-      'alter' => array(
5875
-        'alter_text' => 0,
5876
-        'text' => '',
5877
-        'make_link' => 0,
5878
-        'path' => '',
5879
-        'link_class' => '',
5880
-        'alt' => '',
5881
-        'prefix' => '',
5882
-        'suffix' => '',
5883
-        'target' => '',
5884
-        'help' => '',
5885
-        'trim' => 0,
5886
-        'max_length' => '',
5887
-        'word_boundary' => 1,
5888
-        'ellipsis' => 1,
5889
-        'html' => 0,
5890
-        'strip_tags' => 0,
5891
-      ),
5892
-      'empty' => '',
5893
-      'hide_empty' => 0,
5894
-      'empty_zero' => 0,
5895
-      'exclude' => 1,
5896
-      'id' => 'host_cpid',
5897
-      'table' => 'host',
5898
-      'field' => 'host_cpid',
5899
-      'relationship' => 'none',
5900
-    ),
5901
-    'phpcode_4' => array(
5902
-      'label' => 'Cross-project statistics',
5903
-      'alter' => array(
5904
-        'alter_text' => 0,
5905
-        'text' => '',
5906
-        'make_link' => 0,
5907
-        'path' => '',
5908
-        'absolute' => 0,
5909
-        'link_class' => '',
5910
-        'alt' => '',
5911
-        'rel' => '',
5912
-        'prefix' => '',
5913
-        'suffix' => '',
5914
-        'target' => '',
5915
-        'help' => '',
5916
-        'trim' => 0,
5917
-        'max_length' => '',
5918
-        'word_boundary' => 1,
5919
-        'ellipsis' => 1,
5920
-        'html' => 0,
5921
-        'strip_tags' => 0,
5922
-      ),
5923
-      'empty' => '',
5924
-      'hide_empty' => 0,
5925
-      'empty_zero' => 0,
5926
-      'hide_alter_empty' => 1,
5927
-      'value' => '<?php
5863
+  'exclude' => 0,
5864
+  'id' => 'phpcode_3',
5865
+  'table' => 'customfield',
5866
+  'field' => 'phpcode',
5867
+  'relationship' => 'none',
5868
+  'override' => array(
5869
+    'button' => 'Use default',
5870
+  ),
5871
+),
5872
+'host_cpid' => array(
5873
+  'label' => 'Cross project ID',
5874
+  'alter' => array(
5875
+    'alter_text' => 0,
5876
+    'text' => '',
5877
+    'make_link' => 0,
5878
+    'path' => '',
5879
+    'link_class' => '',
5880
+    'alt' => '',
5881
+    'prefix' => '',
5882
+    'suffix' => '',
5883
+    'target' => '',
5884
+    'help' => '',
5885
+    'trim' => 0,
5886
+    'max_length' => '',
5887
+    'word_boundary' => 1,
5888
+    'ellipsis' => 1,
5889
+    'html' => 0,
5890
+    'strip_tags' => 0,
5891
+  ),
5892
+  'empty' => '',
5893
+  'hide_empty' => 0,
5894
+  'empty_zero' => 0,
5895
+  'exclude' => 1,
5896
+  'id' => 'host_cpid',
5897
+  'table' => 'host',
5898
+  'field' => 'host_cpid',
5899
+  'relationship' => 'none',
5900
+),
5901
+'phpcode_4' => array(
5902
+  'label' => 'Cross-project statistics',
5903
+  'alter' => array(
5904
+    'alter_text' => 0,
5905
+    'text' => '',
5906
+    'make_link' => 0,
5907
+    'path' => '',
5908
+    'absolute' => 0,
5909
+    'link_class' => '',
5910
+    'alt' => '',
5911
+    'rel' => '',
5912
+    'prefix' => '',
5913
+    'suffix' => '',
5914
+    'target' => '',
5915
+    'help' => '',
5916
+    'trim' => 0,
5917
+    'max_length' => '',
5918
+    'word_boundary' => 1,
5919
+    'ellipsis' => 1,
5920
+    'html' => 0,
5921
+    'strip_tags' => 0,
5922
+  ),
5923
+  'empty' => '',
5924
+  'hide_empty' => 0,
5925
+  'empty_zero' => 0,
5926
+  'hide_alter_empty' => 1,
5927
+  'value' => '<?php
5928 5928
   require_boinc(\'stats_sites\');
5929 5929
   global $host_sites;
5930 5930
   $x = "";
@@ -5937,71 +5937,71 @@  discard block
 block discarded – undo
5937 5937
   }
5938 5938
   echo "Cross-project stats: {$x}";
5939 5939
 ?>',
5940
-      'exclude' => 0,
5941
-      'id' => 'phpcode_4',
5942
-      'table' => 'customfield',
5943
-      'field' => 'phpcode',
5944
-      'relationship' => 'none',
5945
-      'override' => array(
5946
-        'button' => 'Use default',
5947
-      ),
5948
-    ),
5949
-    'rownumber' => array(
5950
-      'label' => 'Rank',
5951
-      'alter' => array(
5952
-        'alter_text' => 0,
5953
-        'text' => '',
5954
-        'make_link' => 0,
5955
-        'path' => '',
5956
-        'link_class' => '',
5957
-        'alt' => '',
5958
-        'prefix' => '',
5959
-        'suffix' => '',
5960
-        'target' => '',
5961
-        'help' => '',
5962
-        'trim' => 0,
5963
-        'max_length' => '',
5964
-        'word_boundary' => 1,
5965
-        'ellipsis' => 1,
5966
-        'html' => 0,
5967
-        'strip_tags' => 0,
5968
-      ),
5969
-      'empty' => '',
5970
-      'hide_empty' => 0,
5971
-      'empty_zero' => 0,
5972
-      'exclude' => 0,
5973
-      'id' => 'rownumber',
5974
-      'table' => 'customfield',
5975
-      'field' => 'rownumber',
5976
-      'relationship' => 'none',
5977
-    ),
5978
-    'phpcode_5' => array(
5979
-      'label' => 'Owner',
5980
-      'alter' => array(
5981
-        'alter_text' => 0,
5982
-        'text' => '',
5983
-        'make_link' => 0,
5984
-        'path' => '',
5985
-        'absolute' => 0,
5986
-        'link_class' => '',
5987
-        'alt' => '',
5988
-        'rel' => '',
5989
-        'prefix' => '',
5990
-        'suffix' => '',
5991
-        'target' => '',
5992
-        'help' => '',
5993
-        'trim' => 0,
5994
-        'max_length' => '',
5995
-        'word_boundary' => 1,
5996
-        'ellipsis' => 1,
5997
-        'html' => 0,
5998
-        'strip_tags' => 0,
5999
-      ),
6000
-      'empty' => '',
6001
-      'hide_empty' => 0,
6002
-      'empty_zero' => 0,
6003
-      'hide_alter_empty' => 1,
6004
-      'value' => '<?php 
5940
+  'exclude' => 0,
5941
+  'id' => 'phpcode_4',
5942
+  'table' => 'customfield',
5943
+  'field' => 'phpcode',
5944
+  'relationship' => 'none',
5945
+  'override' => array(
5946
+    'button' => 'Use default',
5947
+  ),
5948
+),
5949
+'rownumber' => array(
5950
+  'label' => 'Rank',
5951
+  'alter' => array(
5952
+    'alter_text' => 0,
5953
+    'text' => '',
5954
+    'make_link' => 0,
5955
+    'path' => '',
5956
+    'link_class' => '',
5957
+    'alt' => '',
5958
+    'prefix' => '',
5959
+    'suffix' => '',
5960
+    'target' => '',
5961
+    'help' => '',
5962
+    'trim' => 0,
5963
+    'max_length' => '',
5964
+    'word_boundary' => 1,
5965
+    'ellipsis' => 1,
5966
+    'html' => 0,
5967
+    'strip_tags' => 0,
5968
+  ),
5969
+  'empty' => '',
5970
+  'hide_empty' => 0,
5971
+  'empty_zero' => 0,
5972
+  'exclude' => 0,
5973
+  'id' => 'rownumber',
5974
+  'table' => 'customfield',
5975
+  'field' => 'rownumber',
5976
+  'relationship' => 'none',
5977
+),
5978
+'phpcode_5' => array(
5979
+  'label' => 'Owner',
5980
+  'alter' => array(
5981
+    'alter_text' => 0,
5982
+    'text' => '',
5983
+    'make_link' => 0,
5984
+    'path' => '',
5985
+    'absolute' => 0,
5986
+    'link_class' => '',
5987
+    'alt' => '',
5988
+    'rel' => '',
5989
+    'prefix' => '',
5990
+    'suffix' => '',
5991
+    'target' => '',
5992
+    'help' => '',
5993
+    'trim' => 0,
5994
+    'max_length' => '',
5995
+    'word_boundary' => 1,
5996
+    'ellipsis' => 1,
5997
+    'html' => 0,
5998
+    'strip_tags' => 0,
5999
+  ),
6000
+  'empty' => '',
6001
+  'hide_empty' => 0,
6002
+  'empty_zero' => 0,
6003
+  'hide_alter_empty' => 1,
6004
+  'value' => '<?php 
6005 6005
 $uid = get_drupal_id($data->user_host_id);
6006 6006
 if ($data->user_host_show_hosts) {
6007 6007
   echo l($data->user_host_name, "account/{$uid}");
@@ -6009,775 +6009,775 @@  discard block
 block discarded – undo
6009 6009
 else {
6010 6010
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6011 6011
 }',
6012
-      'exclude' => 0,
6013
-      'id' => 'phpcode_5',
6014
-      'table' => 'customfield',
6015
-      'field' => 'phpcode',
6016
-      'override' => array(
6017
-        'button' => 'Use default',
6018
-      ),
6019
-      'relationship' => 'none',
6020
-    ),
6021
-    'expavg_credit' => array(
6022
-      'label' => 'Avg. credit',
6023
-      'alter' => array(
6024
-        'alter_text' => 0,
6025
-        'text' => '',
6026
-        'make_link' => 0,
6027
-        'path' => '',
6028
-        'link_class' => '',
6029
-        'alt' => '',
6030
-        'prefix' => '',
6031
-        'suffix' => '',
6032
-        'target' => '',
6033
-        'help' => '',
6034
-        'trim' => 0,
6035
-        'max_length' => '',
6036
-        'word_boundary' => 1,
6037
-        'ellipsis' => 1,
6038
-        'html' => 0,
6039
-        'strip_tags' => 0,
6040
-      ),
6041
-      'empty' => '',
6042
-      'hide_empty' => 0,
6043
-      'empty_zero' => 0,
6044
-      'set_precision' => 1,
6045
-      'precision' => '2',
6046
-      'decimal' => '.',
6047
-      'separator' => ',',
6048
-      'prefix' => '',
6049
-      'suffix' => '',
6050
-      'exclude' => 0,
6051
-      'id' => 'expavg_credit',
6052
-      'table' => 'host',
6053
-      'field' => 'expavg_credit',
6054
-      'relationship' => 'none',
6055
-    ),
6056
-    'total_credit' => array(
6057
-      'label' => 'Total credit',
6058
-      'alter' => array(
6059
-        'alter_text' => 0,
6060
-        'text' => '',
6061
-        'make_link' => 0,
6062
-        'path' => '',
6063
-        'absolute' => 0,
6064
-        'link_class' => '',
6065
-        'alt' => '',
6066
-        'rel' => '',
6067
-        'prefix' => '',
6068
-        'suffix' => '',
6069
-        'target' => '',
6070
-        'help' => '',
6071
-        'trim' => 0,
6072
-        'max_length' => '',
6073
-        'word_boundary' => 1,
6074
-        'ellipsis' => 1,
6075
-        'html' => 0,
6076
-        'strip_tags' => 0,
6077
-      ),
6078
-      'empty' => '',
6079
-      'hide_empty' => 0,
6080
-      'empty_zero' => 0,
6081
-      'hide_alter_empty' => 1,
6082
-      'set_precision' => 1,
6083
-      'precision' => '0',
6084
-      'decimal' => '.',
6085
-      'separator' => ',',
6086
-      'format_plural' => 0,
6087
-      'format_plural_singular' => '1',
6088
-      'format_plural_plural' => '@count',
6089
-      'prefix' => '',
6090
-      'suffix' => '',
6091
-      'exclude' => 0,
6092
-      'id' => 'total_credit',
6093
-      'table' => 'host',
6094
-      'field' => 'total_credit',
6095
-      'relationship' => 'none',
6096
-      'override' => array(
6097
-        'button' => 'Use default',
6098
-      ),
6099
-    ),
6100
-    'serialnum' => array(
6101
-      'label' => 'Serial Number',
6102
-      'alter' => array(
6103
-        'alter_text' => 0,
6104
-        'text' => '',
6105
-        'make_link' => 0,
6106
-        'path' => '',
6107
-        'link_class' => '',
6108
-        'alt' => '',
6109
-        'prefix' => '',
6110
-        'suffix' => '',
6111
-        'target' => '',
6112
-        'help' => '',
6113
-        'trim' => 0,
6114
-        'max_length' => '',
6115
-        'word_boundary' => 1,
6116
-        'ellipsis' => 1,
6117
-        'html' => 0,
6118
-        'strip_tags' => 0,
6119
-      ),
6120
-      'empty' => '',
6121
-      'hide_empty' => 0,
6122
-      'empty_zero' => 0,
6123
-      'exclude' => 1,
6124
-      'id' => 'serialnum',
6125
-      'table' => 'host',
6126
-      'field' => 'serialnum',
6127
-      'relationship' => 'none',
6128
-    ),
6129
-    'phpcode' => array(
6130
-      'label' => 'BOINC version',
6131
-      'alter' => array(
6132
-        'alter_text' => 0,
6133
-        'text' => '',
6134
-        'make_link' => 0,
6135
-        'path' => '',
6136
-        'link_class' => '',
6137
-        'alt' => '',
6138
-        'prefix' => '',
6139
-        'suffix' => '',
6140
-        'target' => '',
6141
-        'help' => '',
6142
-        'trim' => 0,
6143
-        'max_length' => '',
6144
-        'word_boundary' => 1,
6145
-        'ellipsis' => 1,
6146
-        'html' => 0,
6147
-        'strip_tags' => 0,
6148
-      ),
6149
-      'empty' => '',
6150
-      'hide_empty' => 0,
6151
-      'empty_zero' => 0,
6152
-      'value' => '<?php
6012
+  'exclude' => 0,
6013
+  'id' => 'phpcode_5',
6014
+  'table' => 'customfield',
6015
+  'field' => 'phpcode',
6016
+  'override' => array(
6017
+    'button' => 'Use default',
6018
+  ),
6019
+  'relationship' => 'none',
6020
+),
6021
+'expavg_credit' => array(
6022
+  'label' => 'Avg. credit',
6023
+  'alter' => array(
6024
+    'alter_text' => 0,
6025
+    'text' => '',
6026
+    'make_link' => 0,
6027
+    'path' => '',
6028
+    'link_class' => '',
6029
+    'alt' => '',
6030
+    'prefix' => '',
6031
+    'suffix' => '',
6032
+    'target' => '',
6033
+    'help' => '',
6034
+    'trim' => 0,
6035
+    'max_length' => '',
6036
+    'word_boundary' => 1,
6037
+    'ellipsis' => 1,
6038
+    'html' => 0,
6039
+    'strip_tags' => 0,
6040
+  ),
6041
+  'empty' => '',
6042
+  'hide_empty' => 0,
6043
+  'empty_zero' => 0,
6044
+  'set_precision' => 1,
6045
+  'precision' => '2',
6046
+  'decimal' => '.',
6047
+  'separator' => ',',
6048
+  'prefix' => '',
6049
+  'suffix' => '',
6050
+  'exclude' => 0,
6051
+  'id' => 'expavg_credit',
6052
+  'table' => 'host',
6053
+  'field' => 'expavg_credit',
6054
+  'relationship' => 'none',
6055
+),
6056
+'total_credit' => array(
6057
+  'label' => 'Total credit',
6058
+  'alter' => array(
6059
+    'alter_text' => 0,
6060
+    'text' => '',
6061
+    'make_link' => 0,
6062
+    'path' => '',
6063
+    'absolute' => 0,
6064
+    'link_class' => '',
6065
+    'alt' => '',
6066
+    'rel' => '',
6067
+    'prefix' => '',
6068
+    'suffix' => '',
6069
+    'target' => '',
6070
+    'help' => '',
6071
+    'trim' => 0,
6072
+    'max_length' => '',
6073
+    'word_boundary' => 1,
6074
+    'ellipsis' => 1,
6075
+    'html' => 0,
6076
+    'strip_tags' => 0,
6077
+  ),
6078
+  'empty' => '',
6079
+  'hide_empty' => 0,
6080
+  'empty_zero' => 0,
6081
+  'hide_alter_empty' => 1,
6082
+  'set_precision' => 1,
6083
+  'precision' => '0',
6084
+  'decimal' => '.',
6085
+  'separator' => ',',
6086
+  'format_plural' => 0,
6087
+  'format_plural_singular' => '1',
6088
+  'format_plural_plural' => '@count',
6089
+  'prefix' => '',
6090
+  'suffix' => '',
6091
+  'exclude' => 0,
6092
+  'id' => 'total_credit',
6093
+  'table' => 'host',
6094
+  'field' => 'total_credit',
6095
+  'relationship' => 'none',
6096
+  'override' => array(
6097
+    'button' => 'Use default',
6098
+  ),
6099
+),
6100
+'serialnum' => array(
6101
+  'label' => 'Serial Number',
6102
+  'alter' => array(
6103
+    'alter_text' => 0,
6104
+    'text' => '',
6105
+    'make_link' => 0,
6106
+    'path' => '',
6107
+    'link_class' => '',
6108
+    'alt' => '',
6109
+    'prefix' => '',
6110
+    'suffix' => '',
6111
+    'target' => '',
6112
+    'help' => '',
6113
+    'trim' => 0,
6114
+    'max_length' => '',
6115
+    'word_boundary' => 1,
6116
+    'ellipsis' => 1,
6117
+    'html' => 0,
6118
+    'strip_tags' => 0,
6119
+  ),
6120
+  'empty' => '',
6121
+  'hide_empty' => 0,
6122
+  'empty_zero' => 0,
6123
+  'exclude' => 1,
6124
+  'id' => 'serialnum',
6125
+  'table' => 'host',
6126
+  'field' => 'serialnum',
6127
+  'relationship' => 'none',
6128
+),
6129
+'phpcode' => array(
6130
+  'label' => 'BOINC version',
6131
+  'alter' => array(
6132
+    'alter_text' => 0,
6133
+    'text' => '',
6134
+    'make_link' => 0,
6135
+    'path' => '',
6136
+    'link_class' => '',
6137
+    'alt' => '',
6138
+    'prefix' => '',
6139
+    'suffix' => '',
6140
+    'target' => '',
6141
+    'help' => '',
6142
+    'trim' => 0,
6143
+    'max_length' => '',
6144
+    'word_boundary' => 1,
6145
+    'ellipsis' => 1,
6146
+    'html' => 0,
6147
+    'strip_tags' => 0,
6148
+  ),
6149
+  'empty' => '',
6150
+  'hide_empty' => 0,
6151
+  'empty_zero' => 0,
6152
+  'value' => '<?php
6153 6153
   require_boinc(\'host\');
6154 6154
   echo boinc_version($data->host_serialnum);
6155 6155
 ?>',
6156
-      'exclude' => 0,
6157
-      'id' => 'phpcode',
6158
-      'table' => 'customfield',
6159
-      'field' => 'phpcode',
6160
-      'relationship' => 'none',
6161
-    ),
6162
-    'p_vendor' => array(
6163
-      'label' => 'CPU',
6164
-      'alter' => array(
6165
-        'alter_text' => 0,
6166
-        'text' => '',
6167
-        'make_link' => 0,
6168
-        'path' => '',
6169
-        'link_class' => '',
6170
-        'alt' => '',
6171
-        'prefix' => '',
6172
-        'suffix' => '',
6173
-        'target' => '',
6174
-        'help' => '',
6175
-        'trim' => 0,
6176
-        'max_length' => '',
6177
-        'word_boundary' => 1,
6178
-        'ellipsis' => 1,
6179
-        'html' => 0,
6180
-        'strip_tags' => 0,
6181
-      ),
6182
-      'empty' => '',
6183
-      'hide_empty' => 0,
6184
-      'empty_zero' => 0,
6185
-      'exclude' => 0,
6186
-      'id' => 'p_vendor',
6187
-      'table' => 'host',
6188
-      'field' => 'p_vendor',
6189
-      'relationship' => 'none',
6190
-      'override' => array(
6191
-        'button' => 'Override',
6192
-      ),
6193
-    ),
6194
-    'p_model' => array(
6195
-      'label' => 'CPU model',
6196
-      'alter' => array(
6197
-        'alter_text' => 0,
6198
-        'text' => '',
6199
-        'make_link' => 0,
6200
-        'path' => '',
6201
-        'link_class' => '',
6202
-        'alt' => '',
6203
-        'prefix' => '',
6204
-        'suffix' => '',
6205
-        'target' => '',
6206
-        'help' => '',
6207
-        'trim' => 0,
6208
-        'max_length' => '',
6209
-        'word_boundary' => 1,
6210
-        'ellipsis' => 1,
6211
-        'html' => 0,
6212
-        'strip_tags' => 0,
6213
-      ),
6214
-      'empty' => '',
6215
-      'hide_empty' => 0,
6216
-      'empty_zero' => 0,
6217
-      'exclude' => 0,
6218
-      'id' => 'p_model',
6219
-      'table' => 'host',
6220
-      'field' => 'p_model',
6221
-      'relationship' => 'none',
6222
-    ),
6223
-    'p_ncpus' => array(
6224
-      'label' => 'Number of CPUs',
6225
-      'alter' => array(
6226
-        'alter_text' => 1,
6227
-        'text' => '([p_ncpus] processors)',
6228
-        'make_link' => 0,
6229
-        'path' => '',
6230
-        'link_class' => '',
6231
-        'alt' => '',
6232
-        'prefix' => '',
6233
-        'suffix' => '',
6234
-        'target' => '',
6235
-        'help' => '',
6236
-        'trim' => 0,
6237
-        'max_length' => '',
6238
-        'word_boundary' => 1,
6239
-        'ellipsis' => 1,
6240
-        'html' => 0,
6241
-        'strip_tags' => 0,
6242
-      ),
6243
-      'empty' => '',
6244
-      'hide_empty' => 0,
6245
-      'empty_zero' => 0,
6246
-      'exclude' => 0,
6247
-      'id' => 'p_ncpus',
6248
-      'table' => 'host',
6249
-      'field' => 'p_ncpus',
6250
-      'relationship' => 'none',
6251
-    ),
6252
-    'phpcode_1' => array(
6253
-      'label' => 'GPU',
6254
-      'alter' => array(
6255
-        'alter_text' => 0,
6256
-        'text' => '',
6257
-        'make_link' => 0,
6258
-        'path' => '',
6259
-        'link_class' => '',
6260
-        'alt' => '',
6261
-        'prefix' => '',
6262
-        'suffix' => '',
6263
-        'target' => '',
6264
-        'help' => '',
6265
-        'trim' => 0,
6266
-        'max_length' => '',
6267
-        'word_boundary' => 1,
6268
-        'ellipsis' => 1,
6269
-        'html' => 0,
6270
-        'strip_tags' => 0,
6271
-      ),
6272
-      'empty' => '',
6273
-      'hide_empty' => 0,
6274
-      'empty_zero' => 0,
6275
-      'value' => '<?php
6156
+  'exclude' => 0,
6157
+  'id' => 'phpcode',
6158
+  'table' => 'customfield',
6159
+  'field' => 'phpcode',
6160
+  'relationship' => 'none',
6161
+),
6162
+'p_vendor' => array(
6163
+  'label' => 'CPU',
6164
+  'alter' => array(
6165
+    'alter_text' => 0,
6166
+    'text' => '',
6167
+    'make_link' => 0,
6168
+    'path' => '',
6169
+    'link_class' => '',
6170
+    'alt' => '',
6171
+    'prefix' => '',
6172
+    'suffix' => '',
6173
+    'target' => '',
6174
+    'help' => '',
6175
+    'trim' => 0,
6176
+    'max_length' => '',
6177
+    'word_boundary' => 1,
6178
+    'ellipsis' => 1,
6179
+    'html' => 0,
6180
+    'strip_tags' => 0,
6181
+  ),
6182
+  'empty' => '',
6183
+  'hide_empty' => 0,
6184
+  'empty_zero' => 0,
6185
+  'exclude' => 0,
6186
+  'id' => 'p_vendor',
6187
+  'table' => 'host',
6188
+  'field' => 'p_vendor',
6189
+  'relationship' => 'none',
6190
+  'override' => array(
6191
+    'button' => 'Override',
6192
+  ),
6193
+),
6194
+'p_model' => array(
6195
+  'label' => 'CPU model',
6196
+  'alter' => array(
6197
+    'alter_text' => 0,
6198
+    'text' => '',
6199
+    'make_link' => 0,
6200
+    'path' => '',
6201
+    'link_class' => '',
6202
+    'alt' => '',
6203
+    'prefix' => '',
6204
+    'suffix' => '',
6205
+    'target' => '',
6206
+    'help' => '',
6207
+    'trim' => 0,
6208
+    'max_length' => '',
6209
+    'word_boundary' => 1,
6210
+    'ellipsis' => 1,
6211
+    'html' => 0,
6212
+    'strip_tags' => 0,
6213
+  ),
6214
+  'empty' => '',
6215
+  'hide_empty' => 0,
6216
+  'empty_zero' => 0,
6217
+  'exclude' => 0,
6218
+  'id' => 'p_model',
6219
+  'table' => 'host',
6220
+  'field' => 'p_model',
6221
+  'relationship' => 'none',
6222
+),
6223
+'p_ncpus' => array(
6224
+  'label' => 'Number of CPUs',
6225
+  'alter' => array(
6226
+    'alter_text' => 1,
6227
+    'text' => '([p_ncpus] processors)',
6228
+    'make_link' => 0,
6229
+    'path' => '',
6230
+    'link_class' => '',
6231
+    'alt' => '',
6232
+    'prefix' => '',
6233
+    'suffix' => '',
6234
+    'target' => '',
6235
+    'help' => '',
6236
+    'trim' => 0,
6237
+    'max_length' => '',
6238
+    'word_boundary' => 1,
6239
+    'ellipsis' => 1,
6240
+    'html' => 0,
6241
+    'strip_tags' => 0,
6242
+  ),
6243
+  'empty' => '',
6244
+  'hide_empty' => 0,
6245
+  'empty_zero' => 0,
6246
+  'exclude' => 0,
6247
+  'id' => 'p_ncpus',
6248
+  'table' => 'host',
6249
+  'field' => 'p_ncpus',
6250
+  'relationship' => 'none',
6251
+),
6252
+'phpcode_1' => array(
6253
+  'label' => 'GPU',
6254
+  'alter' => array(
6255
+    'alter_text' => 0,
6256
+    'text' => '',
6257
+    'make_link' => 0,
6258
+    'path' => '',
6259
+    'link_class' => '',
6260
+    'alt' => '',
6261
+    'prefix' => '',
6262
+    'suffix' => '',
6263
+    'target' => '',
6264
+    'help' => '',
6265
+    'trim' => 0,
6266
+    'max_length' => '',
6267
+    'word_boundary' => 1,
6268
+    'ellipsis' => 1,
6269
+    'html' => 0,
6270
+    'strip_tags' => 0,
6271
+  ),
6272
+  'empty' => '',
6273
+  'hide_empty' => 0,
6274
+  'empty_zero' => 0,
6275
+  'value' => '<?php
6276 6276
   require_boinc(\'host\');
6277 6277
   echo gpu_desc($data->host_serialnum);
6278 6278
 ?>',
6279
-      'exclude' => 0,
6280
-      'id' => 'phpcode_1',
6281
-      'table' => 'customfield',
6282
-      'field' => 'phpcode',
6283
-      'relationship' => 'none',
6284
-    ),
6285
-    'os_name' => array(
6286
-      'label' => 'Operating system',
6287
-      'alter' => array(
6288
-        'alter_text' => 0,
6289
-        'text' => '',
6290
-        'make_link' => 0,
6291
-        'path' => '',
6292
-        'link_class' => '',
6293
-        'alt' => '',
6294
-        'prefix' => '',
6295
-        'suffix' => '',
6296
-        'target' => '',
6297
-        'help' => '',
6298
-        'trim' => 0,
6299
-        'max_length' => '',
6300
-        'word_boundary' => 1,
6301
-        'ellipsis' => 1,
6302
-        'html' => 0,
6303
-        'strip_tags' => 0,
6304
-      ),
6305
-      'empty' => '',
6306
-      'hide_empty' => 0,
6307
-      'empty_zero' => 0,
6308
-      'exclude' => 0,
6309
-      'id' => 'os_name',
6310
-      'table' => 'host',
6311
-      'field' => 'os_name',
6312
-      'relationship' => 'none',
6313
-    ),
6314
-    'os_version' => array(
6315
-      'label' => 'Operating system version',
6316
-      'alter' => array(
6317
-        'alter_text' => 0,
6318
-        'text' => '',
6319
-        'make_link' => 0,
6320
-        'path' => '',
6321
-        'link_class' => '',
6322
-        'alt' => '',
6323
-        'prefix' => '',
6324
-        'suffix' => '',
6325
-        'target' => '',
6326
-        'help' => '',
6327
-        'trim' => 0,
6328
-        'max_length' => '',
6329
-        'word_boundary' => 1,
6330
-        'ellipsis' => 1,
6331
-        'html' => 0,
6332
-        'strip_tags' => 0,
6333
-      ),
6334
-      'empty' => '',
6335
-      'hide_empty' => 0,
6336
-      'empty_zero' => 0,
6337
-      'exclude' => 0,
6338
-      'id' => 'os_version',
6339
-      'table' => 'host',
6340
-      'field' => 'os_version',
6341
-      'relationship' => 'none',
6342
-    ),
6343
-  ));
6344
-  $handler->override_option('arguments', array());
6345
-  $handler->override_option('filters', array(
6346
-    'total_credit' => array(
6347
-      'operator' => '>=',
6348
-      'value' => array(
6349
-        'value' => '1',
6350
-        'min' => '',
6351
-        'max' => '',
6352
-      ),
6353
-      'group' => '0',
6354
-      'exposed' => FALSE,
6355
-      'expose' => array(
6356
-        'operator' => FALSE,
6357
-        'label' => '',
6358
-      ),
6359
-      'id' => 'total_credit',
6360
-      'table' => 'host',
6361
-      'field' => 'total_credit',
6362
-      'override' => array(
6363
-        'button' => 'Use default',
6364
-      ),
6365
-      'relationship' => 'none',
6366
-    ),
6367
-  ));
6368
-  $handler->override_option('items_per_page', 50);
6369
-  $handler->override_option('use_pager', '0');
6370
-  $handler->override_option('style_options', array(
6371
-    'grouping' => '',
6372
-    'override' => 1,
6373
-    'sticky' => 1,
6374
-    'order' => 'desc',
6375
-    'summary' => '',
6376
-    'columns' => array(
6377
-      'id_1' => 'id_1',
6378
-      'name' => 'name',
6379
-      'show_hosts' => 'show_hosts',
6380
-      'id' => 'id',
6381
-      'phpcode_3' => 'id',
6382
-      'host_cpid' => 'host_cpid',
6383
-      'phpcode_4' => 'id',
6384
-      'rownumber' => 'rownumber',
6385
-      'phpcode_5' => 'phpcode_5',
6386
-      'expavg_credit' => 'expavg_credit',
6387
-      'total_credit' => 'total_credit',
6388
-      'serialnum' => 'serialnum',
6389
-      'phpcode' => 'phpcode',
6390
-      'p_vendor' => 'p_vendor',
6391
-      'p_model' => 'p_vendor',
6392
-      'p_ncpus' => 'p_vendor',
6393
-      'phpcode_1' => 'phpcode_1',
6394
-      'os_name' => 'os_name',
6395
-      'os_version' => 'os_name',
6396
-    ),
6397
-    'info' => array(
6398
-      'id_1' => array(
6399
-        'sortable' => 0,
6400
-        'separator' => '',
6401
-      ),
6402
-      'name' => array(
6403
-        'sortable' => 0,
6404
-        'separator' => '',
6405
-      ),
6406
-      'show_hosts' => array(
6407
-        'sortable' => 0,
6408
-        'separator' => '',
6409
-      ),
6410
-      'id' => array(
6411
-        'sortable' => 0,
6412
-        'separator' => '<br/>',
6413
-      ),
6414
-      'phpcode_3' => array(
6415
-        'separator' => '',
6416
-      ),
6417
-      'host_cpid' => array(
6418
-        'sortable' => 0,
6419
-        'separator' => '',
6420
-      ),
6421
-      'phpcode_4' => array(
6422
-        'separator' => '',
6423
-      ),
6424
-      'rownumber' => array(
6425
-        'separator' => '',
6426
-      ),
6427
-      'phpcode_5' => array(
6428
-        'separator' => '',
6429
-      ),
6430
-      'expavg_credit' => array(
6431
-        'sortable' => 1,
6432
-        'separator' => '',
6433
-      ),
6434
-      'total_credit' => array(
6435
-        'sortable' => 1,
6436
-        'separator' => '',
6437
-      ),
6438
-      'serialnum' => array(
6439
-        'sortable' => 0,
6440
-        'separator' => '',
6441
-      ),
6442
-      'phpcode' => array(
6443
-        'separator' => '',
6444
-      ),
6445
-      'p_vendor' => array(
6446
-        'sortable' => 0,
6447
-        'separator' => '<br/>',
6448
-      ),
6449
-      'p_model' => array(
6450
-        'sortable' => 0,
6451
-        'separator' => '',
6452
-      ),
6453
-      'p_ncpus' => array(
6454
-        'sortable' => 0,
6455
-        'separator' => '',
6456
-      ),
6457
-      'phpcode_1' => array(
6458
-        'separator' => '',
6459
-      ),
6460
-      'os_name' => array(
6461
-        'sortable' => 0,
6462
-        'separator' => '<br/>',
6463
-      ),
6464
-      'os_version' => array(
6465
-        'sortable' => 0,
6466
-        'separator' => '',
6467
-      ),
6468
-    ),
6469
-    'default' => 'expavg_credit',
6470
-  ));
6471
-  $handler->override_option('path', 'community/stats/hosts');
6472
-  $handler->override_option('menu', array(
6473
-    'type' => 'tab',
6474
-    'title' => 'Top Computers',
6475
-    'description' => '',
6476
-    'weight' => '10',
6477
-    'name' => 'primary-links',
6478
-  ));
6479
-  $handler->override_option('tab_options', array(
6480
-    'type' => 'none',
6481
-    'title' => '',
6482
-    'description' => '',
6483
-    'weight' => 0,
6484
-    'name' => 'navigation',
6485
-  ));
6486
-  $handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6487
-  $handler->override_option('fields', array(
6488
-    'id_1' => array(
6489
-      'label' => 'Id',
6490
-      'alter' => array(
6491
-        'alter_text' => 0,
6492
-        'text' => '',
6493
-        'make_link' => 0,
6494
-        'path' => '',
6495
-        'absolute' => 0,
6496
-        'link_class' => '',
6497
-        'alt' => '',
6498
-        'rel' => '',
6499
-        'prefix' => '',
6500
-        'suffix' => '',
6501
-        'target' => '',
6502
-        'help' => '',
6503
-        'trim' => 0,
6504
-        'max_length' => '',
6505
-        'word_boundary' => 1,
6506
-        'ellipsis' => 1,
6507
-        'html' => 0,
6508
-        'strip_tags' => 0,
6509
-      ),
6510
-      'empty' => '',
6511
-      'hide_empty' => 0,
6512
-      'empty_zero' => 0,
6513
-      'hide_alter_empty' => 1,
6514
-      'set_precision' => FALSE,
6515
-      'precision' => 0,
6516
-      'decimal' => '.',
6517
-      'separator' => '',
6518
-      'format_plural' => 0,
6519
-      'format_plural_singular' => '1',
6520
-      'format_plural_plural' => '@count',
6521
-      'prefix' => '',
6522
-      'suffix' => '',
6523
-      'exclude' => 1,
6524
-      'id' => 'id_1',
6525
-      'table' => 'user',
6526
-      'field' => 'id',
6527
-      'relationship' => 'userid',
6528
-      'override' => array(
6529
-        'button' => 'Use default',
6530
-      ),
6531
-    ),
6532
-    'name' => array(
6533
-      'label' => 'Name',
6534
-      'alter' => array(
6535
-        'alter_text' => 0,
6536
-        'text' => '',
6537
-        'make_link' => 0,
6538
-        'path' => '',
6539
-        'absolute' => 0,
6540
-        'link_class' => '',
6541
-        'alt' => '',
6542
-        'rel' => '',
6543
-        'prefix' => '',
6544
-        'suffix' => '',
6545
-        'target' => '',
6546
-        'help' => '',
6547
-        'trim' => 0,
6548
-        'max_length' => '',
6549
-        'word_boundary' => 1,
6550
-        'ellipsis' => 1,
6551
-        'html' => 0,
6552
-        'strip_tags' => 0,
6553
-      ),
6554
-      'empty' => '',
6555
-      'hide_empty' => 0,
6556
-      'empty_zero' => 0,
6557
-      'hide_alter_empty' => 1,
6558
-      'exclude' => 1,
6559
-      'id' => 'name',
6560
-      'table' => 'user',
6561
-      'field' => 'name',
6562
-      'relationship' => 'userid',
6563
-      'override' => array(
6564
-        'button' => 'Use default',
6565
-      ),
6566
-    ),
6567
-    'show_hosts' => array(
6568
-      'label' => 'Show Hosts',
6569
-      'alter' => array(
6570
-        'alter_text' => 0,
6571
-        'text' => '',
6572
-        'make_link' => 0,
6573
-        'path' => '',
6574
-        'absolute' => 0,
6575
-        'link_class' => '',
6576
-        'alt' => '',
6577
-        'rel' => '',
6578
-        'prefix' => '',
6579
-        'suffix' => '',
6580
-        'target' => '',
6581
-        'help' => '',
6582
-        'trim' => 0,
6583
-        'max_length' => '',
6584
-        'word_boundary' => 1,
6585
-        'ellipsis' => 1,
6586
-        'html' => 0,
6587
-        'strip_tags' => 0,
6588
-      ),
6589
-      'empty' => '',
6590
-      'hide_empty' => 0,
6591
-      'empty_zero' => 0,
6592
-      'hide_alter_empty' => 1,
6593
-      'set_precision' => FALSE,
6594
-      'precision' => 0,
6595
-      'decimal' => '.',
6596
-      'separator' => '',
6597
-      'format_plural' => 0,
6598
-      'format_plural_singular' => '1',
6599
-      'format_plural_plural' => '@count',
6600
-      'prefix' => '',
6601
-      'suffix' => '',
6602
-      'exclude' => 1,
6603
-      'id' => 'show_hosts',
6604
-      'table' => 'user',
6605
-      'field' => 'show_hosts',
6606
-      'relationship' => 'userid',
6607
-      'override' => array(
6608
-        'button' => 'Use default',
6609
-      ),
6610
-    ),
6611
-    'rownumber' => array(
6612
-      'label' => 'Rank',
6613
-      'alter' => array(
6614
-        'alter_text' => 0,
6615
-        'text' => '',
6616
-        'make_link' => 0,
6617
-        'path' => '',
6618
-        'link_class' => '',
6619
-        'alt' => '',
6620
-        'prefix' => '',
6621
-        'suffix' => '',
6622
-        'target' => '',
6623
-        'help' => '',
6624
-        'trim' => 0,
6625
-        'max_length' => '',
6626
-        'word_boundary' => 1,
6627
-        'ellipsis' => 1,
6628
-        'html' => 0,
6629
-        'strip_tags' => 0,
6630
-      ),
6631
-      'empty' => '',
6632
-      'hide_empty' => 0,
6633
-      'empty_zero' => 0,
6634
-      'exclude' => 0,
6635
-      'id' => 'rownumber',
6636
-      'table' => 'customfield',
6637
-      'field' => 'rownumber',
6638
-      'relationship' => 'none',
6639
-    ),
6640
-    'id' => array(
6641
-      'label' => 'Computer ID',
6642
-      'alter' => array(
6643
-        'alter_text' => 0,
6644
-        'text' => 'ID: [id]
6279
+  'exclude' => 0,
6280
+  'id' => 'phpcode_1',
6281
+  'table' => 'customfield',
6282
+  'field' => 'phpcode',
6283
+  'relationship' => 'none',
6284
+),
6285
+'os_name' => array(
6286
+  'label' => 'Operating system',
6287
+  'alter' => array(
6288
+    'alter_text' => 0,
6289
+    'text' => '',
6290
+    'make_link' => 0,
6291
+    'path' => '',
6292
+    'link_class' => '',
6293
+    'alt' => '',
6294
+    'prefix' => '',
6295
+    'suffix' => '',
6296
+    'target' => '',
6297
+    'help' => '',
6298
+    'trim' => 0,
6299
+    'max_length' => '',
6300
+    'word_boundary' => 1,
6301
+    'ellipsis' => 1,
6302
+    'html' => 0,
6303
+    'strip_tags' => 0,
6304
+  ),
6305
+  'empty' => '',
6306
+  'hide_empty' => 0,
6307
+  'empty_zero' => 0,
6308
+  'exclude' => 0,
6309
+  'id' => 'os_name',
6310
+  'table' => 'host',
6311
+  'field' => 'os_name',
6312
+  'relationship' => 'none',
6313
+),
6314
+'os_version' => array(
6315
+  'label' => 'Operating system version',
6316
+  'alter' => array(
6317
+    'alter_text' => 0,
6318
+    'text' => '',
6319
+    'make_link' => 0,
6320
+    'path' => '',
6321
+    'link_class' => '',
6322
+    'alt' => '',
6323
+    'prefix' => '',
6324
+    'suffix' => '',
6325
+    'target' => '',
6326
+    'help' => '',
6327
+    'trim' => 0,
6328
+    'max_length' => '',
6329
+    'word_boundary' => 1,
6330
+    'ellipsis' => 1,
6331
+    'html' => 0,
6332
+    'strip_tags' => 0,
6333
+  ),
6334
+  'empty' => '',
6335
+  'hide_empty' => 0,
6336
+  'empty_zero' => 0,
6337
+  'exclude' => 0,
6338
+  'id' => 'os_version',
6339
+  'table' => 'host',
6340
+  'field' => 'os_version',
6341
+  'relationship' => 'none',
6342
+),
6343
+));
6344
+$handler->override_option('arguments', array());
6345
+$handler->override_option('filters', array(
6346
+'total_credit' => array(
6347
+  'operator' => '>=',
6348
+  'value' => array(
6349
+    'value' => '1',
6350
+    'min' => '',
6351
+    'max' => '',
6352
+  ),
6353
+  'group' => '0',
6354
+  'exposed' => FALSE,
6355
+  'expose' => array(
6356
+    'operator' => FALSE,
6357
+    'label' => '',
6358
+  ),
6359
+  'id' => 'total_credit',
6360
+  'table' => 'host',
6361
+  'field' => 'total_credit',
6362
+  'override' => array(
6363
+    'button' => 'Use default',
6364
+  ),
6365
+  'relationship' => 'none',
6366
+),
6367
+));
6368
+$handler->override_option('items_per_page', 50);
6369
+$handler->override_option('use_pager', '0');
6370
+$handler->override_option('style_options', array(
6371
+'grouping' => '',
6372
+'override' => 1,
6373
+'sticky' => 1,
6374
+'order' => 'desc',
6375
+'summary' => '',
6376
+'columns' => array(
6377
+  'id_1' => 'id_1',
6378
+  'name' => 'name',
6379
+  'show_hosts' => 'show_hosts',
6380
+  'id' => 'id',
6381
+  'phpcode_3' => 'id',
6382
+  'host_cpid' => 'host_cpid',
6383
+  'phpcode_4' => 'id',
6384
+  'rownumber' => 'rownumber',
6385
+  'phpcode_5' => 'phpcode_5',
6386
+  'expavg_credit' => 'expavg_credit',
6387
+  'total_credit' => 'total_credit',
6388
+  'serialnum' => 'serialnum',
6389
+  'phpcode' => 'phpcode',
6390
+  'p_vendor' => 'p_vendor',
6391
+  'p_model' => 'p_vendor',
6392
+  'p_ncpus' => 'p_vendor',
6393
+  'phpcode_1' => 'phpcode_1',
6394
+  'os_name' => 'os_name',
6395
+  'os_version' => 'os_name',
6396
+),
6397
+'info' => array(
6398
+  'id_1' => array(
6399
+    'sortable' => 0,
6400
+    'separator' => '',
6401
+  ),
6402
+  'name' => array(
6403
+    'sortable' => 0,
6404
+    'separator' => '',
6405
+  ),
6406
+  'show_hosts' => array(
6407
+    'sortable' => 0,
6408
+    'separator' => '',
6409
+  ),
6410
+  'id' => array(
6411
+    'sortable' => 0,
6412
+    'separator' => '<br/>',
6413
+  ),
6414
+  'phpcode_3' => array(
6415
+    'separator' => '',
6416
+  ),
6417
+  'host_cpid' => array(
6418
+    'sortable' => 0,
6419
+    'separator' => '',
6420
+  ),
6421
+  'phpcode_4' => array(
6422
+    'separator' => '',
6423
+  ),
6424
+  'rownumber' => array(
6425
+    'separator' => '',
6426
+  ),
6427
+  'phpcode_5' => array(
6428
+    'separator' => '',
6429
+  ),
6430
+  'expavg_credit' => array(
6431
+    'sortable' => 1,
6432
+    'separator' => '',
6433
+  ),
6434
+  'total_credit' => array(
6435
+    'sortable' => 1,
6436
+    'separator' => '',
6437
+  ),
6438
+  'serialnum' => array(
6439
+    'sortable' => 0,
6440
+    'separator' => '',
6441
+  ),
6442
+  'phpcode' => array(
6443
+    'separator' => '',
6444
+  ),
6445
+  'p_vendor' => array(
6446
+    'sortable' => 0,
6447
+    'separator' => '<br/>',
6448
+  ),
6449
+  'p_model' => array(
6450
+    'sortable' => 0,
6451
+    'separator' => '',
6452
+  ),
6453
+  'p_ncpus' => array(
6454
+    'sortable' => 0,
6455
+    'separator' => '',
6456
+  ),
6457
+  'phpcode_1' => array(
6458
+    'separator' => '',
6459
+  ),
6460
+  'os_name' => array(
6461
+    'sortable' => 0,
6462
+    'separator' => '<br/>',
6463
+  ),
6464
+  'os_version' => array(
6465
+    'sortable' => 0,
6466
+    'separator' => '',
6467
+  ),
6468
+),
6469
+'default' => 'expavg_credit',
6470
+));
6471
+$handler->override_option('path', 'community/stats/hosts');
6472
+$handler->override_option('menu', array(
6473
+'type' => 'tab',
6474
+'title' => 'Top Computers',
6475
+'description' => '',
6476
+'weight' => '10',
6477
+'name' => 'primary-links',
6478
+));
6479
+$handler->override_option('tab_options', array(
6480
+'type' => 'none',
6481
+'title' => '',
6482
+'description' => '',
6483
+'weight' => 0,
6484
+'name' => 'navigation',
6485
+));
6486
+$handler = $view->new_display('panel_pane', 'Top hosts pane', 'panel_pane_1');
6487
+$handler->override_option('fields', array(
6488
+'id_1' => array(
6489
+  'label' => 'Id',
6490
+  'alter' => array(
6491
+    'alter_text' => 0,
6492
+    'text' => '',
6493
+    'make_link' => 0,
6494
+    'path' => '',
6495
+    'absolute' => 0,
6496
+    'link_class' => '',
6497
+    'alt' => '',
6498
+    'rel' => '',
6499
+    'prefix' => '',
6500
+    'suffix' => '',
6501
+    'target' => '',
6502
+    'help' => '',
6503
+    'trim' => 0,
6504
+    'max_length' => '',
6505
+    'word_boundary' => 1,
6506
+    'ellipsis' => 1,
6507
+    'html' => 0,
6508
+    'strip_tags' => 0,
6509
+  ),
6510
+  'empty' => '',
6511
+  'hide_empty' => 0,
6512
+  'empty_zero' => 0,
6513
+  'hide_alter_empty' => 1,
6514
+  'set_precision' => FALSE,
6515
+  'precision' => 0,
6516
+  'decimal' => '.',
6517
+  'separator' => '',
6518
+  'format_plural' => 0,
6519
+  'format_plural_singular' => '1',
6520
+  'format_plural_plural' => '@count',
6521
+  'prefix' => '',
6522
+  'suffix' => '',
6523
+  'exclude' => 1,
6524
+  'id' => 'id_1',
6525
+  'table' => 'user',
6526
+  'field' => 'id',
6527
+  'relationship' => 'userid',
6528
+  'override' => array(
6529
+    'button' => 'Use default',
6530
+  ),
6531
+),
6532
+'name' => array(
6533
+  'label' => 'Name',
6534
+  'alter' => array(
6535
+    'alter_text' => 0,
6536
+    'text' => '',
6537
+    'make_link' => 0,
6538
+    'path' => '',
6539
+    'absolute' => 0,
6540
+    'link_class' => '',
6541
+    'alt' => '',
6542
+    'rel' => '',
6543
+    'prefix' => '',
6544
+    'suffix' => '',
6545
+    'target' => '',
6546
+    'help' => '',
6547
+    'trim' => 0,
6548
+    'max_length' => '',
6549
+    'word_boundary' => 1,
6550
+    'ellipsis' => 1,
6551
+    'html' => 0,
6552
+    'strip_tags' => 0,
6553
+  ),
6554
+  'empty' => '',
6555
+  'hide_empty' => 0,
6556
+  'empty_zero' => 0,
6557
+  'hide_alter_empty' => 1,
6558
+  'exclude' => 1,
6559
+  'id' => 'name',
6560
+  'table' => 'user',
6561
+  'field' => 'name',
6562
+  'relationship' => 'userid',
6563
+  'override' => array(
6564
+    'button' => 'Use default',
6565
+  ),
6566
+),
6567
+'show_hosts' => array(
6568
+  'label' => 'Show Hosts',
6569
+  'alter' => array(
6570
+    'alter_text' => 0,
6571
+    'text' => '',
6572
+    'make_link' => 0,
6573
+    'path' => '',
6574
+    'absolute' => 0,
6575
+    'link_class' => '',
6576
+    'alt' => '',
6577
+    'rel' => '',
6578
+    'prefix' => '',
6579
+    'suffix' => '',
6580
+    'target' => '',
6581
+    'help' => '',
6582
+    'trim' => 0,
6583
+    'max_length' => '',
6584
+    'word_boundary' => 1,
6585
+    'ellipsis' => 1,
6586
+    'html' => 0,
6587
+    'strip_tags' => 0,
6588
+  ),
6589
+  'empty' => '',
6590
+  'hide_empty' => 0,
6591
+  'empty_zero' => 0,
6592
+  'hide_alter_empty' => 1,
6593
+  'set_precision' => FALSE,
6594
+  'precision' => 0,
6595
+  'decimal' => '.',
6596
+  'separator' => '',
6597
+  'format_plural' => 0,
6598
+  'format_plural_singular' => '1',
6599
+  'format_plural_plural' => '@count',
6600
+  'prefix' => '',
6601
+  'suffix' => '',
6602
+  'exclude' => 1,
6603
+  'id' => 'show_hosts',
6604
+  'table' => 'user',
6605
+  'field' => 'show_hosts',
6606
+  'relationship' => 'userid',
6607
+  'override' => array(
6608
+    'button' => 'Use default',
6609
+  ),
6610
+),
6611
+'rownumber' => array(
6612
+  'label' => 'Rank',
6613
+  'alter' => array(
6614
+    'alter_text' => 0,
6615
+    'text' => '',
6616
+    'make_link' => 0,
6617
+    'path' => '',
6618
+    'link_class' => '',
6619
+    'alt' => '',
6620
+    'prefix' => '',
6621
+    'suffix' => '',
6622
+    'target' => '',
6623
+    'help' => '',
6624
+    'trim' => 0,
6625
+    'max_length' => '',
6626
+    'word_boundary' => 1,
6627
+    'ellipsis' => 1,
6628
+    'html' => 0,
6629
+    'strip_tags' => 0,
6630
+  ),
6631
+  'empty' => '',
6632
+  'hide_empty' => 0,
6633
+  'empty_zero' => 0,
6634
+  'exclude' => 0,
6635
+  'id' => 'rownumber',
6636
+  'table' => 'customfield',
6637
+  'field' => 'rownumber',
6638
+  'relationship' => 'none',
6639
+),
6640
+'id' => array(
6641
+  'label' => 'Computer ID',
6642
+  'alter' => array(
6643
+    'alter_text' => 0,
6644
+    'text' => 'ID: [id]
6645 6645
 <a href="">Details</a> | <a href="">Tasks</a>
6646 6646
 Cross-project stats:
6647 6647
 ...',
6648
-        'make_link' => 1,
6649
-        'path' => 'host/[id]',
6650
-        'absolute' => 0,
6651
-        'link_class' => '',
6652
-        'alt' => '',
6653
-        'rel' => '',
6654
-        'prefix' => '',
6655
-        'suffix' => '',
6656
-        'target' => '',
6657
-        'help' => '',
6658
-        'trim' => 0,
6659
-        'max_length' => '',
6660
-        'word_boundary' => 1,
6661
-        'ellipsis' => 1,
6662
-        'html' => 0,
6663
-        'strip_tags' => 0,
6664
-      ),
6665
-      'empty' => '',
6666
-      'hide_empty' => 0,
6667
-      'empty_zero' => 0,
6668
-      'hide_alter_empty' => 1,
6669
-      'set_precision' => FALSE,
6670
-      'precision' => 0,
6671
-      'decimal' => '.',
6672
-      'separator' => '',
6673
-      'format_plural' => 0,
6674
-      'format_plural_singular' => '1',
6675
-      'format_plural_plural' => '@count',
6676
-      'prefix' => '',
6677
-      'suffix' => '',
6678
-      'exclude' => 0,
6679
-      'id' => 'id',
6680
-      'table' => 'host',
6681
-      'field' => 'id',
6682
-      'relationship' => 'none',
6683
-      'override' => array(
6684
-        'button' => 'Use default',
6685
-      ),
6686
-    ),
6687
-    'phpcode_3' => array(
6688
-      'label' => 'Computer links',
6689
-      'alter' => array(
6690
-        'alter_text' => 0,
6691
-        'text' => '',
6692
-        'make_link' => 0,
6693
-        'path' => '',
6694
-        'absolute' => 0,
6695
-        'link_class' => '',
6696
-        'alt' => '',
6697
-        'rel' => '',
6698
-        'prefix' => '',
6699
-        'suffix' => '',
6700
-        'target' => '',
6701
-        'help' => '',
6702
-        'trim' => 0,
6703
-        'max_length' => '',
6704
-        'word_boundary' => 1,
6705
-        'ellipsis' => 1,
6706
-        'html' => 0,
6707
-        'strip_tags' => 0,
6708
-      ),
6709
-      'empty' => '',
6710
-      'hide_empty' => 0,
6711
-      'empty_zero' => 0,
6712
-      'hide_alter_empty' => 1,
6713
-      'value' => '<?php
6648
+    'make_link' => 1,
6649
+    'path' => 'host/[id]',
6650
+    'absolute' => 0,
6651
+    'link_class' => '',
6652
+    'alt' => '',
6653
+    'rel' => '',
6654
+    'prefix' => '',
6655
+    'suffix' => '',
6656
+    'target' => '',
6657
+    'help' => '',
6658
+    'trim' => 0,
6659
+    'max_length' => '',
6660
+    'word_boundary' => 1,
6661
+    'ellipsis' => 1,
6662
+    'html' => 0,
6663
+    'strip_tags' => 0,
6664
+  ),
6665
+  'empty' => '',
6666
+  'hide_empty' => 0,
6667
+  'empty_zero' => 0,
6668
+  'hide_alter_empty' => 1,
6669
+  'set_precision' => FALSE,
6670
+  'precision' => 0,
6671
+  'decimal' => '.',
6672
+  'separator' => '',
6673
+  'format_plural' => 0,
6674
+  'format_plural_singular' => '1',
6675
+  'format_plural_plural' => '@count',
6676
+  'prefix' => '',
6677
+  'suffix' => '',
6678
+  'exclude' => 0,
6679
+  'id' => 'id',
6680
+  'table' => 'host',
6681
+  'field' => 'id',
6682
+  'relationship' => 'none',
6683
+  'override' => array(
6684
+    'button' => 'Use default',
6685
+  ),
6686
+),
6687
+'phpcode_3' => array(
6688
+  'label' => 'Computer links',
6689
+  'alter' => array(
6690
+    'alter_text' => 0,
6691
+    'text' => '',
6692
+    'make_link' => 0,
6693
+    'path' => '',
6694
+    'absolute' => 0,
6695
+    'link_class' => '',
6696
+    'alt' => '',
6697
+    'rel' => '',
6698
+    'prefix' => '',
6699
+    'suffix' => '',
6700
+    'target' => '',
6701
+    'help' => '',
6702
+    'trim' => 0,
6703
+    'max_length' => '',
6704
+    'word_boundary' => 1,
6705
+    'ellipsis' => 1,
6706
+    'html' => 0,
6707
+    'strip_tags' => 0,
6708
+  ),
6709
+  'empty' => '',
6710
+  'hide_empty' => 0,
6711
+  'empty_zero' => 0,
6712
+  'hide_alter_empty' => 1,
6713
+  'value' => '<?php
6714 6714
   echo l(bts(\'Details\', array(), NULL, \'boinc:host-details\'), "host/{$data->id}") . \'&nbsp;|&nbsp;\' . l(bts(\'Tasks\', array(), NULL, \'boinc:host-tasks-link\'), "host/{$data->id}/tasks/0/0");
6715 6715
 ?>',
6716
-      'exclude' => 1,
6717
-      'id' => 'phpcode_3',
6718
-      'table' => 'customfield',
6719
-      'field' => 'phpcode',
6720
-      'relationship' => 'none',
6721
-      'override' => array(
6722
-        'button' => 'Use default',
6723
-      ),
6724
-    ),
6725
-    'host_cpid' => array(
6726
-      'label' => 'Cross project ID',
6727
-      'alter' => array(
6728
-        'alter_text' => 0,
6729
-        'text' => '',
6730
-        'make_link' => 0,
6731
-        'path' => '',
6732
-        'link_class' => '',
6733
-        'alt' => '',
6734
-        'prefix' => '',
6735
-        'suffix' => '',
6736
-        'target' => '',
6737
-        'help' => '',
6738
-        'trim' => 0,
6739
-        'max_length' => '',
6740
-        'word_boundary' => 1,
6741
-        'ellipsis' => 1,
6742
-        'html' => 0,
6743
-        'strip_tags' => 0,
6744
-      ),
6745
-      'empty' => '',
6746
-      'hide_empty' => 0,
6747
-      'empty_zero' => 0,
6748
-      'exclude' => 1,
6749
-      'id' => 'host_cpid',
6750
-      'table' => 'host',
6751
-      'field' => 'host_cpid',
6752
-      'relationship' => 'none',
6753
-    ),
6754
-    'phpcode_4' => array(
6755
-      'label' => 'Cross-project statistics',
6756
-      'alter' => array(
6757
-        'alter_text' => 0,
6758
-        'text' => '',
6759
-        'make_link' => 0,
6760
-        'path' => '',
6761
-        'absolute' => 0,
6762
-        'link_class' => '',
6763
-        'alt' => '',
6764
-        'rel' => '',
6765
-        'prefix' => '',
6766
-        'suffix' => '',
6767
-        'target' => '',
6768
-        'help' => '',
6769
-        'trim' => 0,
6770
-        'max_length' => '',
6771
-        'word_boundary' => 1,
6772
-        'ellipsis' => 1,
6773
-        'html' => 0,
6774
-        'strip_tags' => 0,
6775
-      ),
6776
-      'empty' => '',
6777
-      'hide_empty' => 0,
6778
-      'empty_zero' => 0,
6779
-      'hide_alter_empty' => 1,
6780
-      'value' => '<?php
6716
+  'exclude' => 1,
6717
+  'id' => 'phpcode_3',
6718
+  'table' => 'customfield',
6719
+  'field' => 'phpcode',
6720
+  'relationship' => 'none',
6721
+  'override' => array(
6722
+    'button' => 'Use default',
6723
+  ),
6724
+),
6725
+'host_cpid' => array(
6726
+  'label' => 'Cross project ID',
6727
+  'alter' => array(
6728
+    'alter_text' => 0,
6729
+    'text' => '',
6730
+    'make_link' => 0,
6731
+    'path' => '',
6732
+    'link_class' => '',
6733
+    'alt' => '',
6734
+    'prefix' => '',
6735
+    'suffix' => '',
6736
+    'target' => '',
6737
+    'help' => '',
6738
+    'trim' => 0,
6739
+    'max_length' => '',
6740
+    'word_boundary' => 1,
6741
+    'ellipsis' => 1,
6742
+    'html' => 0,
6743
+    'strip_tags' => 0,
6744
+  ),
6745
+  'empty' => '',
6746
+  'hide_empty' => 0,
6747
+  'empty_zero' => 0,
6748
+  'exclude' => 1,
6749
+  'id' => 'host_cpid',
6750
+  'table' => 'host',
6751
+  'field' => 'host_cpid',
6752
+  'relationship' => 'none',
6753
+),
6754
+'phpcode_4' => array(
6755
+  'label' => 'Cross-project statistics',
6756
+  'alter' => array(
6757
+    'alter_text' => 0,
6758
+    'text' => '',
6759
+    'make_link' => 0,
6760
+    'path' => '',
6761
+    'absolute' => 0,
6762
+    'link_class' => '',
6763
+    'alt' => '',
6764
+    'rel' => '',
6765
+    'prefix' => '',
6766
+    'suffix' => '',
6767
+    'target' => '',
6768
+    'help' => '',
6769
+    'trim' => 0,
6770
+    'max_length' => '',
6771
+    'word_boundary' => 1,
6772
+    'ellipsis' => 1,
6773
+    'html' => 0,
6774
+    'strip_tags' => 0,
6775
+  ),
6776
+  'empty' => '',
6777
+  'hide_empty' => 0,
6778
+  'empty_zero' => 0,
6779
+  'hide_alter_empty' => 1,
6780
+  'value' => '<?php
6781 6781
   require_boinc(\'stats_sites\');
6782 6782
   global $host_sites;
6783 6783
   $x = "";
@@ -6790,42 +6790,42 @@  discard block
 block discarded – undo
6790 6790
   }
6791 6791
   echo "Cross-project stats: {$x}";
6792 6792
 ?>',
6793
-      'exclude' => 1,
6794
-      'id' => 'phpcode_4',
6795
-      'table' => 'customfield',
6796
-      'field' => 'phpcode',
6797
-      'relationship' => 'none',
6798
-      'override' => array(
6799
-        'button' => 'Use default',
6800
-      ),
6801
-    ),
6802
-    'phpcode_5' => array(
6803
-      'label' => 'Owner',
6804
-      'alter' => array(
6805
-        'alter_text' => 0,
6806
-        'text' => '',
6807
-        'make_link' => 0,
6808
-        'path' => '',
6809
-        'absolute' => 0,
6810
-        'link_class' => '',
6811
-        'alt' => '',
6812
-        'rel' => '',
6813
-        'prefix' => '',
6814
-        'suffix' => '',
6815
-        'target' => '',
6816
-        'help' => '',
6817
-        'trim' => 0,
6818
-        'max_length' => '',
6819
-        'word_boundary' => 1,
6820
-        'ellipsis' => 1,
6821
-        'html' => 0,
6822
-        'strip_tags' => 0,
6823
-      ),
6824
-      'empty' => '',
6825
-      'hide_empty' => 0,
6826
-      'empty_zero' => 0,
6827
-      'hide_alter_empty' => 1,
6828
-      'value' => '<?php 
6793
+  'exclude' => 1,
6794
+  'id' => 'phpcode_4',
6795
+  'table' => 'customfield',
6796
+  'field' => 'phpcode',
6797
+  'relationship' => 'none',
6798
+  'override' => array(
6799
+    'button' => 'Use default',
6800
+  ),
6801
+),
6802
+'phpcode_5' => array(
6803
+  'label' => 'Owner',
6804
+  'alter' => array(
6805
+    'alter_text' => 0,
6806
+    'text' => '',
6807
+    'make_link' => 0,
6808
+    'path' => '',
6809
+    'absolute' => 0,
6810
+    'link_class' => '',
6811
+    'alt' => '',
6812
+    'rel' => '',
6813
+    'prefix' => '',
6814
+    'suffix' => '',
6815
+    'target' => '',
6816
+    'help' => '',
6817
+    'trim' => 0,
6818
+    'max_length' => '',
6819
+    'word_boundary' => 1,
6820
+    'ellipsis' => 1,
6821
+    'html' => 0,
6822
+    'strip_tags' => 0,
6823
+  ),
6824
+  'empty' => '',
6825
+  'hide_empty' => 0,
6826
+  'empty_zero' => 0,
6827
+  'hide_alter_empty' => 1,
6828
+  'value' => '<?php 
6829 6829
 $uid = get_drupal_id($data->user_host_id);
6830 6830
 if ($data->user_host_show_hosts) {
6831 6831
   echo l($data->user_host_name, "account/{$uid}");
@@ -6833,1042 +6833,1042 @@  discard block
 block discarded – undo
6833 6833
 else {
6834 6834
   echo bts(\'Anonymous\', array(), NULL, \'boinc:anonymous-user\');
6835 6835
 }',
6836
-      'exclude' => 0,
6837
-      'id' => 'phpcode_5',
6838
-      'table' => 'customfield',
6839
-      'field' => 'phpcode',
6840
-      'override' => array(
6841
-        'button' => 'Use default',
6842
-      ),
6843
-      'relationship' => 'none',
6844
-    ),
6845
-    'expavg_credit' => array(
6846
-      'label' => 'Recent average credit',
6847
-      'alter' => array(
6848
-        'alter_text' => 0,
6849
-        'text' => '',
6850
-        'make_link' => 0,
6851
-        'path' => '',
6852
-        'absolute' => 0,
6853
-        'link_class' => '',
6854
-        'alt' => '',
6855
-        'rel' => '',
6856
-        'prefix' => '',
6857
-        'suffix' => '',
6858
-        'target' => '',
6859
-        'help' => '',
6860
-        'trim' => 0,
6861
-        'max_length' => '',
6862
-        'word_boundary' => 1,
6863
-        'ellipsis' => 1,
6864
-        'html' => 0,
6865
-        'strip_tags' => 0,
6866
-      ),
6867
-      'empty' => '',
6868
-      'hide_empty' => 0,
6869
-      'empty_zero' => 0,
6870
-      'hide_alter_empty' => 1,
6871
-      'set_precision' => 1,
6872
-      'precision' => '2',
6873
-      'decimal' => '.',
6874
-      'separator' => ',',
6875
-      'format_plural' => 0,
6876
-      'format_plural_singular' => '1',
6877
-      'format_plural_plural' => '@count',
6878
-      'prefix' => '',
6879
-      'suffix' => '',
6880
-      'exclude' => 0,
6881
-      'id' => 'expavg_credit',
6882
-      'table' => 'host',
6883
-      'field' => 'expavg_credit',
6884
-      'relationship' => 'none',
6885
-      'override' => array(
6886
-        'button' => 'Use default',
6887
-      ),
6888
-    ),
6889
-    'total_credit' => array(
6890
-      'label' => 'Total credit',
6891
-      'alter' => array(
6892
-        'alter_text' => 0,
6893
-        'text' => '',
6894
-        'make_link' => 0,
6895
-        'path' => '',
6896
-        'absolute' => 0,
6897
-        'link_class' => '',
6898
-        'alt' => '',
6899
-        'rel' => '',
6900
-        'prefix' => '',
6901
-        'suffix' => '',
6902
-        'target' => '',
6903
-        'help' => '',
6904
-        'trim' => 0,
6905
-        'max_length' => '',
6906
-        'word_boundary' => 1,
6907
-        'ellipsis' => 1,
6908
-        'html' => 0,
6909
-        'strip_tags' => 0,
6910
-      ),
6911
-      'empty' => '',
6912
-      'hide_empty' => 0,
6913
-      'empty_zero' => 0,
6914
-      'hide_alter_empty' => 1,
6915
-      'set_precision' => 1,
6916
-      'precision' => '0',
6917
-      'decimal' => '.',
6918
-      'separator' => ',',
6919
-      'format_plural' => 0,
6920
-      'format_plural_singular' => '1',
6921
-      'format_plural_plural' => '@count',
6922
-      'prefix' => '',
6923
-      'suffix' => '',
6924
-      'exclude' => 0,
6925
-      'id' => 'total_credit',
6926
-      'table' => 'host',
6927
-      'field' => 'total_credit',
6928
-      'relationship' => 'none',
6929
-      'override' => array(
6930
-        'button' => 'Use default',
6931
-      ),
6932
-    ),
6933
-    'serialnum' => array(
6934
-      'label' => 'Serial Number',
6935
-      'alter' => array(
6936
-        'alter_text' => 0,
6937
-        'text' => '',
6938
-        'make_link' => 0,
6939
-        'path' => '',
6940
-        'link_class' => '',
6941
-        'alt' => '',
6942
-        'prefix' => '',
6943
-        'suffix' => '',
6944
-        'target' => '',
6945
-        'help' => '',
6946
-        'trim' => 0,
6947
-        'max_length' => '',
6948
-        'word_boundary' => 1,
6949
-        'ellipsis' => 1,
6950
-        'html' => 0,
6951
-        'strip_tags' => 0,
6952
-      ),
6953
-      'empty' => '',
6954
-      'hide_empty' => 0,
6955
-      'empty_zero' => 0,
6956
-      'exclude' => 1,
6957
-      'id' => 'serialnum',
6958
-      'table' => 'host',
6959
-      'field' => 'serialnum',
6960
-      'relationship' => 'none',
6961
-    ),
6962
-    'phpcode' => array(
6963
-      'label' => 'BOINC version',
6964
-      'alter' => array(
6965
-        'alter_text' => 0,
6966
-        'text' => '',
6967
-        'make_link' => 0,
6968
-        'path' => '',
6969
-        'absolute' => 0,
6970
-        'link_class' => '',
6971
-        'alt' => '',
6972
-        'rel' => '',
6973
-        'prefix' => '',
6974
-        'suffix' => '',
6975
-        'target' => '',
6976
-        'help' => '',
6977
-        'trim' => 0,
6978
-        'max_length' => '',
6979
-        'word_boundary' => 1,
6980
-        'ellipsis' => 1,
6981
-        'html' => 0,
6982
-        'strip_tags' => 0,
6983
-      ),
6984
-      'empty' => '',
6985
-      'hide_empty' => 0,
6986
-      'empty_zero' => 0,
6987
-      'hide_alter_empty' => 1,
6988
-      'value' => '<?php
6836
+  'exclude' => 0,
6837
+  'id' => 'phpcode_5',
6838
+  'table' => 'customfield',
6839
+  'field' => 'phpcode',
6840
+  'override' => array(
6841
+    'button' => 'Use default',
6842
+  ),
6843
+  'relationship' => 'none',
6844
+),
6845
+'expavg_credit' => array(
6846
+  'label' => 'Recent average credit',
6847
+  'alter' => array(
6848
+    'alter_text' => 0,
6849
+    'text' => '',
6850
+    'make_link' => 0,
6851
+    'path' => '',
6852
+    'absolute' => 0,
6853
+    'link_class' => '',
6854
+    'alt' => '',
6855
+    'rel' => '',
6856
+    'prefix' => '',
6857
+    'suffix' => '',
6858
+    'target' => '',
6859
+    'help' => '',
6860
+    'trim' => 0,
6861
+    'max_length' => '',
6862
+    'word_boundary' => 1,
6863
+    'ellipsis' => 1,
6864
+    'html' => 0,
6865
+    'strip_tags' => 0,
6866
+  ),
6867
+  'empty' => '',
6868
+  'hide_empty' => 0,
6869
+  'empty_zero' => 0,
6870
+  'hide_alter_empty' => 1,
6871
+  'set_precision' => 1,
6872
+  'precision' => '2',
6873
+  'decimal' => '.',
6874
+  'separator' => ',',
6875
+  'format_plural' => 0,
6876
+  'format_plural_singular' => '1',
6877
+  'format_plural_plural' => '@count',
6878
+  'prefix' => '',
6879
+  'suffix' => '',
6880
+  'exclude' => 0,
6881
+  'id' => 'expavg_credit',
6882
+  'table' => 'host',
6883
+  'field' => 'expavg_credit',
6884
+  'relationship' => 'none',
6885
+  'override' => array(
6886
+    'button' => 'Use default',
6887
+  ),
6888
+),
6889
+'total_credit' => array(
6890
+  'label' => 'Total credit',
6891
+  'alter' => array(
6892
+    'alter_text' => 0,
6893
+    'text' => '',
6894
+    'make_link' => 0,
6895
+    'path' => '',
6896
+    'absolute' => 0,
6897
+    'link_class' => '',
6898
+    'alt' => '',
6899
+    'rel' => '',
6900
+    'prefix' => '',
6901
+    'suffix' => '',
6902
+    'target' => '',
6903
+    'help' => '',
6904
+    'trim' => 0,
6905
+    'max_length' => '',
6906
+    'word_boundary' => 1,
6907
+    'ellipsis' => 1,
6908
+    'html' => 0,
6909
+    'strip_tags' => 0,
6910
+  ),
6911
+  'empty' => '',
6912
+  'hide_empty' => 0,
6913
+  'empty_zero' => 0,
6914
+  'hide_alter_empty' => 1,
6915
+  'set_precision' => 1,
6916
+  'precision' => '0',
6917
+  'decimal' => '.',
6918
+  'separator' => ',',
6919
+  'format_plural' => 0,
6920
+  'format_plural_singular' => '1',
6921
+  'format_plural_plural' => '@count',
6922
+  'prefix' => '',
6923
+  'suffix' => '',
6924
+  'exclude' => 0,
6925
+  'id' => 'total_credit',
6926
+  'table' => 'host',
6927
+  'field' => 'total_credit',
6928
+  'relationship' => 'none',
6929
+  'override' => array(
6930
+    'button' => 'Use default',
6931
+  ),
6932
+),
6933
+'serialnum' => array(
6934
+  'label' => 'Serial Number',
6935
+  'alter' => array(
6936
+    'alter_text' => 0,
6937
+    'text' => '',
6938
+    'make_link' => 0,
6939
+    'path' => '',
6940
+    'link_class' => '',
6941
+    'alt' => '',
6942
+    'prefix' => '',
6943
+    'suffix' => '',
6944
+    'target' => '',
6945
+    'help' => '',
6946
+    'trim' => 0,
6947
+    'max_length' => '',
6948
+    'word_boundary' => 1,
6949
+    'ellipsis' => 1,
6950
+    'html' => 0,
6951
+    'strip_tags' => 0,
6952
+  ),
6953
+  'empty' => '',
6954
+  'hide_empty' => 0,
6955
+  'empty_zero' => 0,
6956
+  'exclude' => 1,
6957
+  'id' => 'serialnum',
6958
+  'table' => 'host',
6959
+  'field' => 'serialnum',
6960
+  'relationship' => 'none',
6961
+),
6962
+'phpcode' => array(
6963
+  'label' => 'BOINC version',
6964
+  'alter' => array(
6965
+    'alter_text' => 0,
6966
+    'text' => '',
6967
+    'make_link' => 0,
6968
+    'path' => '',
6969
+    'absolute' => 0,
6970
+    'link_class' => '',
6971
+    'alt' => '',
6972
+    'rel' => '',
6973
+    'prefix' => '',
6974
+    'suffix' => '',
6975
+    'target' => '',
6976
+    'help' => '',
6977
+    'trim' => 0,
6978
+    'max_length' => '',
6979
+    'word_boundary' => 1,
6980
+    'ellipsis' => 1,
6981
+    'html' => 0,
6982
+    'strip_tags' => 0,
6983
+  ),
6984
+  'empty' => '',
6985
+  'hide_empty' => 0,
6986
+  'empty_zero' => 0,
6987
+  'hide_alter_empty' => 1,
6988
+  'value' => '<?php
6989 6989
   require_boinc(\'host\');
6990 6990
   echo boinc_version($data->host_serialnum);
6991 6991
 ?>',
6992
-      'exclude' => 1,
6993
-      'id' => 'phpcode',
6994
-      'table' => 'customfield',
6995
-      'field' => 'phpcode',
6996
-      'relationship' => 'none',
6997
-      'override' => array(
6998
-        'button' => 'Use default',
6999
-      ),
7000
-    ),
7001
-    'p_vendor' => array(
7002
-      'label' => 'CPU',
7003
-      'alter' => array(
7004
-        'alter_text' => 0,
7005
-        'text' => '',
7006
-        'make_link' => 0,
7007
-        'path' => '',
7008
-        'absolute' => 0,
7009
-        'link_class' => '',
7010
-        'alt' => '',
7011
-        'rel' => '',
7012
-        'prefix' => '',
7013
-        'suffix' => '',
7014
-        'target' => '',
7015
-        'help' => '',
7016
-        'trim' => 0,
7017
-        'max_length' => '',
7018
-        'word_boundary' => 1,
7019
-        'ellipsis' => 1,
7020
-        'html' => 0,
7021
-        'strip_tags' => 0,
7022
-      ),
7023
-      'empty' => '',
7024
-      'hide_empty' => 0,
7025
-      'empty_zero' => 0,
7026
-      'hide_alter_empty' => 1,
7027
-      'exclude' => 1,
7028
-      'id' => 'p_vendor',
7029
-      'table' => 'host',
7030
-      'field' => 'p_vendor',
7031
-      'relationship' => 'none',
7032
-      'override' => array(
7033
-        'button' => 'Use default',
7034
-      ),
7035
-    ),
7036
-    'p_model' => array(
7037
-      'label' => 'CPU model',
7038
-      'alter' => array(
7039
-        'alter_text' => 0,
7040
-        'text' => '',
7041
-        'make_link' => 0,
7042
-        'path' => '',
7043
-        'absolute' => 0,
7044
-        'link_class' => '',
7045
-        'alt' => '',
7046
-        'rel' => '',
7047
-        'prefix' => '',
7048
-        'suffix' => '',
7049
-        'target' => '',
7050
-        'help' => '',
7051
-        'trim' => 0,
7052
-        'max_length' => '',
7053
-        'word_boundary' => 1,
7054
-        'ellipsis' => 1,
7055
-        'html' => 0,
7056
-        'strip_tags' => 0,
7057
-      ),
7058
-      'empty' => '',
7059
-      'hide_empty' => 0,
7060
-      'empty_zero' => 0,
7061
-      'hide_alter_empty' => 1,
7062
-      'exclude' => 1,
7063
-      'id' => 'p_model',
7064
-      'table' => 'host',
7065
-      'field' => 'p_model',
7066
-      'relationship' => 'none',
7067
-      'override' => array(
7068
-        'button' => 'Use default',
7069
-      ),
7070
-    ),
7071
-    'p_ncpus' => array(
7072
-      'label' => 'Number of CPUs',
7073
-      'alter' => array(
7074
-        'alter_text' => 1,
7075
-        'text' => '([p_ncpus] processors)',
7076
-        'make_link' => 0,
7077
-        'path' => '',
7078
-        'absolute' => 0,
7079
-        'link_class' => '',
7080
-        'alt' => '',
7081
-        'rel' => '',
7082
-        'prefix' => '',
7083
-        'suffix' => '',
7084
-        'target' => '',
7085
-        'help' => '',
7086
-        'trim' => 0,
7087
-        'max_length' => '',
7088
-        'word_boundary' => 1,
7089
-        'ellipsis' => 1,
7090
-        'html' => 0,
7091
-        'strip_tags' => 0,
7092
-      ),
7093
-      'empty' => '',
7094
-      'hide_empty' => 0,
7095
-      'empty_zero' => 0,
7096
-      'hide_alter_empty' => 1,
7097
-      'exclude' => 1,
7098
-      'id' => 'p_ncpus',
7099
-      'table' => 'host',
7100
-      'field' => 'p_ncpus',
7101
-      'relationship' => 'none',
7102
-      'override' => array(
7103
-        'button' => 'Use default',
7104
-      ),
7105
-    ),
7106
-    'phpcode_1' => array(
7107
-      'label' => 'GPU',
7108
-      'alter' => array(
7109
-        'alter_text' => 0,
7110
-        'text' => '',
7111
-        'make_link' => 0,
7112
-        'path' => '',
7113
-        'absolute' => 0,
7114
-        'link_class' => '',
7115
-        'alt' => '',
7116
-        'rel' => '',
7117
-        'prefix' => '',
7118
-        'suffix' => '',
7119
-        'target' => '',
7120
-        'help' => '',
7121
-        'trim' => 0,
7122
-        'max_length' => '',
7123
-        'word_boundary' => 1,
7124
-        'ellipsis' => 1,
7125
-        'html' => 0,
7126
-        'strip_tags' => 0,
7127
-      ),
7128
-      'empty' => '',
7129
-      'hide_empty' => 0,
7130
-      'empty_zero' => 0,
7131
-      'hide_alter_empty' => 1,
7132
-      'value' => '<?php
6992
+  'exclude' => 1,
6993
+  'id' => 'phpcode',
6994
+  'table' => 'customfield',
6995
+  'field' => 'phpcode',
6996
+  'relationship' => 'none',
6997
+  'override' => array(
6998
+    'button' => 'Use default',
6999
+  ),
7000
+),
7001
+'p_vendor' => array(
7002
+  'label' => 'CPU',
7003
+  'alter' => array(
7004
+    'alter_text' => 0,
7005
+    'text' => '',
7006
+    'make_link' => 0,
7007
+    'path' => '',
7008
+    'absolute' => 0,
7009
+    'link_class' => '',
7010
+    'alt' => '',
7011
+    'rel' => '',
7012
+    'prefix' => '',
7013
+    'suffix' => '',
7014
+    'target' => '',
7015
+    'help' => '',
7016
+    'trim' => 0,
7017
+    'max_length' => '',
7018
+    'word_boundary' => 1,
7019
+    'ellipsis' => 1,
7020
+    'html' => 0,
7021
+    'strip_tags' => 0,
7022
+  ),
7023
+  'empty' => '',
7024
+  'hide_empty' => 0,
7025
+  'empty_zero' => 0,
7026
+  'hide_alter_empty' => 1,
7027
+  'exclude' => 1,
7028
+  'id' => 'p_vendor',
7029
+  'table' => 'host',
7030
+  'field' => 'p_vendor',
7031
+  'relationship' => 'none',
7032
+  'override' => array(
7033
+    'button' => 'Use default',
7034
+  ),
7035
+),
7036
+'p_model' => array(
7037
+  'label' => 'CPU model',
7038
+  'alter' => array(
7039
+    'alter_text' => 0,
7040
+    'text' => '',
7041
+    'make_link' => 0,
7042
+    'path' => '',
7043
+    'absolute' => 0,
7044
+    'link_class' => '',
7045
+    'alt' => '',
7046
+    'rel' => '',
7047
+    'prefix' => '',
7048
+    'suffix' => '',
7049
+    'target' => '',
7050
+    'help' => '',
7051
+    'trim' => 0,
7052
+    'max_length' => '',
7053
+    'word_boundary' => 1,
7054
+    'ellipsis' => 1,
7055
+    'html' => 0,
7056
+    'strip_tags' => 0,
7057
+  ),
7058
+  'empty' => '',
7059
+  'hide_empty' => 0,
7060
+  'empty_zero' => 0,
7061
+  'hide_alter_empty' => 1,
7062
+  'exclude' => 1,
7063
+  'id' => 'p_model',
7064
+  'table' => 'host',
7065
+  'field' => 'p_model',
7066
+  'relationship' => 'none',
7067
+  'override' => array(
7068
+    'button' => 'Use default',
7069
+  ),
7070
+),
7071
+'p_ncpus' => array(
7072
+  'label' => 'Number of CPUs',
7073
+  'alter' => array(
7074
+    'alter_text' => 1,
7075
+    'text' => '([p_ncpus] processors)',
7076
+    'make_link' => 0,
7077
+    'path' => '',
7078
+    'absolute' => 0,
7079
+    'link_class' => '',
7080
+    'alt' => '',
7081
+    'rel' => '',
7082
+    'prefix' => '',
7083
+    'suffix' => '',
7084
+    'target' => '',
7085
+    'help' => '',
7086
+    'trim' => 0,
7087
+    'max_length' => '',
7088
+    'word_boundary' => 1,
7089
+    'ellipsis' => 1,
7090
+    'html' => 0,
7091
+    'strip_tags' => 0,
7092
+  ),
7093
+  'empty' => '',
7094
+  'hide_empty' => 0,
7095
+  'empty_zero' => 0,
7096
+  'hide_alter_empty' => 1,
7097
+  'exclude' => 1,
7098
+  'id' => 'p_ncpus',
7099
+  'table' => 'host',
7100
+  'field' => 'p_ncpus',
7101
+  'relationship' => 'none',
7102
+  'override' => array(
7103
+    'button' => 'Use default',
7104
+  ),
7105
+),
7106
+'phpcode_1' => array(
7107
+  'label' => 'GPU',
7108
+  'alter' => array(
7109
+    'alter_text' => 0,
7110
+    'text' => '',
7111
+    'make_link' => 0,
7112
+    'path' => '',
7113
+    'absolute' => 0,
7114
+    'link_class' => '',
7115
+    'alt' => '',
7116
+    'rel' => '',
7117
+    'prefix' => '',
7118
+    'suffix' => '',
7119
+    'target' => '',
7120
+    'help' => '',
7121
+    'trim' => 0,
7122
+    'max_length' => '',
7123
+    'word_boundary' => 1,
7124
+    'ellipsis' => 1,
7125
+    'html' => 0,
7126
+    'strip_tags' => 0,
7127
+  ),
7128
+  'empty' => '',
7129
+  'hide_empty' => 0,
7130
+  'empty_zero' => 0,
7131
+  'hide_alter_empty' => 1,
7132
+  'value' => '<?php
7133 7133
   require_boinc(\'host\');
7134 7134
   echo gpu_desc($data->host_serialnum);
7135 7135
 ?>',
7136
-      'exclude' => 1,
7137
-      'id' => 'phpcode_1',
7138
-      'table' => 'customfield',
7139
-      'field' => 'phpcode',
7140
-      'relationship' => 'none',
7141
-      'override' => array(
7142
-        'button' => 'Use default',
7143
-      ),
7144
-    ),
7145
-    'os_name' => array(
7146
-      'label' => 'Operating system',
7147
-      'alter' => array(
7148
-        'alter_text' => 0,
7149
-        'text' => '',
7150
-        'make_link' => 0,
7151
-        'path' => '',
7152
-        'absolute' => 0,
7153
-        'link_class' => '',
7154
-        'alt' => '',
7155
-        'rel' => '',
7156
-        'prefix' => '',
7157
-        'suffix' => '',
7158
-        'target' => '',
7159
-        'help' => '',
7160
-        'trim' => 0,
7161
-        'max_length' => '',
7162
-        'word_boundary' => 1,
7163
-        'ellipsis' => 1,
7164
-        'html' => 0,
7165
-        'strip_tags' => 0,
7166
-      ),
7167
-      'empty' => '',
7168
-      'hide_empty' => 0,
7169
-      'empty_zero' => 0,
7170
-      'hide_alter_empty' => 1,
7171
-      'exclude' => 1,
7172
-      'id' => 'os_name',
7173
-      'table' => 'host',
7174
-      'field' => 'os_name',
7175
-      'relationship' => 'none',
7176
-      'override' => array(
7177
-        'button' => 'Use default',
7178
-      ),
7179
-    ),
7180
-    'os_version' => array(
7181
-      'label' => 'Operating system version',
7182
-      'alter' => array(
7183
-        'alter_text' => 0,
7184
-        'text' => '',
7185
-        'make_link' => 0,
7186
-        'path' => '',
7187
-        'absolute' => 0,
7188
-        'link_class' => '',
7189
-        'alt' => '',
7190
-        'rel' => '',
7191
-        'prefix' => '',
7192
-        'suffix' => '',
7193
-        'target' => '',
7194
-        'help' => '',
7195
-        'trim' => 0,
7196
-        'max_length' => '',
7197
-        'word_boundary' => 1,
7198
-        'ellipsis' => 1,
7199
-        'html' => 0,
7200
-        'strip_tags' => 0,
7201
-      ),
7202
-      'empty' => '',
7203
-      'hide_empty' => 0,
7204
-      'empty_zero' => 0,
7205
-      'hide_alter_empty' => 1,
7206
-      'exclude' => 1,
7207
-      'id' => 'os_version',
7208
-      'table' => 'host',
7209
-      'field' => 'os_version',
7210
-      'relationship' => 'none',
7211
-      'override' => array(
7212
-        'button' => 'Use default',
7213
-      ),
7214
-    ),
7215
-  ));
7216
-  $handler->override_option('arguments', array());
7217
-  $handler->override_option('filters', array(
7218
-    'show_hosts' => array(
7219
-      'operator' => '=',
7220
-      'value' => array(
7221
-        'value' => '1',
7222
-        'min' => '',
7223
-        'max' => '',
7224
-      ),
7225
-      'group' => '0',
7226
-      'exposed' => FALSE,
7227
-      'expose' => array(
7228
-        'operator' => FALSE,
7229
-        'label' => '',
7230
-      ),
7231
-      'id' => 'show_hosts',
7232
-      'table' => 'user',
7233
-      'field' => 'show_hosts',
7234
-      'relationship' => 'userid',
7235
-    ),
7236
-    'total_credit' => array(
7237
-      'operator' => '>=',
7238
-      'value' => array(
7239
-        'value' => '1',
7240
-        'min' => '',
7241
-        'max' => '',
7242
-      ),
7243
-      'group' => '0',
7244
-      'exposed' => FALSE,
7245
-      'expose' => array(
7246
-        'operator' => FALSE,
7247
-        'label' => '',
7248
-      ),
7249
-      'id' => 'total_credit',
7250
-      'table' => 'host',
7251
-      'field' => 'total_credit',
7252
-      'override' => array(
7253
-        'button' => 'Use default',
7254
-      ),
7255
-      'relationship' => 'none',
7256
-    ),
7257
-  ));
7258
-  $handler->override_option('title', 'Top computers');
7259
-  $handler->override_option('items_per_page', 10);
7260
-  $handler->override_option('use_pager', '0');
7261
-  $handler->override_option('use_more', 1);
7262
-  $handler->override_option('use_more_always', 0);
7263
-  $handler->override_option('use_more_text', 'view more');
7264
-  $handler->override_option('link_display', 'page_3');
7265
-  $handler->override_option('style_options', array(
7266
-    'grouping' => '',
7267
-    'override' => 1,
7268
-    'sticky' => 0,
7269
-    'order' => 'desc',
7270
-    'summary' => '',
7271
-    'columns' => array(
7272
-      'id_1' => 'id_1',
7273
-      'name' => 'name',
7274
-      'show_hosts' => 'show_hosts',
7275
-      'rownumber' => 'rownumber',
7276
-      'id' => 'id',
7277
-      'phpcode_3' => 'id',
7278
-      'host_cpid' => 'host_cpid',
7279
-      'phpcode_4' => 'id',
7280
-      'phpcode_5' => 'phpcode_5',
7281
-      'expavg_credit' => 'expavg_credit',
7282
-      'total_credit' => 'total_credit',
7283
-      'serialnum' => 'serialnum',
7284
-      'phpcode' => 'phpcode',
7285
-      'p_vendor' => 'p_vendor',
7286
-      'p_model' => 'p_vendor',
7287
-      'p_ncpus' => 'p_vendor',
7288
-      'phpcode_1' => 'phpcode_1',
7289
-      'os_name' => 'os_name',
7290
-      'os_version' => 'os_name',
7291
-    ),
7292
-    'info' => array(
7293
-      'id_1' => array(
7294
-        'sortable' => 0,
7295
-        'separator' => '',
7296
-      ),
7297
-      'name' => array(
7298
-        'sortable' => 0,
7299
-        'separator' => '',
7300
-      ),
7301
-      'show_hosts' => array(
7302
-        'sortable' => 0,
7303
-        'separator' => '',
7304
-      ),
7305
-      'rownumber' => array(
7306
-        'separator' => '',
7307
-      ),
7308
-      'id' => array(
7309
-        'sortable' => 0,
7310
-        'separator' => ' | ',
7311
-      ),
7312
-      'phpcode_3' => array(
7313
-        'separator' => '',
7314
-      ),
7315
-      'host_cpid' => array(
7316
-        'sortable' => 0,
7317
-        'separator' => '',
7318
-      ),
7319
-      'phpcode_4' => array(
7320
-        'separator' => '',
7321
-      ),
7322
-      'phpcode_5' => array(
7323
-        'separator' => '',
7324
-      ),
7325
-      'expavg_credit' => array(
7326
-        'sortable' => 1,
7327
-        'separator' => '',
7328
-      ),
7329
-      'total_credit' => array(
7330
-        'sortable' => 1,
7331
-        'separator' => '',
7332
-      ),
7333
-      'serialnum' => array(
7334
-        'sortable' => 0,
7335
-        'separator' => '',
7336
-      ),
7337
-      'phpcode' => array(
7338
-        'separator' => '',
7339
-      ),
7340
-      'p_vendor' => array(
7341
-        'sortable' => 1,
7342
-        'separator' => '<br/>',
7343
-      ),
7344
-      'p_model' => array(
7345
-        'sortable' => 0,
7346
-        'separator' => '',
7347
-      ),
7348
-      'p_ncpus' => array(
7349
-        'sortable' => 0,
7350
-        'separator' => '',
7351
-      ),
7352
-      'phpcode_1' => array(
7353
-        'separator' => '',
7354
-      ),
7355
-      'os_name' => array(
7356
-        'sortable' => 1,
7357
-        'separator' => '<br/>',
7358
-      ),
7359
-      'os_version' => array(
7360
-        'sortable' => 0,
7361
-        'separator' => '',
7362
-      ),
7363
-    ),
7364
-    'default' => 'expavg_credit',
7365
-  ));
7366
-  $handler->override_option('pane_title', '');
7367
-  $handler->override_option('pane_description', '');
7368
-  $handler->override_option('pane_category', array(
7369
-    'name' => 'View panes',
7370
-    'weight' => 0,
7371
-  ));
7372
-  $handler->override_option('allow', array(
7373
-    'use_pager' => FALSE,
7374
-    'items_per_page' => FALSE,
7375
-    'offset' => FALSE,
7376
-    'link_to_view' => FALSE,
7377
-    'more_link' => FALSE,
7378
-    'path_override' => FALSE,
7379
-    'title_override' => FALSE,
7380
-    'exposed_form' => FALSE,
7381
-    'fields_override' => FALSE,
7382
-  ));
7383
-  $handler->override_option('argument_input', array());
7384
-  $handler->override_option('link_to_view', 0);
7385
-  $handler->override_option('inherit_panels_path', 0);
7136
+  'exclude' => 1,
7137
+  'id' => 'phpcode_1',
7138
+  'table' => 'customfield',
7139
+  'field' => 'phpcode',
7140
+  'relationship' => 'none',
7141
+  'override' => array(
7142
+    'button' => 'Use default',
7143
+  ),
7144
+),
7145
+'os_name' => array(
7146
+  'label' => 'Operating system',
7147
+  'alter' => array(
7148
+    'alter_text' => 0,
7149
+    'text' => '',
7150
+    'make_link' => 0,
7151
+    'path' => '',
7152
+    'absolute' => 0,
7153
+    'link_class' => '',
7154
+    'alt' => '',
7155
+    'rel' => '',
7156
+    'prefix' => '',
7157
+    'suffix' => '',
7158
+    'target' => '',
7159
+    'help' => '',
7160
+    'trim' => 0,
7161
+    'max_length' => '',
7162
+    'word_boundary' => 1,
7163
+    'ellipsis' => 1,
7164
+    'html' => 0,
7165
+    'strip_tags' => 0,
7166
+  ),
7167
+  'empty' => '',
7168
+  'hide_empty' => 0,
7169
+  'empty_zero' => 0,
7170
+  'hide_alter_empty' => 1,
7171
+  'exclude' => 1,
7172
+  'id' => 'os_name',
7173
+  'table' => 'host',
7174
+  'field' => 'os_name',
7175
+  'relationship' => 'none',
7176
+  'override' => array(
7177
+    'button' => 'Use default',
7178
+  ),
7179
+),
7180
+'os_version' => array(
7181
+  'label' => 'Operating system version',
7182
+  'alter' => array(
7183
+    'alter_text' => 0,
7184
+    'text' => '',
7185
+    'make_link' => 0,
7186
+    'path' => '',
7187
+    'absolute' => 0,
7188
+    'link_class' => '',
7189
+    'alt' => '',
7190
+    'rel' => '',
7191
+    'prefix' => '',
7192
+    'suffix' => '',
7193
+    'target' => '',
7194
+    'help' => '',
7195
+    'trim' => 0,
7196
+    'max_length' => '',
7197
+    'word_boundary' => 1,
7198
+    'ellipsis' => 1,
7199
+    'html' => 0,
7200
+    'strip_tags' => 0,
7201
+  ),
7202
+  'empty' => '',
7203
+  'hide_empty' => 0,
7204
+  'empty_zero' => 0,
7205
+  'hide_alter_empty' => 1,
7206
+  'exclude' => 1,
7207
+  'id' => 'os_version',
7208
+  'table' => 'host',
7209
+  'field' => 'os_version',
7210
+  'relationship' => 'none',
7211
+  'override' => array(
7212
+    'button' => 'Use default',
7213
+  ),
7214
+),
7215
+));
7216
+$handler->override_option('arguments', array());
7217
+$handler->override_option('filters', array(
7218
+'show_hosts' => array(
7219
+  'operator' => '=',
7220
+  'value' => array(
7221
+    'value' => '1',
7222
+    'min' => '',
7223
+    'max' => '',
7224
+  ),
7225
+  'group' => '0',
7226
+  'exposed' => FALSE,
7227
+  'expose' => array(
7228
+    'operator' => FALSE,
7229
+    'label' => '',
7230
+  ),
7231
+  'id' => 'show_hosts',
7232
+  'table' => 'user',
7233
+  'field' => 'show_hosts',
7234
+  'relationship' => 'userid',
7235
+),
7236
+'total_credit' => array(
7237
+  'operator' => '>=',
7238
+  'value' => array(
7239
+    'value' => '1',
7240
+    'min' => '',
7241
+    'max' => '',
7242
+  ),
7243
+  'group' => '0',
7244
+  'exposed' => FALSE,
7245
+  'expose' => array(
7246
+    'operator' => FALSE,
7247
+    'label' => '',
7248
+  ),
7249
+  'id' => 'total_credit',
7250
+  'table' => 'host',
7251
+  'field' => 'total_credit',
7252
+  'override' => array(
7253
+    'button' => 'Use default',
7254
+  ),
7255
+  'relationship' => 'none',
7256
+),
7257
+));
7258
+$handler->override_option('title', 'Top computers');
7259
+$handler->override_option('items_per_page', 10);
7260
+$handler->override_option('use_pager', '0');
7261
+$handler->override_option('use_more', 1);
7262
+$handler->override_option('use_more_always', 0);
7263
+$handler->override_option('use_more_text', 'view more');
7264
+$handler->override_option('link_display', 'page_3');
7265
+$handler->override_option('style_options', array(
7266
+'grouping' => '',
7267
+'override' => 1,
7268
+'sticky' => 0,
7269
+'order' => 'desc',
7270
+'summary' => '',
7271
+'columns' => array(
7272
+  'id_1' => 'id_1',
7273
+  'name' => 'name',
7274
+  'show_hosts' => 'show_hosts',
7275
+  'rownumber' => 'rownumber',
7276
+  'id' => 'id',
7277
+  'phpcode_3' => 'id',
7278
+  'host_cpid' => 'host_cpid',
7279
+  'phpcode_4' => 'id',
7280
+  'phpcode_5' => 'phpcode_5',
7281
+  'expavg_credit' => 'expavg_credit',
7282
+  'total_credit' => 'total_credit',
7283
+  'serialnum' => 'serialnum',
7284
+  'phpcode' => 'phpcode',
7285
+  'p_vendor' => 'p_vendor',
7286
+  'p_model' => 'p_vendor',
7287
+  'p_ncpus' => 'p_vendor',
7288
+  'phpcode_1' => 'phpcode_1',
7289
+  'os_name' => 'os_name',
7290
+  'os_version' => 'os_name',
7291
+),
7292
+'info' => array(
7293
+  'id_1' => array(
7294
+    'sortable' => 0,
7295
+    'separator' => '',
7296
+  ),
7297
+  'name' => array(
7298
+    'sortable' => 0,
7299
+    'separator' => '',
7300
+  ),
7301
+  'show_hosts' => array(
7302
+    'sortable' => 0,
7303
+    'separator' => '',
7304
+  ),
7305
+  'rownumber' => array(
7306
+    'separator' => '',
7307
+  ),
7308
+  'id' => array(
7309
+    'sortable' => 0,
7310
+    'separator' => ' | ',
7311
+  ),
7312
+  'phpcode_3' => array(
7313
+    'separator' => '',
7314
+  ),
7315
+  'host_cpid' => array(
7316
+    'sortable' => 0,
7317
+    'separator' => '',
7318
+  ),
7319
+  'phpcode_4' => array(
7320
+    'separator' => '',
7321
+  ),
7322
+  'phpcode_5' => array(
7323
+    'separator' => '',
7324
+  ),
7325
+  'expavg_credit' => array(
7326
+    'sortable' => 1,
7327
+    'separator' => '',
7328
+  ),
7329
+  'total_credit' => array(
7330
+    'sortable' => 1,
7331
+    'separator' => '',
7332
+  ),
7333
+  'serialnum' => array(
7334
+    'sortable' => 0,
7335
+    'separator' => '',
7336
+  ),
7337
+  'phpcode' => array(
7338
+    'separator' => '',
7339
+  ),
7340
+  'p_vendor' => array(
7341
+    'sortable' => 1,
7342
+    'separator' => '<br/>',
7343
+  ),
7344
+  'p_model' => array(
7345
+    'sortable' => 0,
7346
+    'separator' => '',
7347
+  ),
7348
+  'p_ncpus' => array(
7349
+    'sortable' => 0,
7350
+    'separator' => '',
7351
+  ),
7352
+  'phpcode_1' => array(
7353
+    'separator' => '',
7354
+  ),
7355
+  'os_name' => array(
7356
+    'sortable' => 1,
7357
+    'separator' => '<br/>',
7358
+  ),
7359
+  'os_version' => array(
7360
+    'sortable' => 0,
7361
+    'separator' => '',
7362
+  ),
7363
+),
7364
+'default' => 'expavg_credit',
7365
+));
7366
+$handler->override_option('pane_title', '');
7367
+$handler->override_option('pane_description', '');
7368
+$handler->override_option('pane_category', array(
7369
+'name' => 'View panes',
7370
+'weight' => 0,
7371
+));
7372
+$handler->override_option('allow', array(
7373
+'use_pager' => FALSE,
7374
+'items_per_page' => FALSE,
7375
+'offset' => FALSE,
7376
+'link_to_view' => FALSE,
7377
+'more_link' => FALSE,
7378
+'path_override' => FALSE,
7379
+'title_override' => FALSE,
7380
+'exposed_form' => FALSE,
7381
+'fields_override' => FALSE,
7382
+));
7383
+$handler->override_option('argument_input', array());
7384
+$handler->override_option('link_to_view', 0);
7385
+$handler->override_option('inherit_panels_path', 0);
7386 7386
 
7387
-  $views[$view->name] = $view;
7387
+$views[$view->name] = $view;
7388 7388
 
7389
-  // Exported view: boinc_host_tasks_all
7390
-  $view = new view;
7391
-  $view->name = 'boinc_host_tasks_all';
7392
-  $view->description = 'A list of all tasks for the given host';
7393
-  $view->tag = '';
7394
-  $view->base_table = 'result';
7395
-  $view->core = 0;
7396
-  $view->api_version = '2';
7397
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7398
-  $handler = $view->new_display('default', 'Defaults', 'default');
7399
-  $handler->override_option('fields', array(
7400
-    'name' => array(
7401
-      'label' => 'Name',
7402
-      'alter' => array(
7403
-        'alter_text' => 0,
7404
-        'text' => '',
7405
-        'make_link' => 0,
7406
-        'path' => '',
7407
-        'absolute' => 0,
7408
-        'link_class' => '',
7409
-        'alt' => '',
7410
-        'rel' => '',
7411
-        'prefix' => '',
7412
-        'suffix' => '',
7413
-        'target' => '',
7414
-        'help' => '',
7415
-        'trim' => 0,
7416
-        'max_length' => '',
7417
-        'word_boundary' => 1,
7418
-        'ellipsis' => 1,
7419
-        'html' => 0,
7420
-        'strip_tags' => 0,
7421
-      ),
7422
-      'empty' => '',
7423
-      'hide_empty' => 0,
7424
-      'empty_zero' => 0,
7425
-      'hide_alter_empty' => 1,
7426
-      'exclude' => 1,
7427
-      'id' => 'name',
7428
-      'table' => 'result',
7429
-      'field' => 'name',
7430
-      'relationship' => 'none',
7431
-    ),
7432
-    'id' => array(
7433
-      'label' => 'Task ID',
7434
-      'alter' => array(
7435
-        'alter_text' => 0,
7436
-        'text' => '',
7437
-        'make_link' => 0,
7438
-        'path' => 'task/[id]',
7439
-        'absolute' => 0,
7440
-        'link_class' => '',
7441
-        'alt' => '',
7442
-        'rel' => '',
7443
-        'prefix' => '',
7444
-        'suffix' => '',
7445
-        'target' => '',
7446
-        'help' => '',
7447
-        'trim' => 0,
7448
-        'max_length' => '',
7449
-        'word_boundary' => 1,
7450
-        'ellipsis' => 1,
7451
-        'html' => 0,
7452
-        'strip_tags' => 0,
7453
-      ),
7454
-      'empty' => '',
7455
-      'hide_empty' => 0,
7456
-      'empty_zero' => 0,
7457
-      'hide_alter_empty' => 1,
7458
-      'set_precision' => FALSE,
7459
-      'precision' => 0,
7460
-      'decimal' => '.',
7461
-      'separator' => '',
7462
-      'format_plural' => 0,
7463
-      'format_plural_singular' => '1',
7464
-      'format_plural_plural' => '@count',
7465
-      'prefix' => '',
7466
-      'suffix' => '',
7467
-      'exclude' => 0,
7468
-      'id' => 'id',
7469
-      'table' => 'result',
7470
-      'field' => 'id',
7471
-      'relationship' => 'none',
7472
-    ),
7473
-    'workunitid' => array(
7474
-      'label' => 'Workunit ID',
7475
-      'alter' => array(
7476
-        'alter_text' => 0,
7477
-        'text' => '',
7478
-        'make_link' => 1,
7479
-        'path' => 'workunit/[workunitid]',
7480
-        'link_class' => '',
7481
-        'alt' => '',
7482
-        'prefix' => '',
7483
-        'suffix' => '',
7484
-        'target' => '',
7485
-        'help' => '',
7486
-        'trim' => 0,
7487
-        'max_length' => '',
7488
-        'word_boundary' => 1,
7489
-        'ellipsis' => 1,
7490
-        'html' => 0,
7491
-        'strip_tags' => 0,
7492
-      ),
7493
-      'empty' => '',
7494
-      'hide_empty' => 0,
7495
-      'empty_zero' => 0,
7496
-      'set_precision' => FALSE,
7497
-      'precision' => 0,
7498
-      'decimal' => '.',
7499
-      'separator' => '',
7500
-      'prefix' => '',
7501
-      'suffix' => '',
7502
-      'exclude' => 0,
7503
-      'id' => 'workunitid',
7504
-      'table' => 'result',
7505
-      'field' => 'workunitid',
7506
-      'relationship' => 'none',
7507
-    ),
7508
-    'sent_time' => array(
7509
-      'label' => 'Sent',
7510
-      'alter' => array(
7511
-        'alter_text' => 0,
7512
-        'text' => '',
7513
-        'make_link' => 0,
7514
-        'path' => '',
7515
-        'link_class' => '',
7516
-        'alt' => '',
7517
-        'prefix' => '',
7518
-        'suffix' => '',
7519
-        'target' => '',
7520
-        'help' => '',
7521
-        'trim' => 0,
7522
-        'max_length' => '',
7523
-        'word_boundary' => 1,
7524
-        'ellipsis' => 1,
7525
-        'html' => 0,
7526
-        'strip_tags' => 0,
7527
-      ),
7528
-      'empty' => '',
7529
-      'hide_empty' => 0,
7530
-      'empty_zero' => 0,
7531
-      'date_format' => 'custom',
7532
-      'custom_date_format' => 'j M Y G:i:s e',
7533
-      'exclude' => 1,
7534
-      'id' => 'sent_time',
7535
-      'table' => 'result',
7536
-      'field' => 'sent_time',
7537
-      'relationship' => 'none',
7538
-    ),
7539
-    'received_time' => array(
7540
-      'label' => 'Received time',
7541
-      'alter' => array(
7542
-        'alter_text' => 0,
7543
-        'text' => '',
7544
-        'make_link' => 0,
7545
-        'path' => '',
7546
-        'link_class' => '',
7547
-        'alt' => '',
7548
-        'prefix' => '',
7549
-        'suffix' => '',
7550
-        'target' => '',
7551
-        'help' => '',
7552
-        'trim' => 0,
7553
-        'max_length' => '',
7554
-        'word_boundary' => 1,
7555
-        'ellipsis' => 1,
7556
-        'html' => 0,
7557
-        'strip_tags' => 0,
7558
-      ),
7559
-      'empty' => '',
7560
-      'hide_empty' => 0,
7561
-      'empty_zero' => 0,
7562
-      'date_format' => 'small',
7563
-      'custom_date_format' => '',
7564
-      'exclude' => 1,
7565
-      'id' => 'received_time',
7566
-      'table' => 'result',
7567
-      'field' => 'received_time',
7568
-      'relationship' => 'none',
7569
-    ),
7570
-    'report_deadline' => array(
7571
-      'label' => 'Report deadline',
7572
-      'alter' => array(
7573
-        'alter_text' => 0,
7574
-        'text' => '',
7575
-        'make_link' => 0,
7576
-        'path' => '',
7577
-        'link_class' => '',
7578
-        'alt' => '',
7579
-        'prefix' => '',
7580
-        'suffix' => '',
7581
-        'target' => '',
7582
-        'help' => '',
7583
-        'trim' => 0,
7584
-        'max_length' => '',
7585
-        'word_boundary' => 1,
7586
-        'ellipsis' => 1,
7587
-        'html' => 0,
7588
-        'strip_tags' => 0,
7589
-      ),
7590
-      'empty' => '',
7591
-      'hide_empty' => 0,
7592
-      'empty_zero' => 0,
7593
-      'date_format' => 'small',
7594
-      'custom_date_format' => '',
7595
-      'exclude' => 1,
7596
-      'id' => 'report_deadline',
7597
-      'table' => 'result',
7598
-      'field' => 'report_deadline',
7599
-      'relationship' => 'none',
7600
-    ),
7601
-    'phpcode_3' => array(
7602
-      'label' => 'Sent',
7603
-      'alter' => array(
7604
-        'alter_text' => 0,
7605
-        'text' => '',
7606
-        'make_link' => 0,
7607
-        'path' => '',
7608
-        'absolute' => 0,
7609
-        'link_class' => '',
7610
-        'alt' => '',
7611
-        'rel' => '',
7612
-        'prefix' => '',
7613
-        'suffix' => '',
7614
-        'target' => '',
7615
-        'help' => '',
7616
-        'trim' => 0,
7617
-        'max_length' => '',
7618
-        'word_boundary' => 1,
7619
-        'ellipsis' => 1,
7620
-        'html' => 0,
7621
-        'strip_tags' => 0,
7622
-      ),
7623
-      'empty' => '',
7624
-      'hide_empty' => 0,
7625
-      'empty_zero' => 0,
7626
-      'hide_alter_empty' => 1,
7627
-      'value' => '<?php
7389
+// Exported view: boinc_host_tasks_all
7390
+$view = new view;
7391
+$view->name = 'boinc_host_tasks_all';
7392
+$view->description = 'A list of all tasks for the given host';
7393
+$view->tag = '';
7394
+$view->base_table = 'result';
7395
+$view->core = 0;
7396
+$view->api_version = '2';
7397
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
7398
+$handler = $view->new_display('default', 'Defaults', 'default');
7399
+$handler->override_option('fields', array(
7400
+'name' => array(
7401
+  'label' => 'Name',
7402
+  'alter' => array(
7403
+    'alter_text' => 0,
7404
+    'text' => '',
7405
+    'make_link' => 0,
7406
+    'path' => '',
7407
+    'absolute' => 0,
7408
+    'link_class' => '',
7409
+    'alt' => '',
7410
+    'rel' => '',
7411
+    'prefix' => '',
7412
+    'suffix' => '',
7413
+    'target' => '',
7414
+    'help' => '',
7415
+    'trim' => 0,
7416
+    'max_length' => '',
7417
+    'word_boundary' => 1,
7418
+    'ellipsis' => 1,
7419
+    'html' => 0,
7420
+    'strip_tags' => 0,
7421
+  ),
7422
+  'empty' => '',
7423
+  'hide_empty' => 0,
7424
+  'empty_zero' => 0,
7425
+  'hide_alter_empty' => 1,
7426
+  'exclude' => 1,
7427
+  'id' => 'name',
7428
+  'table' => 'result',
7429
+  'field' => 'name',
7430
+  'relationship' => 'none',
7431
+),
7432
+'id' => array(
7433
+  'label' => 'Task ID',
7434
+  'alter' => array(
7435
+    'alter_text' => 0,
7436
+    'text' => '',
7437
+    'make_link' => 0,
7438
+    'path' => 'task/[id]',
7439
+    'absolute' => 0,
7440
+    'link_class' => '',
7441
+    'alt' => '',
7442
+    'rel' => '',
7443
+    'prefix' => '',
7444
+    'suffix' => '',
7445
+    'target' => '',
7446
+    'help' => '',
7447
+    'trim' => 0,
7448
+    'max_length' => '',
7449
+    'word_boundary' => 1,
7450
+    'ellipsis' => 1,
7451
+    'html' => 0,
7452
+    'strip_tags' => 0,
7453
+  ),
7454
+  'empty' => '',
7455
+  'hide_empty' => 0,
7456
+  'empty_zero' => 0,
7457
+  'hide_alter_empty' => 1,
7458
+  'set_precision' => FALSE,
7459
+  'precision' => 0,
7460
+  'decimal' => '.',
7461
+  'separator' => '',
7462
+  'format_plural' => 0,
7463
+  'format_plural_singular' => '1',
7464
+  'format_plural_plural' => '@count',
7465
+  'prefix' => '',
7466
+  'suffix' => '',
7467
+  'exclude' => 0,
7468
+  'id' => 'id',
7469
+  'table' => 'result',
7470
+  'field' => 'id',
7471
+  'relationship' => 'none',
7472
+),
7473
+'workunitid' => array(
7474
+  'label' => 'Workunit ID',
7475
+  'alter' => array(
7476
+    'alter_text' => 0,
7477
+    'text' => '',
7478
+    'make_link' => 1,
7479
+    'path' => 'workunit/[workunitid]',
7480
+    'link_class' => '',
7481
+    'alt' => '',
7482
+    'prefix' => '',
7483
+    'suffix' => '',
7484
+    'target' => '',
7485
+    'help' => '',
7486
+    'trim' => 0,
7487
+    'max_length' => '',
7488
+    'word_boundary' => 1,
7489
+    'ellipsis' => 1,
7490
+    'html' => 0,
7491
+    'strip_tags' => 0,
7492
+  ),
7493
+  'empty' => '',
7494
+  'hide_empty' => 0,
7495
+  'empty_zero' => 0,
7496
+  'set_precision' => FALSE,
7497
+  'precision' => 0,
7498
+  'decimal' => '.',
7499
+  'separator' => '',
7500
+  'prefix' => '',
7501
+  'suffix' => '',
7502
+  'exclude' => 0,
7503
+  'id' => 'workunitid',
7504
+  'table' => 'result',
7505
+  'field' => 'workunitid',
7506
+  'relationship' => 'none',
7507
+),
7508
+'sent_time' => array(
7509
+  'label' => 'Sent',
7510
+  'alter' => array(
7511
+    'alter_text' => 0,
7512
+    'text' => '',
7513
+    'make_link' => 0,
7514
+    'path' => '',
7515
+    'link_class' => '',
7516
+    'alt' => '',
7517
+    'prefix' => '',
7518
+    'suffix' => '',
7519
+    'target' => '',
7520
+    'help' => '',
7521
+    'trim' => 0,
7522
+    'max_length' => '',
7523
+    'word_boundary' => 1,
7524
+    'ellipsis' => 1,
7525
+    'html' => 0,
7526
+    'strip_tags' => 0,
7527
+  ),
7528
+  'empty' => '',
7529
+  'hide_empty' => 0,
7530
+  'empty_zero' => 0,
7531
+  'date_format' => 'custom',
7532
+  'custom_date_format' => 'j M Y G:i:s e',
7533
+  'exclude' => 1,
7534
+  'id' => 'sent_time',
7535
+  'table' => 'result',
7536
+  'field' => 'sent_time',
7537
+  'relationship' => 'none',
7538
+),
7539
+'received_time' => array(
7540
+  'label' => 'Received time',
7541
+  'alter' => array(
7542
+    'alter_text' => 0,
7543
+    'text' => '',
7544
+    'make_link' => 0,
7545
+    'path' => '',
7546
+    'link_class' => '',
7547
+    'alt' => '',
7548
+    'prefix' => '',
7549
+    'suffix' => '',
7550
+    'target' => '',
7551
+    'help' => '',
7552
+    'trim' => 0,
7553
+    'max_length' => '',
7554
+    'word_boundary' => 1,
7555
+    'ellipsis' => 1,
7556
+    'html' => 0,
7557
+    'strip_tags' => 0,
7558
+  ),
7559
+  'empty' => '',
7560
+  'hide_empty' => 0,
7561
+  'empty_zero' => 0,
7562
+  'date_format' => 'small',
7563
+  'custom_date_format' => '',
7564
+  'exclude' => 1,
7565
+  'id' => 'received_time',
7566
+  'table' => 'result',
7567
+  'field' => 'received_time',
7568
+  'relationship' => 'none',
7569
+),
7570
+'report_deadline' => array(
7571
+  'label' => 'Report deadline',
7572
+  'alter' => array(
7573
+    'alter_text' => 0,
7574
+    'text' => '',
7575
+    'make_link' => 0,
7576
+    'path' => '',
7577
+    'link_class' => '',
7578
+    'alt' => '',
7579
+    'prefix' => '',
7580
+    'suffix' => '',
7581
+    'target' => '',
7582
+    'help' => '',
7583
+    'trim' => 0,
7584
+    'max_length' => '',
7585
+    'word_boundary' => 1,
7586
+    'ellipsis' => 1,
7587
+    'html' => 0,
7588
+    'strip_tags' => 0,
7589
+  ),
7590
+  'empty' => '',
7591
+  'hide_empty' => 0,
7592
+  'empty_zero' => 0,
7593
+  'date_format' => 'small',
7594
+  'custom_date_format' => '',
7595
+  'exclude' => 1,
7596
+  'id' => 'report_deadline',
7597
+  'table' => 'result',
7598
+  'field' => 'report_deadline',
7599
+  'relationship' => 'none',
7600
+),
7601
+'phpcode_3' => array(
7602
+  'label' => 'Sent',
7603
+  'alter' => array(
7604
+    'alter_text' => 0,
7605
+    'text' => '',
7606
+    'make_link' => 0,
7607
+    'path' => '',
7608
+    'absolute' => 0,
7609
+    'link_class' => '',
7610
+    'alt' => '',
7611
+    'rel' => '',
7612
+    'prefix' => '',
7613
+    'suffix' => '',
7614
+    'target' => '',
7615
+    'help' => '',
7616
+    'trim' => 0,
7617
+    'max_length' => '',
7618
+    'word_boundary' => 1,
7619
+    'ellipsis' => 1,
7620
+    'html' => 0,
7621
+    'strip_tags' => 0,
7622
+  ),
7623
+  'empty' => '',
7624
+  'hide_empty' => 0,
7625
+  'empty_zero' => 0,
7626
+  'hide_alter_empty' => 1,
7627
+  'value' => '<?php
7628 7628
   require_boinc(\'util\');
7629 7629
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
7630 7630
 ?>',
7631
-      'exclude' => 0,
7632
-      'id' => 'phpcode_3',
7633
-      'table' => 'customfield',
7634
-      'field' => 'phpcode',
7635
-      'relationship' => 'none',
7636
-    ),
7637
-    'phpcode' => array(
7638
-      'label' => 'Time reported or deadline',
7639
-      'alter' => array(
7640
-        'alter_text' => 0,
7641
-        'text' => '',
7642
-        'make_link' => 0,
7643
-        'path' => '',
7644
-        'absolute' => 0,
7645
-        'link_class' => '',
7646
-        'alt' => '',
7647
-        'rel' => '',
7648
-        'prefix' => '',
7649
-        'suffix' => '',
7650
-        'target' => '',
7651
-        'help' => '',
7652
-        'trim' => 0,
7653
-        'max_length' => '',
7654
-        'word_boundary' => 1,
7655
-        'ellipsis' => 1,
7656
-        'html' => 0,
7657
-        'strip_tags' => 0,
7658
-      ),
7659
-      'empty' => '',
7660
-      'hide_empty' => 0,
7661
-      'empty_zero' => 0,
7662
-      'hide_alter_empty' => 1,
7663
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7664
-      'exclude' => 0,
7665
-      'id' => 'phpcode',
7666
-      'table' => 'customfield',
7667
-      'field' => 'phpcode',
7668
-      'override' => array(
7669
-        'button' => 'Override',
7670
-      ),
7671
-      'relationship' => 'none',
7672
-    ),
7673
-    'server_state' => array(
7674
-      'label' => 'Server state',
7675
-      'alter' => array(
7676
-        'alter_text' => 0,
7677
-        'text' => '',
7678
-        'make_link' => 0,
7679
-        'path' => '',
7680
-        'link_class' => '',
7681
-        'alt' => '',
7682
-        'prefix' => '',
7683
-        'suffix' => '',
7684
-        'target' => '',
7685
-        'help' => '',
7686
-        'trim' => 0,
7687
-        'max_length' => '',
7688
-        'word_boundary' => 1,
7689
-        'ellipsis' => 1,
7690
-        'html' => 0,
7691
-        'strip_tags' => 0,
7692
-      ),
7693
-      'empty' => '',
7694
-      'hide_empty' => 0,
7695
-      'empty_zero' => 0,
7696
-      'set_precision' => FALSE,
7697
-      'precision' => 0,
7698
-      'decimal' => '.',
7699
-      'separator' => '',
7700
-      'prefix' => '',
7701
-      'suffix' => '',
7702
-      'exclude' => 1,
7703
-      'id' => 'server_state',
7704
-      'table' => 'result',
7705
-      'field' => 'server_state',
7706
-      'relationship' => 'none',
7707
-    ),
7708
-    'outcome' => array(
7709
-      'label' => 'Outcome',
7710
-      'alter' => array(
7711
-        'alter_text' => 0,
7712
-        'text' => '',
7713
-        'make_link' => 0,
7714
-        'path' => '',
7715
-        'link_class' => '',
7716
-        'alt' => '',
7717
-        'prefix' => '',
7718
-        'suffix' => '',
7719
-        'target' => '',
7720
-        'help' => '',
7721
-        'trim' => 0,
7722
-        'max_length' => '',
7723
-        'word_boundary' => 1,
7724
-        'ellipsis' => 1,
7725
-        'html' => 0,
7726
-        'strip_tags' => 0,
7727
-      ),
7728
-      'empty' => '',
7729
-      'hide_empty' => 0,
7730
-      'empty_zero' => 0,
7731
-      'set_precision' => FALSE,
7732
-      'precision' => 0,
7733
-      'decimal' => '.',
7734
-      'separator' => '',
7735
-      'prefix' => '',
7736
-      'suffix' => '',
7737
-      'exclude' => 1,
7738
-      'id' => 'outcome',
7739
-      'table' => 'result',
7740
-      'field' => 'outcome',
7741
-      'relationship' => 'none',
7742
-    ),
7743
-    'client_state' => array(
7744
-      'label' => 'Client state',
7745
-      'alter' => array(
7746
-        'alter_text' => 0,
7747
-        'text' => '',
7748
-        'make_link' => 0,
7749
-        'path' => '',
7750
-        'link_class' => '',
7751
-        'alt' => '',
7752
-        'prefix' => '',
7753
-        'suffix' => '',
7754
-        'target' => '',
7755
-        'help' => '',
7756
-        'trim' => 0,
7757
-        'max_length' => '',
7758
-        'word_boundary' => 1,
7759
-        'ellipsis' => 1,
7760
-        'html' => 0,
7761
-        'strip_tags' => 0,
7762
-      ),
7763
-      'empty' => '',
7764
-      'hide_empty' => 0,
7765
-      'empty_zero' => 0,
7766
-      'set_precision' => FALSE,
7767
-      'precision' => 0,
7768
-      'decimal' => '.',
7769
-      'separator' => '',
7770
-      'prefix' => '',
7771
-      'suffix' => '',
7772
-      'exclude' => 1,
7773
-      'id' => 'client_state',
7774
-      'table' => 'result',
7775
-      'field' => 'client_state',
7776
-      'relationship' => 'none',
7777
-    ),
7778
-    'validate_state' => array(
7779
-      'label' => 'Validation state',
7780
-      'alter' => array(
7781
-        'alter_text' => 0,
7782
-        'text' => '',
7783
-        'make_link' => 0,
7784
-        'path' => '',
7785
-        'link_class' => '',
7786
-        'alt' => '',
7787
-        'prefix' => '',
7788
-        'suffix' => '',
7789
-        'target' => '',
7790
-        'help' => '',
7791
-        'trim' => 0,
7792
-        'max_length' => '',
7793
-        'word_boundary' => 1,
7794
-        'ellipsis' => 1,
7795
-        'html' => 0,
7796
-        'strip_tags' => 0,
7797
-      ),
7798
-      'empty' => '',
7799
-      'hide_empty' => 0,
7800
-      'empty_zero' => 0,
7801
-      'set_precision' => FALSE,
7802
-      'precision' => 0,
7803
-      'decimal' => '.',
7804
-      'separator' => '',
7805
-      'prefix' => '',
7806
-      'suffix' => '',
7807
-      'exclude' => 1,
7808
-      'id' => 'validate_state',
7809
-      'table' => 'result',
7810
-      'field' => 'validate_state',
7811
-      'relationship' => 'none',
7812
-    ),
7813
-    'exit_status' => array(
7814
-      'label' => 'Exit status',
7815
-      'alter' => array(
7816
-        'alter_text' => 0,
7817
-        'text' => '',
7818
-        'make_link' => 0,
7819
-        'path' => '',
7820
-        'link_class' => '',
7821
-        'alt' => '',
7822
-        'prefix' => '',
7823
-        'suffix' => '',
7824
-        'target' => '',
7825
-        'help' => '',
7826
-        'trim' => 0,
7827
-        'max_length' => '',
7828
-        'word_boundary' => 1,
7829
-        'ellipsis' => 1,
7830
-        'html' => 0,
7831
-        'strip_tags' => 0,
7832
-      ),
7833
-      'empty' => '',
7834
-      'hide_empty' => 0,
7835
-      'empty_zero' => 0,
7836
-      'set_precision' => FALSE,
7837
-      'precision' => 0,
7838
-      'decimal' => '.',
7839
-      'separator' => '',
7840
-      'prefix' => '',
7841
-      'suffix' => '',
7842
-      'exclude' => 1,
7843
-      'id' => 'exit_status',
7844
-      'table' => 'result',
7845
-      'field' => 'exit_status',
7846
-      'relationship' => 'none',
7847
-    ),
7848
-    'phpcode_1' => array(
7849
-      'label' => 'Status',
7850
-      'alter' => array(
7851
-        'alter_text' => 0,
7852
-        'text' => '',
7853
-        'make_link' => 0,
7854
-        'path' => '',
7855
-        'link_class' => '',
7856
-        'alt' => '',
7857
-        'prefix' => '',
7858
-        'suffix' => '',
7859
-        'target' => '',
7860
-        'help' => '',
7861
-        'trim' => 0,
7862
-        'max_length' => '',
7863
-        'word_boundary' => 1,
7864
-        'ellipsis' => 1,
7865
-        'html' => 0,
7866
-        'strip_tags' => 0,
7867
-      ),
7868
-      'empty' => '',
7869
-      'hide_empty' => 0,
7870
-      'empty_zero' => 0,
7871
-      'value' => '<?php
7631
+  'exclude' => 0,
7632
+  'id' => 'phpcode_3',
7633
+  'table' => 'customfield',
7634
+  'field' => 'phpcode',
7635
+  'relationship' => 'none',
7636
+),
7637
+'phpcode' => array(
7638
+  'label' => 'Time reported or deadline',
7639
+  'alter' => array(
7640
+    'alter_text' => 0,
7641
+    'text' => '',
7642
+    'make_link' => 0,
7643
+    'path' => '',
7644
+    'absolute' => 0,
7645
+    'link_class' => '',
7646
+    'alt' => '',
7647
+    'rel' => '',
7648
+    'prefix' => '',
7649
+    'suffix' => '',
7650
+    'target' => '',
7651
+    'help' => '',
7652
+    'trim' => 0,
7653
+    'max_length' => '',
7654
+    'word_boundary' => 1,
7655
+    'ellipsis' => 1,
7656
+    'html' => 0,
7657
+    'strip_tags' => 0,
7658
+  ),
7659
+  'empty' => '',
7660
+  'hide_empty' => 0,
7661
+  'empty_zero' => 0,
7662
+  'hide_alter_empty' => 1,
7663
+  'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
7664
+  'exclude' => 0,
7665
+  'id' => 'phpcode',
7666
+  'table' => 'customfield',
7667
+  'field' => 'phpcode',
7668
+  'override' => array(
7669
+    'button' => 'Override',
7670
+  ),
7671
+  'relationship' => 'none',
7672
+),
7673
+'server_state' => array(
7674
+  'label' => 'Server state',
7675
+  'alter' => array(
7676
+    'alter_text' => 0,
7677
+    'text' => '',
7678
+    'make_link' => 0,
7679
+    'path' => '',
7680
+    'link_class' => '',
7681
+    'alt' => '',
7682
+    'prefix' => '',
7683
+    'suffix' => '',
7684
+    'target' => '',
7685
+    'help' => '',
7686
+    'trim' => 0,
7687
+    'max_length' => '',
7688
+    'word_boundary' => 1,
7689
+    'ellipsis' => 1,
7690
+    'html' => 0,
7691
+    'strip_tags' => 0,
7692
+  ),
7693
+  'empty' => '',
7694
+  'hide_empty' => 0,
7695
+  'empty_zero' => 0,
7696
+  'set_precision' => FALSE,
7697
+  'precision' => 0,
7698
+  'decimal' => '.',
7699
+  'separator' => '',
7700
+  'prefix' => '',
7701
+  'suffix' => '',
7702
+  'exclude' => 1,
7703
+  'id' => 'server_state',
7704
+  'table' => 'result',
7705
+  'field' => 'server_state',
7706
+  'relationship' => 'none',
7707
+),
7708
+'outcome' => array(
7709
+  'label' => 'Outcome',
7710
+  'alter' => array(
7711
+    'alter_text' => 0,
7712
+    'text' => '',
7713
+    'make_link' => 0,
7714
+    'path' => '',
7715
+    'link_class' => '',
7716
+    'alt' => '',
7717
+    'prefix' => '',
7718
+    'suffix' => '',
7719
+    'target' => '',
7720
+    'help' => '',
7721
+    'trim' => 0,
7722
+    'max_length' => '',
7723
+    'word_boundary' => 1,
7724
+    'ellipsis' => 1,
7725
+    'html' => 0,
7726
+    'strip_tags' => 0,
7727
+  ),
7728
+  'empty' => '',
7729
+  'hide_empty' => 0,
7730
+  'empty_zero' => 0,
7731
+  'set_precision' => FALSE,
7732
+  'precision' => 0,
7733
+  'decimal' => '.',
7734
+  'separator' => '',
7735
+  'prefix' => '',
7736
+  'suffix' => '',
7737
+  'exclude' => 1,
7738
+  'id' => 'outcome',
7739
+  'table' => 'result',
7740
+  'field' => 'outcome',
7741
+  'relationship' => 'none',
7742
+),
7743
+'client_state' => array(
7744
+  'label' => 'Client state',
7745
+  'alter' => array(
7746
+    'alter_text' => 0,
7747
+    'text' => '',
7748
+    'make_link' => 0,
7749
+    'path' => '',
7750
+    'link_class' => '',
7751
+    'alt' => '',
7752
+    'prefix' => '',
7753
+    'suffix' => '',
7754
+    'target' => '',
7755
+    'help' => '',
7756
+    'trim' => 0,
7757
+    'max_length' => '',
7758
+    'word_boundary' => 1,
7759
+    'ellipsis' => 1,
7760
+    'html' => 0,
7761
+    'strip_tags' => 0,
7762
+  ),
7763
+  'empty' => '',
7764
+  'hide_empty' => 0,
7765
+  'empty_zero' => 0,
7766
+  'set_precision' => FALSE,
7767
+  'precision' => 0,
7768
+  'decimal' => '.',
7769
+  'separator' => '',
7770
+  'prefix' => '',
7771
+  'suffix' => '',
7772
+  'exclude' => 1,
7773
+  'id' => 'client_state',
7774
+  'table' => 'result',
7775
+  'field' => 'client_state',
7776
+  'relationship' => 'none',
7777
+),
7778
+'validate_state' => array(
7779
+  'label' => 'Validation state',
7780
+  'alter' => array(
7781
+    'alter_text' => 0,
7782
+    'text' => '',
7783
+    'make_link' => 0,
7784
+    'path' => '',
7785
+    'link_class' => '',
7786
+    'alt' => '',
7787
+    'prefix' => '',
7788
+    'suffix' => '',
7789
+    'target' => '',
7790
+    'help' => '',
7791
+    'trim' => 0,
7792
+    'max_length' => '',
7793
+    'word_boundary' => 1,
7794
+    'ellipsis' => 1,
7795
+    'html' => 0,
7796
+    'strip_tags' => 0,
7797
+  ),
7798
+  'empty' => '',
7799
+  'hide_empty' => 0,
7800
+  'empty_zero' => 0,
7801
+  'set_precision' => FALSE,
7802
+  'precision' => 0,
7803
+  'decimal' => '.',
7804
+  'separator' => '',
7805
+  'prefix' => '',
7806
+  'suffix' => '',
7807
+  'exclude' => 1,
7808
+  'id' => 'validate_state',
7809
+  'table' => 'result',
7810
+  'field' => 'validate_state',
7811
+  'relationship' => 'none',
7812
+),
7813
+'exit_status' => array(
7814
+  'label' => 'Exit status',
7815
+  'alter' => array(
7816
+    'alter_text' => 0,
7817
+    'text' => '',
7818
+    'make_link' => 0,
7819
+    'path' => '',
7820
+    'link_class' => '',
7821
+    'alt' => '',
7822
+    'prefix' => '',
7823
+    'suffix' => '',
7824
+    'target' => '',
7825
+    'help' => '',
7826
+    'trim' => 0,
7827
+    'max_length' => '',
7828
+    'word_boundary' => 1,
7829
+    'ellipsis' => 1,
7830
+    'html' => 0,
7831
+    'strip_tags' => 0,
7832
+  ),
7833
+  'empty' => '',
7834
+  'hide_empty' => 0,
7835
+  'empty_zero' => 0,
7836
+  'set_precision' => FALSE,
7837
+  'precision' => 0,
7838
+  'decimal' => '.',
7839
+  'separator' => '',
7840
+  'prefix' => '',
7841
+  'suffix' => '',
7842
+  'exclude' => 1,
7843
+  'id' => 'exit_status',
7844
+  'table' => 'result',
7845
+  'field' => 'exit_status',
7846
+  'relationship' => 'none',
7847
+),
7848
+'phpcode_1' => array(
7849
+  'label' => 'Status',
7850
+  'alter' => array(
7851
+    'alter_text' => 0,
7852
+    'text' => '',
7853
+    'make_link' => 0,
7854
+    'path' => '',
7855
+    'link_class' => '',
7856
+    'alt' => '',
7857
+    'prefix' => '',
7858
+    'suffix' => '',
7859
+    'target' => '',
7860
+    'help' => '',
7861
+    'trim' => 0,
7862
+    'max_length' => '',
7863
+    'word_boundary' => 1,
7864
+    'ellipsis' => 1,
7865
+    'html' => 0,
7866
+    'strip_tags' => 0,
7867
+  ),
7868
+  'empty' => '',
7869
+  'hide_empty' => 0,
7870
+  'empty_zero' => 0,
7871
+  'value' => '<?php
7872 7872
   require_boinc(\'result\');
7873 7873
   $result = new stdClass();
7874 7874
   $result->server_state = $data->result_server_state;
@@ -7878,2214 +7878,2214 @@  discard block
 block discarded – undo
7878 7878
   $result->exit_status = $data->result_exit_status;
7879 7879
   return state_string($result);
7880 7880
 ?>',
7881
-      'exclude' => 0,
7882
-      'id' => 'phpcode_1',
7883
-      'table' => 'customfield',
7884
-      'field' => 'phpcode',
7885
-      'override' => array(
7886
-        'button' => 'Override',
7887
-      ),
7888
-      'relationship' => 'none',
7889
-    ),
7890
-    'elapsed_time' => array(
7891
-      'label' => 'Run time',
7892
-      'alter' => array(
7893
-        'alter_text' => 0,
7894
-        'text' => '',
7895
-        'make_link' => 0,
7896
-        'path' => '',
7897
-        'absolute' => 0,
7898
-        'link_class' => '',
7899
-        'alt' => '',
7900
-        'rel' => '',
7901
-        'prefix' => '',
7902
-        'suffix' => '',
7903
-        'target' => '',
7904
-        'help' => '',
7905
-        'trim' => 0,
7906
-        'max_length' => '',
7907
-        'word_boundary' => 1,
7908
-        'ellipsis' => 1,
7909
-        'html' => 0,
7910
-        'strip_tags' => 0,
7911
-      ),
7912
-      'empty' => '',
7913
-      'hide_empty' => 0,
7914
-      'empty_zero' => 0,
7915
-      'hide_alter_empty' => 1,
7916
-      'set_precision' => 1,
7917
-      'precision' => '2',
7918
-      'decimal' => '.',
7919
-      'separator' => ',',
7920
-      'format_plural' => 0,
7921
-      'format_plural_singular' => '1',
7922
-      'format_plural_plural' => '@count',
7923
-      'prefix' => '',
7924
-      'suffix' => '',
7925
-      'exclude' => 0,
7926
-      'id' => 'elapsed_time',
7927
-      'table' => 'result',
7928
-      'field' => 'elapsed_time',
7929
-      'relationship' => 'none',
7930
-    ),
7931
-    'cpu_time' => array(
7932
-      'label' => 'CPU time',
7933
-      'alter' => array(
7934
-        'alter_text' => 0,
7935
-        'text' => '',
7936
-        'make_link' => 0,
7937
-        'path' => '',
7938
-        'absolute' => 0,
7939
-        'link_class' => '',
7940
-        'alt' => '',
7941
-        'rel' => '',
7942
-        'prefix' => '',
7943
-        'suffix' => '',
7944
-        'target' => '',
7945
-        'help' => '',
7946
-        'trim' => 0,
7947
-        'max_length' => '',
7948
-        'word_boundary' => 1,
7949
-        'ellipsis' => 1,
7950
-        'html' => 0,
7951
-        'strip_tags' => 0,
7952
-      ),
7953
-      'empty' => '',
7954
-      'hide_empty' => 0,
7955
-      'empty_zero' => 0,
7956
-      'hide_alter_empty' => 1,
7957
-      'set_precision' => 1,
7958
-      'precision' => '2',
7959
-      'decimal' => '.',
7960
-      'separator' => ',',
7961
-      'format_plural' => 0,
7962
-      'format_plural_singular' => '1',
7963
-      'format_plural_plural' => '@count',
7964
-      'prefix' => '',
7965
-      'suffix' => '',
7966
-      'exclude' => 0,
7967
-      'id' => 'cpu_time',
7968
-      'table' => 'result',
7969
-      'field' => 'cpu_time',
7970
-      'relationship' => 'none',
7971
-    ),
7972
-    'granted_credit' => array(
7973
-      'label' => 'Granted credit',
7974
-      'alter' => array(
7975
-        'alter_text' => 0,
7976
-        'text' => '',
7977
-        'make_link' => 0,
7978
-        'path' => '',
7979
-        'absolute' => 0,
7980
-        'link_class' => '',
7981
-        'alt' => '',
7982
-        'rel' => '',
7983
-        'prefix' => '',
7984
-        'suffix' => '',
7985
-        'target' => '',
7986
-        'help' => '',
7987
-        'trim' => 0,
7988
-        'max_length' => '',
7989
-        'word_boundary' => 1,
7990
-        'ellipsis' => 1,
7991
-        'html' => 0,
7992
-        'strip_tags' => 0,
7993
-      ),
7994
-      'empty' => '',
7995
-      'hide_empty' => 0,
7996
-      'empty_zero' => 0,
7997
-      'hide_alter_empty' => 0,
7998
-      'set_precision' => 1,
7999
-      'precision' => '0',
8000
-      'decimal' => '.',
8001
-      'separator' => ',',
8002
-      'format_plural' => 0,
8003
-      'format_plural_singular' => '1',
8004
-      'format_plural_plural' => '@count',
8005
-      'prefix' => '',
8006
-      'suffix' => '',
8007
-      'exclude' => 0,
8008
-      'id' => 'granted_credit',
8009
-      'table' => 'result',
8010
-      'field' => 'granted_credit',
8011
-      'relationship' => 'none',
8012
-    ),
8013
-    'appid' => array(
8014
-      'label' => 'Application ID',
8015
-      'alter' => array(
8016
-        'alter_text' => 0,
8017
-        'text' => '',
8018
-        'make_link' => 0,
8019
-        'path' => '',
8020
-        'absolute' => 0,
8021
-        'link_class' => '',
8022
-        'alt' => '',
8023
-        'rel' => '',
8024
-        'prefix' => '',
8025
-        'suffix' => '',
8026
-        'target' => '',
8027
-        'help' => '',
8028
-        'trim' => 0,
8029
-        'max_length' => '',
8030
-        'word_boundary' => 1,
8031
-        'ellipsis' => 1,
8032
-        'html' => 0,
8033
-        'strip_tags' => 0,
8034
-      ),
8035
-      'empty' => '',
8036
-      'hide_empty' => 0,
8037
-      'empty_zero' => 0,
8038
-      'hide_alter_empty' => 1,
8039
-      'set_precision' => FALSE,
8040
-      'precision' => 0,
8041
-      'decimal' => '.',
8042
-      'separator' => '',
8043
-      'format_plural' => 0,
8044
-      'format_plural_singular' => '1',
8045
-      'format_plural_plural' => '@count',
8046
-      'prefix' => '',
8047
-      'suffix' => '',
8048
-      'exclude' => 1,
8049
-      'id' => 'appid',
8050
-      'table' => 'result',
8051
-      'field' => 'appid',
8052
-      'relationship' => 'none',
8053
-    ),
8054
-    'app_version_id' => array(
8055
-      'label' => 'Application version',
8056
-      'alter' => array(
8057
-        'alter_text' => 0,
8058
-        'text' => '',
8059
-        'make_link' => 0,
8060
-        'path' => '',
8061
-        'link_class' => '',
8062
-        'alt' => '',
8063
-        'prefix' => '',
8064
-        'suffix' => '',
8065
-        'target' => '',
8066
-        'help' => '',
8067
-        'trim' => 0,
8068
-        'max_length' => '',
8069
-        'word_boundary' => 1,
8070
-        'ellipsis' => 1,
8071
-        'html' => 0,
8072
-        'strip_tags' => 0,
8073
-      ),
8074
-      'empty' => '',
8075
-      'hide_empty' => 0,
8076
-      'empty_zero' => 0,
8077
-      'set_precision' => FALSE,
8078
-      'precision' => 0,
8079
-      'decimal' => '.',
8080
-      'separator' => '',
8081
-      'prefix' => '',
8082
-      'suffix' => '',
8083
-      'exclude' => 1,
8084
-      'id' => 'app_version_id',
8085
-      'table' => 'result',
8086
-      'field' => 'app_version_id',
8087
-      'relationship' => 'none',
8088
-    ),
8089
-    'phpcode_2' => array(
8090
-      'label' => 'Application',
8091
-      'alter' => array(
8092
-        'alter_text' => 0,
8093
-        'text' => '',
8094
-        'make_link' => 0,
8095
-        'path' => '',
8096
-        'absolute' => 0,
8097
-        'link_class' => '',
8098
-        'alt' => '',
8099
-        'rel' => '',
8100
-        'prefix' => '',
8101
-        'suffix' => '',
8102
-        'target' => '',
8103
-        'help' => '',
8104
-        'trim' => 0,
8105
-        'max_length' => '',
8106
-        'word_boundary' => 1,
8107
-        'ellipsis' => 1,
8108
-        'html' => 0,
8109
-        'strip_tags' => 0,
8110
-      ),
8111
-      'empty' => '',
8112
-      'hide_empty' => 0,
8113
-      'empty_zero' => 0,
8114
-      'hide_alter_empty' => 1,
8115
-      'value' => '<?php
7881
+  'exclude' => 0,
7882
+  'id' => 'phpcode_1',
7883
+  'table' => 'customfield',
7884
+  'field' => 'phpcode',
7885
+  'override' => array(
7886
+    'button' => 'Override',
7887
+  ),
7888
+  'relationship' => 'none',
7889
+),
7890
+'elapsed_time' => array(
7891
+  'label' => 'Run time',
7892
+  'alter' => array(
7893
+    'alter_text' => 0,
7894
+    'text' => '',
7895
+    'make_link' => 0,
7896
+    'path' => '',
7897
+    'absolute' => 0,
7898
+    'link_class' => '',
7899
+    'alt' => '',
7900
+    'rel' => '',
7901
+    'prefix' => '',
7902
+    'suffix' => '',
7903
+    'target' => '',
7904
+    'help' => '',
7905
+    'trim' => 0,
7906
+    'max_length' => '',
7907
+    'word_boundary' => 1,
7908
+    'ellipsis' => 1,
7909
+    'html' => 0,
7910
+    'strip_tags' => 0,
7911
+  ),
7912
+  'empty' => '',
7913
+  'hide_empty' => 0,
7914
+  'empty_zero' => 0,
7915
+  'hide_alter_empty' => 1,
7916
+  'set_precision' => 1,
7917
+  'precision' => '2',
7918
+  'decimal' => '.',
7919
+  'separator' => ',',
7920
+  'format_plural' => 0,
7921
+  'format_plural_singular' => '1',
7922
+  'format_plural_plural' => '@count',
7923
+  'prefix' => '',
7924
+  'suffix' => '',
7925
+  'exclude' => 0,
7926
+  'id' => 'elapsed_time',
7927
+  'table' => 'result',
7928
+  'field' => 'elapsed_time',
7929
+  'relationship' => 'none',
7930
+),
7931
+'cpu_time' => array(
7932
+  'label' => 'CPU time',
7933
+  'alter' => array(
7934
+    'alter_text' => 0,
7935
+    'text' => '',
7936
+    'make_link' => 0,
7937
+    'path' => '',
7938
+    'absolute' => 0,
7939
+    'link_class' => '',
7940
+    'alt' => '',
7941
+    'rel' => '',
7942
+    'prefix' => '',
7943
+    'suffix' => '',
7944
+    'target' => '',
7945
+    'help' => '',
7946
+    'trim' => 0,
7947
+    'max_length' => '',
7948
+    'word_boundary' => 1,
7949
+    'ellipsis' => 1,
7950
+    'html' => 0,
7951
+    'strip_tags' => 0,
7952
+  ),
7953
+  'empty' => '',
7954
+  'hide_empty' => 0,
7955
+  'empty_zero' => 0,
7956
+  'hide_alter_empty' => 1,
7957
+  'set_precision' => 1,
7958
+  'precision' => '2',
7959
+  'decimal' => '.',
7960
+  'separator' => ',',
7961
+  'format_plural' => 0,
7962
+  'format_plural_singular' => '1',
7963
+  'format_plural_plural' => '@count',
7964
+  'prefix' => '',
7965
+  'suffix' => '',
7966
+  'exclude' => 0,
7967
+  'id' => 'cpu_time',
7968
+  'table' => 'result',
7969
+  'field' => 'cpu_time',
7970
+  'relationship' => 'none',
7971
+),
7972
+'granted_credit' => array(
7973
+  'label' => 'Granted credit',
7974
+  'alter' => array(
7975
+    'alter_text' => 0,
7976
+    'text' => '',
7977
+    'make_link' => 0,
7978
+    'path' => '',
7979
+    'absolute' => 0,
7980
+    'link_class' => '',
7981
+    'alt' => '',
7982
+    'rel' => '',
7983
+    'prefix' => '',
7984
+    'suffix' => '',
7985
+    'target' => '',
7986
+    'help' => '',
7987
+    'trim' => 0,
7988
+    'max_length' => '',
7989
+    'word_boundary' => 1,
7990
+    'ellipsis' => 1,
7991
+    'html' => 0,
7992
+    'strip_tags' => 0,
7993
+  ),
7994
+  'empty' => '',
7995
+  'hide_empty' => 0,
7996
+  'empty_zero' => 0,
7997
+  'hide_alter_empty' => 0,
7998
+  'set_precision' => 1,
7999
+  'precision' => '0',
8000
+  'decimal' => '.',
8001
+  'separator' => ',',
8002
+  'format_plural' => 0,
8003
+  'format_plural_singular' => '1',
8004
+  'format_plural_plural' => '@count',
8005
+  'prefix' => '',
8006
+  'suffix' => '',
8007
+  'exclude' => 0,
8008
+  'id' => 'granted_credit',
8009
+  'table' => 'result',
8010
+  'field' => 'granted_credit',
8011
+  'relationship' => 'none',
8012
+),
8013
+'appid' => array(
8014
+  'label' => 'Application ID',
8015
+  'alter' => array(
8016
+    'alter_text' => 0,
8017
+    'text' => '',
8018
+    'make_link' => 0,
8019
+    'path' => '',
8020
+    'absolute' => 0,
8021
+    'link_class' => '',
8022
+    'alt' => '',
8023
+    'rel' => '',
8024
+    'prefix' => '',
8025
+    'suffix' => '',
8026
+    'target' => '',
8027
+    'help' => '',
8028
+    'trim' => 0,
8029
+    'max_length' => '',
8030
+    'word_boundary' => 1,
8031
+    'ellipsis' => 1,
8032
+    'html' => 0,
8033
+    'strip_tags' => 0,
8034
+  ),
8035
+  'empty' => '',
8036
+  'hide_empty' => 0,
8037
+  'empty_zero' => 0,
8038
+  'hide_alter_empty' => 1,
8039
+  'set_precision' => FALSE,
8040
+  'precision' => 0,
8041
+  'decimal' => '.',
8042
+  'separator' => '',
8043
+  'format_plural' => 0,
8044
+  'format_plural_singular' => '1',
8045
+  'format_plural_plural' => '@count',
8046
+  'prefix' => '',
8047
+  'suffix' => '',
8048
+  'exclude' => 1,
8049
+  'id' => 'appid',
8050
+  'table' => 'result',
8051
+  'field' => 'appid',
8052
+  'relationship' => 'none',
8053
+),
8054
+'app_version_id' => array(
8055
+  'label' => 'Application version',
8056
+  'alter' => array(
8057
+    'alter_text' => 0,
8058
+    'text' => '',
8059
+    'make_link' => 0,
8060
+    'path' => '',
8061
+    'link_class' => '',
8062
+    'alt' => '',
8063
+    'prefix' => '',
8064
+    'suffix' => '',
8065
+    'target' => '',
8066
+    'help' => '',
8067
+    'trim' => 0,
8068
+    'max_length' => '',
8069
+    'word_boundary' => 1,
8070
+    'ellipsis' => 1,
8071
+    'html' => 0,
8072
+    'strip_tags' => 0,
8073
+  ),
8074
+  'empty' => '',
8075
+  'hide_empty' => 0,
8076
+  'empty_zero' => 0,
8077
+  'set_precision' => FALSE,
8078
+  'precision' => 0,
8079
+  'decimal' => '.',
8080
+  'separator' => '',
8081
+  'prefix' => '',
8082
+  'suffix' => '',
8083
+  'exclude' => 1,
8084
+  'id' => 'app_version_id',
8085
+  'table' => 'result',
8086
+  'field' => 'app_version_id',
8087
+  'relationship' => 'none',
8088
+),
8089
+'phpcode_2' => array(
8090
+  'label' => 'Application',
8091
+  'alter' => array(
8092
+    'alter_text' => 0,
8093
+    'text' => '',
8094
+    'make_link' => 0,
8095
+    'path' => '',
8096
+    'absolute' => 0,
8097
+    'link_class' => '',
8098
+    'alt' => '',
8099
+    'rel' => '',
8100
+    'prefix' => '',
8101
+    'suffix' => '',
8102
+    'target' => '',
8103
+    'help' => '',
8104
+    'trim' => 0,
8105
+    'max_length' => '',
8106
+    'word_boundary' => 1,
8107
+    'ellipsis' => 1,
8108
+    'html' => 0,
8109
+    'strip_tags' => 0,
8110
+  ),
8111
+  'empty' => '',
8112
+  'hide_empty' => 0,
8113
+  'empty_zero' => 0,
8114
+  'hide_alter_empty' => 1,
8115
+  'value' => '<?php
8116 8116
   require_boinc(\'result\');
8117 8117
   $result = new stdClass();
8118 8118
   $result->appid = $data->result_appid;
8119 8119
   $result->app_version_id = $data->result_app_version_id;
8120 8120
   return app_version_string($result);
8121 8121
 ?>',
8122
-      'exclude' => 0,
8123
-      'id' => 'phpcode_2',
8124
-      'table' => 'customfield',
8125
-      'field' => 'phpcode',
8126
-      'override' => array(
8127
-        'button' => 'Override',
8128
-      ),
8129
-      'relationship' => 'none',
8130
-    ),
8131
-  ));
8132
-  $handler->override_option('arguments', array(
8133
-    'hostid' => array(
8134
-      'default_action' => 'not found',
8135
-      'style_plugin' => 'default_summary',
8136
-      'style_options' => array(),
8137
-      'wildcard' => 'all',
8138
-      'wildcard_substitution' => 'All',
8139
-      'title' => 'Tasks for computer %1',
8140
-      'breadcrumb' => '',
8141
-      'default_argument_type' => 'fixed',
8142
-      'default_argument' => '',
8143
-      'validate_type' => 'numeric',
8144
-      'validate_fail' => 'not found',
8145
-      'id' => 'hostid',
8146
-      'table' => 'result',
8147
-      'field' => 'hostid',
8148
-      'validate_user_argument_type' => 'uid',
8149
-      'validate_user_roles' => array(
8150
-        2 => 0,
8151
-        3 => 0,
8152
-      ),
8153
-      'relationship' => 'none',
8154
-      'default_options_div_prefix' => '',
8155
-      'default_argument_fixed' => '',
8156
-      'default_argument_user' => 0,
8157
-      'default_argument_php' => '',
8158
-      'validate_argument_node_type' => array(
8159
-        'forum' => 0,
8160
-        'job_post' => 0,
8161
-        'news' => 0,
8162
-        'page' => 0,
8163
-        'profile' => 0,
8164
-        'story' => 0,
8165
-        'team' => 0,
8166
-      ),
8167
-      'validate_argument_node_access' => 0,
8168
-      'validate_argument_nid_type' => 'nid',
8169
-      'validate_argument_vocabulary' => array(
8170
-        1 => 0,
8171
-      ),
8172
-      'validate_argument_type' => 'tid',
8173
-      'validate_argument_transform' => 0,
8174
-      'validate_user_restrict_roles' => 0,
8175
-      'validate_argument_php' => '',
8176
-    ),
8177
-  ));
8178
-  $handler->override_option('access', array(
8179
-    'type' => 'none',
8180
-  ));
8181
-  $handler->override_option('cache', array(
8182
-    'type' => 'none',
8183
-  ));
8184
-  $handler->override_option('items_per_page', 20);
8185
-  $handler->override_option('use_pager', '1');
8186
-  $handler->override_option('style_plugin', 'table');
8187
-  $handler->override_option('style_options', array(
8188
-    'grouping' => '',
8189
-    'override' => 1,
8190
-    'sticky' => 1,
8191
-    'order' => 'desc',
8192
-    'summary' => '',
8193
-    'columns' => array(
8194
-      'id' => 'id',
8195
-      'workunitid' => 'workunitid',
8196
-      'sent_time' => 'sent_time',
8197
-      'received_time' => 'received_time',
8198
-      'report_deadline' => 'report_deadline',
8199
-      'phpcode_3' => 'phpcode_3',
8200
-      'phpcode' => 'phpcode',
8201
-      'server_state' => 'server_state',
8202
-      'outcome' => 'outcome',
8203
-      'client_state' => 'client_state',
8204
-      'validate_state' => 'validate_state',
8205
-      'exit_status' => 'exit_status',
8206
-      'phpcode_1' => 'phpcode_1',
8207
-      'elapsed_time' => 'elapsed_time',
8208
-      'cpu_time' => 'cpu_time',
8209
-      'claimed_credit_1' => 'claimed_credit_1',
8210
-      'granted_credit' => 'granted_credit',
8211
-      'app_version_id' => 'app_version_id',
8212
-      'phpcode_2' => 'phpcode_2',
8213
-    ),
8214
-    'info' => array(
8215
-      'id' => array(
8216
-        'sortable' => 1,
8217
-        'separator' => '',
8218
-      ),
8219
-      'workunitid' => array(
8220
-        'sortable' => 1,
8221
-        'separator' => '',
8222
-      ),
8223
-      'sent_time' => array(
8224
-        'sortable' => 1,
8225
-        'separator' => '',
8226
-      ),
8227
-      'received_time' => array(
8228
-        'sortable' => 1,
8229
-        'separator' => '',
8230
-      ),
8231
-      'report_deadline' => array(
8232
-        'sortable' => 1,
8233
-        'separator' => '',
8234
-      ),
8235
-      'phpcode_3' => array(
8236
-        'separator' => '',
8237
-      ),
8238
-      'phpcode' => array(
8239
-        'separator' => '',
8240
-      ),
8241
-      'server_state' => array(
8242
-        'sortable' => 0,
8243
-        'separator' => '',
8244
-      ),
8245
-      'outcome' => array(
8246
-        'sortable' => 0,
8247
-        'separator' => '',
8248
-      ),
8249
-      'client_state' => array(
8250
-        'sortable' => 0,
8251
-        'separator' => '',
8252
-      ),
8253
-      'validate_state' => array(
8254
-        'sortable' => 0,
8255
-        'separator' => '',
8256
-      ),
8257
-      'exit_status' => array(
8258
-        'sortable' => 0,
8259
-        'separator' => '',
8260
-      ),
8261
-      'phpcode_1' => array(
8262
-        'separator' => '',
8263
-      ),
8264
-      'elapsed_time' => array(
8265
-        'sortable' => 1,
8266
-        'separator' => '',
8267
-      ),
8268
-      'cpu_time' => array(
8269
-        'sortable' => 1,
8270
-        'separator' => '',
8271
-      ),
8272
-      'claimed_credit_1' => array(
8273
-        'sortable' => 1,
8274
-        'separator' => '',
8275
-      ),
8276
-      'granted_credit' => array(
8277
-        'sortable' => 1,
8278
-        'separator' => '',
8279
-      ),
8280
-      'app_version_id' => array(
8281
-        'sortable' => 1,
8282
-        'separator' => '',
8283
-      ),
8284
-      'phpcode_2' => array(
8285
-        'separator' => '',
8286
-      ),
8287
-    ),
8288
-    'default' => 'id',
8289
-  ));
8290
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
8291
-  $handler->override_option('path', 'host/%/tasks/all');
8292
-  $handler->override_option('menu', array(
8293
-    'type' => 'default tab',
8294
-    'title' => 'All tasks',
8295
-    'description' => 'Show all tasks associated with the host',
8296
-    'weight' => '0',
8297
-    'name' => 'navigation',
8298
-  ));
8299
-  $handler->override_option('tab_options', array(
8300
-    'type' => 'tab',
8301
-    'title' => 'Tasks',
8302
-    'description' => 'Show all tasks',
8303
-    'weight' => '0',
8304
-    'name' => 'secondary-links',
8305
-  ));
8306
-  $handler = $view->new_display('page', 'Error', 'page_2');
8307
-  $handler->override_option('filters', array(
8308
-    'server_state' => array(
8309
-      'operator' => '=',
8310
-      'value' => array(
8311
-        'value' => '5',
8312
-        'min' => '',
8313
-        'max' => '',
8314
-      ),
8315
-      'group' => '0',
8316
-      'exposed' => FALSE,
8317
-      'expose' => array(
8318
-        'operator' => FALSE,
8319
-        'label' => '',
8320
-      ),
8321
-      'id' => 'server_state',
8322
-      'table' => 'result',
8323
-      'field' => 'server_state',
8324
-      'override' => array(
8325
-        'button' => 'Use default',
8326
-      ),
8327
-      'relationship' => 'none',
8328
-    ),
8329
-    'outcome' => array(
8330
-      'operator' => '>=',
8331
-      'value' => array(
8332
-        'value' => '3',
8333
-        'min' => '',
8334
-        'max' => '',
8335
-      ),
8336
-      'group' => '0',
8337
-      'exposed' => FALSE,
8338
-      'expose' => array(
8339
-        'operator' => FALSE,
8340
-        'label' => '',
8341
-      ),
8342
-      'id' => 'outcome',
8343
-      'table' => 'result',
8344
-      'field' => 'outcome',
8345
-      'override' => array(
8346
-        'button' => 'Use default',
8347
-      ),
8348
-      'relationship' => 'none',
8349
-    ),
8350
-    'outcome_1' => array(
8351
-      'operator' => 'not between',
8352
-      'value' => array(
8353
-        'value' => '',
8354
-        'min' => '4',
8355
-        'max' => '7',
8356
-      ),
8357
-      'group' => '0',
8358
-      'exposed' => FALSE,
8359
-      'expose' => array(
8360
-        'operator' => FALSE,
8361
-        'label' => '',
8362
-      ),
8363
-      'id' => 'outcome_1',
8364
-      'table' => 'result',
8365
-      'field' => 'outcome',
8366
-      'override' => array(
8367
-        'button' => 'Use default',
8368
-      ),
8369
-      'relationship' => 'none',
8370
-    ),
8371
-    'outcome_2' => array(
8372
-      'operator' => '<=',
8373
-      'value' => array(
8374
-        'value' => '7',
8375
-        'min' => '',
8376
-        'max' => '',
8377
-      ),
8378
-      'group' => '0',
8379
-      'exposed' => FALSE,
8380
-      'expose' => array(
8381
-        'operator' => FALSE,
8382
-        'label' => '',
8383
-      ),
8384
-      'id' => 'outcome_2',
8385
-      'table' => 'result',
8386
-      'field' => 'outcome',
8387
-      'override' => array(
8388
-        'button' => 'Use default',
8389
-      ),
8390
-      'relationship' => 'none',
8391
-    ),
8392
-  ));
8393
-  $handler->override_option('path', 'host/%/tasks/error');
8394
-  $handler->override_option('menu', array(
8395
-    'type' => 'tab',
8396
-    'title' => 'Error',
8397
-    'description' => 'Show tasks with errors associated with the host',
8398
-    'weight' => '5',
8399
-    'name' => 'navigation',
8400
-  ));
8401
-  $handler->override_option('tab_options', array(
8402
-    'type' => 'none',
8403
-    'title' => '',
8404
-    'description' => '',
8405
-    'weight' => 0,
8406
-    'name' => 'navigation',
8407
-  ));
8408
-  $handler = $view->new_display('page', 'In progress', 'page_3');
8409
-  $handler->override_option('filters', array(
8410
-    'server_state' => array(
8411
-      'operator' => '=',
8412
-      'value' => array(
8413
-        'value' => '4',
8414
-        'min' => '',
8415
-        'max' => '',
8416
-      ),
8417
-      'group' => '0',
8418
-      'exposed' => FALSE,
8419
-      'expose' => array(
8420
-        'operator' => FALSE,
8421
-        'label' => '',
8422
-      ),
8423
-      'id' => 'server_state',
8424
-      'table' => 'result',
8425
-      'field' => 'server_state',
8426
-      'override' => array(
8427
-        'button' => 'Use default',
8428
-      ),
8429
-      'relationship' => 'none',
8430
-    ),
8431
-  ));
8432
-  $handler->override_option('path', 'host/%/tasks/active');
8433
-  $handler->override_option('menu', array(
8434
-    'type' => 'tab',
8435
-    'title' => 'In progress',
8436
-    'description' => 'Show tasks in progress associated with the host',
8437
-    'weight' => '1',
8438
-    'name' => 'navigation',
8439
-  ));
8440
-  $handler->override_option('tab_options', array(
8441
-    'type' => 'none',
8442
-    'title' => '',
8443
-    'description' => '',
8444
-    'weight' => 0,
8445
-    'name' => 'navigation',
8446
-  ));
8447
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
8448
-  $handler->override_option('filters', array(
8449
-    'server_state' => array(
8450
-      'operator' => '=',
8451
-      'value' => array(
8452
-        'value' => '5',
8453
-        'min' => '',
8454
-        'max' => '',
8455
-      ),
8456
-      'group' => '0',
8457
-      'exposed' => FALSE,
8458
-      'expose' => array(
8459
-        'operator' => FALSE,
8460
-        'label' => '',
8461
-      ),
8462
-      'id' => 'server_state',
8463
-      'table' => 'result',
8464
-      'field' => 'server_state',
8465
-      'override' => array(
8466
-        'button' => 'Use default',
8467
-      ),
8468
-      'relationship' => 'none',
8469
-    ),
8470
-    'views_or_begin_2' => array(
8471
-      'id' => 'views_or_begin_2',
8472
-      'table' => 'views_or',
8473
-      'field' => 'views_or_begin',
8474
-    ),
8475
-    'outcome' => array(
8476
-      'operator' => '=',
8477
-      'value' => array(
8478
-        'value' => '6',
8479
-        'min' => '',
8480
-        'max' => '',
8481
-      ),
8482
-      'group' => '0',
8483
-      'exposed' => FALSE,
8484
-      'expose' => array(
8485
-        'operator' => FALSE,
8486
-        'label' => '',
8487
-      ),
8488
-      'id' => 'outcome',
8489
-      'table' => 'result',
8490
-      'field' => 'outcome',
8491
-      'override' => array(
8492
-        'button' => 'Use default',
8493
-      ),
8494
-      'relationship' => 'none',
8495
-    ),
8496
-    'views_or_next_3' => array(
8497
-      'id' => 'views_or_next_3',
8498
-      'table' => 'views_or',
8499
-      'field' => 'views_or_next',
8500
-    ),
8501
-    'outcome_1' => array(
8502
-      'operator' => '=',
8503
-      'value' => array(
8504
-        'value' => '1',
8505
-        'min' => '',
8506
-        'max' => '',
8507
-      ),
8508
-      'group' => '0',
8509
-      'exposed' => FALSE,
8510
-      'expose' => array(
8511
-        'operator' => FALSE,
8512
-        'label' => '',
8513
-      ),
8514
-      'id' => 'outcome_1',
8515
-      'table' => 'result',
8516
-      'field' => 'outcome',
8517
-      'override' => array(
8518
-        'button' => 'Use default',
8519
-      ),
8520
-      'relationship' => 'none',
8521
-    ),
8522
-    'views_or_begin' => array(
8523
-      'id' => 'views_or_begin',
8524
-      'table' => 'views_or',
8525
-      'field' => 'views_or_begin',
8526
-    ),
8527
-    'validate_state' => array(
8528
-      'operator' => '=',
8529
-      'value' => array(
8530
-        'value' => '2',
8531
-        'min' => '',
8532
-        'max' => '',
8533
-      ),
8534
-      'group' => '0',
8535
-      'exposed' => FALSE,
8536
-      'expose' => array(
8537
-        'operator' => FALSE,
8538
-        'label' => '',
8539
-      ),
8540
-      'id' => 'validate_state',
8541
-      'table' => 'result',
8542
-      'field' => 'validate_state',
8543
-      'override' => array(
8544
-        'button' => 'Use default',
8545
-      ),
8546
-      'relationship' => 'none',
8547
-    ),
8548
-    'views_or_next_4' => array(
8549
-      'id' => 'views_or_next_4',
8550
-      'table' => 'views_or',
8551
-      'field' => 'views_or_next',
8552
-    ),
8553
-    'validate_state_1' => array(
8554
-      'operator' => '=',
8555
-      'value' => array(
8556
-        'value' => '3',
8557
-        'min' => '',
8558
-        'max' => '',
8559
-      ),
8560
-      'group' => '0',
8561
-      'exposed' => FALSE,
8562
-      'expose' => array(
8563
-        'operator' => FALSE,
8564
-        'label' => '',
8565
-      ),
8566
-      'id' => 'validate_state_1',
8567
-      'table' => 'result',
8568
-      'field' => 'validate_state',
8569
-      'override' => array(
8570
-        'button' => 'Use default',
8571
-      ),
8572
-      'relationship' => 'none',
8573
-    ),
8574
-    'views_or_next' => array(
8575
-      'id' => 'views_or_next',
8576
-      'table' => 'views_or',
8577
-      'field' => 'views_or_next',
8578
-    ),
8579
-    'validate_state_2' => array(
8580
-      'operator' => '=',
8581
-      'value' => array(
8582
-        'value' => '5',
8583
-        'min' => '',
8584
-        'max' => '',
8585
-      ),
8586
-      'group' => '0',
8587
-      'exposed' => FALSE,
8588
-      'expose' => array(
8589
-        'operator' => FALSE,
8590
-        'label' => '',
8591
-      ),
8592
-      'id' => 'validate_state_2',
8593
-      'table' => 'result',
8594
-      'field' => 'validate_state',
8595
-      'override' => array(
8596
-        'button' => 'Use default',
8597
-      ),
8598
-      'relationship' => 'none',
8599
-    ),
8600
-    'views_or_end_3' => array(
8601
-      'id' => 'views_or_end_3',
8602
-      'table' => 'views_or',
8603
-      'field' => 'views_or_end',
8604
-    ),
8605
-    'views_or_end_2' => array(
8606
-      'id' => 'views_or_end_2',
8607
-      'table' => 'views_or',
8608
-      'field' => 'views_or_end',
8609
-    ),
8610
-  ));
8611
-  $handler->override_option('path', 'host/%/tasks/invalid');
8612
-  $handler->override_option('menu', array(
8613
-    'type' => 'tab',
8614
-    'title' => 'Invalid',
8615
-    'description' => 'Show invalidated tasks associated with the host',
8616
-    'weight' => '4',
8617
-    'name' => 'navigation',
8618
-  ));
8619
-  $handler->override_option('tab_options', array(
8620
-    'type' => 'none',
8621
-    'title' => '',
8622
-    'description' => '',
8623
-    'weight' => 0,
8624
-    'name' => 'navigation',
8625
-  ));
8626
-  $handler = $view->new_display('page', 'Pending', 'page_5');
8627
-  $handler->override_option('filters', array(
8628
-    'server_state' => array(
8629
-      'operator' => '=',
8630
-      'value' => array(
8631
-        'value' => '5',
8632
-        'min' => '',
8633
-        'max' => '',
8634
-      ),
8635
-      'group' => '0',
8636
-      'exposed' => FALSE,
8637
-      'expose' => array(
8638
-        'operator' => FALSE,
8639
-        'label' => '',
8640
-      ),
8641
-      'id' => 'server_state',
8642
-      'table' => 'result',
8643
-      'field' => 'server_state',
8644
-      'override' => array(
8645
-        'button' => 'Use default',
8646
-      ),
8647
-      'relationship' => 'none',
8648
-    ),
8649
-    'outcome' => array(
8650
-      'operator' => '=',
8651
-      'value' => array(
8652
-        'value' => '1',
8653
-        'min' => '',
8654
-        'max' => '',
8655
-      ),
8656
-      'group' => '0',
8657
-      'exposed' => FALSE,
8658
-      'expose' => array(
8659
-        'operator' => FALSE,
8660
-        'label' => '',
8661
-      ),
8662
-      'id' => 'outcome',
8663
-      'table' => 'result',
8664
-      'field' => 'outcome',
8665
-      'override' => array(
8666
-        'button' => 'Use default',
8667
-      ),
8668
-      'relationship' => 'none',
8669
-    ),
8670
-    'validate_state' => array(
8671
-      'operator' => '>=',
8672
-      'value' => array(
8673
-        'value' => '0',
8674
-        'min' => '',
8675
-        'max' => '',
8676
-      ),
8677
-      'group' => '0',
8678
-      'exposed' => FALSE,
8679
-      'expose' => array(
8680
-        'operator' => FALSE,
8681
-        'label' => '',
8682
-      ),
8683
-      'id' => 'validate_state',
8684
-      'table' => 'result',
8685
-      'field' => 'validate_state',
8686
-      'override' => array(
8687
-        'button' => 'Use default',
8688
-      ),
8689
-      'relationship' => 'none',
8690
-    ),
8691
-    'validate_state_1' => array(
8692
-      'operator' => 'not between',
8693
-      'value' => array(
8694
-        'value' => '',
8695
-        'min' => '0',
8696
-        'max' => '4',
8697
-      ),
8698
-      'group' => '0',
8699
-      'exposed' => FALSE,
8700
-      'expose' => array(
8701
-        'operator' => FALSE,
8702
-        'label' => '',
8703
-      ),
8704
-      'id' => 'validate_state_1',
8705
-      'table' => 'result',
8706
-      'field' => 'validate_state',
8707
-      'override' => array(
8708
-        'button' => 'Use default',
8709
-      ),
8710
-      'relationship' => 'none',
8711
-    ),
8712
-    'validate_state_2' => array(
8713
-      'operator' => '<=',
8714
-      'value' => array(
8715
-        'value' => '4',
8716
-        'min' => '',
8717
-        'max' => '',
8718
-      ),
8719
-      'group' => '0',
8720
-      'exposed' => FALSE,
8721
-      'expose' => array(
8722
-        'operator' => FALSE,
8723
-        'label' => '',
8724
-      ),
8725
-      'id' => 'validate_state_2',
8726
-      'table' => 'result',
8727
-      'field' => 'validate_state',
8728
-      'override' => array(
8729
-        'button' => 'Use default',
8730
-      ),
8731
-      'relationship' => 'none',
8732
-    ),
8733
-  ));
8734
-  $handler->override_option('path', 'host/%/tasks/pending');
8735
-  $handler->override_option('menu', array(
8736
-    'type' => 'tab',
8737
-    'title' => 'Pending',
8738
-    'description' => 'Show tasks associated with the host with results pending',
8739
-    'weight' => '2',
8740
-    'name' => 'navigation',
8741
-  ));
8742
-  $handler->override_option('tab_options', array(
8743
-    'type' => 'none',
8744
-    'title' => '',
8745
-    'description' => '',
8746
-    'weight' => 0,
8747
-    'name' => 'navigation',
8748
-  ));
8749
-  $handler = $view->new_display('page', 'Validated', 'page_6');
8750
-  $handler->override_option('filters', array(
8751
-    'server_state' => array(
8752
-      'operator' => '=',
8753
-      'value' => array(
8754
-        'value' => '5',
8755
-        'min' => '',
8756
-        'max' => '',
8757
-      ),
8758
-      'group' => '0',
8759
-      'exposed' => FALSE,
8760
-      'expose' => array(
8761
-        'operator' => FALSE,
8762
-        'label' => '',
8763
-      ),
8764
-      'id' => 'server_state',
8765
-      'table' => 'result',
8766
-      'field' => 'server_state',
8767
-      'override' => array(
8768
-        'button' => 'Use default',
8769
-      ),
8770
-      'relationship' => 'none',
8771
-    ),
8772
-    'outcome' => array(
8773
-      'operator' => '=',
8774
-      'value' => array(
8775
-        'value' => '1',
8776
-        'min' => '',
8777
-        'max' => '',
8778
-      ),
8779
-      'group' => '0',
8780
-      'exposed' => FALSE,
8781
-      'expose' => array(
8782
-        'operator' => FALSE,
8783
-        'label' => '',
8784
-      ),
8785
-      'id' => 'outcome',
8786
-      'table' => 'result',
8787
-      'field' => 'outcome',
8788
-      'override' => array(
8789
-        'button' => 'Use default',
8790
-      ),
8791
-      'relationship' => 'none',
8792
-    ),
8793
-    'validate_state' => array(
8794
-      'operator' => '=',
8795
-      'value' => array(
8796
-        'value' => '1',
8797
-        'min' => '',
8798
-        'max' => '',
8799
-      ),
8800
-      'group' => '0',
8801
-      'exposed' => FALSE,
8802
-      'expose' => array(
8803
-        'operator' => FALSE,
8804
-        'label' => '',
8805
-      ),
8806
-      'id' => 'validate_state',
8807
-      'table' => 'result',
8808
-      'field' => 'validate_state',
8809
-      'override' => array(
8810
-        'button' => 'Use default',
8811
-      ),
8812
-      'relationship' => 'none',
8813
-    ),
8814
-  ));
8815
-  $handler->override_option('path', 'host/%/tasks/valid');
8816
-  $handler->override_option('menu', array(
8817
-    'type' => 'tab',
8818
-    'title' => 'Valid',
8819
-    'description' => 'Show validated tasks associated with the host',
8820
-    'weight' => '3',
8821
-    'name' => 'navigation',
8822
-  ));
8823
-  $handler->override_option('tab_options', array(
8824
-    'type' => 'none',
8825
-    'title' => '',
8826
-    'description' => '',
8827
-    'weight' => 0,
8828
-    'name' => 'navigation',
8829
-  ));
8122
+  'exclude' => 0,
8123
+  'id' => 'phpcode_2',
8124
+  'table' => 'customfield',
8125
+  'field' => 'phpcode',
8126
+  'override' => array(
8127
+    'button' => 'Override',
8128
+  ),
8129
+  'relationship' => 'none',
8130
+),
8131
+));
8132
+$handler->override_option('arguments', array(
8133
+'hostid' => array(
8134
+  'default_action' => 'not found',
8135
+  'style_plugin' => 'default_summary',
8136
+  'style_options' => array(),
8137
+  'wildcard' => 'all',
8138
+  'wildcard_substitution' => 'All',
8139
+  'title' => 'Tasks for computer %1',
8140
+  'breadcrumb' => '',
8141
+  'default_argument_type' => 'fixed',
8142
+  'default_argument' => '',
8143
+  'validate_type' => 'numeric',
8144
+  'validate_fail' => 'not found',
8145
+  'id' => 'hostid',
8146
+  'table' => 'result',
8147
+  'field' => 'hostid',
8148
+  'validate_user_argument_type' => 'uid',
8149
+  'validate_user_roles' => array(
8150
+    2 => 0,
8151
+    3 => 0,
8152
+  ),
8153
+  'relationship' => 'none',
8154
+  'default_options_div_prefix' => '',
8155
+  'default_argument_fixed' => '',
8156
+  'default_argument_user' => 0,
8157
+  'default_argument_php' => '',
8158
+  'validate_argument_node_type' => array(
8159
+    'forum' => 0,
8160
+    'job_post' => 0,
8161
+    'news' => 0,
8162
+    'page' => 0,
8163
+    'profile' => 0,
8164
+    'story' => 0,
8165
+    'team' => 0,
8166
+  ),
8167
+  'validate_argument_node_access' => 0,
8168
+  'validate_argument_nid_type' => 'nid',
8169
+  'validate_argument_vocabulary' => array(
8170
+    1 => 0,
8171
+  ),
8172
+  'validate_argument_type' => 'tid',
8173
+  'validate_argument_transform' => 0,
8174
+  'validate_user_restrict_roles' => 0,
8175
+  'validate_argument_php' => '',
8176
+),
8177
+));
8178
+$handler->override_option('access', array(
8179
+'type' => 'none',
8180
+));
8181
+$handler->override_option('cache', array(
8182
+'type' => 'none',
8183
+));
8184
+$handler->override_option('items_per_page', 20);
8185
+$handler->override_option('use_pager', '1');
8186
+$handler->override_option('style_plugin', 'table');
8187
+$handler->override_option('style_options', array(
8188
+'grouping' => '',
8189
+'override' => 1,
8190
+'sticky' => 1,
8191
+'order' => 'desc',
8192
+'summary' => '',
8193
+'columns' => array(
8194
+  'id' => 'id',
8195
+  'workunitid' => 'workunitid',
8196
+  'sent_time' => 'sent_time',
8197
+  'received_time' => 'received_time',
8198
+  'report_deadline' => 'report_deadline',
8199
+  'phpcode_3' => 'phpcode_3',
8200
+  'phpcode' => 'phpcode',
8201
+  'server_state' => 'server_state',
8202
+  'outcome' => 'outcome',
8203
+  'client_state' => 'client_state',
8204
+  'validate_state' => 'validate_state',
8205
+  'exit_status' => 'exit_status',
8206
+  'phpcode_1' => 'phpcode_1',
8207
+  'elapsed_time' => 'elapsed_time',
8208
+  'cpu_time' => 'cpu_time',
8209
+  'claimed_credit_1' => 'claimed_credit_1',
8210
+  'granted_credit' => 'granted_credit',
8211
+  'app_version_id' => 'app_version_id',
8212
+  'phpcode_2' => 'phpcode_2',
8213
+),
8214
+'info' => array(
8215
+  'id' => array(
8216
+    'sortable' => 1,
8217
+    'separator' => '',
8218
+  ),
8219
+  'workunitid' => array(
8220
+    'sortable' => 1,
8221
+    'separator' => '',
8222
+  ),
8223
+  'sent_time' => array(
8224
+    'sortable' => 1,
8225
+    'separator' => '',
8226
+  ),
8227
+  'received_time' => array(
8228
+    'sortable' => 1,
8229
+    'separator' => '',
8230
+  ),
8231
+  'report_deadline' => array(
8232
+    'sortable' => 1,
8233
+    'separator' => '',
8234
+  ),
8235
+  'phpcode_3' => array(
8236
+    'separator' => '',
8237
+  ),
8238
+  'phpcode' => array(
8239
+    'separator' => '',
8240
+  ),
8241
+  'server_state' => array(
8242
+    'sortable' => 0,
8243
+    'separator' => '',
8244
+  ),
8245
+  'outcome' => array(
8246
+    'sortable' => 0,
8247
+    'separator' => '',
8248
+  ),
8249
+  'client_state' => array(
8250
+    'sortable' => 0,
8251
+    'separator' => '',
8252
+  ),
8253
+  'validate_state' => array(
8254
+    'sortable' => 0,
8255
+    'separator' => '',
8256
+  ),
8257
+  'exit_status' => array(
8258
+    'sortable' => 0,
8259
+    'separator' => '',
8260
+  ),
8261
+  'phpcode_1' => array(
8262
+    'separator' => '',
8263
+  ),
8264
+  'elapsed_time' => array(
8265
+    'sortable' => 1,
8266
+    'separator' => '',
8267
+  ),
8268
+  'cpu_time' => array(
8269
+    'sortable' => 1,
8270
+    'separator' => '',
8271
+  ),
8272
+  'claimed_credit_1' => array(
8273
+    'sortable' => 1,
8274
+    'separator' => '',
8275
+  ),
8276
+  'granted_credit' => array(
8277
+    'sortable' => 1,
8278
+    'separator' => '',
8279
+  ),
8280
+  'app_version_id' => array(
8281
+    'sortable' => 1,
8282
+    'separator' => '',
8283
+  ),
8284
+  'phpcode_2' => array(
8285
+    'separator' => '',
8286
+  ),
8287
+),
8288
+'default' => 'id',
8289
+));
8290
+$handler = $view->new_display('page', 'All tasks', 'page_1');
8291
+$handler->override_option('path', 'host/%/tasks/all');
8292
+$handler->override_option('menu', array(
8293
+'type' => 'default tab',
8294
+'title' => 'All tasks',
8295
+'description' => 'Show all tasks associated with the host',
8296
+'weight' => '0',
8297
+'name' => 'navigation',
8298
+));
8299
+$handler->override_option('tab_options', array(
8300
+'type' => 'tab',
8301
+'title' => 'Tasks',
8302
+'description' => 'Show all tasks',
8303
+'weight' => '0',
8304
+'name' => 'secondary-links',
8305
+));
8306
+$handler = $view->new_display('page', 'Error', 'page_2');
8307
+$handler->override_option('filters', array(
8308
+'server_state' => array(
8309
+  'operator' => '=',
8310
+  'value' => array(
8311
+    'value' => '5',
8312
+    'min' => '',
8313
+    'max' => '',
8314
+  ),
8315
+  'group' => '0',
8316
+  'exposed' => FALSE,
8317
+  'expose' => array(
8318
+    'operator' => FALSE,
8319
+    'label' => '',
8320
+  ),
8321
+  'id' => 'server_state',
8322
+  'table' => 'result',
8323
+  'field' => 'server_state',
8324
+  'override' => array(
8325
+    'button' => 'Use default',
8326
+  ),
8327
+  'relationship' => 'none',
8328
+),
8329
+'outcome' => array(
8330
+  'operator' => '>=',
8331
+  'value' => array(
8332
+    'value' => '3',
8333
+    'min' => '',
8334
+    'max' => '',
8335
+  ),
8336
+  'group' => '0',
8337
+  'exposed' => FALSE,
8338
+  'expose' => array(
8339
+    'operator' => FALSE,
8340
+    'label' => '',
8341
+  ),
8342
+  'id' => 'outcome',
8343
+  'table' => 'result',
8344
+  'field' => 'outcome',
8345
+  'override' => array(
8346
+    'button' => 'Use default',
8347
+  ),
8348
+  'relationship' => 'none',
8349
+),
8350
+'outcome_1' => array(
8351
+  'operator' => 'not between',
8352
+  'value' => array(
8353
+    'value' => '',
8354
+    'min' => '4',
8355
+    'max' => '7',
8356
+  ),
8357
+  'group' => '0',
8358
+  'exposed' => FALSE,
8359
+  'expose' => array(
8360
+    'operator' => FALSE,
8361
+    'label' => '',
8362
+  ),
8363
+  'id' => 'outcome_1',
8364
+  'table' => 'result',
8365
+  'field' => 'outcome',
8366
+  'override' => array(
8367
+    'button' => 'Use default',
8368
+  ),
8369
+  'relationship' => 'none',
8370
+),
8371
+'outcome_2' => array(
8372
+  'operator' => '<=',
8373
+  'value' => array(
8374
+    'value' => '7',
8375
+    'min' => '',
8376
+    'max' => '',
8377
+  ),
8378
+  'group' => '0',
8379
+  'exposed' => FALSE,
8380
+  'expose' => array(
8381
+    'operator' => FALSE,
8382
+    'label' => '',
8383
+  ),
8384
+  'id' => 'outcome_2',
8385
+  'table' => 'result',
8386
+  'field' => 'outcome',
8387
+  'override' => array(
8388
+    'button' => 'Use default',
8389
+  ),
8390
+  'relationship' => 'none',
8391
+),
8392
+));
8393
+$handler->override_option('path', 'host/%/tasks/error');
8394
+$handler->override_option('menu', array(
8395
+'type' => 'tab',
8396
+'title' => 'Error',
8397
+'description' => 'Show tasks with errors associated with the host',
8398
+'weight' => '5',
8399
+'name' => 'navigation',
8400
+));
8401
+$handler->override_option('tab_options', array(
8402
+'type' => 'none',
8403
+'title' => '',
8404
+'description' => '',
8405
+'weight' => 0,
8406
+'name' => 'navigation',
8407
+));
8408
+$handler = $view->new_display('page', 'In progress', 'page_3');
8409
+$handler->override_option('filters', array(
8410
+'server_state' => array(
8411
+  'operator' => '=',
8412
+  'value' => array(
8413
+    'value' => '4',
8414
+    'min' => '',
8415
+    'max' => '',
8416
+  ),
8417
+  'group' => '0',
8418
+  'exposed' => FALSE,
8419
+  'expose' => array(
8420
+    'operator' => FALSE,
8421
+    'label' => '',
8422
+  ),
8423
+  'id' => 'server_state',
8424
+  'table' => 'result',
8425
+  'field' => 'server_state',
8426
+  'override' => array(
8427
+    'button' => 'Use default',
8428
+  ),
8429
+  'relationship' => 'none',
8430
+),
8431
+));
8432
+$handler->override_option('path', 'host/%/tasks/active');
8433
+$handler->override_option('menu', array(
8434
+'type' => 'tab',
8435
+'title' => 'In progress',
8436
+'description' => 'Show tasks in progress associated with the host',
8437
+'weight' => '1',
8438
+'name' => 'navigation',
8439
+));
8440
+$handler->override_option('tab_options', array(
8441
+'type' => 'none',
8442
+'title' => '',
8443
+'description' => '',
8444
+'weight' => 0,
8445
+'name' => 'navigation',
8446
+));
8447
+$handler = $view->new_display('page', 'Invalidated', 'page_4');
8448
+$handler->override_option('filters', array(
8449
+'server_state' => array(
8450
+  'operator' => '=',
8451
+  'value' => array(
8452
+    'value' => '5',
8453
+    'min' => '',
8454
+    'max' => '',
8455
+  ),
8456
+  'group' => '0',
8457
+  'exposed' => FALSE,
8458
+  'expose' => array(
8459
+    'operator' => FALSE,
8460
+    'label' => '',
8461
+  ),
8462
+  'id' => 'server_state',
8463
+  'table' => 'result',
8464
+  'field' => 'server_state',
8465
+  'override' => array(
8466
+    'button' => 'Use default',
8467
+  ),
8468
+  'relationship' => 'none',
8469
+),
8470
+'views_or_begin_2' => array(
8471
+  'id' => 'views_or_begin_2',
8472
+  'table' => 'views_or',
8473
+  'field' => 'views_or_begin',
8474
+),
8475
+'outcome' => array(
8476
+  'operator' => '=',
8477
+  'value' => array(
8478
+    'value' => '6',
8479
+    'min' => '',
8480
+    'max' => '',
8481
+  ),
8482
+  'group' => '0',
8483
+  'exposed' => FALSE,
8484
+  'expose' => array(
8485
+    'operator' => FALSE,
8486
+    'label' => '',
8487
+  ),
8488
+  'id' => 'outcome',
8489
+  'table' => 'result',
8490
+  'field' => 'outcome',
8491
+  'override' => array(
8492
+    'button' => 'Use default',
8493
+  ),
8494
+  'relationship' => 'none',
8495
+),
8496
+'views_or_next_3' => array(
8497
+  'id' => 'views_or_next_3',
8498
+  'table' => 'views_or',
8499
+  'field' => 'views_or_next',
8500
+),
8501
+'outcome_1' => array(
8502
+  'operator' => '=',
8503
+  'value' => array(
8504
+    'value' => '1',
8505
+    'min' => '',
8506
+    'max' => '',
8507
+  ),
8508
+  'group' => '0',
8509
+  'exposed' => FALSE,
8510
+  'expose' => array(
8511
+    'operator' => FALSE,
8512
+    'label' => '',
8513
+  ),
8514
+  'id' => 'outcome_1',
8515
+  'table' => 'result',
8516
+  'field' => 'outcome',
8517
+  'override' => array(
8518
+    'button' => 'Use default',
8519
+  ),
8520
+  'relationship' => 'none',
8521
+),
8522
+'views_or_begin' => array(
8523
+  'id' => 'views_or_begin',
8524
+  'table' => 'views_or',
8525
+  'field' => 'views_or_begin',
8526
+),
8527
+'validate_state' => array(
8528
+  'operator' => '=',
8529
+  'value' => array(
8530
+    'value' => '2',
8531
+    'min' => '',
8532
+    'max' => '',
8533
+  ),
8534
+  'group' => '0',
8535
+  'exposed' => FALSE,
8536
+  'expose' => array(
8537
+    'operator' => FALSE,
8538
+    'label' => '',
8539
+  ),
8540
+  'id' => 'validate_state',
8541
+  'table' => 'result',
8542
+  'field' => 'validate_state',
8543
+  'override' => array(
8544
+    'button' => 'Use default',
8545
+  ),
8546
+  'relationship' => 'none',
8547
+),
8548
+'views_or_next_4' => array(
8549
+  'id' => 'views_or_next_4',
8550
+  'table' => 'views_or',
8551
+  'field' => 'views_or_next',
8552
+),
8553
+'validate_state_1' => array(
8554
+  'operator' => '=',
8555
+  'value' => array(
8556
+    'value' => '3',
8557
+    'min' => '',
8558
+    'max' => '',
8559
+  ),
8560
+  'group' => '0',
8561
+  'exposed' => FALSE,
8562
+  'expose' => array(
8563
+    'operator' => FALSE,
8564
+    'label' => '',
8565
+  ),
8566
+  'id' => 'validate_state_1',
8567
+  'table' => 'result',
8568
+  'field' => 'validate_state',
8569
+  'override' => array(
8570
+    'button' => 'Use default',
8571
+  ),
8572
+  'relationship' => 'none',
8573
+),
8574
+'views_or_next' => array(
8575
+  'id' => 'views_or_next',
8576
+  'table' => 'views_or',
8577
+  'field' => 'views_or_next',
8578
+),
8579
+'validate_state_2' => array(
8580
+  'operator' => '=',
8581
+  'value' => array(
8582
+    'value' => '5',
8583
+    'min' => '',
8584
+    'max' => '',
8585
+  ),
8586
+  'group' => '0',
8587
+  'exposed' => FALSE,
8588
+  'expose' => array(
8589
+    'operator' => FALSE,
8590
+    'label' => '',
8591
+  ),
8592
+  'id' => 'validate_state_2',
8593
+  'table' => 'result',
8594
+  'field' => 'validate_state',
8595
+  'override' => array(
8596
+    'button' => 'Use default',
8597
+  ),
8598
+  'relationship' => 'none',
8599
+),
8600
+'views_or_end_3' => array(
8601
+  'id' => 'views_or_end_3',
8602
+  'table' => 'views_or',
8603
+  'field' => 'views_or_end',
8604
+),
8605
+'views_or_end_2' => array(
8606
+  'id' => 'views_or_end_2',
8607
+  'table' => 'views_or',
8608
+  'field' => 'views_or_end',
8609
+),
8610
+));
8611
+$handler->override_option('path', 'host/%/tasks/invalid');
8612
+$handler->override_option('menu', array(
8613
+'type' => 'tab',
8614
+'title' => 'Invalid',
8615
+'description' => 'Show invalidated tasks associated with the host',
8616
+'weight' => '4',
8617
+'name' => 'navigation',
8618
+));
8619
+$handler->override_option('tab_options', array(
8620
+'type' => 'none',
8621
+'title' => '',
8622
+'description' => '',
8623
+'weight' => 0,
8624
+'name' => 'navigation',
8625
+));
8626
+$handler = $view->new_display('page', 'Pending', 'page_5');
8627
+$handler->override_option('filters', array(
8628
+'server_state' => array(
8629
+  'operator' => '=',
8630
+  'value' => array(
8631
+    'value' => '5',
8632
+    'min' => '',
8633
+    'max' => '',
8634
+  ),
8635
+  'group' => '0',
8636
+  'exposed' => FALSE,
8637
+  'expose' => array(
8638
+    'operator' => FALSE,
8639
+    'label' => '',
8640
+  ),
8641
+  'id' => 'server_state',
8642
+  'table' => 'result',
8643
+  'field' => 'server_state',
8644
+  'override' => array(
8645
+    'button' => 'Use default',
8646
+  ),
8647
+  'relationship' => 'none',
8648
+),
8649
+'outcome' => array(
8650
+  'operator' => '=',
8651
+  'value' => array(
8652
+    'value' => '1',
8653
+    'min' => '',
8654
+    'max' => '',
8655
+  ),
8656
+  'group' => '0',
8657
+  'exposed' => FALSE,
8658
+  'expose' => array(
8659
+    'operator' => FALSE,
8660
+    'label' => '',
8661
+  ),
8662
+  'id' => 'outcome',
8663
+  'table' => 'result',
8664
+  'field' => 'outcome',
8665
+  'override' => array(
8666
+    'button' => 'Use default',
8667
+  ),
8668
+  'relationship' => 'none',
8669
+),
8670
+'validate_state' => array(
8671
+  'operator' => '>=',
8672
+  'value' => array(
8673
+    'value' => '0',
8674
+    'min' => '',
8675
+    'max' => '',
8676
+  ),
8677
+  'group' => '0',
8678
+  'exposed' => FALSE,
8679
+  'expose' => array(
8680
+    'operator' => FALSE,
8681
+    'label' => '',
8682
+  ),
8683
+  'id' => 'validate_state',
8684
+  'table' => 'result',
8685
+  'field' => 'validate_state',
8686
+  'override' => array(
8687
+    'button' => 'Use default',
8688
+  ),
8689
+  'relationship' => 'none',
8690
+),
8691
+'validate_state_1' => array(
8692
+  'operator' => 'not between',
8693
+  'value' => array(
8694
+    'value' => '',
8695
+    'min' => '0',
8696
+    'max' => '4',
8697
+  ),
8698
+  'group' => '0',
8699
+  'exposed' => FALSE,
8700
+  'expose' => array(
8701
+    'operator' => FALSE,
8702
+    'label' => '',
8703
+  ),
8704
+  'id' => 'validate_state_1',
8705
+  'table' => 'result',
8706
+  'field' => 'validate_state',
8707
+  'override' => array(
8708
+    'button' => 'Use default',
8709
+  ),
8710
+  'relationship' => 'none',
8711
+),
8712
+'validate_state_2' => array(
8713
+  'operator' => '<=',
8714
+  'value' => array(
8715
+    'value' => '4',
8716
+    'min' => '',
8717
+    'max' => '',
8718
+  ),
8719
+  'group' => '0',
8720
+  'exposed' => FALSE,
8721
+  'expose' => array(
8722
+    'operator' => FALSE,
8723
+    'label' => '',
8724
+  ),
8725
+  'id' => 'validate_state_2',
8726
+  'table' => 'result',
8727
+  'field' => 'validate_state',
8728
+  'override' => array(
8729
+    'button' => 'Use default',
8730
+  ),
8731
+  'relationship' => 'none',
8732
+),
8733
+));
8734
+$handler->override_option('path', 'host/%/tasks/pending');
8735
+$handler->override_option('menu', array(
8736
+'type' => 'tab',
8737
+'title' => 'Pending',
8738
+'description' => 'Show tasks associated with the host with results pending',
8739
+'weight' => '2',
8740
+'name' => 'navigation',
8741
+));
8742
+$handler->override_option('tab_options', array(
8743
+'type' => 'none',
8744
+'title' => '',
8745
+'description' => '',
8746
+'weight' => 0,
8747
+'name' => 'navigation',
8748
+));
8749
+$handler = $view->new_display('page', 'Validated', 'page_6');
8750
+$handler->override_option('filters', array(
8751
+'server_state' => array(
8752
+  'operator' => '=',
8753
+  'value' => array(
8754
+    'value' => '5',
8755
+    'min' => '',
8756
+    'max' => '',
8757
+  ),
8758
+  'group' => '0',
8759
+  'exposed' => FALSE,
8760
+  'expose' => array(
8761
+    'operator' => FALSE,
8762
+    'label' => '',
8763
+  ),
8764
+  'id' => 'server_state',
8765
+  'table' => 'result',
8766
+  'field' => 'server_state',
8767
+  'override' => array(
8768
+    'button' => 'Use default',
8769
+  ),
8770
+  'relationship' => 'none',
8771
+),
8772
+'outcome' => array(
8773
+  'operator' => '=',
8774
+  'value' => array(
8775
+    'value' => '1',
8776
+    'min' => '',
8777
+    'max' => '',
8778
+  ),
8779
+  'group' => '0',
8780
+  'exposed' => FALSE,
8781
+  'expose' => array(
8782
+    'operator' => FALSE,
8783
+    'label' => '',
8784
+  ),
8785
+  'id' => 'outcome',
8786
+  'table' => 'result',
8787
+  'field' => 'outcome',
8788
+  'override' => array(
8789
+    'button' => 'Use default',
8790
+  ),
8791
+  'relationship' => 'none',
8792
+),
8793
+'validate_state' => array(
8794
+  'operator' => '=',
8795
+  'value' => array(
8796
+    'value' => '1',
8797
+    'min' => '',
8798
+    'max' => '',
8799
+  ),
8800
+  'group' => '0',
8801
+  'exposed' => FALSE,
8802
+  'expose' => array(
8803
+    'operator' => FALSE,
8804
+    'label' => '',
8805
+  ),
8806
+  'id' => 'validate_state',
8807
+  'table' => 'result',
8808
+  'field' => 'validate_state',
8809
+  'override' => array(
8810
+    'button' => 'Use default',
8811
+  ),
8812
+  'relationship' => 'none',
8813
+),
8814
+));
8815
+$handler->override_option('path', 'host/%/tasks/valid');
8816
+$handler->override_option('menu', array(
8817
+'type' => 'tab',
8818
+'title' => 'Valid',
8819
+'description' => 'Show validated tasks associated with the host',
8820
+'weight' => '3',
8821
+'name' => 'navigation',
8822
+));
8823
+$handler->override_option('tab_options', array(
8824
+'type' => 'none',
8825
+'title' => '',
8826
+'description' => '',
8827
+'weight' => 0,
8828
+'name' => 'navigation',
8829
+));
8830 8830
 
8831
-  $views[$view->name] = $view;
8831
+$views[$view->name] = $view;
8832 8832
 
8833
-  // Exported view: boinc_task
8834
-  $view = new view;
8835
-  $view->name = 'boinc_task';
8836
-  $view->description = 'Details for a specific task';
8837
-  $view->tag = '';
8838
-  $view->base_table = 'result';
8839
-  $view->core = 0;
8840
-  $view->api_version = '2';
8841
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8842
-  $handler = $view->new_display('default', 'Defaults', 'default');
8843
-  $handler->override_option('fields', array(
8844
-    'name' => array(
8845
-      'label' => 'Name',
8846
-      'alter' => array(
8847
-        'alter_text' => 0,
8848
-        'text' => '',
8849
-        'make_link' => 0,
8850
-        'path' => '',
8851
-        'link_class' => '',
8852
-        'alt' => '',
8853
-        'prefix' => '',
8854
-        'suffix' => '',
8855
-        'target' => '',
8856
-        'help' => '',
8857
-        'trim' => 0,
8858
-        'max_length' => '',
8859
-        'word_boundary' => 1,
8860
-        'ellipsis' => 1,
8861
-        'html' => 0,
8862
-        'strip_tags' => 0,
8863
-      ),
8864
-      'empty' => '',
8865
-      'hide_empty' => 0,
8866
-      'empty_zero' => 0,
8867
-      'exclude' => 0,
8868
-      'id' => 'name',
8869
-      'table' => 'result',
8870
-      'field' => 'name',
8871
-      'relationship' => 'none',
8872
-    ),
8873
-    'workunitid' => array(
8874
-      'label' => 'Workunit ID',
8875
-      'alter' => array(
8876
-        'alter_text' => 0,
8877
-        'text' => '',
8878
-        'make_link' => 1,
8879
-        'path' => 'workunit/[workunitid]',
8880
-        'link_class' => '',
8881
-        'alt' => '',
8882
-        'prefix' => '',
8883
-        'suffix' => '',
8884
-        'target' => '',
8885
-        'help' => '',
8886
-        'trim' => 0,
8887
-        'max_length' => '',
8888
-        'word_boundary' => 1,
8889
-        'ellipsis' => 1,
8890
-        'html' => 0,
8891
-        'strip_tags' => 0,
8892
-      ),
8893
-      'empty' => '',
8894
-      'hide_empty' => 0,
8895
-      'empty_zero' => 0,
8896
-      'set_precision' => FALSE,
8897
-      'precision' => 0,
8898
-      'decimal' => '.',
8899
-      'separator' => '',
8900
-      'prefix' => '',
8901
-      'suffix' => '',
8902
-      'exclude' => 0,
8903
-      'id' => 'workunitid',
8904
-      'table' => 'result',
8905
-      'field' => 'workunitid',
8906
-      'relationship' => 'none',
8907
-    ),
8908
-    'create_time' => array(
8909
-      'label' => 'Created',
8910
-      'alter' => array(
8911
-        'alter_text' => 0,
8912
-        'text' => '',
8913
-        'make_link' => 0,
8914
-        'path' => '',
8915
-        'absolute' => 0,
8916
-        'link_class' => '',
8917
-        'alt' => '',
8918
-        'rel' => '',
8919
-        'prefix' => '',
8920
-        'suffix' => '',
8921
-        'target' => '',
8922
-        'help' => '',
8923
-        'trim' => 0,
8924
-        'max_length' => '',
8925
-        'word_boundary' => 1,
8926
-        'ellipsis' => 1,
8927
-        'html' => 0,
8928
-        'strip_tags' => 0,
8929
-      ),
8930
-      'empty' => '',
8931
-      'hide_empty' => 0,
8932
-      'empty_zero' => 0,
8933
-      'hide_alter_empty' => 1,
8934
-      'date_format' => 'custom',
8935
-      'custom_date_format' => 'j M Y G:i:s T',
8936
-      'exclude' => 0,
8937
-      'id' => 'create_time',
8938
-      'table' => 'result',
8939
-      'field' => 'create_time',
8940
-      'relationship' => 'none',
8941
-    ),
8942
-    'sent_time' => array(
8943
-      'label' => 'Sent',
8944
-      'alter' => array(
8945
-        'alter_text' => 0,
8946
-        'text' => '',
8947
-        'make_link' => 0,
8948
-        'path' => '',
8949
-        'absolute' => 0,
8950
-        'link_class' => '',
8951
-        'alt' => '',
8952
-        'rel' => '',
8953
-        'prefix' => '',
8954
-        'suffix' => '',
8955
-        'target' => '',
8956
-        'help' => '',
8957
-        'trim' => 0,
8958
-        'max_length' => '',
8959
-        'word_boundary' => 1,
8960
-        'ellipsis' => 1,
8961
-        'html' => 0,
8962
-        'strip_tags' => 0,
8963
-      ),
8964
-      'empty' => '',
8965
-      'hide_empty' => 0,
8966
-      'empty_zero' => 0,
8967
-      'hide_alter_empty' => 1,
8968
-      'date_format' => 'custom',
8969
-      'custom_date_format' => 'j M Y G:i:s T',
8970
-      'exclude' => 0,
8971
-      'id' => 'sent_time',
8972
-      'table' => 'result',
8973
-      'field' => 'sent_time',
8974
-      'relationship' => 'none',
8975
-    ),
8976
-    'report_deadline' => array(
8977
-      'label' => 'Report deadline',
8978
-      'alter' => array(
8979
-        'alter_text' => 0,
8980
-        'text' => '',
8981
-        'make_link' => 0,
8982
-        'path' => '',
8983
-        'absolute' => 0,
8984
-        'link_class' => '',
8985
-        'alt' => '',
8986
-        'rel' => '',
8987
-        'prefix' => '',
8988
-        'suffix' => '',
8989
-        'target' => '',
8990
-        'help' => '',
8991
-        'trim' => 0,
8992
-        'max_length' => '',
8993
-        'word_boundary' => 1,
8994
-        'ellipsis' => 1,
8995
-        'html' => 0,
8996
-        'strip_tags' => 0,
8997
-      ),
8998
-      'empty' => '',
8999
-      'hide_empty' => 0,
9000
-      'empty_zero' => 0,
9001
-      'hide_alter_empty' => 1,
9002
-      'date_format' => 'custom',
9003
-      'custom_date_format' => 'j M Y G:i:s T',
9004
-      'exclude' => 0,
9005
-      'id' => 'report_deadline',
9006
-      'table' => 'result',
9007
-      'field' => 'report_deadline',
9008
-      'relationship' => 'none',
9009
-    ),
9010
-    'received_time' => array(
9011
-      'label' => 'Received',
9012
-      'alter' => array(
9013
-        'alter_text' => 0,
9014
-        'text' => '',
9015
-        'make_link' => 0,
9016
-        'path' => '',
9017
-        'absolute' => 0,
9018
-        'link_class' => '',
9019
-        'alt' => '',
9020
-        'rel' => '',
9021
-        'prefix' => '',
9022
-        'suffix' => '',
9023
-        'target' => '',
9024
-        'help' => '',
9025
-        'trim' => 0,
9026
-        'max_length' => '',
9027
-        'word_boundary' => 1,
9028
-        'ellipsis' => 1,
9029
-        'html' => 0,
9030
-        'strip_tags' => 0,
9031
-      ),
9032
-      'empty' => '',
9033
-      'hide_empty' => 0,
9034
-      'empty_zero' => 0,
9035
-      'hide_alter_empty' => 1,
9036
-      'date_format' => 'custom',
9037
-      'custom_date_format' => 'j M Y G:i:s T',
9038
-      'exclude' => 0,
9039
-      'id' => 'received_time',
9040
-      'table' => 'result',
9041
-      'field' => 'received_time',
9042
-      'relationship' => 'none',
9043
-    ),
9044
-    'server_state' => array(
9045
-      'label' => 'Server state',
9046
-      'alter' => array(
9047
-        'alter_text' => 0,
9048
-        'text' => '',
9049
-        'make_link' => 0,
9050
-        'path' => '',
9051
-        'absolute' => 0,
9052
-        'link_class' => '',
9053
-        'alt' => '',
9054
-        'rel' => '',
9055
-        'prefix' => '',
9056
-        'suffix' => '',
9057
-        'target' => '',
9058
-        'help' => '',
9059
-        'trim' => 0,
9060
-        'max_length' => '',
9061
-        'word_boundary' => 1,
9062
-        'ellipsis' => 1,
9063
-        'html' => 0,
9064
-        'strip_tags' => 0,
9065
-      ),
9066
-      'empty' => '',
9067
-      'hide_empty' => 0,
9068
-      'empty_zero' => 0,
9069
-      'hide_alter_empty' => 1,
9070
-      'set_precision' => FALSE,
9071
-      'precision' => 0,
9072
-      'decimal' => '.',
9073
-      'separator' => '',
9074
-      'format_plural' => 0,
9075
-      'format_plural_singular' => '1',
9076
-      'format_plural_plural' => '@count',
9077
-      'prefix' => '',
9078
-      'suffix' => '',
9079
-      'exclude' => 1,
9080
-      'id' => 'server_state',
9081
-      'table' => 'result',
9082
-      'field' => 'server_state',
9083
-      'relationship' => 'none',
9084
-    ),
9085
-    'phpcode_3' => array(
9086
-      'label' => 'Server state',
9087
-      'alter' => array(
9088
-        'alter_text' => 0,
9089
-        'text' => '',
9090
-        'make_link' => 0,
9091
-        'path' => '',
9092
-        'absolute' => 0,
9093
-        'link_class' => '',
9094
-        'alt' => '',
9095
-        'rel' => '',
9096
-        'prefix' => '',
9097
-        'suffix' => '',
9098
-        'target' => '',
9099
-        'help' => '',
9100
-        'trim' => 0,
9101
-        'max_length' => '',
9102
-        'word_boundary' => 1,
9103
-        'ellipsis' => 1,
9104
-        'html' => 0,
9105
-        'strip_tags' => 0,
9106
-      ),
9107
-      'empty' => '',
9108
-      'hide_empty' => 0,
9109
-      'empty_zero' => 0,
9110
-      'hide_alter_empty' => 1,
9111
-      'value' => '<?php
8833
+// Exported view: boinc_task
8834
+$view = new view;
8835
+$view->name = 'boinc_task';
8836
+$view->description = 'Details for a specific task';
8837
+$view->tag = '';
8838
+$view->base_table = 'result';
8839
+$view->core = 0;
8840
+$view->api_version = '2';
8841
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
8842
+$handler = $view->new_display('default', 'Defaults', 'default');
8843
+$handler->override_option('fields', array(
8844
+'name' => array(
8845
+  'label' => 'Name',
8846
+  'alter' => array(
8847
+    'alter_text' => 0,
8848
+    'text' => '',
8849
+    'make_link' => 0,
8850
+    'path' => '',
8851
+    'link_class' => '',
8852
+    'alt' => '',
8853
+    'prefix' => '',
8854
+    'suffix' => '',
8855
+    'target' => '',
8856
+    'help' => '',
8857
+    'trim' => 0,
8858
+    'max_length' => '',
8859
+    'word_boundary' => 1,
8860
+    'ellipsis' => 1,
8861
+    'html' => 0,
8862
+    'strip_tags' => 0,
8863
+  ),
8864
+  'empty' => '',
8865
+  'hide_empty' => 0,
8866
+  'empty_zero' => 0,
8867
+  'exclude' => 0,
8868
+  'id' => 'name',
8869
+  'table' => 'result',
8870
+  'field' => 'name',
8871
+  'relationship' => 'none',
8872
+),
8873
+'workunitid' => array(
8874
+  'label' => 'Workunit ID',
8875
+  'alter' => array(
8876
+    'alter_text' => 0,
8877
+    'text' => '',
8878
+    'make_link' => 1,
8879
+    'path' => 'workunit/[workunitid]',
8880
+    'link_class' => '',
8881
+    'alt' => '',
8882
+    'prefix' => '',
8883
+    'suffix' => '',
8884
+    'target' => '',
8885
+    'help' => '',
8886
+    'trim' => 0,
8887
+    'max_length' => '',
8888
+    'word_boundary' => 1,
8889
+    'ellipsis' => 1,
8890
+    'html' => 0,
8891
+    'strip_tags' => 0,
8892
+  ),
8893
+  'empty' => '',
8894
+  'hide_empty' => 0,
8895
+  'empty_zero' => 0,
8896
+  'set_precision' => FALSE,
8897
+  'precision' => 0,
8898
+  'decimal' => '.',
8899
+  'separator' => '',
8900
+  'prefix' => '',
8901
+  'suffix' => '',
8902
+  'exclude' => 0,
8903
+  'id' => 'workunitid',
8904
+  'table' => 'result',
8905
+  'field' => 'workunitid',
8906
+  'relationship' => 'none',
8907
+),
8908
+'create_time' => array(
8909
+  'label' => 'Created',
8910
+  'alter' => array(
8911
+    'alter_text' => 0,
8912
+    'text' => '',
8913
+    'make_link' => 0,
8914
+    'path' => '',
8915
+    'absolute' => 0,
8916
+    'link_class' => '',
8917
+    'alt' => '',
8918
+    'rel' => '',
8919
+    'prefix' => '',
8920
+    'suffix' => '',
8921
+    'target' => '',
8922
+    'help' => '',
8923
+    'trim' => 0,
8924
+    'max_length' => '',
8925
+    'word_boundary' => 1,
8926
+    'ellipsis' => 1,
8927
+    'html' => 0,
8928
+    'strip_tags' => 0,
8929
+  ),
8930
+  'empty' => '',
8931
+  'hide_empty' => 0,
8932
+  'empty_zero' => 0,
8933
+  'hide_alter_empty' => 1,
8934
+  'date_format' => 'custom',
8935
+  'custom_date_format' => 'j M Y G:i:s T',
8936
+  'exclude' => 0,
8937
+  'id' => 'create_time',
8938
+  'table' => 'result',
8939
+  'field' => 'create_time',
8940
+  'relationship' => 'none',
8941
+),
8942
+'sent_time' => array(
8943
+  'label' => 'Sent',
8944
+  'alter' => array(
8945
+    'alter_text' => 0,
8946
+    'text' => '',
8947
+    'make_link' => 0,
8948
+    'path' => '',
8949
+    'absolute' => 0,
8950
+    'link_class' => '',
8951
+    'alt' => '',
8952
+    'rel' => '',
8953
+    'prefix' => '',
8954
+    'suffix' => '',
8955
+    'target' => '',
8956
+    'help' => '',
8957
+    'trim' => 0,
8958
+    'max_length' => '',
8959
+    'word_boundary' => 1,
8960
+    'ellipsis' => 1,
8961
+    'html' => 0,
8962
+    'strip_tags' => 0,
8963
+  ),
8964
+  'empty' => '',
8965
+  'hide_empty' => 0,
8966
+  'empty_zero' => 0,
8967
+  'hide_alter_empty' => 1,
8968
+  'date_format' => 'custom',
8969
+  'custom_date_format' => 'j M Y G:i:s T',
8970
+  'exclude' => 0,
8971
+  'id' => 'sent_time',
8972
+  'table' => 'result',
8973
+  'field' => 'sent_time',
8974
+  'relationship' => 'none',
8975
+),
8976
+'report_deadline' => array(
8977
+  'label' => 'Report deadline',
8978
+  'alter' => array(
8979
+    'alter_text' => 0,
8980
+    'text' => '',
8981
+    'make_link' => 0,
8982
+    'path' => '',
8983
+    'absolute' => 0,
8984
+    'link_class' => '',
8985
+    'alt' => '',
8986
+    'rel' => '',
8987
+    'prefix' => '',
8988
+    'suffix' => '',
8989
+    'target' => '',
8990
+    'help' => '',
8991
+    'trim' => 0,
8992
+    'max_length' => '',
8993
+    'word_boundary' => 1,
8994
+    'ellipsis' => 1,
8995
+    'html' => 0,
8996
+    'strip_tags' => 0,
8997
+  ),
8998
+  'empty' => '',
8999
+  'hide_empty' => 0,
9000
+  'empty_zero' => 0,
9001
+  'hide_alter_empty' => 1,
9002
+  'date_format' => 'custom',
9003
+  'custom_date_format' => 'j M Y G:i:s T',
9004
+  'exclude' => 0,
9005
+  'id' => 'report_deadline',
9006
+  'table' => 'result',
9007
+  'field' => 'report_deadline',
9008
+  'relationship' => 'none',
9009
+),
9010
+'received_time' => array(
9011
+  'label' => 'Received',
9012
+  'alter' => array(
9013
+    'alter_text' => 0,
9014
+    'text' => '',
9015
+    'make_link' => 0,
9016
+    'path' => '',
9017
+    'absolute' => 0,
9018
+    'link_class' => '',
9019
+    'alt' => '',
9020
+    'rel' => '',
9021
+    'prefix' => '',
9022
+    'suffix' => '',
9023
+    'target' => '',
9024
+    'help' => '',
9025
+    'trim' => 0,
9026
+    'max_length' => '',
9027
+    'word_boundary' => 1,
9028
+    'ellipsis' => 1,
9029
+    'html' => 0,
9030
+    'strip_tags' => 0,
9031
+  ),
9032
+  'empty' => '',
9033
+  'hide_empty' => 0,
9034
+  'empty_zero' => 0,
9035
+  'hide_alter_empty' => 1,
9036
+  'date_format' => 'custom',
9037
+  'custom_date_format' => 'j M Y G:i:s T',
9038
+  'exclude' => 0,
9039
+  'id' => 'received_time',
9040
+  'table' => 'result',
9041
+  'field' => 'received_time',
9042
+  'relationship' => 'none',
9043
+),
9044
+'server_state' => array(
9045
+  'label' => 'Server state',
9046
+  'alter' => array(
9047
+    'alter_text' => 0,
9048
+    'text' => '',
9049
+    'make_link' => 0,
9050
+    'path' => '',
9051
+    'absolute' => 0,
9052
+    'link_class' => '',
9053
+    'alt' => '',
9054
+    'rel' => '',
9055
+    'prefix' => '',
9056
+    'suffix' => '',
9057
+    'target' => '',
9058
+    'help' => '',
9059
+    'trim' => 0,
9060
+    'max_length' => '',
9061
+    'word_boundary' => 1,
9062
+    'ellipsis' => 1,
9063
+    'html' => 0,
9064
+    'strip_tags' => 0,
9065
+  ),
9066
+  'empty' => '',
9067
+  'hide_empty' => 0,
9068
+  'empty_zero' => 0,
9069
+  'hide_alter_empty' => 1,
9070
+  'set_precision' => FALSE,
9071
+  'precision' => 0,
9072
+  'decimal' => '.',
9073
+  'separator' => '',
9074
+  'format_plural' => 0,
9075
+  'format_plural_singular' => '1',
9076
+  'format_plural_plural' => '@count',
9077
+  'prefix' => '',
9078
+  'suffix' => '',
9079
+  'exclude' => 1,
9080
+  'id' => 'server_state',
9081
+  'table' => 'result',
9082
+  'field' => 'server_state',
9083
+  'relationship' => 'none',
9084
+),
9085
+'phpcode_3' => array(
9086
+  'label' => 'Server state',
9087
+  'alter' => array(
9088
+    'alter_text' => 0,
9089
+    'text' => '',
9090
+    'make_link' => 0,
9091
+    'path' => '',
9092
+    'absolute' => 0,
9093
+    'link_class' => '',
9094
+    'alt' => '',
9095
+    'rel' => '',
9096
+    'prefix' => '',
9097
+    'suffix' => '',
9098
+    'target' => '',
9099
+    'help' => '',
9100
+    'trim' => 0,
9101
+    'max_length' => '',
9102
+    'word_boundary' => 1,
9103
+    'ellipsis' => 1,
9104
+    'html' => 0,
9105
+    'strip_tags' => 0,
9106
+  ),
9107
+  'empty' => '',
9108
+  'hide_empty' => 0,
9109
+  'empty_zero' => 0,
9110
+  'hide_alter_empty' => 1,
9111
+  'value' => '<?php
9112 9112
   require_boinc(array(\'result\', \'util\'));
9113 9113
   $result = new stdClass();
9114 9114
   $result->server_state = $data->result_server_state;
9115 9115
   return result_server_state_string($result);
9116 9116
 ?>',
9117
-      'exclude' => 0,
9118
-      'id' => 'phpcode_3',
9119
-      'table' => 'customfield',
9120
-      'field' => 'phpcode',
9121
-      'relationship' => 'none',
9122
-    ),
9123
-    'outcome' => array(
9124
-      'label' => 'Outcome',
9125
-      'alter' => array(
9126
-        'alter_text' => 0,
9127
-        'text' => '',
9128
-        'make_link' => 0,
9129
-        'path' => '',
9130
-        'absolute' => 0,
9131
-        'link_class' => '',
9132
-        'alt' => '',
9133
-        'rel' => '',
9134
-        'prefix' => '',
9135
-        'suffix' => '',
9136
-        'target' => '',
9137
-        'help' => '',
9138
-        'trim' => 0,
9139
-        'max_length' => '',
9140
-        'word_boundary' => 1,
9141
-        'ellipsis' => 1,
9142
-        'html' => 0,
9143
-        'strip_tags' => 0,
9144
-      ),
9145
-      'empty' => '',
9146
-      'hide_empty' => 0,
9147
-      'empty_zero' => 0,
9148
-      'hide_alter_empty' => 1,
9149
-      'set_precision' => FALSE,
9150
-      'precision' => 0,
9151
-      'decimal' => '.',
9152
-      'separator' => '',
9153
-      'format_plural' => 0,
9154
-      'format_plural_singular' => '1',
9155
-      'format_plural_plural' => '@count',
9156
-      'prefix' => '',
9157
-      'suffix' => '',
9158
-      'exclude' => 1,
9159
-      'id' => 'outcome',
9160
-      'table' => 'result',
9161
-      'field' => 'outcome',
9162
-      'relationship' => 'none',
9163
-    ),
9164
-    'phpcode_4' => array(
9165
-      'label' => 'Outcome',
9166
-      'alter' => array(
9167
-        'alter_text' => 0,
9168
-        'text' => '',
9169
-        'make_link' => 0,
9170
-        'path' => '',
9171
-        'absolute' => 0,
9172
-        'link_class' => '',
9173
-        'alt' => '',
9174
-        'rel' => '',
9175
-        'prefix' => '',
9176
-        'suffix' => '',
9177
-        'target' => '',
9178
-        'help' => '',
9179
-        'trim' => 0,
9180
-        'max_length' => '',
9181
-        'word_boundary' => 1,
9182
-        'ellipsis' => 1,
9183
-        'html' => 0,
9184
-        'strip_tags' => 0,
9185
-      ),
9186
-      'empty' => '',
9187
-      'hide_empty' => 0,
9188
-      'empty_zero' => 0,
9189
-      'hide_alter_empty' => 1,
9190
-      'value' => '<?php
9117
+  'exclude' => 0,
9118
+  'id' => 'phpcode_3',
9119
+  'table' => 'customfield',
9120
+  'field' => 'phpcode',
9121
+  'relationship' => 'none',
9122
+),
9123
+'outcome' => array(
9124
+  'label' => 'Outcome',
9125
+  'alter' => array(
9126
+    'alter_text' => 0,
9127
+    'text' => '',
9128
+    'make_link' => 0,
9129
+    'path' => '',
9130
+    'absolute' => 0,
9131
+    'link_class' => '',
9132
+    'alt' => '',
9133
+    'rel' => '',
9134
+    'prefix' => '',
9135
+    'suffix' => '',
9136
+    'target' => '',
9137
+    'help' => '',
9138
+    'trim' => 0,
9139
+    'max_length' => '',
9140
+    'word_boundary' => 1,
9141
+    'ellipsis' => 1,
9142
+    'html' => 0,
9143
+    'strip_tags' => 0,
9144
+  ),
9145
+  'empty' => '',
9146
+  'hide_empty' => 0,
9147
+  'empty_zero' => 0,
9148
+  'hide_alter_empty' => 1,
9149
+  'set_precision' => FALSE,
9150
+  'precision' => 0,
9151
+  'decimal' => '.',
9152
+  'separator' => '',
9153
+  'format_plural' => 0,
9154
+  'format_plural_singular' => '1',
9155
+  'format_plural_plural' => '@count',
9156
+  'prefix' => '',
9157
+  'suffix' => '',
9158
+  'exclude' => 1,
9159
+  'id' => 'outcome',
9160
+  'table' => 'result',
9161
+  'field' => 'outcome',
9162
+  'relationship' => 'none',
9163
+),
9164
+'phpcode_4' => array(
9165
+  'label' => 'Outcome',
9166
+  'alter' => array(
9167
+    'alter_text' => 0,
9168
+    'text' => '',
9169
+    'make_link' => 0,
9170
+    'path' => '',
9171
+    'absolute' => 0,
9172
+    'link_class' => '',
9173
+    'alt' => '',
9174
+    'rel' => '',
9175
+    'prefix' => '',
9176
+    'suffix' => '',
9177
+    'target' => '',
9178
+    'help' => '',
9179
+    'trim' => 0,
9180
+    'max_length' => '',
9181
+    'word_boundary' => 1,
9182
+    'ellipsis' => 1,
9183
+    'html' => 0,
9184
+    'strip_tags' => 0,
9185
+  ),
9186
+  'empty' => '',
9187
+  'hide_empty' => 0,
9188
+  'empty_zero' => 0,
9189
+  'hide_alter_empty' => 1,
9190
+  'value' => '<?php
9191 9191
   require_boinc(array(\'result\', \'util\'));
9192 9192
   $result = new stdClass();
9193 9193
   $result->outcome = $data->result_outcome;
9194 9194
   return result_outcome_string($result);
9195 9195
 ?>',
9196
-      'exclude' => 0,
9197
-      'id' => 'phpcode_4',
9198
-      'table' => 'customfield',
9199
-      'field' => 'phpcode',
9200
-      'relationship' => 'none',
9201
-    ),
9202
-    'client_state' => array(
9203
-      'label' => 'Client state',
9204
-      'alter' => array(
9205
-        'alter_text' => 0,
9206
-        'text' => '',
9207
-        'make_link' => 0,
9208
-        'path' => '',
9209
-        'absolute' => 0,
9210
-        'link_class' => '',
9211
-        'alt' => '',
9212
-        'rel' => '',
9213
-        'prefix' => '',
9214
-        'suffix' => '',
9215
-        'target' => '',
9216
-        'help' => '',
9217
-        'trim' => 0,
9218
-        'max_length' => '',
9219
-        'word_boundary' => 1,
9220
-        'ellipsis' => 1,
9221
-        'html' => 0,
9222
-        'strip_tags' => 0,
9223
-      ),
9224
-      'empty' => '',
9225
-      'hide_empty' => 0,
9226
-      'empty_zero' => 0,
9227
-      'hide_alter_empty' => 1,
9228
-      'set_precision' => FALSE,
9229
-      'precision' => 0,
9230
-      'decimal' => '.',
9231
-      'separator' => '',
9232
-      'format_plural' => 0,
9233
-      'format_plural_singular' => '1',
9234
-      'format_plural_plural' => '@count',
9235
-      'prefix' => '',
9236
-      'suffix' => '',
9237
-      'exclude' => 1,
9238
-      'id' => 'client_state',
9239
-      'table' => 'result',
9240
-      'field' => 'client_state',
9241
-      'relationship' => 'none',
9242
-    ),
9243
-    'phpcode_5' => array(
9244
-      'label' => 'Client state',
9245
-      'alter' => array(
9246
-        'alter_text' => 0,
9247
-        'text' => '',
9248
-        'make_link' => 0,
9249
-        'path' => '',
9250
-        'absolute' => 0,
9251
-        'link_class' => '',
9252
-        'alt' => '',
9253
-        'rel' => '',
9254
-        'prefix' => '',
9255
-        'suffix' => '',
9256
-        'target' => '',
9257
-        'help' => '',
9258
-        'trim' => 0,
9259
-        'max_length' => '',
9260
-        'word_boundary' => 1,
9261
-        'ellipsis' => 1,
9262
-        'html' => 0,
9263
-        'strip_tags' => 0,
9264
-      ),
9265
-      'empty' => '',
9266
-      'hide_empty' => 0,
9267
-      'empty_zero' => 0,
9268
-      'hide_alter_empty' => 1,
9269
-      'value' => '<?php
9196
+  'exclude' => 0,
9197
+  'id' => 'phpcode_4',
9198
+  'table' => 'customfield',
9199
+  'field' => 'phpcode',
9200
+  'relationship' => 'none',
9201
+),
9202
+'client_state' => array(
9203
+  'label' => 'Client state',
9204
+  'alter' => array(
9205
+    'alter_text' => 0,
9206
+    'text' => '',
9207
+    'make_link' => 0,
9208
+    'path' => '',
9209
+    'absolute' => 0,
9210
+    'link_class' => '',
9211
+    'alt' => '',
9212
+    'rel' => '',
9213
+    'prefix' => '',
9214
+    'suffix' => '',
9215
+    'target' => '',
9216
+    'help' => '',
9217
+    'trim' => 0,
9218
+    'max_length' => '',
9219
+    'word_boundary' => 1,
9220
+    'ellipsis' => 1,
9221
+    'html' => 0,
9222
+    'strip_tags' => 0,
9223
+  ),
9224
+  'empty' => '',
9225
+  'hide_empty' => 0,
9226
+  'empty_zero' => 0,
9227
+  'hide_alter_empty' => 1,
9228
+  'set_precision' => FALSE,
9229
+  'precision' => 0,
9230
+  'decimal' => '.',
9231
+  'separator' => '',
9232
+  'format_plural' => 0,
9233
+  'format_plural_singular' => '1',
9234
+  'format_plural_plural' => '@count',
9235
+  'prefix' => '',
9236
+  'suffix' => '',
9237
+  'exclude' => 1,
9238
+  'id' => 'client_state',
9239
+  'table' => 'result',
9240
+  'field' => 'client_state',
9241
+  'relationship' => 'none',
9242
+),
9243
+'phpcode_5' => array(
9244
+  'label' => 'Client state',
9245
+  'alter' => array(
9246
+    'alter_text' => 0,
9247
+    'text' => '',
9248
+    'make_link' => 0,
9249
+    'path' => '',
9250
+    'absolute' => 0,
9251
+    'link_class' => '',
9252
+    'alt' => '',
9253
+    'rel' => '',
9254
+    'prefix' => '',
9255
+    'suffix' => '',
9256
+    'target' => '',
9257
+    'help' => '',
9258
+    'trim' => 0,
9259
+    'max_length' => '',
9260
+    'word_boundary' => 1,
9261
+    'ellipsis' => 1,
9262
+    'html' => 0,
9263
+    'strip_tags' => 0,
9264
+  ),
9265
+  'empty' => '',
9266
+  'hide_empty' => 0,
9267
+  'empty_zero' => 0,
9268
+  'hide_alter_empty' => 1,
9269
+  'value' => '<?php
9270 9270
   require_boinc(array(\'result\', \'util\'));
9271 9271
   $result = new stdClass();
9272 9272
   $result->client_state = $data->result_client_state;
9273 9273
   return result_client_state_string($result);
9274 9274
 ?>',
9275
-      'exclude' => 0,
9276
-      'id' => 'phpcode_5',
9277
-      'table' => 'customfield',
9278
-      'field' => 'phpcode',
9279
-      'relationship' => 'none',
9280
-    ),
9281
-    'exit_status' => array(
9282
-      'label' => 'Exit status',
9283
-      'alter' => array(
9284
-        'alter_text' => 0,
9285
-        'text' => '',
9286
-        'make_link' => 0,
9287
-        'path' => '',
9288
-        'absolute' => 0,
9289
-        'link_class' => '',
9290
-        'alt' => '',
9291
-        'rel' => '',
9292
-        'prefix' => '',
9293
-        'suffix' => '',
9294
-        'target' => '',
9295
-        'help' => '',
9296
-        'trim' => 0,
9297
-        'max_length' => '',
9298
-        'word_boundary' => 1,
9299
-        'ellipsis' => 1,
9300
-        'html' => 0,
9301
-        'strip_tags' => 0,
9302
-      ),
9303
-      'empty' => '',
9304
-      'hide_empty' => 0,
9305
-      'empty_zero' => 0,
9306
-      'hide_alter_empty' => 1,
9307
-      'set_precision' => FALSE,
9308
-      'precision' => 0,
9309
-      'decimal' => '.',
9310
-      'separator' => '',
9311
-      'format_plural' => 0,
9312
-      'format_plural_singular' => '1',
9313
-      'format_plural_plural' => '@count',
9314
-      'prefix' => '',
9315
-      'suffix' => '',
9316
-      'exclude' => 1,
9317
-      'id' => 'exit_status',
9318
-      'table' => 'result',
9319
-      'field' => 'exit_status',
9320
-      'relationship' => 'none',
9321
-    ),
9322
-    'phpcode_6' => array(
9323
-      'label' => 'Exit status',
9324
-      'alter' => array(
9325
-        'alter_text' => 0,
9326
-        'text' => '',
9327
-        'make_link' => 0,
9328
-        'path' => '',
9329
-        'absolute' => 0,
9330
-        'link_class' => '',
9331
-        'alt' => '',
9332
-        'rel' => '',
9333
-        'prefix' => '',
9334
-        'suffix' => '',
9335
-        'target' => '',
9336
-        'help' => '',
9337
-        'trim' => 0,
9338
-        'max_length' => '',
9339
-        'word_boundary' => 1,
9340
-        'ellipsis' => 1,
9341
-        'html' => 0,
9342
-        'strip_tags' => 0,
9343
-      ),
9344
-      'empty' => '',
9345
-      'hide_empty' => 0,
9346
-      'empty_zero' => 0,
9347
-      'hide_alter_empty' => 1,
9348
-      'value' => '<?php
9275
+  'exclude' => 0,
9276
+  'id' => 'phpcode_5',
9277
+  'table' => 'customfield',
9278
+  'field' => 'phpcode',
9279
+  'relationship' => 'none',
9280
+),
9281
+'exit_status' => array(
9282
+  'label' => 'Exit status',
9283
+  'alter' => array(
9284
+    'alter_text' => 0,
9285
+    'text' => '',
9286
+    'make_link' => 0,
9287
+    'path' => '',
9288
+    'absolute' => 0,
9289
+    'link_class' => '',
9290
+    'alt' => '',
9291
+    'rel' => '',
9292
+    'prefix' => '',
9293
+    'suffix' => '',
9294
+    'target' => '',
9295
+    'help' => '',
9296
+    'trim' => 0,
9297
+    'max_length' => '',
9298
+    'word_boundary' => 1,
9299
+    'ellipsis' => 1,
9300
+    'html' => 0,
9301
+    'strip_tags' => 0,
9302
+  ),
9303
+  'empty' => '',
9304
+  'hide_empty' => 0,
9305
+  'empty_zero' => 0,
9306
+  'hide_alter_empty' => 1,
9307
+  'set_precision' => FALSE,
9308
+  'precision' => 0,
9309
+  'decimal' => '.',
9310
+  'separator' => '',
9311
+  'format_plural' => 0,
9312
+  'format_plural_singular' => '1',
9313
+  'format_plural_plural' => '@count',
9314
+  'prefix' => '',
9315
+  'suffix' => '',
9316
+  'exclude' => 1,
9317
+  'id' => 'exit_status',
9318
+  'table' => 'result',
9319
+  'field' => 'exit_status',
9320
+  'relationship' => 'none',
9321
+),
9322
+'phpcode_6' => array(
9323
+  'label' => 'Exit status',
9324
+  'alter' => array(
9325
+    'alter_text' => 0,
9326
+    'text' => '',
9327
+    'make_link' => 0,
9328
+    'path' => '',
9329
+    'absolute' => 0,
9330
+    'link_class' => '',
9331
+    'alt' => '',
9332
+    'rel' => '',
9333
+    'prefix' => '',
9334
+    'suffix' => '',
9335
+    'target' => '',
9336
+    'help' => '',
9337
+    'trim' => 0,
9338
+    'max_length' => '',
9339
+    'word_boundary' => 1,
9340
+    'ellipsis' => 1,
9341
+    'html' => 0,
9342
+    'strip_tags' => 0,
9343
+  ),
9344
+  'empty' => '',
9345
+  'hide_empty' => 0,
9346
+  'empty_zero' => 0,
9347
+  'hide_alter_empty' => 1,
9348
+  'value' => '<?php
9349 9349
   require_boinc(array(\'result\', \'util\'));
9350 9350
   return exit_status_string($data->result_exit_status);
9351 9351
 ?>',
9352
-      'exclude' => 0,
9353
-      'id' => 'phpcode_6',
9354
-      'table' => 'customfield',
9355
-      'field' => 'phpcode',
9356
-      'relationship' => 'none',
9357
-    ),
9358
-    'hostid' => array(
9359
-      'label' => 'Computer',
9360
-      'alter' => array(
9361
-        'alter_text' => 0,
9362
-        'text' => '',
9363
-        'make_link' => 1,
9364
-        'path' => 'host/[hostid]',
9365
-        'link_class' => '',
9366
-        'alt' => '',
9367
-        'prefix' => '',
9368
-        'suffix' => '',
9369
-        'target' => '',
9370
-        'help' => '',
9371
-        'trim' => 0,
9372
-        'max_length' => '',
9373
-        'word_boundary' => 1,
9374
-        'ellipsis' => 1,
9375
-        'html' => 0,
9376
-        'strip_tags' => 0,
9377
-      ),
9378
-      'empty' => '',
9379
-      'hide_empty' => 0,
9380
-      'empty_zero' => 0,
9381
-      'set_precision' => FALSE,
9382
-      'precision' => 0,
9383
-      'decimal' => '.',
9384
-      'separator' => '',
9385
-      'prefix' => '',
9386
-      'suffix' => '',
9387
-      'exclude' => 0,
9388
-      'id' => 'hostid',
9389
-      'table' => 'result',
9390
-      'field' => 'hostid',
9391
-      'relationship' => 'none',
9392
-    ),
9393
-    'elapsed_time' => array(
9394
-      'label' => 'Run time (sec)',
9395
-      'alter' => array(
9396
-        'alter_text' => 0,
9397
-        'text' => '',
9398
-        'make_link' => 0,
9399
-        'path' => '',
9400
-        'link_class' => '',
9401
-        'alt' => '',
9402
-        'prefix' => '',
9403
-        'suffix' => '',
9404
-        'target' => '',
9405
-        'help' => '',
9406
-        'trim' => 0,
9407
-        'max_length' => '',
9408
-        'word_boundary' => 1,
9409
-        'ellipsis' => 1,
9410
-        'html' => 0,
9411
-        'strip_tags' => 0,
9412
-      ),
9413
-      'empty' => '',
9414
-      'hide_empty' => 0,
9415
-      'empty_zero' => 0,
9416
-      'set_precision' => 1,
9417
-      'precision' => '2',
9418
-      'decimal' => '.',
9419
-      'separator' => ',',
9420
-      'prefix' => '',
9421
-      'suffix' => '',
9422
-      'exclude' => 0,
9423
-      'id' => 'elapsed_time',
9424
-      'table' => 'result',
9425
-      'field' => 'elapsed_time',
9426
-      'relationship' => 'none',
9427
-    ),
9428
-    'cpu_time' => array(
9429
-      'label' => 'CPU time (sec)',
9430
-      'alter' => array(
9431
-        'alter_text' => 0,
9432
-        'text' => '',
9433
-        'make_link' => 0,
9434
-        'path' => '',
9435
-        'link_class' => '',
9436
-        'alt' => '',
9437
-        'prefix' => '',
9438
-        'suffix' => '',
9439
-        'target' => '',
9440
-        'help' => '',
9441
-        'trim' => 0,
9442
-        'max_length' => '',
9443
-        'word_boundary' => 1,
9444
-        'ellipsis' => 1,
9445
-        'html' => 0,
9446
-        'strip_tags' => 0,
9447
-      ),
9448
-      'empty' => '',
9449
-      'hide_empty' => 0,
9450
-      'empty_zero' => 0,
9451
-      'set_precision' => 1,
9452
-      'precision' => '2',
9453
-      'decimal' => '.',
9454
-      'separator' => ',',
9455
-      'prefix' => '',
9456
-      'suffix' => '',
9457
-      'exclude' => 0,
9458
-      'id' => 'cpu_time',
9459
-      'table' => 'result',
9460
-      'field' => 'cpu_time',
9461
-      'relationship' => 'none',
9462
-    ),
9463
-    'peak_working_set_size' => array(
9464
-      'label' => 'Peak working set size (MB)',
9465
-      'alter' => array(
9466
-        'alter_text' => 0,
9467
-        'text' => '',
9468
-        'make_link' => 0,
9469
-        'path' => '',
9470
-        'absolute' => 0,
9471
-        'link_class' => '',
9472
-        'alt' => '',
9473
-        'rel' => '',
9474
-        'prefix' => '',
9475
-        'suffix' => '',
9476
-        'target' => '',
9477
-        'help' => '',
9478
-        'trim' => 0,
9479
-        'max_length' => '',
9480
-        'word_boundary' => 1,
9481
-        'ellipsis' => 1,
9482
-        'html' => 0,
9483
-        'strip_tags' => 0,
9484
-      ),
9485
-      'empty' => '',
9486
-      'hide_empty' => 0,
9487
-      'empty_zero' => 0,
9488
-      'hide_alter_empty' => 1,
9489
-      'set_precision' => FALSE,
9490
-      'precision' => 0,
9491
-      'decimal' => '.',
9492
-      'separator' => ',',
9493
-      'format_plural' => 0,
9494
-      'format_plural_singular' => '1',
9495
-      'format_plural_plural' => '@count',
9496
-      'prefix' => '',
9497
-      'suffix' => '',
9498
-      'exclude' => 0,
9499
-      'id' => 'peak_working_set_size',
9500
-      'table' => 'result',
9501
-      'field' => 'peak_working_set_size',
9502
-      'relationship' => 'none',
9503
-    ),
9504
-    'peak_swap_size' => array(
9505
-      'label' => 'Peak swap size (MB)',
9506
-      'alter' => array(
9507
-        'alter_text' => 0,
9508
-        'text' => '',
9509
-        'make_link' => 0,
9510
-        'path' => '',
9511
-        'absolute' => 0,
9512
-        'link_class' => '',
9513
-        'alt' => '',
9514
-        'rel' => '',
9515
-        'prefix' => '',
9516
-        'suffix' => '',
9517
-        'target' => '',
9518
-        'help' => '',
9519
-        'trim' => 0,
9520
-        'max_length' => '',
9521
-        'word_boundary' => 1,
9522
-        'ellipsis' => 1,
9523
-        'html' => 0,
9524
-        'strip_tags' => 0,
9525
-      ),
9526
-      'empty' => '',
9527
-      'hide_empty' => 0,
9528
-      'empty_zero' => 0,
9529
-      'hide_alter_empty' => 1,
9530
-      'set_precision' => FALSE,
9531
-      'precision' => 0,
9532
-      'decimal' => '.',
9533
-      'separator' => ',',
9534
-      'format_plural' => 0,
9535
-      'format_plural_singular' => '1',
9536
-      'format_plural_plural' => '@count',
9537
-      'prefix' => '',
9538
-      'suffix' => '',
9539
-      'exclude' => 0,
9540
-      'id' => 'peak_swap_size',
9541
-      'table' => 'result',
9542
-      'field' => 'peak_swap_size',
9543
-      'relationship' => 'none',
9544
-    ),
9545
-    'peak_disk_usage' => array(
9546
-      'label' => 'Peak disk usage (MB)',
9547
-      'alter' => array(
9548
-        'alter_text' => 0,
9549
-        'text' => '',
9550
-        'make_link' => 0,
9551
-        'path' => '',
9552
-        'absolute' => 0,
9553
-        'link_class' => '',
9554
-        'alt' => '',
9555
-        'rel' => '',
9556
-        'prefix' => '',
9557
-        'suffix' => '',
9558
-        'target' => '',
9559
-        'help' => '',
9560
-        'trim' => 0,
9561
-        'max_length' => '',
9562
-        'word_boundary' => 1,
9563
-        'ellipsis' => 1,
9564
-        'html' => 0,
9565
-        'strip_tags' => 0,
9566
-      ),
9567
-      'empty' => '',
9568
-      'hide_empty' => 0,
9569
-      'empty_zero' => 0,
9570
-      'hide_alter_empty' => 1,
9571
-      'set_precision' => FALSE,
9572
-      'precision' => 0,
9573
-      'decimal' => '.',
9574
-      'separator' => ',',
9575
-      'format_plural' => 0,
9576
-      'format_plural_singular' => '1',
9577
-      'format_plural_plural' => '@count',
9578
-      'prefix' => '',
9579
-      'suffix' => '',
9580
-      'exclude' => 0,
9581
-      'id' => 'peak_disk_usage',
9582
-      'table' => 'result',
9583
-      'field' => 'peak_disk_usage',
9584
-      'relationship' => 'none',
9585
-    ),
9586
-    'validate_state' => array(
9587
-      'label' => 'Validation state',
9588
-      'alter' => array(
9589
-        'alter_text' => 0,
9590
-        'text' => '',
9591
-        'make_link' => 0,
9592
-        'path' => '',
9593
-        'absolute' => 0,
9594
-        'link_class' => '',
9595
-        'alt' => '',
9596
-        'rel' => '',
9597
-        'prefix' => '',
9598
-        'suffix' => '',
9599
-        'target' => '',
9600
-        'help' => '',
9601
-        'trim' => 0,
9602
-        'max_length' => '',
9603
-        'word_boundary' => 1,
9604
-        'ellipsis' => 1,
9605
-        'html' => 0,
9606
-        'strip_tags' => 0,
9607
-      ),
9608
-      'empty' => '',
9609
-      'hide_empty' => 0,
9610
-      'empty_zero' => 0,
9611
-      'hide_alter_empty' => 1,
9612
-      'set_precision' => FALSE,
9613
-      'precision' => 0,
9614
-      'decimal' => '.',
9615
-      'separator' => '',
9616
-      'format_plural' => 0,
9617
-      'format_plural_singular' => '1',
9618
-      'format_plural_plural' => '@count',
9619
-      'prefix' => '',
9620
-      'suffix' => '',
9621
-      'exclude' => 1,
9622
-      'id' => 'validate_state',
9623
-      'table' => 'result',
9624
-      'field' => 'validate_state',
9625
-      'relationship' => 'none',
9626
-    ),
9627
-    'phpcode_7' => array(
9628
-      'label' => 'Validation state',
9629
-      'alter' => array(
9630
-        'alter_text' => 0,
9631
-        'text' => '',
9632
-        'make_link' => 0,
9633
-        'path' => '',
9634
-        'absolute' => 0,
9635
-        'link_class' => '',
9636
-        'alt' => '',
9637
-        'rel' => '',
9638
-        'prefix' => '',
9639
-        'suffix' => '',
9640
-        'target' => '',
9641
-        'help' => '',
9642
-        'trim' => 0,
9643
-        'max_length' => '',
9644
-        'word_boundary' => 1,
9645
-        'ellipsis' => 1,
9646
-        'html' => 0,
9647
-        'strip_tags' => 0,
9648
-      ),
9649
-      'empty' => '',
9650
-      'hide_empty' => 0,
9651
-      'empty_zero' => 0,
9652
-      'hide_alter_empty' => 1,
9653
-      'value' => '<?php
9352
+  'exclude' => 0,
9353
+  'id' => 'phpcode_6',
9354
+  'table' => 'customfield',
9355
+  'field' => 'phpcode',
9356
+  'relationship' => 'none',
9357
+),
9358
+'hostid' => array(
9359
+  'label' => 'Computer',
9360
+  'alter' => array(
9361
+    'alter_text' => 0,
9362
+    'text' => '',
9363
+    'make_link' => 1,
9364
+    'path' => 'host/[hostid]',
9365
+    'link_class' => '',
9366
+    'alt' => '',
9367
+    'prefix' => '',
9368
+    'suffix' => '',
9369
+    'target' => '',
9370
+    'help' => '',
9371
+    'trim' => 0,
9372
+    'max_length' => '',
9373
+    'word_boundary' => 1,
9374
+    'ellipsis' => 1,
9375
+    'html' => 0,
9376
+    'strip_tags' => 0,
9377
+  ),
9378
+  'empty' => '',
9379
+  'hide_empty' => 0,
9380
+  'empty_zero' => 0,
9381
+  'set_precision' => FALSE,
9382
+  'precision' => 0,
9383
+  'decimal' => '.',
9384
+  'separator' => '',
9385
+  'prefix' => '',
9386
+  'suffix' => '',
9387
+  'exclude' => 0,
9388
+  'id' => 'hostid',
9389
+  'table' => 'result',
9390
+  'field' => 'hostid',
9391
+  'relationship' => 'none',
9392
+),
9393
+'elapsed_time' => array(
9394
+  'label' => 'Run time (sec)',
9395
+  'alter' => array(
9396
+    'alter_text' => 0,
9397
+    'text' => '',
9398
+    'make_link' => 0,
9399
+    'path' => '',
9400
+    'link_class' => '',
9401
+    'alt' => '',
9402
+    'prefix' => '',
9403
+    'suffix' => '',
9404
+    'target' => '',
9405
+    'help' => '',
9406
+    'trim' => 0,
9407
+    'max_length' => '',
9408
+    'word_boundary' => 1,
9409
+    'ellipsis' => 1,
9410
+    'html' => 0,
9411
+    'strip_tags' => 0,
9412
+  ),
9413
+  'empty' => '',
9414
+  'hide_empty' => 0,
9415
+  'empty_zero' => 0,
9416
+  'set_precision' => 1,
9417
+  'precision' => '2',
9418
+  'decimal' => '.',
9419
+  'separator' => ',',
9420
+  'prefix' => '',
9421
+  'suffix' => '',
9422
+  'exclude' => 0,
9423
+  'id' => 'elapsed_time',
9424
+  'table' => 'result',
9425
+  'field' => 'elapsed_time',
9426
+  'relationship' => 'none',
9427
+),
9428
+'cpu_time' => array(
9429
+  'label' => 'CPU time (sec)',
9430
+  'alter' => array(
9431
+    'alter_text' => 0,
9432
+    'text' => '',
9433
+    'make_link' => 0,
9434
+    'path' => '',
9435
+    'link_class' => '',
9436
+    'alt' => '',
9437
+    'prefix' => '',
9438
+    'suffix' => '',
9439
+    'target' => '',
9440
+    'help' => '',
9441
+    'trim' => 0,
9442
+    'max_length' => '',
9443
+    'word_boundary' => 1,
9444
+    'ellipsis' => 1,
9445
+    'html' => 0,
9446
+    'strip_tags' => 0,
9447
+  ),
9448
+  'empty' => '',
9449
+  'hide_empty' => 0,
9450
+  'empty_zero' => 0,
9451
+  'set_precision' => 1,
9452
+  'precision' => '2',
9453
+  'decimal' => '.',
9454
+  'separator' => ',',
9455
+  'prefix' => '',
9456
+  'suffix' => '',
9457
+  'exclude' => 0,
9458
+  'id' => 'cpu_time',
9459
+  'table' => 'result',
9460
+  'field' => 'cpu_time',
9461
+  'relationship' => 'none',
9462
+),
9463
+'peak_working_set_size' => array(
9464
+  'label' => 'Peak working set size (MB)',
9465
+  'alter' => array(
9466
+    'alter_text' => 0,
9467
+    'text' => '',
9468
+    'make_link' => 0,
9469
+    'path' => '',
9470
+    'absolute' => 0,
9471
+    'link_class' => '',
9472
+    'alt' => '',
9473
+    'rel' => '',
9474
+    'prefix' => '',
9475
+    'suffix' => '',
9476
+    'target' => '',
9477
+    'help' => '',
9478
+    'trim' => 0,
9479
+    'max_length' => '',
9480
+    'word_boundary' => 1,
9481
+    'ellipsis' => 1,
9482
+    'html' => 0,
9483
+    'strip_tags' => 0,
9484
+  ),
9485
+  'empty' => '',
9486
+  'hide_empty' => 0,
9487
+  'empty_zero' => 0,
9488
+  'hide_alter_empty' => 1,
9489
+  'set_precision' => FALSE,
9490
+  'precision' => 0,
9491
+  'decimal' => '.',
9492
+  'separator' => ',',
9493
+  'format_plural' => 0,
9494
+  'format_plural_singular' => '1',
9495
+  'format_plural_plural' => '@count',
9496
+  'prefix' => '',
9497
+  'suffix' => '',
9498
+  'exclude' => 0,
9499
+  'id' => 'peak_working_set_size',
9500
+  'table' => 'result',
9501
+  'field' => 'peak_working_set_size',
9502
+  'relationship' => 'none',
9503
+),
9504
+'peak_swap_size' => array(
9505
+  'label' => 'Peak swap size (MB)',
9506
+  'alter' => array(
9507
+    'alter_text' => 0,
9508
+    'text' => '',
9509
+    'make_link' => 0,
9510
+    'path' => '',
9511
+    'absolute' => 0,
9512
+    'link_class' => '',
9513
+    'alt' => '',
9514
+    'rel' => '',
9515
+    'prefix' => '',
9516
+    'suffix' => '',
9517
+    'target' => '',
9518
+    'help' => '',
9519
+    'trim' => 0,
9520
+    'max_length' => '',
9521
+    'word_boundary' => 1,
9522
+    'ellipsis' => 1,
9523
+    'html' => 0,
9524
+    'strip_tags' => 0,
9525
+  ),
9526
+  'empty' => '',
9527
+  'hide_empty' => 0,
9528
+  'empty_zero' => 0,
9529
+  'hide_alter_empty' => 1,
9530
+  'set_precision' => FALSE,
9531
+  'precision' => 0,
9532
+  'decimal' => '.',
9533
+  'separator' => ',',
9534
+  'format_plural' => 0,
9535
+  'format_plural_singular' => '1',
9536
+  'format_plural_plural' => '@count',
9537
+  'prefix' => '',
9538
+  'suffix' => '',
9539
+  'exclude' => 0,
9540
+  'id' => 'peak_swap_size',
9541
+  'table' => 'result',
9542
+  'field' => 'peak_swap_size',
9543
+  'relationship' => 'none',
9544
+),
9545
+'peak_disk_usage' => array(
9546
+  'label' => 'Peak disk usage (MB)',
9547
+  'alter' => array(
9548
+    'alter_text' => 0,
9549
+    'text' => '',
9550
+    'make_link' => 0,
9551
+    'path' => '',
9552
+    'absolute' => 0,
9553
+    'link_class' => '',
9554
+    'alt' => '',
9555
+    'rel' => '',
9556
+    'prefix' => '',
9557
+    'suffix' => '',
9558
+    'target' => '',
9559
+    'help' => '',
9560
+    'trim' => 0,
9561
+    'max_length' => '',
9562
+    'word_boundary' => 1,
9563
+    'ellipsis' => 1,
9564
+    'html' => 0,
9565
+    'strip_tags' => 0,
9566
+  ),
9567
+  'empty' => '',
9568
+  'hide_empty' => 0,
9569
+  'empty_zero' => 0,
9570
+  'hide_alter_empty' => 1,
9571
+  'set_precision' => FALSE,
9572
+  'precision' => 0,
9573
+  'decimal' => '.',
9574
+  'separator' => ',',
9575
+  'format_plural' => 0,
9576
+  'format_plural_singular' => '1',
9577
+  'format_plural_plural' => '@count',
9578
+  'prefix' => '',
9579
+  'suffix' => '',
9580
+  'exclude' => 0,
9581
+  'id' => 'peak_disk_usage',
9582
+  'table' => 'result',
9583
+  'field' => 'peak_disk_usage',
9584
+  'relationship' => 'none',
9585
+),
9586
+'validate_state' => array(
9587
+  'label' => 'Validation state',
9588
+  'alter' => array(
9589
+    'alter_text' => 0,
9590
+    'text' => '',
9591
+    'make_link' => 0,
9592
+    'path' => '',
9593
+    'absolute' => 0,
9594
+    'link_class' => '',
9595
+    'alt' => '',
9596
+    'rel' => '',
9597
+    'prefix' => '',
9598
+    'suffix' => '',
9599
+    'target' => '',
9600
+    'help' => '',
9601
+    'trim' => 0,
9602
+    'max_length' => '',
9603
+    'word_boundary' => 1,
9604
+    'ellipsis' => 1,
9605
+    'html' => 0,
9606
+    'strip_tags' => 0,
9607
+  ),
9608
+  'empty' => '',
9609
+  'hide_empty' => 0,
9610
+  'empty_zero' => 0,
9611
+  'hide_alter_empty' => 1,
9612
+  'set_precision' => FALSE,
9613
+  'precision' => 0,
9614
+  'decimal' => '.',
9615
+  'separator' => '',
9616
+  'format_plural' => 0,
9617
+  'format_plural_singular' => '1',
9618
+  'format_plural_plural' => '@count',
9619
+  'prefix' => '',
9620
+  'suffix' => '',
9621
+  'exclude' => 1,
9622
+  'id' => 'validate_state',
9623
+  'table' => 'result',
9624
+  'field' => 'validate_state',
9625
+  'relationship' => 'none',
9626
+),
9627
+'phpcode_7' => array(
9628
+  'label' => 'Validation state',
9629
+  'alter' => array(
9630
+    'alter_text' => 0,
9631
+    'text' => '',
9632
+    'make_link' => 0,
9633
+    'path' => '',
9634
+    'absolute' => 0,
9635
+    'link_class' => '',
9636
+    'alt' => '',
9637
+    'rel' => '',
9638
+    'prefix' => '',
9639
+    'suffix' => '',
9640
+    'target' => '',
9641
+    'help' => '',
9642
+    'trim' => 0,
9643
+    'max_length' => '',
9644
+    'word_boundary' => 1,
9645
+    'ellipsis' => 1,
9646
+    'html' => 0,
9647
+    'strip_tags' => 0,
9648
+  ),
9649
+  'empty' => '',
9650
+  'hide_empty' => 0,
9651
+  'empty_zero' => 0,
9652
+  'hide_alter_empty' => 1,
9653
+  'value' => '<?php
9654 9654
   require_boinc(array(\'result\', \'util\'));
9655 9655
   $result = new stdClass();
9656 9656
   $result->validate_state = $data->result_validate_state;
9657 9657
   return validate_state_str($result);
9658 9658
 ?>',
9659
-      'exclude' => 0,
9660
-      'id' => 'phpcode_7',
9661
-      'table' => 'customfield',
9662
-      'field' => 'phpcode',
9663
-      'relationship' => 'none',
9664
-    ),
9665
-    'granted_credit' => array(
9666
-      'label' => 'Granted credit',
9667
-      'alter' => array(
9668
-        'alter_text' => 0,
9669
-        'text' => '',
9670
-        'make_link' => 0,
9671
-        'path' => '',
9672
-        'absolute' => 0,
9673
-        'link_class' => '',
9674
-        'alt' => '',
9675
-        'rel' => '',
9676
-        'prefix' => '',
9677
-        'suffix' => '',
9678
-        'target' => '',
9679
-        'help' => '',
9680
-        'trim' => 0,
9681
-        'max_length' => '',
9682
-        'word_boundary' => 1,
9683
-        'ellipsis' => 1,
9684
-        'html' => 0,
9685
-        'strip_tags' => 0,
9686
-      ),
9687
-      'empty' => '',
9688
-      'hide_empty' => 0,
9689
-      'empty_zero' => 0,
9690
-      'hide_alter_empty' => 0,
9691
-      'set_precision' => 1,
9692
-      'precision' => '0',
9693
-      'decimal' => '.',
9694
-      'separator' => ',',
9695
-      'format_plural' => 0,
9696
-      'format_plural_singular' => '1',
9697
-      'format_plural_plural' => '@count',
9698
-      'prefix' => '',
9699
-      'suffix' => '',
9700
-      'exclude' => 0,
9701
-      'id' => 'granted_credit',
9702
-      'table' => 'result',
9703
-      'field' => 'granted_credit',
9704
-      'relationship' => 'none',
9705
-    ),
9706
-    'appid' => array(
9707
-      'label' => 'Application ID',
9708
-      'alter' => array(
9709
-        'alter_text' => 0,
9710
-        'text' => '',
9711
-        'make_link' => 0,
9712
-        'path' => '',
9713
-        'absolute' => 0,
9714
-        'link_class' => '',
9715
-        'alt' => '',
9716
-        'rel' => '',
9717
-        'prefix' => '',
9718
-        'suffix' => '',
9719
-        'target' => '',
9720
-        'help' => '',
9721
-        'trim' => 0,
9722
-        'max_length' => '',
9723
-        'word_boundary' => 1,
9724
-        'ellipsis' => 1,
9725
-        'html' => 0,
9726
-        'strip_tags' => 0,
9727
-      ),
9728
-      'empty' => '',
9729
-      'hide_empty' => 0,
9730
-      'empty_zero' => 0,
9731
-      'hide_alter_empty' => 1,
9732
-      'set_precision' => FALSE,
9733
-      'precision' => 0,
9734
-      'decimal' => '.',
9735
-      'separator' => ',',
9736
-      'format_plural' => 0,
9737
-      'format_plural_singular' => '1',
9738
-      'format_plural_plural' => '@count',
9739
-      'prefix' => '',
9740
-      'suffix' => '',
9741
-      'exclude' => 1,
9742
-      'id' => 'appid',
9743
-      'table' => 'result',
9744
-      'field' => 'appid',
9745
-      'relationship' => 'none',
9746
-    ),
9747
-    'app_version_id' => array(
9748
-      'label' => 'Application version',
9749
-      'alter' => array(
9750
-        'alter_text' => 0,
9751
-        'text' => '',
9752
-        'make_link' => 0,
9753
-        'path' => '',
9754
-        'absolute' => 0,
9755
-        'link_class' => '',
9756
-        'alt' => '',
9757
-        'rel' => '',
9758
-        'prefix' => '',
9759
-        'suffix' => '',
9760
-        'target' => '',
9761
-        'help' => '',
9762
-        'trim' => 0,
9763
-        'max_length' => '',
9764
-        'word_boundary' => 1,
9765
-        'ellipsis' => 1,
9766
-        'html' => 0,
9767
-        'strip_tags' => 0,
9768
-      ),
9769
-      'empty' => '',
9770
-      'hide_empty' => 0,
9771
-      'empty_zero' => 0,
9772
-      'hide_alter_empty' => 1,
9773
-      'set_precision' => FALSE,
9774
-      'precision' => 0,
9775
-      'decimal' => '.',
9776
-      'separator' => '',
9777
-      'format_plural' => 0,
9778
-      'format_plural_singular' => '1',
9779
-      'format_plural_plural' => '@count',
9780
-      'prefix' => '',
9781
-      'suffix' => '',
9782
-      'exclude' => 1,
9783
-      'id' => 'app_version_id',
9784
-      'table' => 'result',
9785
-      'field' => 'app_version_id',
9786
-      'relationship' => 'none',
9787
-    ),
9788
-    'phpcode_2' => array(
9789
-      'label' => 'Application',
9790
-      'alter' => array(
9791
-        'alter_text' => 0,
9792
-        'text' => '',
9793
-        'make_link' => 0,
9794
-        'path' => '',
9795
-        'absolute' => 0,
9796
-        'link_class' => '',
9797
-        'alt' => '',
9798
-        'rel' => '',
9799
-        'prefix' => '',
9800
-        'suffix' => '',
9801
-        'target' => '',
9802
-        'help' => '',
9803
-        'trim' => 0,
9804
-        'max_length' => '',
9805
-        'word_boundary' => 1,
9806
-        'ellipsis' => 1,
9807
-        'html' => 0,
9808
-        'strip_tags' => 0,
9809
-      ),
9810
-      'empty' => '',
9811
-      'hide_empty' => 0,
9812
-      'empty_zero' => 0,
9813
-      'hide_alter_empty' => 1,
9814
-      'value' => '<?php
9659
+  'exclude' => 0,
9660
+  'id' => 'phpcode_7',
9661
+  'table' => 'customfield',
9662
+  'field' => 'phpcode',
9663
+  'relationship' => 'none',
9664
+),
9665
+'granted_credit' => array(
9666
+  'label' => 'Granted credit',
9667
+  'alter' => array(
9668
+    'alter_text' => 0,
9669
+    'text' => '',
9670
+    'make_link' => 0,
9671
+    'path' => '',
9672
+    'absolute' => 0,
9673
+    'link_class' => '',
9674
+    'alt' => '',
9675
+    'rel' => '',
9676
+    'prefix' => '',
9677
+    'suffix' => '',
9678
+    'target' => '',
9679
+    'help' => '',
9680
+    'trim' => 0,
9681
+    'max_length' => '',
9682
+    'word_boundary' => 1,
9683
+    'ellipsis' => 1,
9684
+    'html' => 0,
9685
+    'strip_tags' => 0,
9686
+  ),
9687
+  'empty' => '',
9688
+  'hide_empty' => 0,
9689
+  'empty_zero' => 0,
9690
+  'hide_alter_empty' => 0,
9691
+  'set_precision' => 1,
9692
+  'precision' => '0',
9693
+  'decimal' => '.',
9694
+  'separator' => ',',
9695
+  'format_plural' => 0,
9696
+  'format_plural_singular' => '1',
9697
+  'format_plural_plural' => '@count',
9698
+  'prefix' => '',
9699
+  'suffix' => '',
9700
+  'exclude' => 0,
9701
+  'id' => 'granted_credit',
9702
+  'table' => 'result',
9703
+  'field' => 'granted_credit',
9704
+  'relationship' => 'none',
9705
+),
9706
+'appid' => array(
9707
+  'label' => 'Application ID',
9708
+  'alter' => array(
9709
+    'alter_text' => 0,
9710
+    'text' => '',
9711
+    'make_link' => 0,
9712
+    'path' => '',
9713
+    'absolute' => 0,
9714
+    'link_class' => '',
9715
+    'alt' => '',
9716
+    'rel' => '',
9717
+    'prefix' => '',
9718
+    'suffix' => '',
9719
+    'target' => '',
9720
+    'help' => '',
9721
+    'trim' => 0,
9722
+    'max_length' => '',
9723
+    'word_boundary' => 1,
9724
+    'ellipsis' => 1,
9725
+    'html' => 0,
9726
+    'strip_tags' => 0,
9727
+  ),
9728
+  'empty' => '',
9729
+  'hide_empty' => 0,
9730
+  'empty_zero' => 0,
9731
+  'hide_alter_empty' => 1,
9732
+  'set_precision' => FALSE,
9733
+  'precision' => 0,
9734
+  'decimal' => '.',
9735
+  'separator' => ',',
9736
+  'format_plural' => 0,
9737
+  'format_plural_singular' => '1',
9738
+  'format_plural_plural' => '@count',
9739
+  'prefix' => '',
9740
+  'suffix' => '',
9741
+  'exclude' => 1,
9742
+  'id' => 'appid',
9743
+  'table' => 'result',
9744
+  'field' => 'appid',
9745
+  'relationship' => 'none',
9746
+),
9747
+'app_version_id' => array(
9748
+  'label' => 'Application version',
9749
+  'alter' => array(
9750
+    'alter_text' => 0,
9751
+    'text' => '',
9752
+    'make_link' => 0,
9753
+    'path' => '',
9754
+    'absolute' => 0,
9755
+    'link_class' => '',
9756
+    'alt' => '',
9757
+    'rel' => '',
9758
+    'prefix' => '',
9759
+    'suffix' => '',
9760
+    'target' => '',
9761
+    'help' => '',
9762
+    'trim' => 0,
9763
+    'max_length' => '',
9764
+    'word_boundary' => 1,
9765
+    'ellipsis' => 1,
9766
+    'html' => 0,
9767
+    'strip_tags' => 0,
9768
+  ),
9769
+  'empty' => '',
9770
+  'hide_empty' => 0,
9771
+  'empty_zero' => 0,
9772
+  'hide_alter_empty' => 1,
9773
+  'set_precision' => FALSE,
9774
+  'precision' => 0,
9775
+  'decimal' => '.',
9776
+  'separator' => '',
9777
+  'format_plural' => 0,
9778
+  'format_plural_singular' => '1',
9779
+  'format_plural_plural' => '@count',
9780
+  'prefix' => '',
9781
+  'suffix' => '',
9782
+  'exclude' => 1,
9783
+  'id' => 'app_version_id',
9784
+  'table' => 'result',
9785
+  'field' => 'app_version_id',
9786
+  'relationship' => 'none',
9787
+),
9788
+'phpcode_2' => array(
9789
+  'label' => 'Application',
9790
+  'alter' => array(
9791
+    'alter_text' => 0,
9792
+    'text' => '',
9793
+    'make_link' => 0,
9794
+    'path' => '',
9795
+    'absolute' => 0,
9796
+    'link_class' => '',
9797
+    'alt' => '',
9798
+    'rel' => '',
9799
+    'prefix' => '',
9800
+    'suffix' => '',
9801
+    'target' => '',
9802
+    'help' => '',
9803
+    'trim' => 0,
9804
+    'max_length' => '',
9805
+    'word_boundary' => 1,
9806
+    'ellipsis' => 1,
9807
+    'html' => 0,
9808
+    'strip_tags' => 0,
9809
+  ),
9810
+  'empty' => '',
9811
+  'hide_empty' => 0,
9812
+  'empty_zero' => 0,
9813
+  'hide_alter_empty' => 1,
9814
+  'value' => '<?php
9815 9815
   require_boinc(array(\'result\', \'util\'));
9816 9816
   $result = new stdClass();
9817 9817
   $result->appid = $data->result_appid;
9818 9818
   $result->app_version_id = $data->result_app_version_id;
9819 9819
   return app_version_string($result);
9820 9820
 ?>',
9821
-      'exclude' => 0,
9822
-      'id' => 'phpcode_2',
9823
-      'table' => 'customfield',
9824
-      'field' => 'phpcode',
9825
-      'override' => array(
9826
-        'button' => 'Override',
9827
-      ),
9828
-      'relationship' => 'none',
9829
-    ),
9830
-    'stderr_out' => array(
9831
-      'label' => 'Stderr output',
9832
-      'alter' => array(
9833
-        'alter_text' => 0,
9834
-        'text' => '<pre>[stderr_out]</pre>',
9835
-        'make_link' => 0,
9836
-        'path' => '',
9837
-        'link_class' => '',
9838
-        'alt' => '',
9839
-        'prefix' => '',
9840
-        'suffix' => '',
9841
-        'target' => '',
9842
-        'help' => '',
9843
-        'trim' => 0,
9844
-        'max_length' => '',
9845
-        'word_boundary' => 1,
9846
-        'ellipsis' => 1,
9847
-        'html' => 0,
9848
-        'strip_tags' => 0,
9849
-      ),
9850
-      'empty' => '',
9851
-      'hide_empty' => 0,
9852
-      'empty_zero' => 0,
9853
-      'exclude' => 1,
9854
-      'id' => 'stderr_out',
9855
-      'table' => 'result',
9856
-      'field' => 'stderr_out',
9857
-      'override' => array(
9858
-        'button' => 'Override',
9859
-      ),
9860
-      'relationship' => 'none',
9861
-    ),
9862
-  ));
9863
-  $handler->override_option('arguments', array(
9864
-    'id' => array(
9865
-      'default_action' => 'not found',
9866
-      'style_plugin' => 'default_summary',
9867
-      'style_options' => array(),
9868
-      'wildcard' => 'all',
9869
-      'wildcard_substitution' => 'All',
9870
-      'title' => 'Task %1',
9871
-      'breadcrumb' => '',
9872
-      'default_argument_type' => 'fixed',
9873
-      'default_argument' => '',
9874
-      'validate_type' => 'numeric',
9875
-      'validate_fail' => 'not found',
9876
-      'id' => 'id',
9877
-      'table' => 'result',
9878
-      'field' => 'id',
9879
-      'validate_user_argument_type' => 'uid',
9880
-      'validate_user_roles' => array(
9881
-        2 => 0,
9882
-        3 => 0,
9883
-      ),
9884
-      'relationship' => 'none',
9885
-      'default_options_div_prefix' => '',
9886
-      'default_argument_fixed' => '',
9887
-      'default_argument_user' => 0,
9888
-      'default_argument_php' => '',
9889
-      'validate_argument_node_type' => array(
9890
-        'forum' => 0,
9891
-        'job_post' => 0,
9892
-        'news' => 0,
9893
-        'page' => 0,
9894
-        'profile' => 0,
9895
-        'story' => 0,
9896
-        'team' => 0,
9897
-      ),
9898
-      'validate_argument_node_access' => 0,
9899
-      'validate_argument_nid_type' => 'nid',
9900
-      'validate_argument_vocabulary' => array(
9901
-        1 => 0,
9902
-      ),
9903
-      'validate_argument_type' => 'tid',
9904
-      'validate_argument_transform' => 0,
9905
-      'validate_user_restrict_roles' => 0,
9906
-      'validate_argument_php' => '',
9907
-    ),
9908
-  ));
9909
-  $handler->override_option('access', array(
9910
-    'type' => 'none',
9911
-  ));
9912
-  $handler->override_option('cache', array(
9913
-    'type' => 'none',
9914
-  ));
9915
-  $handler->override_option('footer_format', '1');
9916
-  $handler->override_option('footer_empty', 0);
9917
-  $handler->override_option('items_per_page', 0);
9918
-  $handler = $view->new_display('page', 'Page', 'page_1');
9919
-  $handler->override_option('items_per_page', 20);
9920
-  $handler->override_option('use_pager', '1');
9921
-  $handler->override_option('style_plugin', 'grid');
9922
-  $handler->override_option('style_options', array(
9923
-    'grouping' => '',
9924
-    'columns' => '2',
9925
-    'alignment' => 'vertical',
9926
-    'fill_single_line' => 1,
9927
-  ));
9928
-  $handler->override_option('path', 'task');
9929
-  $handler->override_option('menu', array(
9930
-    'type' => 'none',
9931
-    'title' => 'All tasks',
9932
-    'description' => 'Show all tasks associated with the account',
9933
-    'weight' => '0',
9934
-    'name' => 'navigation',
9935
-  ));
9936
-  $handler->override_option('tab_options', array(
9937
-    'type' => 'normal',
9938
-    'title' => 'Tasks',
9939
-    'description' => 'Show all tasks',
9940
-    'weight' => '0',
9941
-    'name' => 'secondary-links',
9942
-  ));
9821
+  'exclude' => 0,
9822
+  'id' => 'phpcode_2',
9823
+  'table' => 'customfield',
9824
+  'field' => 'phpcode',
9825
+  'override' => array(
9826
+    'button' => 'Override',
9827
+  ),
9828
+  'relationship' => 'none',
9829
+),
9830
+'stderr_out' => array(
9831
+  'label' => 'Stderr output',
9832
+  'alter' => array(
9833
+    'alter_text' => 0,
9834
+    'text' => '<pre>[stderr_out]</pre>',
9835
+    'make_link' => 0,
9836
+    'path' => '',
9837
+    'link_class' => '',
9838
+    'alt' => '',
9839
+    'prefix' => '',
9840
+    'suffix' => '',
9841
+    'target' => '',
9842
+    'help' => '',
9843
+    'trim' => 0,
9844
+    'max_length' => '',
9845
+    'word_boundary' => 1,
9846
+    'ellipsis' => 1,
9847
+    'html' => 0,
9848
+    'strip_tags' => 0,
9849
+  ),
9850
+  'empty' => '',
9851
+  'hide_empty' => 0,
9852
+  'empty_zero' => 0,
9853
+  'exclude' => 1,
9854
+  'id' => 'stderr_out',
9855
+  'table' => 'result',
9856
+  'field' => 'stderr_out',
9857
+  'override' => array(
9858
+    'button' => 'Override',
9859
+  ),
9860
+  'relationship' => 'none',
9861
+),
9862
+));
9863
+$handler->override_option('arguments', array(
9864
+'id' => array(
9865
+  'default_action' => 'not found',
9866
+  'style_plugin' => 'default_summary',
9867
+  'style_options' => array(),
9868
+  'wildcard' => 'all',
9869
+  'wildcard_substitution' => 'All',
9870
+  'title' => 'Task %1',
9871
+  'breadcrumb' => '',
9872
+  'default_argument_type' => 'fixed',
9873
+  'default_argument' => '',
9874
+  'validate_type' => 'numeric',
9875
+  'validate_fail' => 'not found',
9876
+  'id' => 'id',
9877
+  'table' => 'result',
9878
+  'field' => 'id',
9879
+  'validate_user_argument_type' => 'uid',
9880
+  'validate_user_roles' => array(
9881
+    2 => 0,
9882
+    3 => 0,
9883
+  ),
9884
+  'relationship' => 'none',
9885
+  'default_options_div_prefix' => '',
9886
+  'default_argument_fixed' => '',
9887
+  'default_argument_user' => 0,
9888
+  'default_argument_php' => '',
9889
+  'validate_argument_node_type' => array(
9890
+    'forum' => 0,
9891
+    'job_post' => 0,
9892
+    'news' => 0,
9893
+    'page' => 0,
9894
+    'profile' => 0,
9895
+    'story' => 0,
9896
+    'team' => 0,
9897
+  ),
9898
+  'validate_argument_node_access' => 0,
9899
+  'validate_argument_nid_type' => 'nid',
9900
+  'validate_argument_vocabulary' => array(
9901
+    1 => 0,
9902
+  ),
9903
+  'validate_argument_type' => 'tid',
9904
+  'validate_argument_transform' => 0,
9905
+  'validate_user_restrict_roles' => 0,
9906
+  'validate_argument_php' => '',
9907
+),
9908
+));
9909
+$handler->override_option('access', array(
9910
+'type' => 'none',
9911
+));
9912
+$handler->override_option('cache', array(
9913
+'type' => 'none',
9914
+));
9915
+$handler->override_option('footer_format', '1');
9916
+$handler->override_option('footer_empty', 0);
9917
+$handler->override_option('items_per_page', 0);
9918
+$handler = $view->new_display('page', 'Page', 'page_1');
9919
+$handler->override_option('items_per_page', 20);
9920
+$handler->override_option('use_pager', '1');
9921
+$handler->override_option('style_plugin', 'grid');
9922
+$handler->override_option('style_options', array(
9923
+'grouping' => '',
9924
+'columns' => '2',
9925
+'alignment' => 'vertical',
9926
+'fill_single_line' => 1,
9927
+));
9928
+$handler->override_option('path', 'task');
9929
+$handler->override_option('menu', array(
9930
+'type' => 'none',
9931
+'title' => 'All tasks',
9932
+'description' => 'Show all tasks associated with the account',
9933
+'weight' => '0',
9934
+'name' => 'navigation',
9935
+));
9936
+$handler->override_option('tab_options', array(
9937
+'type' => 'normal',
9938
+'title' => 'Tasks',
9939
+'description' => 'Show all tasks',
9940
+'weight' => '0',
9941
+'name' => 'secondary-links',
9942
+));
9943 9943
 
9944
-  $views[$view->name] = $view;
9944
+$views[$view->name] = $view;
9945 9945
 
9946
-  // Exported view: boinc_users
9947
-  $view = new view;
9948
-  $view->name = 'boinc_users';
9949
-  $view->description = 'User lists and statistics';
9950
-  $view->tag = '';
9951
-  $view->base_table = 'user';
9952
-  $view->core = 6;
9953
-  $view->api_version = '2';
9954
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
9955
-  $handler = $view->new_display('default', 'Defaults', 'default');
9956
-  $handler->override_option('fields', array(
9957
-    'rownumber' => array(
9958
-      'label' => 'Rank',
9959
-      'alter' => array(
9960
-        'alter_text' => 0,
9961
-        'text' => '',
9962
-        'make_link' => 0,
9963
-        'path' => '',
9964
-        'absolute' => 0,
9965
-        'link_class' => '',
9966
-        'alt' => '',
9967
-        'rel' => '',
9968
-        'prefix' => '',
9969
-        'suffix' => '',
9970
-        'target' => '',
9971
-        'help' => '',
9972
-        'trim' => 0,
9973
-        'max_length' => '',
9974
-        'word_boundary' => 1,
9975
-        'ellipsis' => 1,
9976
-        'html' => 0,
9977
-        'strip_tags' => 0,
9978
-      ),
9979
-      'empty' => '',
9980
-      'hide_empty' => 0,
9981
-      'empty_zero' => 0,
9982
-      'hide_alter_empty' => 1,
9983
-      'exclude' => 0,
9984
-      'id' => 'rownumber',
9985
-      'table' => 'customfield',
9986
-      'field' => 'rownumber',
9987
-      'relationship' => 'none',
9988
-    ),
9989
-    'id' => array(
9990
-      'label' => 'Id',
9991
-      'alter' => array(
9992
-        'alter_text' => 0,
9993
-        'text' => '',
9994
-        'make_link' => 0,
9995
-        'path' => '',
9996
-        'absolute' => 0,
9997
-        'link_class' => '',
9998
-        'alt' => '',
9999
-        'rel' => '',
10000
-        'prefix' => '',
10001
-        'suffix' => '',
10002
-        'target' => '',
10003
-        'help' => '',
10004
-        'trim' => 0,
10005
-        'max_length' => '',
10006
-        'word_boundary' => 1,
10007
-        'ellipsis' => 1,
10008
-        'html' => 0,
10009
-        'strip_tags' => 0,
10010
-      ),
10011
-      'empty' => '',
10012
-      'hide_empty' => 0,
10013
-      'empty_zero' => 0,
10014
-      'hide_alter_empty' => 1,
10015
-      'set_precision' => FALSE,
10016
-      'precision' => 0,
10017
-      'decimal' => '.',
10018
-      'separator' => '',
10019
-      'format_plural' => 0,
10020
-      'format_plural_singular' => '1',
10021
-      'format_plural_plural' => '@count',
10022
-      'prefix' => '',
10023
-      'suffix' => '',
10024
-      'exclude' => 1,
10025
-      'id' => 'id',
10026
-      'table' => 'user',
10027
-      'field' => 'id',
10028
-      'relationship' => 'none',
10029
-    ),
10030
-    'name' => array(
10031
-      'label' => 'Name',
10032
-      'alter' => array(
10033
-        'alter_text' => 0,
10034
-        'text' => '',
10035
-        'make_link' => 0,
10036
-        'path' => '',
10037
-        'absolute' => 0,
10038
-        'link_class' => '',
10039
-        'alt' => '',
10040
-        'rel' => '',
10041
-        'prefix' => '',
10042
-        'suffix' => '',
10043
-        'target' => '',
10044
-        'help' => '',
10045
-        'trim' => 0,
10046
-        'max_length' => '',
10047
-        'word_boundary' => 1,
10048
-        'ellipsis' => 1,
10049
-        'html' => 0,
10050
-        'strip_tags' => 0,
10051
-      ),
10052
-      'empty' => '',
10053
-      'hide_empty' => 0,
10054
-      'empty_zero' => 0,
10055
-      'hide_alter_empty' => 1,
10056
-      'exclude' => 1,
10057
-      'id' => 'name',
10058
-      'table' => 'user',
10059
-      'field' => 'name',
10060
-      'relationship' => 'none',
10061
-    ),
10062
-    'phpcode' => array(
10063
-      'label' => 'Name',
10064
-      'alter' => array(
10065
-        'alter_text' => 0,
10066
-        'text' => '',
10067
-        'make_link' => 0,
10068
-        'path' => '',
10069
-        'absolute' => 0,
10070
-        'link_class' => '',
10071
-        'alt' => '',
10072
-        'rel' => '',
10073
-        'prefix' => '',
10074
-        'suffix' => '',
10075
-        'target' => '',
10076
-        'help' => '',
10077
-        'trim' => 0,
10078
-        'max_length' => '',
10079
-        'word_boundary' => 1,
10080
-        'ellipsis' => 1,
10081
-        'html' => 0,
10082
-        'strip_tags' => 0,
10083
-      ),
10084
-      'empty' => '',
10085
-      'hide_empty' => 0,
10086
-      'empty_zero' => 0,
10087
-      'hide_alter_empty' => 1,
10088
-      'value' => '<?php
9946
+// Exported view: boinc_users
9947
+$view = new view;
9948
+$view->name = 'boinc_users';
9949
+$view->description = 'User lists and statistics';
9950
+$view->tag = '';
9951
+$view->base_table = 'user';
9952
+$view->core = 6;
9953
+$view->api_version = '2';
9954
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
9955
+$handler = $view->new_display('default', 'Defaults', 'default');
9956
+$handler->override_option('fields', array(
9957
+'rownumber' => array(
9958
+  'label' => 'Rank',
9959
+  'alter' => array(
9960
+    'alter_text' => 0,
9961
+    'text' => '',
9962
+    'make_link' => 0,
9963
+    'path' => '',
9964
+    'absolute' => 0,
9965
+    'link_class' => '',
9966
+    'alt' => '',
9967
+    'rel' => '',
9968
+    'prefix' => '',
9969
+    'suffix' => '',
9970
+    'target' => '',
9971
+    'help' => '',
9972
+    'trim' => 0,
9973
+    'max_length' => '',
9974
+    'word_boundary' => 1,
9975
+    'ellipsis' => 1,
9976
+    'html' => 0,
9977
+    'strip_tags' => 0,
9978
+  ),
9979
+  'empty' => '',
9980
+  'hide_empty' => 0,
9981
+  'empty_zero' => 0,
9982
+  'hide_alter_empty' => 1,
9983
+  'exclude' => 0,
9984
+  'id' => 'rownumber',
9985
+  'table' => 'customfield',
9986
+  'field' => 'rownumber',
9987
+  'relationship' => 'none',
9988
+),
9989
+'id' => array(
9990
+  'label' => 'Id',
9991
+  'alter' => array(
9992
+    'alter_text' => 0,
9993
+    'text' => '',
9994
+    'make_link' => 0,
9995
+    'path' => '',
9996
+    'absolute' => 0,
9997
+    'link_class' => '',
9998
+    'alt' => '',
9999
+    'rel' => '',
10000
+    'prefix' => '',
10001
+    'suffix' => '',
10002
+    'target' => '',
10003
+    'help' => '',
10004
+    'trim' => 0,
10005
+    'max_length' => '',
10006
+    'word_boundary' => 1,
10007
+    'ellipsis' => 1,
10008
+    'html' => 0,
10009
+    'strip_tags' => 0,
10010
+  ),
10011
+  'empty' => '',
10012
+  'hide_empty' => 0,
10013
+  'empty_zero' => 0,
10014
+  'hide_alter_empty' => 1,
10015
+  'set_precision' => FALSE,
10016
+  'precision' => 0,
10017
+  'decimal' => '.',
10018
+  'separator' => '',
10019
+  'format_plural' => 0,
10020
+  'format_plural_singular' => '1',
10021
+  'format_plural_plural' => '@count',
10022
+  'prefix' => '',
10023
+  'suffix' => '',
10024
+  'exclude' => 1,
10025
+  'id' => 'id',
10026
+  'table' => 'user',
10027
+  'field' => 'id',
10028
+  'relationship' => 'none',
10029
+),
10030
+'name' => array(
10031
+  'label' => 'Name',
10032
+  'alter' => array(
10033
+    'alter_text' => 0,
10034
+    'text' => '',
10035
+    'make_link' => 0,
10036
+    'path' => '',
10037
+    'absolute' => 0,
10038
+    'link_class' => '',
10039
+    'alt' => '',
10040
+    'rel' => '',
10041
+    'prefix' => '',
10042
+    'suffix' => '',
10043
+    'target' => '',
10044
+    'help' => '',
10045
+    'trim' => 0,
10046
+    'max_length' => '',
10047
+    'word_boundary' => 1,
10048
+    'ellipsis' => 1,
10049
+    'html' => 0,
10050
+    'strip_tags' => 0,
10051
+  ),
10052
+  'empty' => '',
10053
+  'hide_empty' => 0,
10054
+  'empty_zero' => 0,
10055
+  'hide_alter_empty' => 1,
10056
+  'exclude' => 1,
10057
+  'id' => 'name',
10058
+  'table' => 'user',
10059
+  'field' => 'name',
10060
+  'relationship' => 'none',
10061
+),
10062
+'phpcode' => array(
10063
+  'label' => 'Name',
10064
+  'alter' => array(
10065
+    'alter_text' => 0,
10066
+    'text' => '',
10067
+    'make_link' => 0,
10068
+    'path' => '',
10069
+    'absolute' => 0,
10070
+    'link_class' => '',
10071
+    'alt' => '',
10072
+    'rel' => '',
10073
+    'prefix' => '',
10074
+    'suffix' => '',
10075
+    'target' => '',
10076
+    'help' => '',
10077
+    'trim' => 0,
10078
+    'max_length' => '',
10079
+    'word_boundary' => 1,
10080
+    'ellipsis' => 1,
10081
+    'html' => 0,
10082
+    'strip_tags' => 0,
10083
+  ),
10084
+  'empty' => '',
10085
+  'hide_empty' => 0,
10086
+  'empty_zero' => 0,
10087
+  'hide_alter_empty' => 1,
10088
+  'value' => '<?php
10089 10089
   $uid = boincuser_lookup_uid($data->id);
10090 10090
   if ($uid) {
10091 10091
     $account = user_load($uid);
@@ -10096,390 +10096,390 @@  discard block
 block discarded – undo
10096 10096
     print $data->user_name;
10097 10097
   }
10098 10098
 ?>',
10099
-      'exclude' => 0,
10100
-      'id' => 'phpcode',
10101
-      'table' => 'customfield',
10102
-      'field' => 'phpcode',
10103
-      'relationship' => 'none',
10104
-    ),
10105
-    'expavg_credit' => array(
10106
-      'label' => 'Recent average credit',
10107
-      'alter' => array(
10108
-        'alter_text' => 0,
10109
-        'text' => '',
10110
-        'make_link' => 0,
10111
-        'path' => '',
10112
-        'absolute' => 0,
10113
-        'link_class' => '',
10114
-        'alt' => '',
10115
-        'rel' => '',
10116
-        'prefix' => '',
10117
-        'suffix' => '',
10118
-        'target' => '',
10119
-        'help' => '',
10120
-        'trim' => 0,
10121
-        'max_length' => '',
10122
-        'word_boundary' => 1,
10123
-        'ellipsis' => 1,
10124
-        'html' => 0,
10125
-        'strip_tags' => 0,
10126
-      ),
10127
-      'empty' => '0',
10128
-      'hide_empty' => 0,
10129
-      'empty_zero' => 0,
10130
-      'hide_alter_empty' => 0,
10131
-      'set_precision' => 1,
10132
-      'precision' => '2',
10133
-      'decimal' => '.',
10134
-      'separator' => ',',
10135
-      'format_plural' => 0,
10136
-      'format_plural_singular' => '1',
10137
-      'format_plural_plural' => '@count',
10138
-      'prefix' => '',
10139
-      'suffix' => '',
10140
-      'exclude' => 0,
10141
-      'id' => 'expavg_credit',
10142
-      'table' => 'user',
10143
-      'field' => 'expavg_credit',
10144
-      'relationship' => 'none',
10145
-    ),
10146
-    'total_credit' => array(
10147
-      'label' => 'Total Credit',
10148
-      'alter' => array(
10149
-        'alter_text' => 0,
10150
-        'text' => '',
10151
-        'make_link' => 0,
10152
-        'path' => '',
10153
-        'absolute' => 0,
10154
-        'link_class' => '',
10155
-        'alt' => '',
10156
-        'rel' => '',
10157
-        'prefix' => '',
10158
-        'suffix' => '',
10159
-        'target' => '',
10160
-        'help' => '',
10161
-        'trim' => 0,
10162
-        'max_length' => '',
10163
-        'word_boundary' => 1,
10164
-        'ellipsis' => 1,
10165
-        'html' => 0,
10166
-        'strip_tags' => 0,
10167
-      ),
10168
-      'empty' => '0',
10169
-      'hide_empty' => 0,
10170
-      'empty_zero' => 0,
10171
-      'hide_alter_empty' => 0,
10172
-      'set_precision' => 1,
10173
-      'precision' => '0',
10174
-      'decimal' => '.',
10175
-      'separator' => ',',
10176
-      'format_plural' => 0,
10177
-      'format_plural_singular' => '1',
10178
-      'format_plural_plural' => '@count',
10179
-      'prefix' => '',
10180
-      'suffix' => '',
10181
-      'exclude' => 0,
10182
-      'id' => 'total_credit',
10183
-      'table' => 'user',
10184
-      'field' => 'total_credit',
10185
-      'relationship' => 'none',
10186
-    ),
10187
-    'country' => array(
10188
-      'label' => 'Country',
10189
-      'alter' => array(
10190
-        'alter_text' => 0,
10191
-        'text' => '',
10192
-        'make_link' => 0,
10193
-        'path' => '',
10194
-        'absolute' => 0,
10195
-        'link_class' => '',
10196
-        'alt' => '',
10197
-        'rel' => '',
10198
-        'prefix' => '',
10199
-        'suffix' => '',
10200
-        'target' => '',
10201
-        'help' => '',
10202
-        'trim' => 0,
10203
-        'max_length' => '',
10204
-        'word_boundary' => 1,
10205
-        'ellipsis' => 1,
10206
-        'html' => 0,
10207
-        'strip_tags' => 0,
10208
-      ),
10209
-      'empty' => '',
10210
-      'hide_empty' => 0,
10211
-      'empty_zero' => 0,
10212
-      'hide_alter_empty' => 1,
10213
-      'exclude' => 0,
10214
-      'id' => 'country',
10215
-      'table' => 'user',
10216
-      'field' => 'country',
10217
-      'relationship' => 'none',
10218
-    ),
10219
-    'create_time' => array(
10220
-      'label' => 'Joined',
10221
-      'alter' => array(
10222
-        'alter_text' => 0,
10223
-        'text' => '',
10224
-        'make_link' => 0,
10225
-        'path' => '',
10226
-        'absolute' => 0,
10227
-        'link_class' => '',
10228
-        'alt' => '',
10229
-        'rel' => '',
10230
-        'prefix' => '',
10231
-        'suffix' => '',
10232
-        'target' => '',
10233
-        'help' => '',
10234
-        'trim' => 0,
10235
-        'max_length' => '',
10236
-        'word_boundary' => 1,
10237
-        'ellipsis' => 1,
10238
-        'html' => 0,
10239
-        'strip_tags' => 0,
10240
-      ),
10241
-      'empty' => '',
10242
-      'hide_empty' => 0,
10243
-      'empty_zero' => 0,
10244
-      'hide_alter_empty' => 1,
10245
-      'date_format' => 'time ago',
10246
-      'custom_date_format' => '',
10247
-      'exclude' => 0,
10248
-      'id' => 'create_time',
10249
-      'table' => 'user',
10250
-      'field' => 'create_time',
10251
-      'relationship' => 'none',
10252
-    ),
10253
-  ));
10254
-  $handler->override_option('filters', array(
10255
-    'total_credit' => array(
10256
-      'operator' => '>=',
10257
-      'value' => array(
10258
-        'value' => '1',
10259
-        'min' => '',
10260
-        'max' => '',
10261
-      ),
10262
-      'group' => '0',
10263
-      'exposed' => FALSE,
10264
-      'expose' => array(
10265
-        'operator' => FALSE,
10266
-        'label' => '',
10267
-      ),
10268
-      'id' => 'total_credit',
10269
-      'table' => 'user',
10270
-      'field' => 'total_credit',
10271
-      'relationship' => 'none',
10272
-    ),
10273
-  ));
10274
-  $handler->override_option('access', array(
10275
-    'type' => 'none',
10276
-  ));
10277
-  $handler->override_option('cache', array(
10278
-    'type' => 'none',
10279
-  ));
10280
-  $handler->override_option('items_per_page', 100);
10281
-  $handler->override_option('use_pager', '0');
10282
-  $handler->override_option('style_plugin', 'table');
10283
-  $handler->override_option('style_options', array(
10284
-    'grouping' => '',
10285
-    'override' => 1,
10286
-    'sticky' => 1,
10287
-    'order' => 'desc',
10288
-    'summary' => '',
10289
-    'columns' => array(
10290
-      'rownumber' => 'rownumber',
10291
-      'id' => 'id',
10292
-      'name' => 'name',
10293
-      'phpcode' => 'phpcode',
10294
-      'expavg_credit' => 'expavg_credit',
10295
-      'total_credit' => 'total_credit',
10296
-      'country' => 'country',
10297
-      'create_time' => 'create_time',
10298
-    ),
10299
-    'info' => array(
10300
-      'rownumber' => array(
10301
-        'separator' => '',
10302
-      ),
10303
-      'id' => array(
10304
-        'sortable' => 0,
10305
-        'separator' => '',
10306
-      ),
10307
-      'name' => array(
10308
-        'sortable' => 0,
10309
-        'separator' => '',
10310
-      ),
10311
-      'phpcode' => array(
10312
-        'separator' => '',
10313
-      ),
10314
-      'expavg_credit' => array(
10315
-        'sortable' => 1,
10316
-        'separator' => '',
10317
-      ),
10318
-      'total_credit' => array(
10319
-        'sortable' => 1,
10320
-        'separator' => '',
10321
-      ),
10322
-      'country' => array(
10323
-        'sortable' => 0,
10324
-        'separator' => '',
10325
-      ),
10326
-      'create_time' => array(
10327
-        'sortable' => 1,
10328
-        'separator' => '',
10329
-      ),
10330
-    ),
10331
-    'default' => 'expavg_credit',
10332
-  ));
10333
-  $handler = $view->new_display('page', 'Top users', 'page_1');
10334
-  $handler->override_option('path', 'community/stats/users');
10335
-  $handler->override_option('menu', array(
10336
-    'type' => 'tab',
10337
-    'title' => 'Top Users',
10338
-    'description' => '',
10339
-    'weight' => '0',
10340
-    'name' => 'primary-links',
10341
-  ));
10342
-  $handler->override_option('tab_options', array(
10343
-    'type' => 'none',
10344
-    'title' => '',
10345
-    'description' => '',
10346
-    'weight' => 0,
10347
-    'name' => 'navigation',
10348
-  ));
10349
-  $handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10350
-  $handler->override_option('fields', array(
10351
-    'rownumber' => array(
10352
-      'label' => 'Rank',
10353
-      'alter' => array(
10354
-        'alter_text' => 0,
10355
-        'text' => '',
10356
-        'make_link' => 0,
10357
-        'path' => '',
10358
-        'absolute' => 0,
10359
-        'link_class' => '',
10360
-        'alt' => '',
10361
-        'rel' => '',
10362
-        'prefix' => '',
10363
-        'suffix' => '',
10364
-        'target' => '',
10365
-        'help' => '',
10366
-        'trim' => 0,
10367
-        'max_length' => '',
10368
-        'word_boundary' => 1,
10369
-        'ellipsis' => 1,
10370
-        'html' => 0,
10371
-        'strip_tags' => 0,
10372
-      ),
10373
-      'empty' => '',
10374
-      'hide_empty' => 0,
10375
-      'empty_zero' => 0,
10376
-      'hide_alter_empty' => 1,
10377
-      'exclude' => 0,
10378
-      'id' => 'rownumber',
10379
-      'table' => 'customfield',
10380
-      'field' => 'rownumber',
10381
-      'relationship' => 'none',
10382
-    ),
10383
-    'id' => array(
10384
-      'label' => 'Id',
10385
-      'alter' => array(
10386
-        'alter_text' => 0,
10387
-        'text' => '',
10388
-        'make_link' => 0,
10389
-        'path' => '',
10390
-        'absolute' => 0,
10391
-        'link_class' => '',
10392
-        'alt' => '',
10393
-        'rel' => '',
10394
-        'prefix' => '',
10395
-        'suffix' => '',
10396
-        'target' => '',
10397
-        'help' => '',
10398
-        'trim' => 0,
10399
-        'max_length' => '',
10400
-        'word_boundary' => 1,
10401
-        'ellipsis' => 1,
10402
-        'html' => 0,
10403
-        'strip_tags' => 0,
10404
-      ),
10405
-      'empty' => '',
10406
-      'hide_empty' => 0,
10407
-      'empty_zero' => 0,
10408
-      'hide_alter_empty' => 1,
10409
-      'set_precision' => FALSE,
10410
-      'precision' => 0,
10411
-      'decimal' => '.',
10412
-      'separator' => '',
10413
-      'format_plural' => 0,
10414
-      'format_plural_singular' => '1',
10415
-      'format_plural_plural' => '@count',
10416
-      'prefix' => '',
10417
-      'suffix' => '',
10418
-      'exclude' => 1,
10419
-      'id' => 'id',
10420
-      'table' => 'user',
10421
-      'field' => 'id',
10422
-      'relationship' => 'none',
10423
-    ),
10424
-    'name' => array(
10425
-      'label' => 'Name',
10426
-      'alter' => array(
10427
-        'alter_text' => 0,
10428
-        'text' => '',
10429
-        'make_link' => 0,
10430
-        'path' => '',
10431
-        'absolute' => 0,
10432
-        'link_class' => '',
10433
-        'alt' => '',
10434
-        'rel' => '',
10435
-        'prefix' => '',
10436
-        'suffix' => '',
10437
-        'target' => '',
10438
-        'help' => '',
10439
-        'trim' => 0,
10440
-        'max_length' => '',
10441
-        'word_boundary' => 1,
10442
-        'ellipsis' => 1,
10443
-        'html' => 0,
10444
-        'strip_tags' => 0,
10445
-      ),
10446
-      'empty' => '',
10447
-      'hide_empty' => 0,
10448
-      'empty_zero' => 0,
10449
-      'hide_alter_empty' => 1,
10450
-      'exclude' => 1,
10451
-      'id' => 'name',
10452
-      'table' => 'user',
10453
-      'field' => 'name',
10454
-      'relationship' => 'none',
10455
-    ),
10456
-    'phpcode' => array(
10457
-      'label' => 'Name',
10458
-      'alter' => array(
10459
-        'alter_text' => 0,
10460
-        'text' => '',
10461
-        'make_link' => 0,
10462
-        'path' => '',
10463
-        'absolute' => 0,
10464
-        'link_class' => '',
10465
-        'alt' => '',
10466
-        'rel' => '',
10467
-        'prefix' => '',
10468
-        'suffix' => '',
10469
-        'target' => '',
10470
-        'help' => '',
10471
-        'trim' => 0,
10472
-        'max_length' => '',
10473
-        'word_boundary' => 1,
10474
-        'ellipsis' => 1,
10475
-        'html' => 0,
10476
-        'strip_tags' => 0,
10477
-      ),
10478
-      'empty' => '',
10479
-      'hide_empty' => 0,
10480
-      'empty_zero' => 0,
10481
-      'hide_alter_empty' => 1,
10482
-      'value' => '<?php
10099
+  'exclude' => 0,
10100
+  'id' => 'phpcode',
10101
+  'table' => 'customfield',
10102
+  'field' => 'phpcode',
10103
+  'relationship' => 'none',
10104
+),
10105
+'expavg_credit' => array(
10106
+  'label' => 'Recent average credit',
10107
+  'alter' => array(
10108
+    'alter_text' => 0,
10109
+    'text' => '',
10110
+    'make_link' => 0,
10111
+    'path' => '',
10112
+    'absolute' => 0,
10113
+    'link_class' => '',
10114
+    'alt' => '',
10115
+    'rel' => '',
10116
+    'prefix' => '',
10117
+    'suffix' => '',
10118
+    'target' => '',
10119
+    'help' => '',
10120
+    'trim' => 0,
10121
+    'max_length' => '',
10122
+    'word_boundary' => 1,
10123
+    'ellipsis' => 1,
10124
+    'html' => 0,
10125
+    'strip_tags' => 0,
10126
+  ),
10127
+  'empty' => '0',
10128
+  'hide_empty' => 0,
10129
+  'empty_zero' => 0,
10130
+  'hide_alter_empty' => 0,
10131
+  'set_precision' => 1,
10132
+  'precision' => '2',
10133
+  'decimal' => '.',
10134
+  'separator' => ',',
10135
+  'format_plural' => 0,
10136
+  'format_plural_singular' => '1',
10137
+  'format_plural_plural' => '@count',
10138
+  'prefix' => '',
10139
+  'suffix' => '',
10140
+  'exclude' => 0,
10141
+  'id' => 'expavg_credit',
10142
+  'table' => 'user',
10143
+  'field' => 'expavg_credit',
10144
+  'relationship' => 'none',
10145
+),
10146
+'total_credit' => array(
10147
+  'label' => 'Total Credit',
10148
+  'alter' => array(
10149
+    'alter_text' => 0,
10150
+    'text' => '',
10151
+    'make_link' => 0,
10152
+    'path' => '',
10153
+    'absolute' => 0,
10154
+    'link_class' => '',
10155
+    'alt' => '',
10156
+    'rel' => '',
10157
+    'prefix' => '',
10158
+    'suffix' => '',
10159
+    'target' => '',
10160
+    'help' => '',
10161
+    'trim' => 0,
10162
+    'max_length' => '',
10163
+    'word_boundary' => 1,
10164
+    'ellipsis' => 1,
10165
+    'html' => 0,
10166
+    'strip_tags' => 0,
10167
+  ),
10168
+  'empty' => '0',
10169
+  'hide_empty' => 0,
10170
+  'empty_zero' => 0,
10171
+  'hide_alter_empty' => 0,
10172
+  'set_precision' => 1,
10173
+  'precision' => '0',
10174
+  'decimal' => '.',
10175
+  'separator' => ',',
10176
+  'format_plural' => 0,
10177
+  'format_plural_singular' => '1',
10178
+  'format_plural_plural' => '@count',
10179
+  'prefix' => '',
10180
+  'suffix' => '',
10181
+  'exclude' => 0,
10182
+  'id' => 'total_credit',
10183
+  'table' => 'user',
10184
+  'field' => 'total_credit',
10185
+  'relationship' => 'none',
10186
+),
10187
+'country' => array(
10188
+  'label' => 'Country',
10189
+  'alter' => array(
10190
+    'alter_text' => 0,
10191
+    'text' => '',
10192
+    'make_link' => 0,
10193
+    'path' => '',
10194
+    'absolute' => 0,
10195
+    'link_class' => '',
10196
+    'alt' => '',
10197
+    'rel' => '',
10198
+    'prefix' => '',
10199
+    'suffix' => '',
10200
+    'target' => '',
10201
+    'help' => '',
10202
+    'trim' => 0,
10203
+    'max_length' => '',
10204
+    'word_boundary' => 1,
10205
+    'ellipsis' => 1,
10206
+    'html' => 0,
10207
+    'strip_tags' => 0,
10208
+  ),
10209
+  'empty' => '',
10210
+  'hide_empty' => 0,
10211
+  'empty_zero' => 0,
10212
+  'hide_alter_empty' => 1,
10213
+  'exclude' => 0,
10214
+  'id' => 'country',
10215
+  'table' => 'user',
10216
+  'field' => 'country',
10217
+  'relationship' => 'none',
10218
+),
10219
+'create_time' => array(
10220
+  'label' => 'Joined',
10221
+  'alter' => array(
10222
+    'alter_text' => 0,
10223
+    'text' => '',
10224
+    'make_link' => 0,
10225
+    'path' => '',
10226
+    'absolute' => 0,
10227
+    'link_class' => '',
10228
+    'alt' => '',
10229
+    'rel' => '',
10230
+    'prefix' => '',
10231
+    'suffix' => '',
10232
+    'target' => '',
10233
+    'help' => '',
10234
+    'trim' => 0,
10235
+    'max_length' => '',
10236
+    'word_boundary' => 1,
10237
+    'ellipsis' => 1,
10238
+    'html' => 0,
10239
+    'strip_tags' => 0,
10240
+  ),
10241
+  'empty' => '',
10242
+  'hide_empty' => 0,
10243
+  'empty_zero' => 0,
10244
+  'hide_alter_empty' => 1,
10245
+  'date_format' => 'time ago',
10246
+  'custom_date_format' => '',
10247
+  'exclude' => 0,
10248
+  'id' => 'create_time',
10249
+  'table' => 'user',
10250
+  'field' => 'create_time',
10251
+  'relationship' => 'none',
10252
+),
10253
+));
10254
+$handler->override_option('filters', array(
10255
+'total_credit' => array(
10256
+  'operator' => '>=',
10257
+  'value' => array(
10258
+    'value' => '1',
10259
+    'min' => '',
10260
+    'max' => '',
10261
+  ),
10262
+  'group' => '0',
10263
+  'exposed' => FALSE,
10264
+  'expose' => array(
10265
+    'operator' => FALSE,
10266
+    'label' => '',
10267
+  ),
10268
+  'id' => 'total_credit',
10269
+  'table' => 'user',
10270
+  'field' => 'total_credit',
10271
+  'relationship' => 'none',
10272
+),
10273
+));
10274
+$handler->override_option('access', array(
10275
+'type' => 'none',
10276
+));
10277
+$handler->override_option('cache', array(
10278
+'type' => 'none',
10279
+));
10280
+$handler->override_option('items_per_page', 100);
10281
+$handler->override_option('use_pager', '0');
10282
+$handler->override_option('style_plugin', 'table');
10283
+$handler->override_option('style_options', array(
10284
+'grouping' => '',
10285
+'override' => 1,
10286
+'sticky' => 1,
10287
+'order' => 'desc',
10288
+'summary' => '',
10289
+'columns' => array(
10290
+  'rownumber' => 'rownumber',
10291
+  'id' => 'id',
10292
+  'name' => 'name',
10293
+  'phpcode' => 'phpcode',
10294
+  'expavg_credit' => 'expavg_credit',
10295
+  'total_credit' => 'total_credit',
10296
+  'country' => 'country',
10297
+  'create_time' => 'create_time',
10298
+),
10299
+'info' => array(
10300
+  'rownumber' => array(
10301
+    'separator' => '',
10302
+  ),
10303
+  'id' => array(
10304
+    'sortable' => 0,
10305
+    'separator' => '',
10306
+  ),
10307
+  'name' => array(
10308
+    'sortable' => 0,
10309
+    'separator' => '',
10310
+  ),
10311
+  'phpcode' => array(
10312
+    'separator' => '',
10313
+  ),
10314
+  'expavg_credit' => array(
10315
+    'sortable' => 1,
10316
+    'separator' => '',
10317
+  ),
10318
+  'total_credit' => array(
10319
+    'sortable' => 1,
10320
+    'separator' => '',
10321
+  ),
10322
+  'country' => array(
10323
+    'sortable' => 0,
10324
+    'separator' => '',
10325
+  ),
10326
+  'create_time' => array(
10327
+    'sortable' => 1,
10328
+    'separator' => '',
10329
+  ),
10330
+),
10331
+'default' => 'expavg_credit',
10332
+));
10333
+$handler = $view->new_display('page', 'Top users', 'page_1');
10334
+$handler->override_option('path', 'community/stats/users');
10335
+$handler->override_option('menu', array(
10336
+'type' => 'tab',
10337
+'title' => 'Top Users',
10338
+'description' => '',
10339
+'weight' => '0',
10340
+'name' => 'primary-links',
10341
+));
10342
+$handler->override_option('tab_options', array(
10343
+'type' => 'none',
10344
+'title' => '',
10345
+'description' => '',
10346
+'weight' => 0,
10347
+'name' => 'navigation',
10348
+));
10349
+$handler = $view->new_display('panel_pane', 'Top users pane', 'panel_pane_1');
10350
+$handler->override_option('fields', array(
10351
+'rownumber' => array(
10352
+  'label' => 'Rank',
10353
+  'alter' => array(
10354
+    'alter_text' => 0,
10355
+    'text' => '',
10356
+    'make_link' => 0,
10357
+    'path' => '',
10358
+    'absolute' => 0,
10359
+    'link_class' => '',
10360
+    'alt' => '',
10361
+    'rel' => '',
10362
+    'prefix' => '',
10363
+    'suffix' => '',
10364
+    'target' => '',
10365
+    'help' => '',
10366
+    'trim' => 0,
10367
+    'max_length' => '',
10368
+    'word_boundary' => 1,
10369
+    'ellipsis' => 1,
10370
+    'html' => 0,
10371
+    'strip_tags' => 0,
10372
+  ),
10373
+  'empty' => '',
10374
+  'hide_empty' => 0,
10375
+  'empty_zero' => 0,
10376
+  'hide_alter_empty' => 1,
10377
+  'exclude' => 0,
10378
+  'id' => 'rownumber',
10379
+  'table' => 'customfield',
10380
+  'field' => 'rownumber',
10381
+  'relationship' => 'none',
10382
+),
10383
+'id' => array(
10384
+  'label' => 'Id',
10385
+  'alter' => array(
10386
+    'alter_text' => 0,
10387
+    'text' => '',
10388
+    'make_link' => 0,
10389
+    'path' => '',
10390
+    'absolute' => 0,
10391
+    'link_class' => '',
10392
+    'alt' => '',
10393
+    'rel' => '',
10394
+    'prefix' => '',
10395
+    'suffix' => '',
10396
+    'target' => '',
10397
+    'help' => '',
10398
+    'trim' => 0,
10399
+    'max_length' => '',
10400
+    'word_boundary' => 1,
10401
+    'ellipsis' => 1,
10402
+    'html' => 0,
10403
+    'strip_tags' => 0,
10404
+  ),
10405
+  'empty' => '',
10406
+  'hide_empty' => 0,
10407
+  'empty_zero' => 0,
10408
+  'hide_alter_empty' => 1,
10409
+  'set_precision' => FALSE,
10410
+  'precision' => 0,
10411
+  'decimal' => '.',
10412
+  'separator' => '',
10413
+  'format_plural' => 0,
10414
+  'format_plural_singular' => '1',
10415
+  'format_plural_plural' => '@count',
10416
+  'prefix' => '',
10417
+  'suffix' => '',
10418
+  'exclude' => 1,
10419
+  'id' => 'id',
10420
+  'table' => 'user',
10421
+  'field' => 'id',
10422
+  'relationship' => 'none',
10423
+),
10424
+'name' => array(
10425
+  'label' => 'Name',
10426
+  'alter' => array(
10427
+    'alter_text' => 0,
10428
+    'text' => '',
10429
+    'make_link' => 0,
10430
+    'path' => '',
10431
+    'absolute' => 0,
10432
+    'link_class' => '',
10433
+    'alt' => '',
10434
+    'rel' => '',
10435
+    'prefix' => '',
10436
+    'suffix' => '',
10437
+    'target' => '',
10438
+    'help' => '',
10439
+    'trim' => 0,
10440
+    'max_length' => '',
10441
+    'word_boundary' => 1,
10442
+    'ellipsis' => 1,
10443
+    'html' => 0,
10444
+    'strip_tags' => 0,
10445
+  ),
10446
+  'empty' => '',
10447
+  'hide_empty' => 0,
10448
+  'empty_zero' => 0,
10449
+  'hide_alter_empty' => 1,
10450
+  'exclude' => 1,
10451
+  'id' => 'name',
10452
+  'table' => 'user',
10453
+  'field' => 'name',
10454
+  'relationship' => 'none',
10455
+),
10456
+'phpcode' => array(
10457
+  'label' => 'Name',
10458
+  'alter' => array(
10459
+    'alter_text' => 0,
10460
+    'text' => '',
10461
+    'make_link' => 0,
10462
+    'path' => '',
10463
+    'absolute' => 0,
10464
+    'link_class' => '',
10465
+    'alt' => '',
10466
+    'rel' => '',
10467
+    'prefix' => '',
10468
+    'suffix' => '',
10469
+    'target' => '',
10470
+    'help' => '',
10471
+    'trim' => 0,
10472
+    'max_length' => '',
10473
+    'word_boundary' => 1,
10474
+    'ellipsis' => 1,
10475
+    'html' => 0,
10476
+    'strip_tags' => 0,
10477
+  ),
10478
+  'empty' => '',
10479
+  'hide_empty' => 0,
10480
+  'empty_zero' => 0,
10481
+  'hide_alter_empty' => 1,
10482
+  'value' => '<?php
10483 10483
   $uid = boincuser_lookup_uid($data->id);
10484 10484
   if ($uid) {
10485 10485
     $account = user_load($uid);
@@ -10490,914 +10490,914 @@  discard block
 block discarded – undo
10490 10490
     print $data->user_name;
10491 10491
   }
10492 10492
 ?>',
10493
-      'exclude' => 0,
10494
-      'id' => 'phpcode',
10495
-      'table' => 'customfield',
10496
-      'field' => 'phpcode',
10497
-      'relationship' => 'none',
10498
-    ),
10499
-    'country' => array(
10500
-      'label' => 'Country',
10501
-      'alter' => array(
10502
-        'alter_text' => 0,
10503
-        'text' => '',
10504
-        'make_link' => 0,
10505
-        'path' => '',
10506
-        'absolute' => 0,
10507
-        'link_class' => '',
10508
-        'alt' => '',
10509
-        'rel' => '',
10510
-        'prefix' => '',
10511
-        'suffix' => '',
10512
-        'target' => '',
10513
-        'help' => '',
10514
-        'trim' => 0,
10515
-        'max_length' => '',
10516
-        'word_boundary' => 1,
10517
-        'ellipsis' => 1,
10518
-        'html' => 0,
10519
-        'strip_tags' => 0,
10520
-      ),
10521
-      'empty' => '',
10522
-      'hide_empty' => 0,
10523
-      'empty_zero' => 0,
10524
-      'hide_alter_empty' => 1,
10525
-      'exclude' => 0,
10526
-      'id' => 'country',
10527
-      'table' => 'user',
10528
-      'field' => 'country',
10529
-      'relationship' => 'none',
10530
-    ),
10531
-    'expavg_credit' => array(
10532
-      'label' => 'Recent average credit',
10533
-      'alter' => array(
10534
-        'alter_text' => 0,
10535
-        'text' => '',
10536
-        'make_link' => 0,
10537
-        'path' => '',
10538
-        'absolute' => 0,
10539
-        'link_class' => '',
10540
-        'alt' => '',
10541
-        'rel' => '',
10542
-        'prefix' => '',
10543
-        'suffix' => '',
10544
-        'target' => '',
10545
-        'help' => '',
10546
-        'trim' => 0,
10547
-        'max_length' => '',
10548
-        'word_boundary' => 1,
10549
-        'ellipsis' => 1,
10550
-        'html' => 0,
10551
-        'strip_tags' => 0,
10552
-      ),
10553
-      'empty' => '0',
10554
-      'hide_empty' => 0,
10555
-      'empty_zero' => 0,
10556
-      'hide_alter_empty' => 0,
10557
-      'set_precision' => 1,
10558
-      'precision' => '2',
10559
-      'decimal' => '.',
10560
-      'separator' => ',',
10561
-      'format_plural' => 0,
10562
-      'format_plural_singular' => '1',
10563
-      'format_plural_plural' => '@count',
10564
-      'prefix' => '',
10565
-      'suffix' => '',
10566
-      'exclude' => 0,
10567
-      'id' => 'expavg_credit',
10568
-      'table' => 'user',
10569
-      'field' => 'expavg_credit',
10570
-      'relationship' => 'none',
10571
-      'override' => array(
10572
-        'button' => 'Use default',
10573
-      ),
10574
-    ),
10575
-    'total_credit' => array(
10576
-      'label' => 'Total Credit',
10577
-      'alter' => array(
10578
-        'alter_text' => 0,
10579
-        'text' => '',
10580
-        'make_link' => 0,
10581
-        'path' => '',
10582
-        'absolute' => 0,
10583
-        'link_class' => '',
10584
-        'alt' => '',
10585
-        'rel' => '',
10586
-        'prefix' => '',
10587
-        'suffix' => '',
10588
-        'target' => '',
10589
-        'help' => '',
10590
-        'trim' => 0,
10591
-        'max_length' => '',
10592
-        'word_boundary' => 1,
10593
-        'ellipsis' => 1,
10594
-        'html' => 0,
10595
-        'strip_tags' => 0,
10596
-      ),
10597
-      'empty' => '0',
10598
-      'hide_empty' => 0,
10599
-      'empty_zero' => 0,
10600
-      'hide_alter_empty' => 0,
10601
-      'set_precision' => 1,
10602
-      'precision' => '0',
10603
-      'decimal' => '.',
10604
-      'separator' => ',',
10605
-      'format_plural' => 0,
10606
-      'format_plural_singular' => '1',
10607
-      'format_plural_plural' => '@count',
10608
-      'prefix' => '',
10609
-      'suffix' => '',
10610
-      'exclude' => 0,
10611
-      'id' => 'total_credit',
10612
-      'table' => 'user',
10613
-      'field' => 'total_credit',
10614
-      'relationship' => 'none',
10615
-    ),
10616
-    'create_time' => array(
10617
-      'label' => 'Joined',
10618
-      'alter' => array(
10619
-        'alter_text' => 0,
10620
-        'text' => '',
10621
-        'make_link' => 0,
10622
-        'path' => '',
10623
-        'absolute' => 0,
10624
-        'link_class' => '',
10625
-        'alt' => '',
10626
-        'rel' => '',
10627
-        'prefix' => '',
10628
-        'suffix' => '',
10629
-        'target' => '',
10630
-        'help' => '',
10631
-        'trim' => 0,
10632
-        'max_length' => '',
10633
-        'word_boundary' => 1,
10634
-        'ellipsis' => 1,
10635
-        'html' => 0,
10636
-        'strip_tags' => 0,
10637
-      ),
10638
-      'empty' => '',
10639
-      'hide_empty' => 0,
10640
-      'empty_zero' => 0,
10641
-      'hide_alter_empty' => 1,
10642
-      'date_format' => 'time ago',
10643
-      'custom_date_format' => '',
10644
-      'exclude' => 1,
10645
-      'id' => 'create_time',
10646
-      'table' => 'user',
10647
-      'field' => 'create_time',
10648
-      'relationship' => 'none',
10649
-      'override' => array(
10650
-        'button' => 'Use default',
10651
-      ),
10652
-    ),
10653
-  ));
10654
-  $handler->override_option('title', 'Top participants');
10655
-  $handler->override_option('items_per_page', 10);
10656
-  $handler->override_option('use_more', 1);
10657
-  $handler->override_option('use_more_always', 0);
10658
-  $handler->override_option('use_more_text', 'view more');
10659
-  $handler->override_option('style_options', array(
10660
-    'grouping' => '',
10661
-    'override' => 1,
10662
-    'sticky' => 0,
10663
-    'order' => 'desc',
10664
-    'summary' => '',
10665
-    'columns' => array(
10666
-      'rownumber' => 'rownumber',
10667
-      'id' => 'id',
10668
-      'name' => 'name',
10669
-      'phpcode' => 'phpcode',
10670
-      'country' => 'country',
10671
-      'expavg_credit' => 'expavg_credit',
10672
-      'total_credit' => 'total_credit',
10673
-      'create_time' => 'create_time',
10674
-    ),
10675
-    'info' => array(
10676
-      'rownumber' => array(
10677
-        'separator' => '',
10678
-      ),
10679
-      'id' => array(
10680
-        'sortable' => 0,
10681
-        'separator' => '',
10682
-      ),
10683
-      'name' => array(
10684
-        'sortable' => 0,
10685
-        'separator' => '',
10686
-      ),
10687
-      'phpcode' => array(
10688
-        'separator' => '',
10689
-      ),
10690
-      'country' => array(
10691
-        'sortable' => 0,
10692
-        'separator' => '',
10693
-      ),
10694
-      'expavg_credit' => array(
10695
-        'sortable' => 1,
10696
-        'separator' => '',
10697
-      ),
10698
-      'total_credit' => array(
10699
-        'sortable' => 1,
10700
-        'separator' => '',
10701
-      ),
10702
-      'create_time' => array(
10703
-        'sortable' => 1,
10704
-        'separator' => '',
10705
-      ),
10706
-    ),
10707
-    'default' => 'expavg_credit',
10708
-  ));
10709
-  $handler->override_option('pane_title', '');
10710
-  $handler->override_option('pane_description', '');
10711
-  $handler->override_option('pane_category', array(
10712
-    'name' => 'View panes',
10713
-    'weight' => 0,
10714
-  ));
10715
-  $handler->override_option('allow', array(
10716
-    'use_pager' => FALSE,
10717
-    'items_per_page' => FALSE,
10718
-    'offset' => FALSE,
10719
-    'link_to_view' => FALSE,
10720
-    'more_link' => FALSE,
10721
-    'path_override' => FALSE,
10722
-    'title_override' => FALSE,
10723
-    'exposed_form' => FALSE,
10724
-    'fields_override' => FALSE,
10725
-  ));
10726
-  $handler->override_option('argument_input', array());
10727
-  $handler->override_option('link_to_view', 0);
10728
-  $handler->override_option('inherit_panels_path', 0);
10493
+  'exclude' => 0,
10494
+  'id' => 'phpcode',
10495
+  'table' => 'customfield',
10496
+  'field' => 'phpcode',
10497
+  'relationship' => 'none',
10498
+),
10499
+'country' => array(
10500
+  'label' => 'Country',
10501
+  'alter' => array(
10502
+    'alter_text' => 0,
10503
+    'text' => '',
10504
+    'make_link' => 0,
10505
+    'path' => '',
10506
+    'absolute' => 0,
10507
+    'link_class' => '',
10508
+    'alt' => '',
10509
+    'rel' => '',
10510
+    'prefix' => '',
10511
+    'suffix' => '',
10512
+    'target' => '',
10513
+    'help' => '',
10514
+    'trim' => 0,
10515
+    'max_length' => '',
10516
+    'word_boundary' => 1,
10517
+    'ellipsis' => 1,
10518
+    'html' => 0,
10519
+    'strip_tags' => 0,
10520
+  ),
10521
+  'empty' => '',
10522
+  'hide_empty' => 0,
10523
+  'empty_zero' => 0,
10524
+  'hide_alter_empty' => 1,
10525
+  'exclude' => 0,
10526
+  'id' => 'country',
10527
+  'table' => 'user',
10528
+  'field' => 'country',
10529
+  'relationship' => 'none',
10530
+),
10531
+'expavg_credit' => array(
10532
+  'label' => 'Recent average credit',
10533
+  'alter' => array(
10534
+    'alter_text' => 0,
10535
+    'text' => '',
10536
+    'make_link' => 0,
10537
+    'path' => '',
10538
+    'absolute' => 0,
10539
+    'link_class' => '',
10540
+    'alt' => '',
10541
+    'rel' => '',
10542
+    'prefix' => '',
10543
+    'suffix' => '',
10544
+    'target' => '',
10545
+    'help' => '',
10546
+    'trim' => 0,
10547
+    'max_length' => '',
10548
+    'word_boundary' => 1,
10549
+    'ellipsis' => 1,
10550
+    'html' => 0,
10551
+    'strip_tags' => 0,
10552
+  ),
10553
+  'empty' => '0',
10554
+  'hide_empty' => 0,
10555
+  'empty_zero' => 0,
10556
+  'hide_alter_empty' => 0,
10557
+  'set_precision' => 1,
10558
+  'precision' => '2',
10559
+  'decimal' => '.',
10560
+  'separator' => ',',
10561
+  'format_plural' => 0,
10562
+  'format_plural_singular' => '1',
10563
+  'format_plural_plural' => '@count',
10564
+  'prefix' => '',
10565
+  'suffix' => '',
10566
+  'exclude' => 0,
10567
+  'id' => 'expavg_credit',
10568
+  'table' => 'user',
10569
+  'field' => 'expavg_credit',
10570
+  'relationship' => 'none',
10571
+  'override' => array(
10572
+    'button' => 'Use default',
10573
+  ),
10574
+),
10575
+'total_credit' => array(
10576
+  'label' => 'Total Credit',
10577
+  'alter' => array(
10578
+    'alter_text' => 0,
10579
+    'text' => '',
10580
+    'make_link' => 0,
10581
+    'path' => '',
10582
+    'absolute' => 0,
10583
+    'link_class' => '',
10584
+    'alt' => '',
10585
+    'rel' => '',
10586
+    'prefix' => '',
10587
+    'suffix' => '',
10588
+    'target' => '',
10589
+    'help' => '',
10590
+    'trim' => 0,
10591
+    'max_length' => '',
10592
+    'word_boundary' => 1,
10593
+    'ellipsis' => 1,
10594
+    'html' => 0,
10595
+    'strip_tags' => 0,
10596
+  ),
10597
+  'empty' => '0',
10598
+  'hide_empty' => 0,
10599
+  'empty_zero' => 0,
10600
+  'hide_alter_empty' => 0,
10601
+  'set_precision' => 1,
10602
+  'precision' => '0',
10603
+  'decimal' => '.',
10604
+  'separator' => ',',
10605
+  'format_plural' => 0,
10606
+  'format_plural_singular' => '1',
10607
+  'format_plural_plural' => '@count',
10608
+  'prefix' => '',
10609
+  'suffix' => '',
10610
+  'exclude' => 0,
10611
+  'id' => 'total_credit',
10612
+  'table' => 'user',
10613
+  'field' => 'total_credit',
10614
+  'relationship' => 'none',
10615
+),
10616
+'create_time' => array(
10617
+  'label' => 'Joined',
10618
+  'alter' => array(
10619
+    'alter_text' => 0,
10620
+    'text' => '',
10621
+    'make_link' => 0,
10622
+    'path' => '',
10623
+    'absolute' => 0,
10624
+    'link_class' => '',
10625
+    'alt' => '',
10626
+    'rel' => '',
10627
+    'prefix' => '',
10628
+    'suffix' => '',
10629
+    'target' => '',
10630
+    'help' => '',
10631
+    'trim' => 0,
10632
+    'max_length' => '',
10633
+    'word_boundary' => 1,
10634
+    'ellipsis' => 1,
10635
+    'html' => 0,
10636
+    'strip_tags' => 0,
10637
+  ),
10638
+  'empty' => '',
10639
+  'hide_empty' => 0,
10640
+  'empty_zero' => 0,
10641
+  'hide_alter_empty' => 1,
10642
+  'date_format' => 'time ago',
10643
+  'custom_date_format' => '',
10644
+  'exclude' => 1,
10645
+  'id' => 'create_time',
10646
+  'table' => 'user',
10647
+  'field' => 'create_time',
10648
+  'relationship' => 'none',
10649
+  'override' => array(
10650
+    'button' => 'Use default',
10651
+  ),
10652
+),
10653
+));
10654
+$handler->override_option('title', 'Top participants');
10655
+$handler->override_option('items_per_page', 10);
10656
+$handler->override_option('use_more', 1);
10657
+$handler->override_option('use_more_always', 0);
10658
+$handler->override_option('use_more_text', 'view more');
10659
+$handler->override_option('style_options', array(
10660
+'grouping' => '',
10661
+'override' => 1,
10662
+'sticky' => 0,
10663
+'order' => 'desc',
10664
+'summary' => '',
10665
+'columns' => array(
10666
+  'rownumber' => 'rownumber',
10667
+  'id' => 'id',
10668
+  'name' => 'name',
10669
+  'phpcode' => 'phpcode',
10670
+  'country' => 'country',
10671
+  'expavg_credit' => 'expavg_credit',
10672
+  'total_credit' => 'total_credit',
10673
+  'create_time' => 'create_time',
10674
+),
10675
+'info' => array(
10676
+  'rownumber' => array(
10677
+    'separator' => '',
10678
+  ),
10679
+  'id' => array(
10680
+    'sortable' => 0,
10681
+    'separator' => '',
10682
+  ),
10683
+  'name' => array(
10684
+    'sortable' => 0,
10685
+    'separator' => '',
10686
+  ),
10687
+  'phpcode' => array(
10688
+    'separator' => '',
10689
+  ),
10690
+  'country' => array(
10691
+    'sortable' => 0,
10692
+    'separator' => '',
10693
+  ),
10694
+  'expavg_credit' => array(
10695
+    'sortable' => 1,
10696
+    'separator' => '',
10697
+  ),
10698
+  'total_credit' => array(
10699
+    'sortable' => 1,
10700
+    'separator' => '',
10701
+  ),
10702
+  'create_time' => array(
10703
+    'sortable' => 1,
10704
+    'separator' => '',
10705
+  ),
10706
+),
10707
+'default' => 'expavg_credit',
10708
+));
10709
+$handler->override_option('pane_title', '');
10710
+$handler->override_option('pane_description', '');
10711
+$handler->override_option('pane_category', array(
10712
+'name' => 'View panes',
10713
+'weight' => 0,
10714
+));
10715
+$handler->override_option('allow', array(
10716
+'use_pager' => FALSE,
10717
+'items_per_page' => FALSE,
10718
+'offset' => FALSE,
10719
+'link_to_view' => FALSE,
10720
+'more_link' => FALSE,
10721
+'path_override' => FALSE,
10722
+'title_override' => FALSE,
10723
+'exposed_form' => FALSE,
10724
+'fields_override' => FALSE,
10725
+));
10726
+$handler->override_option('argument_input', array());
10727
+$handler->override_option('link_to_view', 0);
10728
+$handler->override_option('inherit_panels_path', 0);
10729 10729
 
10730
-  $views[$view->name] = $view;
10730
+$views[$view->name] = $view;
10731 10731
 
10732
-  // Exported view: boinc_workunit
10733
-  $view = new view;
10734
-  $view->name = 'boinc_workunit';
10735
-  $view->description = 'Details for a specific workunit';
10736
-  $view->tag = '';
10737
-  $view->base_table = 'workunit';
10738
-  $view->core = 0;
10739
-  $view->api_version = '2';
10740
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10741
-  $handler = $view->new_display('default', 'Defaults', 'default');
10742
-  $handler->override_option('relationships', array(
10743
-    'appid' => array(
10744
-      'label' => 'Application',
10745
-      'required' => 1,
10746
-      'id' => 'appid',
10747
-      'table' => 'workunit',
10748
-      'field' => 'appid',
10749
-      'relationship' => 'none',
10750
-    ),
10751
-  ));
10752
-  $handler->override_option('fields', array(
10753
-    'name' => array(
10754
-      'label' => 'Name',
10755
-      'alter' => array(
10756
-        'alter_text' => 0,
10757
-        'text' => '',
10758
-        'make_link' => 0,
10759
-        'path' => '',
10760
-        'link_class' => '',
10761
-        'alt' => '',
10762
-        'prefix' => '',
10763
-        'suffix' => '',
10764
-        'target' => '',
10765
-        'help' => '',
10766
-        'trim' => 0,
10767
-        'max_length' => '',
10768
-        'word_boundary' => 1,
10769
-        'ellipsis' => 1,
10770
-        'html' => 0,
10771
-        'strip_tags' => 0,
10772
-      ),
10773
-      'empty' => '',
10774
-      'hide_empty' => 0,
10775
-      'empty_zero' => 0,
10776
-      'exclude' => 0,
10777
-      'id' => 'name',
10778
-      'table' => 'workunit',
10779
-      'field' => 'name',
10780
-      'relationship' => 'none',
10781
-    ),
10782
-    'phpcode_8' => array(
10783
-      'label' => 'dont_suppress_pending',
10784
-      'alter' => array(
10785
-        'alter_text' => 0,
10786
-        'text' => '',
10787
-        'make_link' => 0,
10788
-        'path' => '',
10789
-        'absolute' => 0,
10790
-        'link_class' => '',
10791
-        'alt' => '',
10792
-        'rel' => '',
10793
-        'prefix' => '',
10794
-        'suffix' => '',
10795
-        'target' => '',
10796
-        'help' => '',
10797
-        'trim' => 0,
10798
-        'max_length' => '',
10799
-        'word_boundary' => 1,
10800
-        'ellipsis' => 1,
10801
-        'html' => 0,
10802
-        'strip_tags' => 0,
10803
-      ),
10804
-      'empty' => '',
10805
-      'hide_empty' => 0,
10806
-      'empty_zero' => 0,
10807
-      'hide_alter_empty' => 1,
10808
-      'value' => '<?php
10732
+// Exported view: boinc_workunit
10733
+$view = new view;
10734
+$view->name = 'boinc_workunit';
10735
+$view->description = 'Details for a specific workunit';
10736
+$view->tag = '';
10737
+$view->base_table = 'workunit';
10738
+$view->core = 0;
10739
+$view->api_version = '2';
10740
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
10741
+$handler = $view->new_display('default', 'Defaults', 'default');
10742
+$handler->override_option('relationships', array(
10743
+'appid' => array(
10744
+  'label' => 'Application',
10745
+  'required' => 1,
10746
+  'id' => 'appid',
10747
+  'table' => 'workunit',
10748
+  'field' => 'appid',
10749
+  'relationship' => 'none',
10750
+),
10751
+));
10752
+$handler->override_option('fields', array(
10753
+'name' => array(
10754
+  'label' => 'Name',
10755
+  'alter' => array(
10756
+    'alter_text' => 0,
10757
+    'text' => '',
10758
+    'make_link' => 0,
10759
+    'path' => '',
10760
+    'link_class' => '',
10761
+    'alt' => '',
10762
+    'prefix' => '',
10763
+    'suffix' => '',
10764
+    'target' => '',
10765
+    'help' => '',
10766
+    'trim' => 0,
10767
+    'max_length' => '',
10768
+    'word_boundary' => 1,
10769
+    'ellipsis' => 1,
10770
+    'html' => 0,
10771
+    'strip_tags' => 0,
10772
+  ),
10773
+  'empty' => '',
10774
+  'hide_empty' => 0,
10775
+  'empty_zero' => 0,
10776
+  'exclude' => 0,
10777
+  'id' => 'name',
10778
+  'table' => 'workunit',
10779
+  'field' => 'name',
10780
+  'relationship' => 'none',
10781
+),
10782
+'phpcode_8' => array(
10783
+  'label' => 'dont_suppress_pending',
10784
+  'alter' => array(
10785
+    'alter_text' => 0,
10786
+    'text' => '',
10787
+    'make_link' => 0,
10788
+    'path' => '',
10789
+    'absolute' => 0,
10790
+    'link_class' => '',
10791
+    'alt' => '',
10792
+    'rel' => '',
10793
+    'prefix' => '',
10794
+    'suffix' => '',
10795
+    'target' => '',
10796
+    'help' => '',
10797
+    'trim' => 0,
10798
+    'max_length' => '',
10799
+    'word_boundary' => 1,
10800
+    'ellipsis' => 1,
10801
+    'html' => 0,
10802
+    'strip_tags' => 0,
10803
+  ),
10804
+  'empty' => '',
10805
+  'hide_empty' => 0,
10806
+  'empty_zero' => 0,
10807
+  'hide_alter_empty' => 1,
10808
+  'value' => '<?php
10809 10809
   require_boinc(\'util\');
10810 10810
   $dont_suppress_pending = parse_bool(get_config(), "dont_suppress_pending");
10811 10811
   $data->dontsuppresspending = $dont_suppress_pending;
10812 10812
 ?>',
10813
-      'exclude' => 1,
10814
-      'id' => 'phpcode_8',
10815
-      'table' => 'customfield',
10816
-      'field' => 'phpcode',
10817
-      'relationship' => 'none',
10818
-    ),
10819
-    'user_friendly_name' => array(
10820
-      'label' => 'Application',
10821
-      'alter' => array(
10822
-        'alter_text' => 0,
10823
-        'text' => '',
10824
-        'make_link' => 0,
10825
-        'path' => '',
10826
-        'link_class' => '',
10827
-        'alt' => '',
10828
-        'prefix' => '',
10829
-        'suffix' => '',
10830
-        'target' => '',
10831
-        'help' => '',
10832
-        'trim' => 0,
10833
-        'max_length' => '',
10834
-        'word_boundary' => 1,
10835
-        'ellipsis' => 1,
10836
-        'html' => 0,
10837
-        'strip_tags' => 0,
10838
-      ),
10839
-      'empty' => '',
10840
-      'hide_empty' => 0,
10841
-      'empty_zero' => 0,
10842
-      'exclude' => 0,
10843
-      'id' => 'user_friendly_name',
10844
-      'table' => 'app',
10845
-      'field' => 'user_friendly_name',
10846
-      'relationship' => 'appid',
10847
-    ),
10848
-    'create_time' => array(
10849
-      'label' => 'Created',
10850
-      'alter' => array(
10851
-        'alter_text' => 0,
10852
-        'text' => '',
10853
-        'make_link' => 0,
10854
-        'path' => '',
10855
-        'link_class' => '',
10856
-        'alt' => '',
10857
-        'prefix' => '',
10858
-        'suffix' => '',
10859
-        'target' => '',
10860
-        'help' => '',
10861
-        'trim' => 0,
10862
-        'max_length' => '',
10863
-        'word_boundary' => 1,
10864
-        'ellipsis' => 1,
10865
-        'html' => 0,
10866
-        'strip_tags' => 0,
10867
-      ),
10868
-      'empty' => '',
10869
-      'hide_empty' => 0,
10870
-      'empty_zero' => 0,
10871
-      'date_format' => 'custom',
10872
-      'custom_date_format' => 'j M Y G:i:s T',
10873
-      'exclude' => 0,
10874
-      'id' => 'create_time',
10875
-      'table' => 'workunit',
10876
-      'field' => 'create_time',
10877
-      'relationship' => 'none',
10878
-    ),
10879
-    'canonical_resultid' => array(
10880
-      'label' => 'Canonical result',
10881
-      'alter' => array(
10882
-        'alter_text' => 0,
10883
-        'text' => '',
10884
-        'make_link' => 0,
10885
-        'path' => '',
10886
-        'link_class' => '',
10887
-        'alt' => '',
10888
-        'prefix' => '',
10889
-        'suffix' => '',
10890
-        'target' => '',
10891
-        'help' => '',
10892
-        'trim' => 0,
10893
-        'max_length' => '',
10894
-        'word_boundary' => 1,
10895
-        'ellipsis' => 1,
10896
-        'html' => 0,
10897
-        'strip_tags' => 0,
10898
-      ),
10899
-      'empty' => '',
10900
-      'hide_empty' => 0,
10901
-      'empty_zero' => 0,
10902
-      'set_precision' => FALSE,
10903
-      'precision' => 0,
10904
-      'decimal' => '.',
10905
-      'separator' => '',
10906
-      'prefix' => '',
10907
-      'suffix' => '',
10908
-      'exclude' => 1,
10909
-      'id' => 'canonical_resultid',
10910
-      'table' => 'workunit',
10911
-      'field' => 'canonical_resultid',
10912
-      'relationship' => 'none',
10913
-    ),
10914
-    'canonical_credit' => array(
10915
-      'label' => 'Canonical credit',
10916
-      'alter' => array(
10917
-        'alter_text' => 0,
10918
-        'text' => '',
10919
-        'make_link' => 0,
10920
-        'path' => '',
10921
-        'link_class' => '',
10922
-        'alt' => '',
10923
-        'prefix' => '',
10924
-        'suffix' => '',
10925
-        'target' => '',
10926
-        'help' => '',
10927
-        'trim' => 0,
10928
-        'max_length' => '',
10929
-        'word_boundary' => 1,
10930
-        'ellipsis' => 1,
10931
-        'html' => 0,
10932
-        'strip_tags' => 0,
10933
-      ),
10934
-      'empty' => '',
10935
-      'hide_empty' => 0,
10936
-      'empty_zero' => 0,
10937
-      'set_precision' => 0,
10938
-      'precision' => '0',
10939
-      'decimal' => '.',
10940
-      'separator' => ',',
10941
-      'prefix' => '',
10942
-      'suffix' => '',
10943
-      'exclude' => 1,
10944
-      'id' => 'canonical_credit',
10945
-      'table' => 'workunit',
10946
-      'field' => 'canonical_credit',
10947
-      'relationship' => 'none',
10948
-    ),
10949
-    'phpcode' => array(
10950
-      'label' => 'Canonical result',
10951
-      'alter' => array(
10952
-        'alter_text' => 0,
10953
-        'text' => '',
10954
-        'make_link' => 0,
10955
-        'path' => '',
10956
-        'link_class' => '',
10957
-        'alt' => '',
10958
-        'prefix' => '',
10959
-        'suffix' => '',
10960
-        'target' => '',
10961
-        'help' => '',
10962
-        'trim' => 0,
10963
-        'max_length' => '',
10964
-        'word_boundary' => 1,
10965
-        'ellipsis' => 1,
10966
-        'html' => 0,
10967
-        'strip_tags' => 0,
10968
-      ),
10969
-      'empty' => '',
10970
-      'hide_empty' => 1,
10971
-      'empty_zero' => 0,
10972
-      'value' => '<?php
10813
+  'exclude' => 1,
10814
+  'id' => 'phpcode_8',
10815
+  'table' => 'customfield',
10816
+  'field' => 'phpcode',
10817
+  'relationship' => 'none',
10818
+),
10819
+'user_friendly_name' => array(
10820
+  'label' => 'Application',
10821
+  'alter' => array(
10822
+    'alter_text' => 0,
10823
+    'text' => '',
10824
+    'make_link' => 0,
10825
+    'path' => '',
10826
+    'link_class' => '',
10827
+    'alt' => '',
10828
+    'prefix' => '',
10829
+    'suffix' => '',
10830
+    'target' => '',
10831
+    'help' => '',
10832
+    'trim' => 0,
10833
+    'max_length' => '',
10834
+    'word_boundary' => 1,
10835
+    'ellipsis' => 1,
10836
+    'html' => 0,
10837
+    'strip_tags' => 0,
10838
+  ),
10839
+  'empty' => '',
10840
+  'hide_empty' => 0,
10841
+  'empty_zero' => 0,
10842
+  'exclude' => 0,
10843
+  'id' => 'user_friendly_name',
10844
+  'table' => 'app',
10845
+  'field' => 'user_friendly_name',
10846
+  'relationship' => 'appid',
10847
+),
10848
+'create_time' => array(
10849
+  'label' => 'Created',
10850
+  'alter' => array(
10851
+    'alter_text' => 0,
10852
+    'text' => '',
10853
+    'make_link' => 0,
10854
+    'path' => '',
10855
+    'link_class' => '',
10856
+    'alt' => '',
10857
+    'prefix' => '',
10858
+    'suffix' => '',
10859
+    'target' => '',
10860
+    'help' => '',
10861
+    'trim' => 0,
10862
+    'max_length' => '',
10863
+    'word_boundary' => 1,
10864
+    'ellipsis' => 1,
10865
+    'html' => 0,
10866
+    'strip_tags' => 0,
10867
+  ),
10868
+  'empty' => '',
10869
+  'hide_empty' => 0,
10870
+  'empty_zero' => 0,
10871
+  'date_format' => 'custom',
10872
+  'custom_date_format' => 'j M Y G:i:s T',
10873
+  'exclude' => 0,
10874
+  'id' => 'create_time',
10875
+  'table' => 'workunit',
10876
+  'field' => 'create_time',
10877
+  'relationship' => 'none',
10878
+),
10879
+'canonical_resultid' => array(
10880
+  'label' => 'Canonical result',
10881
+  'alter' => array(
10882
+    'alter_text' => 0,
10883
+    'text' => '',
10884
+    'make_link' => 0,
10885
+    'path' => '',
10886
+    'link_class' => '',
10887
+    'alt' => '',
10888
+    'prefix' => '',
10889
+    'suffix' => '',
10890
+    'target' => '',
10891
+    'help' => '',
10892
+    'trim' => 0,
10893
+    'max_length' => '',
10894
+    'word_boundary' => 1,
10895
+    'ellipsis' => 1,
10896
+    'html' => 0,
10897
+    'strip_tags' => 0,
10898
+  ),
10899
+  'empty' => '',
10900
+  'hide_empty' => 0,
10901
+  'empty_zero' => 0,
10902
+  'set_precision' => FALSE,
10903
+  'precision' => 0,
10904
+  'decimal' => '.',
10905
+  'separator' => '',
10906
+  'prefix' => '',
10907
+  'suffix' => '',
10908
+  'exclude' => 1,
10909
+  'id' => 'canonical_resultid',
10910
+  'table' => 'workunit',
10911
+  'field' => 'canonical_resultid',
10912
+  'relationship' => 'none',
10913
+),
10914
+'canonical_credit' => array(
10915
+  'label' => 'Canonical credit',
10916
+  'alter' => array(
10917
+    'alter_text' => 0,
10918
+    'text' => '',
10919
+    'make_link' => 0,
10920
+    'path' => '',
10921
+    'link_class' => '',
10922
+    'alt' => '',
10923
+    'prefix' => '',
10924
+    'suffix' => '',
10925
+    'target' => '',
10926
+    'help' => '',
10927
+    'trim' => 0,
10928
+    'max_length' => '',
10929
+    'word_boundary' => 1,
10930
+    'ellipsis' => 1,
10931
+    'html' => 0,
10932
+    'strip_tags' => 0,
10933
+  ),
10934
+  'empty' => '',
10935
+  'hide_empty' => 0,
10936
+  'empty_zero' => 0,
10937
+  'set_precision' => 0,
10938
+  'precision' => '0',
10939
+  'decimal' => '.',
10940
+  'separator' => ',',
10941
+  'prefix' => '',
10942
+  'suffix' => '',
10943
+  'exclude' => 1,
10944
+  'id' => 'canonical_credit',
10945
+  'table' => 'workunit',
10946
+  'field' => 'canonical_credit',
10947
+  'relationship' => 'none',
10948
+),
10949
+'phpcode' => array(
10950
+  'label' => 'Canonical result',
10951
+  'alter' => array(
10952
+    'alter_text' => 0,
10953
+    'text' => '',
10954
+    'make_link' => 0,
10955
+    'path' => '',
10956
+    'link_class' => '',
10957
+    'alt' => '',
10958
+    'prefix' => '',
10959
+    'suffix' => '',
10960
+    'target' => '',
10961
+    'help' => '',
10962
+    'trim' => 0,
10963
+    'max_length' => '',
10964
+    'word_boundary' => 1,
10965
+    'ellipsis' => 1,
10966
+    'html' => 0,
10967
+    'strip_tags' => 0,
10968
+  ),
10969
+  'empty' => '',
10970
+  'hide_empty' => 1,
10971
+  'empty_zero' => 0,
10972
+  'value' => '<?php
10973 10973
   if ($data->workunit_canonical_resultid) {
10974 10974
     echo l($data->workunit_canonical_resultid, "task/{$data->workunit_canonical_resultid}");
10975 10975
   }
10976 10976
 ?>',
10977
-      'exclude' => 0,
10978
-      'id' => 'phpcode',
10979
-      'table' => 'customfield',
10980
-      'field' => 'phpcode',
10981
-      'relationship' => 'none',
10982
-    ),
10983
-    'phpcode_1' => array(
10984
-      'label' => 'Granted credit',
10985
-      'alter' => array(
10986
-        'alter_text' => 0,
10987
-        'text' => '',
10988
-        'make_link' => 0,
10989
-        'path' => '',
10990
-        'link_class' => '',
10991
-        'alt' => '',
10992
-        'prefix' => '',
10993
-        'suffix' => '',
10994
-        'target' => '',
10995
-        'help' => '',
10996
-        'trim' => 0,
10997
-        'max_length' => '',
10998
-        'word_boundary' => 1,
10999
-        'ellipsis' => 1,
11000
-        'html' => 0,
11001
-        'strip_tags' => 0,
11002
-      ),
11003
-      'empty' => '',
11004
-      'hide_empty' => 1,
11005
-      'empty_zero' => 0,
11006
-      'value' => '<?php
10977
+  'exclude' => 0,
10978
+  'id' => 'phpcode',
10979
+  'table' => 'customfield',
10980
+  'field' => 'phpcode',
10981
+  'relationship' => 'none',
10982
+),
10983
+'phpcode_1' => array(
10984
+  'label' => 'Granted credit',
10985
+  'alter' => array(
10986
+    'alter_text' => 0,
10987
+    'text' => '',
10988
+    'make_link' => 0,
10989
+    'path' => '',
10990
+    'link_class' => '',
10991
+    'alt' => '',
10992
+    'prefix' => '',
10993
+    'suffix' => '',
10994
+    'target' => '',
10995
+    'help' => '',
10996
+    'trim' => 0,
10997
+    'max_length' => '',
10998
+    'word_boundary' => 1,
10999
+    'ellipsis' => 1,
11000
+    'html' => 0,
11001
+    'strip_tags' => 0,
11002
+  ),
11003
+  'empty' => '',
11004
+  'hide_empty' => 1,
11005
+  'empty_zero' => 0,
11006
+  'value' => '<?php
11007 11007
   if ($data->workunit_canonical_resultid) {
11008 11008
     echo $data->workunit_canonical_credit;
11009 11009
   }
11010 11010
 ?>',
11011
-      'exclude' => 0,
11012
-      'id' => 'phpcode_1',
11013
-      'table' => 'customfield',
11014
-      'field' => 'phpcode',
11015
-      'relationship' => 'none',
11016
-    ),
11017
-    'error_mask' => array(
11018
-      'label' => 'Error mask',
11019
-      'alter' => array(
11020
-        'alter_text' => 0,
11021
-        'text' => '',
11022
-        'make_link' => 0,
11023
-        'path' => '',
11024
-        'link_class' => '',
11025
-        'alt' => '',
11026
-        'prefix' => '',
11027
-        'suffix' => '',
11028
-        'target' => '',
11029
-        'help' => '',
11030
-        'trim' => 0,
11031
-        'max_length' => '',
11032
-        'word_boundary' => 1,
11033
-        'ellipsis' => 1,
11034
-        'html' => 0,
11035
-        'strip_tags' => 0,
11036
-      ),
11037
-      'empty' => '',
11038
-      'hide_empty' => 0,
11039
-      'empty_zero' => 0,
11040
-      'set_precision' => FALSE,
11041
-      'precision' => 0,
11042
-      'decimal' => '.',
11043
-      'separator' => '',
11044
-      'prefix' => '',
11045
-      'suffix' => '',
11046
-      'exclude' => 1,
11047
-      'id' => 'error_mask',
11048
-      'table' => 'workunit',
11049
-      'field' => 'error_mask',
11050
-      'relationship' => 'none',
11051
-    ),
11052
-    'target_nresults' => array(
11053
-      'label' => 'Initial replication',
11054
-      'alter' => array(
11055
-        'alter_text' => 0,
11056
-        'text' => '',
11057
-        'make_link' => 0,
11058
-        'path' => '',
11059
-        'link_class' => '',
11060
-        'alt' => '',
11061
-        'prefix' => '',
11062
-        'suffix' => '',
11063
-        'target' => '',
11064
-        'help' => '',
11065
-        'trim' => 0,
11066
-        'max_length' => '',
11067
-        'word_boundary' => 1,
11068
-        'ellipsis' => 1,
11069
-        'html' => 0,
11070
-        'strip_tags' => 0,
11071
-      ),
11072
-      'empty' => '',
11073
-      'hide_empty' => 0,
11074
-      'empty_zero' => 0,
11075
-      'set_precision' => FALSE,
11076
-      'precision' => 0,
11077
-      'decimal' => '.',
11078
-      'separator' => '',
11079
-      'prefix' => '',
11080
-      'suffix' => '',
11081
-      'exclude' => 1,
11082
-      'id' => 'target_nresults',
11083
-      'table' => 'workunit',
11084
-      'field' => 'target_nresults',
11085
-      'relationship' => 'none',
11086
-    ),
11087
-    'max_error_results' => array(
11088
-      'label' => 'Max error tasks',
11089
-      'alter' => array(
11090
-        'alter_text' => 0,
11091
-        'text' => '',
11092
-        'make_link' => 0,
11093
-        'path' => '',
11094
-        'link_class' => '',
11095
-        'alt' => '',
11096
-        'prefix' => '',
11097
-        'suffix' => '',
11098
-        'target' => '',
11099
-        'help' => '',
11100
-        'trim' => 0,
11101
-        'max_length' => '',
11102
-        'word_boundary' => 1,
11103
-        'ellipsis' => 1,
11104
-        'html' => 0,
11105
-        'strip_tags' => 0,
11106
-      ),
11107
-      'empty' => '',
11108
-      'hide_empty' => 0,
11109
-      'empty_zero' => 0,
11110
-      'set_precision' => FALSE,
11111
-      'precision' => 0,
11112
-      'decimal' => '.',
11113
-      'separator' => '',
11114
-      'prefix' => '',
11115
-      'suffix' => '',
11116
-      'exclude' => 1,
11117
-      'id' => 'max_error_results',
11118
-      'table' => 'workunit',
11119
-      'field' => 'max_error_results',
11120
-      'relationship' => 'none',
11121
-    ),
11122
-    'max_success_results' => array(
11123
-      'label' => 'Max success tasks',
11124
-      'alter' => array(
11125
-        'alter_text' => 0,
11126
-        'text' => '',
11127
-        'make_link' => 0,
11128
-        'path' => '',
11129
-        'link_class' => '',
11130
-        'alt' => '',
11131
-        'prefix' => '',
11132
-        'suffix' => '',
11133
-        'target' => '',
11134
-        'help' => '',
11135
-        'trim' => 0,
11136
-        'max_length' => '',
11137
-        'word_boundary' => 1,
11138
-        'ellipsis' => 1,
11139
-        'html' => 0,
11140
-        'strip_tags' => 0,
11141
-      ),
11142
-      'empty' => '',
11143
-      'hide_empty' => 0,
11144
-      'empty_zero' => 0,
11145
-      'set_precision' => FALSE,
11146
-      'precision' => 0,
11147
-      'decimal' => '.',
11148
-      'separator' => '',
11149
-      'prefix' => '',
11150
-      'suffix' => '',
11151
-      'exclude' => 1,
11152
-      'id' => 'max_success_results',
11153
-      'table' => 'workunit',
11154
-      'field' => 'max_success_results',
11155
-      'relationship' => 'none',
11156
-    ),
11157
-    'max_total_results' => array(
11158
-      'label' => 'Max total tasks',
11159
-      'alter' => array(
11160
-        'alter_text' => 0,
11161
-        'text' => '',
11162
-        'make_link' => 0,
11163
-        'path' => '',
11164
-        'link_class' => '',
11165
-        'alt' => '',
11166
-        'prefix' => '',
11167
-        'suffix' => '',
11168
-        'target' => '',
11169
-        'help' => '',
11170
-        'trim' => 0,
11171
-        'max_length' => '',
11172
-        'word_boundary' => 1,
11173
-        'ellipsis' => 1,
11174
-        'html' => 0,
11175
-        'strip_tags' => 0,
11176
-      ),
11177
-      'empty' => '',
11178
-      'hide_empty' => 0,
11179
-      'empty_zero' => 0,
11180
-      'set_precision' => FALSE,
11181
-      'precision' => 0,
11182
-      'decimal' => '.',
11183
-      'separator' => '',
11184
-      'prefix' => '',
11185
-      'suffix' => '',
11186
-      'exclude' => 1,
11187
-      'id' => 'max_total_results',
11188
-      'table' => 'workunit',
11189
-      'field' => 'max_total_results',
11190
-      'relationship' => 'none',
11191
-    ),
11192
-    'min_quorum' => array(
11193
-      'label' => 'Minimum quorum',
11194
-      'alter' => array(
11195
-        'alter_text' => 0,
11196
-        'text' => '',
11197
-        'make_link' => 0,
11198
-        'path' => '',
11199
-        'link_class' => '',
11200
-        'alt' => '',
11201
-        'prefix' => '',
11202
-        'suffix' => '',
11203
-        'target' => '',
11204
-        'help' => '',
11205
-        'trim' => 0,
11206
-        'max_length' => '',
11207
-        'word_boundary' => 1,
11208
-        'ellipsis' => 1,
11209
-        'html' => 0,
11210
-        'strip_tags' => 0,
11211
-      ),
11212
-      'empty' => '',
11213
-      'hide_empty' => 0,
11214
-      'empty_zero' => 0,
11215
-      'set_precision' => FALSE,
11216
-      'precision' => 0,
11217
-      'decimal' => '.',
11218
-      'separator' => '',
11219
-      'prefix' => '',
11220
-      'suffix' => '',
11221
-      'exclude' => 1,
11222
-      'id' => 'min_quorum',
11223
-      'table' => 'workunit',
11224
-      'field' => 'min_quorum',
11225
-      'relationship' => 'none',
11226
-    ),
11227
-    'target_nresults_1' => array(
11228
-      'label' => 'Target number of results',
11229
-      'alter' => array(
11230
-        'alter_text' => 0,
11231
-        'text' => '',
11232
-        'make_link' => 0,
11233
-        'path' => '',
11234
-        'link_class' => '',
11235
-        'alt' => '',
11236
-        'prefix' => '',
11237
-        'suffix' => '',
11238
-        'target' => '',
11239
-        'help' => '',
11240
-        'trim' => 0,
11241
-        'max_length' => '',
11242
-        'word_boundary' => 1,
11243
-        'ellipsis' => 1,
11244
-        'html' => 0,
11245
-        'strip_tags' => 0,
11246
-      ),
11247
-      'empty' => '',
11248
-      'hide_empty' => 0,
11249
-      'empty_zero' => 0,
11250
-      'set_precision' => FALSE,
11251
-      'precision' => 0,
11252
-      'decimal' => '.',
11253
-      'separator' => '',
11254
-      'prefix' => '',
11255
-      'suffix' => '',
11256
-      'exclude' => 1,
11257
-      'id' => 'target_nresults_1',
11258
-      'table' => 'app',
11259
-      'field' => 'target_nresults',
11260
-      'relationship' => 'appid',
11261
-    ),
11262
-    'phpcode_3' => array(
11263
-      'label' => 'Minimum quorum',
11264
-      'alter' => array(
11265
-        'alter_text' => 0,
11266
-        'text' => '',
11267
-        'make_link' => 0,
11268
-        'path' => '',
11269
-        'absolute' => 0,
11270
-        'link_class' => '',
11271
-        'alt' => '',
11272
-        'rel' => '',
11273
-        'prefix' => '',
11274
-        'suffix' => '',
11275
-        'target' => '',
11276
-        'help' => '',
11277
-        'trim' => 0,
11278
-        'max_length' => '',
11279
-        'word_boundary' => 1,
11280
-        'ellipsis' => 1,
11281
-        'html' => 0,
11282
-        'strip_tags' => 0,
11283
-      ),
11284
-      'empty' => '',
11285
-      'hide_empty' => 1,
11286
-      'empty_zero' => 0,
11287
-      'hide_alter_empty' => 1,
11288
-      'value' => '<?php
11011
+  'exclude' => 0,
11012
+  'id' => 'phpcode_1',
11013
+  'table' => 'customfield',
11014
+  'field' => 'phpcode',
11015
+  'relationship' => 'none',
11016
+),
11017
+'error_mask' => array(
11018
+  'label' => 'Error mask',
11019
+  'alter' => array(
11020
+    'alter_text' => 0,
11021
+    'text' => '',
11022
+    'make_link' => 0,
11023
+    'path' => '',
11024
+    'link_class' => '',
11025
+    'alt' => '',
11026
+    'prefix' => '',
11027
+    'suffix' => '',
11028
+    'target' => '',
11029
+    'help' => '',
11030
+    'trim' => 0,
11031
+    'max_length' => '',
11032
+    'word_boundary' => 1,
11033
+    'ellipsis' => 1,
11034
+    'html' => 0,
11035
+    'strip_tags' => 0,
11036
+  ),
11037
+  'empty' => '',
11038
+  'hide_empty' => 0,
11039
+  'empty_zero' => 0,
11040
+  'set_precision' => FALSE,
11041
+  'precision' => 0,
11042
+  'decimal' => '.',
11043
+  'separator' => '',
11044
+  'prefix' => '',
11045
+  'suffix' => '',
11046
+  'exclude' => 1,
11047
+  'id' => 'error_mask',
11048
+  'table' => 'workunit',
11049
+  'field' => 'error_mask',
11050
+  'relationship' => 'none',
11051
+),
11052
+'target_nresults' => array(
11053
+  'label' => 'Initial replication',
11054
+  'alter' => array(
11055
+    'alter_text' => 0,
11056
+    'text' => '',
11057
+    'make_link' => 0,
11058
+    'path' => '',
11059
+    'link_class' => '',
11060
+    'alt' => '',
11061
+    'prefix' => '',
11062
+    'suffix' => '',
11063
+    'target' => '',
11064
+    'help' => '',
11065
+    'trim' => 0,
11066
+    'max_length' => '',
11067
+    'word_boundary' => 1,
11068
+    'ellipsis' => 1,
11069
+    'html' => 0,
11070
+    'strip_tags' => 0,
11071
+  ),
11072
+  'empty' => '',
11073
+  'hide_empty' => 0,
11074
+  'empty_zero' => 0,
11075
+  'set_precision' => FALSE,
11076
+  'precision' => 0,
11077
+  'decimal' => '.',
11078
+  'separator' => '',
11079
+  'prefix' => '',
11080
+  'suffix' => '',
11081
+  'exclude' => 1,
11082
+  'id' => 'target_nresults',
11083
+  'table' => 'workunit',
11084
+  'field' => 'target_nresults',
11085
+  'relationship' => 'none',
11086
+),
11087
+'max_error_results' => array(
11088
+  'label' => 'Max error tasks',
11089
+  'alter' => array(
11090
+    'alter_text' => 0,
11091
+    'text' => '',
11092
+    'make_link' => 0,
11093
+    'path' => '',
11094
+    'link_class' => '',
11095
+    'alt' => '',
11096
+    'prefix' => '',
11097
+    'suffix' => '',
11098
+    'target' => '',
11099
+    'help' => '',
11100
+    'trim' => 0,
11101
+    'max_length' => '',
11102
+    'word_boundary' => 1,
11103
+    'ellipsis' => 1,
11104
+    'html' => 0,
11105
+    'strip_tags' => 0,
11106
+  ),
11107
+  'empty' => '',
11108
+  'hide_empty' => 0,
11109
+  'empty_zero' => 0,
11110
+  'set_precision' => FALSE,
11111
+  'precision' => 0,
11112
+  'decimal' => '.',
11113
+  'separator' => '',
11114
+  'prefix' => '',
11115
+  'suffix' => '',
11116
+  'exclude' => 1,
11117
+  'id' => 'max_error_results',
11118
+  'table' => 'workunit',
11119
+  'field' => 'max_error_results',
11120
+  'relationship' => 'none',
11121
+),
11122
+'max_success_results' => array(
11123
+  'label' => 'Max success tasks',
11124
+  'alter' => array(
11125
+    'alter_text' => 0,
11126
+    'text' => '',
11127
+    'make_link' => 0,
11128
+    'path' => '',
11129
+    'link_class' => '',
11130
+    'alt' => '',
11131
+    'prefix' => '',
11132
+    'suffix' => '',
11133
+    'target' => '',
11134
+    'help' => '',
11135
+    'trim' => 0,
11136
+    'max_length' => '',
11137
+    'word_boundary' => 1,
11138
+    'ellipsis' => 1,
11139
+    'html' => 0,
11140
+    'strip_tags' => 0,
11141
+  ),
11142
+  'empty' => '',
11143
+  'hide_empty' => 0,
11144
+  'empty_zero' => 0,
11145
+  'set_precision' => FALSE,
11146
+  'precision' => 0,
11147
+  'decimal' => '.',
11148
+  'separator' => '',
11149
+  'prefix' => '',
11150
+  'suffix' => '',
11151
+  'exclude' => 1,
11152
+  'id' => 'max_success_results',
11153
+  'table' => 'workunit',
11154
+  'field' => 'max_success_results',
11155
+  'relationship' => 'none',
11156
+),
11157
+'max_total_results' => array(
11158
+  'label' => 'Max total tasks',
11159
+  'alter' => array(
11160
+    'alter_text' => 0,
11161
+    'text' => '',
11162
+    'make_link' => 0,
11163
+    'path' => '',
11164
+    'link_class' => '',
11165
+    'alt' => '',
11166
+    'prefix' => '',
11167
+    'suffix' => '',
11168
+    'target' => '',
11169
+    'help' => '',
11170
+    'trim' => 0,
11171
+    'max_length' => '',
11172
+    'word_boundary' => 1,
11173
+    'ellipsis' => 1,
11174
+    'html' => 0,
11175
+    'strip_tags' => 0,
11176
+  ),
11177
+  'empty' => '',
11178
+  'hide_empty' => 0,
11179
+  'empty_zero' => 0,
11180
+  'set_precision' => FALSE,
11181
+  'precision' => 0,
11182
+  'decimal' => '.',
11183
+  'separator' => '',
11184
+  'prefix' => '',
11185
+  'suffix' => '',
11186
+  'exclude' => 1,
11187
+  'id' => 'max_total_results',
11188
+  'table' => 'workunit',
11189
+  'field' => 'max_total_results',
11190
+  'relationship' => 'none',
11191
+),
11192
+'min_quorum' => array(
11193
+  'label' => 'Minimum quorum',
11194
+  'alter' => array(
11195
+    'alter_text' => 0,
11196
+    'text' => '',
11197
+    'make_link' => 0,
11198
+    'path' => '',
11199
+    'link_class' => '',
11200
+    'alt' => '',
11201
+    'prefix' => '',
11202
+    'suffix' => '',
11203
+    'target' => '',
11204
+    'help' => '',
11205
+    'trim' => 0,
11206
+    'max_length' => '',
11207
+    'word_boundary' => 1,
11208
+    'ellipsis' => 1,
11209
+    'html' => 0,
11210
+    'strip_tags' => 0,
11211
+  ),
11212
+  'empty' => '',
11213
+  'hide_empty' => 0,
11214
+  'empty_zero' => 0,
11215
+  'set_precision' => FALSE,
11216
+  'precision' => 0,
11217
+  'decimal' => '.',
11218
+  'separator' => '',
11219
+  'prefix' => '',
11220
+  'suffix' => '',
11221
+  'exclude' => 1,
11222
+  'id' => 'min_quorum',
11223
+  'table' => 'workunit',
11224
+  'field' => 'min_quorum',
11225
+  'relationship' => 'none',
11226
+),
11227
+'target_nresults_1' => array(
11228
+  'label' => 'Target number of results',
11229
+  'alter' => array(
11230
+    'alter_text' => 0,
11231
+    'text' => '',
11232
+    'make_link' => 0,
11233
+    'path' => '',
11234
+    'link_class' => '',
11235
+    'alt' => '',
11236
+    'prefix' => '',
11237
+    'suffix' => '',
11238
+    'target' => '',
11239
+    'help' => '',
11240
+    'trim' => 0,
11241
+    'max_length' => '',
11242
+    'word_boundary' => 1,
11243
+    'ellipsis' => 1,
11244
+    'html' => 0,
11245
+    'strip_tags' => 0,
11246
+  ),
11247
+  'empty' => '',
11248
+  'hide_empty' => 0,
11249
+  'empty_zero' => 0,
11250
+  'set_precision' => FALSE,
11251
+  'precision' => 0,
11252
+  'decimal' => '.',
11253
+  'separator' => '',
11254
+  'prefix' => '',
11255
+  'suffix' => '',
11256
+  'exclude' => 1,
11257
+  'id' => 'target_nresults_1',
11258
+  'table' => 'app',
11259
+  'field' => 'target_nresults',
11260
+  'relationship' => 'appid',
11261
+),
11262
+'phpcode_3' => array(
11263
+  'label' => 'Minimum quorum',
11264
+  'alter' => array(
11265
+    'alter_text' => 0,
11266
+    'text' => '',
11267
+    'make_link' => 0,
11268
+    'path' => '',
11269
+    'absolute' => 0,
11270
+    'link_class' => '',
11271
+    'alt' => '',
11272
+    'rel' => '',
11273
+    'prefix' => '',
11274
+    'suffix' => '',
11275
+    'target' => '',
11276
+    'help' => '',
11277
+    'trim' => 0,
11278
+    'max_length' => '',
11279
+    'word_boundary' => 1,
11280
+    'ellipsis' => 1,
11281
+    'html' => 0,
11282
+    'strip_tags' => 0,
11283
+  ),
11284
+  'empty' => '',
11285
+  'hide_empty' => 1,
11286
+  'empty_zero' => 0,
11287
+  'hide_alter_empty' => 1,
11288
+  'value' => '<?php
11289 11289
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11290 11290
     echo $data->workunit_min_quorum;
11291 11291
   }
11292 11292
 ?>',
11293
-      'exclude' => 0,
11294
-      'id' => 'phpcode_3',
11295
-      'table' => 'customfield',
11296
-      'field' => 'phpcode',
11297
-      'relationship' => 'none',
11298
-    ),
11299
-    'phpcode_4' => array(
11300
-      'label' => 'Initial replication',
11301
-      'alter' => array(
11302
-        'alter_text' => 0,
11303
-        'text' => '',
11304
-        'make_link' => 0,
11305
-        'path' => '',
11306
-        'absolute' => 0,
11307
-        'link_class' => '',
11308
-        'alt' => '',
11309
-        'rel' => '',
11310
-        'prefix' => '',
11311
-        'suffix' => '',
11312
-        'target' => '',
11313
-        'help' => '',
11314
-        'trim' => 0,
11315
-        'max_length' => '',
11316
-        'word_boundary' => 1,
11317
-        'ellipsis' => 1,
11318
-        'html' => 0,
11319
-        'strip_tags' => 0,
11320
-      ),
11321
-      'empty' => '',
11322
-      'hide_empty' => 1,
11323
-      'empty_zero' => 0,
11324
-      'hide_alter_empty' => 1,
11325
-      'value' => '<?php
11293
+  'exclude' => 0,
11294
+  'id' => 'phpcode_3',
11295
+  'table' => 'customfield',
11296
+  'field' => 'phpcode',
11297
+  'relationship' => 'none',
11298
+),
11299
+'phpcode_4' => array(
11300
+  'label' => 'Initial replication',
11301
+  'alter' => array(
11302
+    'alter_text' => 0,
11303
+    'text' => '',
11304
+    'make_link' => 0,
11305
+    'path' => '',
11306
+    'absolute' => 0,
11307
+    'link_class' => '',
11308
+    'alt' => '',
11309
+    'rel' => '',
11310
+    'prefix' => '',
11311
+    'suffix' => '',
11312
+    'target' => '',
11313
+    'help' => '',
11314
+    'trim' => 0,
11315
+    'max_length' => '',
11316
+    'word_boundary' => 1,
11317
+    'ellipsis' => 1,
11318
+    'html' => 0,
11319
+    'strip_tags' => 0,
11320
+  ),
11321
+  'empty' => '',
11322
+  'hide_empty' => 1,
11323
+  'empty_zero' => 0,
11324
+  'hide_alter_empty' => 1,
11325
+  'value' => '<?php
11326 11326
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11327 11327
 
11328 11328
     echo $data->workunit_target_nresults;
11329 11329
   }
11330 11330
 ?>',
11331
-      'exclude' => 0,
11332
-      'id' => 'phpcode_4',
11333
-      'table' => 'customfield',
11334
-      'field' => 'phpcode',
11335
-      'relationship' => 'none',
11336
-    ),
11337
-    'phpcode_5' => array(
11338
-      'label' => 'Max # of error/total/success tasks',
11339
-      'alter' => array(
11340
-        'alter_text' => 0,
11341
-        'text' => '',
11342
-        'make_link' => 0,
11343
-        'path' => '',
11344
-        'absolute' => 0,
11345
-        'link_class' => '',
11346
-        'alt' => '',
11347
-        'rel' => '',
11348
-        'prefix' => '',
11349
-        'suffix' => '',
11350
-        'target' => '',
11351
-        'help' => '',
11352
-        'trim' => 0,
11353
-        'max_length' => '',
11354
-        'word_boundary' => 1,
11355
-        'ellipsis' => 1,
11356
-        'html' => 0,
11357
-        'strip_tags' => 0,
11358
-      ),
11359
-      'empty' => '',
11360
-      'hide_empty' => 1,
11361
-      'empty_zero' => 0,
11362
-      'hide_alter_empty' => 1,
11363
-      'value' => '<?php
11331
+  'exclude' => 0,
11332
+  'id' => 'phpcode_4',
11333
+  'table' => 'customfield',
11334
+  'field' => 'phpcode',
11335
+  'relationship' => 'none',
11336
+),
11337
+'phpcode_5' => array(
11338
+  'label' => 'Max # of error/total/success tasks',
11339
+  'alter' => array(
11340
+    'alter_text' => 0,
11341
+    'text' => '',
11342
+    'make_link' => 0,
11343
+    'path' => '',
11344
+    'absolute' => 0,
11345
+    'link_class' => '',
11346
+    'alt' => '',
11347
+    'rel' => '',
11348
+    'prefix' => '',
11349
+    'suffix' => '',
11350
+    'target' => '',
11351
+    'help' => '',
11352
+    'trim' => 0,
11353
+    'max_length' => '',
11354
+    'word_boundary' => 1,
11355
+    'ellipsis' => 1,
11356
+    'html' => 0,
11357
+    'strip_tags' => 0,
11358
+  ),
11359
+  'empty' => '',
11360
+  'hide_empty' => 1,
11361
+  'empty_zero' => 0,
11362
+  'hide_alter_empty' => 1,
11363
+  'value' => '<?php
11364 11364
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11365 11365
     echo "{$data->workunit_max_error_results}, {$data->workunit_max_total_results}, {$data->workunit_max_success_results}";
11366 11366
   }
11367 11367
 ?>',
11368
-      'exclude' => 0,
11369
-      'id' => 'phpcode_5',
11370
-      'table' => 'customfield',
11371
-      'field' => 'phpcode',
11372
-      'relationship' => 'none',
11373
-    ),
11374
-    'phpcode_6' => array(
11375
-      'label' => 'Errors',
11376
-      'alter' => array(
11377
-        'alter_text' => 0,
11378
-        'text' => '',
11379
-        'make_link' => 0,
11380
-        'path' => '',
11381
-        'absolute' => 0,
11382
-        'link_class' => '',
11383
-        'alt' => '',
11384
-        'rel' => '',
11385
-        'prefix' => '',
11386
-        'suffix' => '',
11387
-        'target' => '',
11388
-        'help' => '',
11389
-        'trim' => 0,
11390
-        'max_length' => '',
11391
-        'word_boundary' => 1,
11392
-        'ellipsis' => 1,
11393
-        'html' => 0,
11394
-        'strip_tags' => 0,
11395
-      ),
11396
-      'empty' => '',
11397
-      'hide_empty' => 1,
11398
-      'empty_zero' => 0,
11399
-      'hide_alter_empty' => 1,
11400
-      'value' => '<?php
11368
+  'exclude' => 0,
11369
+  'id' => 'phpcode_5',
11370
+  'table' => 'customfield',
11371
+  'field' => 'phpcode',
11372
+  'relationship' => 'none',
11373
+),
11374
+'phpcode_6' => array(
11375
+  'label' => 'Errors',
11376
+  'alter' => array(
11377
+    'alter_text' => 0,
11378
+    'text' => '',
11379
+    'make_link' => 0,
11380
+    'path' => '',
11381
+    'absolute' => 0,
11382
+    'link_class' => '',
11383
+    'alt' => '',
11384
+    'rel' => '',
11385
+    'prefix' => '',
11386
+    'suffix' => '',
11387
+    'target' => '',
11388
+    'help' => '',
11389
+    'trim' => 0,
11390
+    'max_length' => '',
11391
+    'word_boundary' => 1,
11392
+    'ellipsis' => 1,
11393
+    'html' => 0,
11394
+    'strip_tags' => 0,
11395
+  ),
11396
+  'empty' => '',
11397
+  'hide_empty' => 1,
11398
+  'empty_zero' => 0,
11399
+  'hide_alter_empty' => 1,
11400
+  'value' => '<?php
11401 11401
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11402 11402
     if ($data->workunit_error_mask) {
11403 11403
       require_boinc(\'result\');
@@ -11405,74 +11405,74 @@  discard block
 block discarded – undo
11405 11405
     }
11406 11406
   }
11407 11407
 ?>',
11408
-      'exclude' => 0,
11409
-      'id' => 'phpcode_6',
11410
-      'table' => 'customfield',
11411
-      'field' => 'phpcode',
11412
-      'relationship' => 'none',
11413
-    ),
11414
-    'need_validate' => array(
11415
-      'label' => 'Needs validation',
11416
-      'alter' => array(
11417
-        'alter_text' => 0,
11418
-        'text' => '',
11419
-        'make_link' => 0,
11420
-        'path' => '',
11421
-        'link_class' => '',
11422
-        'alt' => '',
11423
-        'prefix' => '',
11424
-        'suffix' => '',
11425
-        'target' => '',
11426
-        'help' => '',
11427
-        'trim' => 0,
11428
-        'max_length' => '',
11429
-        'word_boundary' => 1,
11430
-        'ellipsis' => 1,
11431
-        'html' => 0,
11432
-        'strip_tags' => 0,
11433
-      ),
11434
-      'empty' => '',
11435
-      'hide_empty' => 0,
11436
-      'empty_zero' => 0,
11437
-      'set_precision' => FALSE,
11438
-      'precision' => 0,
11439
-      'decimal' => '.',
11440
-      'separator' => ',',
11441
-      'prefix' => '',
11442
-      'suffix' => '',
11443
-      'exclude' => 1,
11444
-      'id' => 'need_validate',
11445
-      'table' => 'workunit',
11446
-      'field' => 'need_validate',
11447
-      'relationship' => 'none',
11448
-    ),
11449
-    'phpcode_7' => array(
11450
-      'label' => 'Validation',
11451
-      'alter' => array(
11452
-        'alter_text' => 0,
11453
-        'text' => '',
11454
-        'make_link' => 0,
11455
-        'path' => '',
11456
-        'absolute' => 0,
11457
-        'link_class' => '',
11458
-        'alt' => '',
11459
-        'rel' => '',
11460
-        'prefix' => '',
11461
-        'suffix' => '',
11462
-        'target' => '',
11463
-        'help' => '',
11464
-        'trim' => 0,
11465
-        'max_length' => '',
11466
-        'word_boundary' => 1,
11467
-        'ellipsis' => 1,
11468
-        'html' => 0,
11469
-        'strip_tags' => 0,
11470
-      ),
11471
-      'empty' => '',
11472
-      'hide_empty' => 1,
11473
-      'empty_zero' => 0,
11474
-      'hide_alter_empty' => 1,
11475
-      'value' => '<?php
11408
+  'exclude' => 0,
11409
+  'id' => 'phpcode_6',
11410
+  'table' => 'customfield',
11411
+  'field' => 'phpcode',
11412
+  'relationship' => 'none',
11413
+),
11414
+'need_validate' => array(
11415
+  'label' => 'Needs validation',
11416
+  'alter' => array(
11417
+    'alter_text' => 0,
11418
+    'text' => '',
11419
+    'make_link' => 0,
11420
+    'path' => '',
11421
+    'link_class' => '',
11422
+    'alt' => '',
11423
+    'prefix' => '',
11424
+    'suffix' => '',
11425
+    'target' => '',
11426
+    'help' => '',
11427
+    'trim' => 0,
11428
+    'max_length' => '',
11429
+    'word_boundary' => 1,
11430
+    'ellipsis' => 1,
11431
+    'html' => 0,
11432
+    'strip_tags' => 0,
11433
+  ),
11434
+  'empty' => '',
11435
+  'hide_empty' => 0,
11436
+  'empty_zero' => 0,
11437
+  'set_precision' => FALSE,
11438
+  'precision' => 0,
11439
+  'decimal' => '.',
11440
+  'separator' => ',',
11441
+  'prefix' => '',
11442
+  'suffix' => '',
11443
+  'exclude' => 1,
11444
+  'id' => 'need_validate',
11445
+  'table' => 'workunit',
11446
+  'field' => 'need_validate',
11447
+  'relationship' => 'none',
11448
+),
11449
+'phpcode_7' => array(
11450
+  'label' => 'Validation',
11451
+  'alter' => array(
11452
+    'alter_text' => 0,
11453
+    'text' => '',
11454
+    'make_link' => 0,
11455
+    'path' => '',
11456
+    'absolute' => 0,
11457
+    'link_class' => '',
11458
+    'alt' => '',
11459
+    'rel' => '',
11460
+    'prefix' => '',
11461
+    'suffix' => '',
11462
+    'target' => '',
11463
+    'help' => '',
11464
+    'trim' => 0,
11465
+    'max_length' => '',
11466
+    'word_boundary' => 1,
11467
+    'ellipsis' => 1,
11468
+    'html' => 0,
11469
+    'strip_tags' => 0,
11470
+  ),
11471
+  'empty' => '',
11472
+  'hide_empty' => 1,
11473
+  'empty_zero' => 0,
11474
+  'hide_alter_empty' => 1,
11475
+  'value' => '<?php
11476 11476
   if (!($data->app_workunit_target_nresults>0 AND !$data->workunit_canonical_resultid AND !$data->workunit_error_mask AND !$data->dontsuppresspending)) {
11477 11477
 
11478 11478
     if ($data->workunit_need_validate) {
@@ -11480,575 +11480,575 @@  discard block
 block discarded – undo
11480 11480
     }
11481 11481
   }
11482 11482
 ?>',
11483
-      'exclude' => 0,
11484
-      'id' => 'phpcode_7',
11485
-      'table' => 'customfield',
11486
-      'field' => 'phpcode',
11487
-      'relationship' => 'none',
11488
-    ),
11489
-  ));
11490
-  $handler->override_option('arguments', array(
11491
-    'id' => array(
11492
-      'default_action' => 'not found',
11493
-      'style_plugin' => 'default_summary',
11494
-      'style_options' => array(),
11495
-      'wildcard' => 'all',
11496
-      'wildcard_substitution' => 'All',
11497
-      'title' => 'Workunit %1',
11498
-      'breadcrumb' => '',
11499
-      'default_argument_type' => 'fixed',
11500
-      'default_argument' => '',
11501
-      'validate_type' => 'numeric',
11502
-      'validate_fail' => 'not found',
11503
-      'id' => 'id',
11504
-      'table' => 'workunit',
11505
-      'field' => 'id',
11506
-      'validate_user_argument_type' => 'uid',
11507
-      'validate_user_roles' => array(
11508
-        2 => 0,
11509
-        3 => 0,
11510
-      ),
11511
-      'relationship' => 'none',
11512
-      'default_options_div_prefix' => '',
11513
-      'default_argument_fixed' => '',
11514
-      'default_argument_user' => 0,
11515
-      'default_argument_php' => '',
11516
-      'validate_argument_node_type' => array(
11517
-        'forum' => 0,
11518
-        'job_post' => 0,
11519
-        'news' => 0,
11520
-        'page' => 0,
11521
-        'profile' => 0,
11522
-        'story' => 0,
11523
-        'team' => 0,
11524
-      ),
11525
-      'validate_argument_node_access' => 0,
11526
-      'validate_argument_nid_type' => 'nid',
11527
-      'validate_argument_vocabulary' => array(
11528
-        1 => 0,
11529
-      ),
11530
-      'validate_argument_type' => 'tid',
11531
-      'validate_argument_transform' => 0,
11532
-      'validate_user_restrict_roles' => 0,
11533
-      'validate_argument_php' => '',
11534
-    ),
11535
-  ));
11536
-  $handler->override_option('access', array(
11537
-    'type' => 'none',
11538
-  ));
11539
-  $handler->override_option('cache', array(
11540
-    'type' => 'none',
11541
-  ));
11542
-  $handler->override_option('footer_format', '1');
11543
-  $handler->override_option('footer_empty', 0);
11544
-  $handler = $view->new_display('page', 'Page', 'page_1');
11545
-  $handler->override_option('path', 'workunit');
11546
-  $handler->override_option('menu', array(
11547
-    'type' => 'none',
11548
-    'title' => '',
11549
-    'description' => '',
11550
-    'weight' => 0,
11551
-    'name' => 'primary-links',
11552
-  ));
11553
-  $handler->override_option('tab_options', array(
11554
-    'type' => 'none',
11555
-    'title' => '',
11556
-    'description' => '',
11557
-    'weight' => 0,
11558
-    'name' => 'navigation',
11559
-  ));
11483
+  'exclude' => 0,
11484
+  'id' => 'phpcode_7',
11485
+  'table' => 'customfield',
11486
+  'field' => 'phpcode',
11487
+  'relationship' => 'none',
11488
+),
11489
+));
11490
+$handler->override_option('arguments', array(
11491
+'id' => array(
11492
+  'default_action' => 'not found',
11493
+  'style_plugin' => 'default_summary',
11494
+  'style_options' => array(),
11495
+  'wildcard' => 'all',
11496
+  'wildcard_substitution' => 'All',
11497
+  'title' => 'Workunit %1',
11498
+  'breadcrumb' => '',
11499
+  'default_argument_type' => 'fixed',
11500
+  'default_argument' => '',
11501
+  'validate_type' => 'numeric',
11502
+  'validate_fail' => 'not found',
11503
+  'id' => 'id',
11504
+  'table' => 'workunit',
11505
+  'field' => 'id',
11506
+  'validate_user_argument_type' => 'uid',
11507
+  'validate_user_roles' => array(
11508
+    2 => 0,
11509
+    3 => 0,
11510
+  ),
11511
+  'relationship' => 'none',
11512
+  'default_options_div_prefix' => '',
11513
+  'default_argument_fixed' => '',
11514
+  'default_argument_user' => 0,
11515
+  'default_argument_php' => '',
11516
+  'validate_argument_node_type' => array(
11517
+    'forum' => 0,
11518
+    'job_post' => 0,
11519
+    'news' => 0,
11520
+    'page' => 0,
11521
+    'profile' => 0,
11522
+    'story' => 0,
11523
+    'team' => 0,
11524
+  ),
11525
+  'validate_argument_node_access' => 0,
11526
+  'validate_argument_nid_type' => 'nid',
11527
+  'validate_argument_vocabulary' => array(
11528
+    1 => 0,
11529
+  ),
11530
+  'validate_argument_type' => 'tid',
11531
+  'validate_argument_transform' => 0,
11532
+  'validate_user_restrict_roles' => 0,
11533
+  'validate_argument_php' => '',
11534
+),
11535
+));
11536
+$handler->override_option('access', array(
11537
+'type' => 'none',
11538
+));
11539
+$handler->override_option('cache', array(
11540
+'type' => 'none',
11541
+));
11542
+$handler->override_option('footer_format', '1');
11543
+$handler->override_option('footer_empty', 0);
11544
+$handler = $view->new_display('page', 'Page', 'page_1');
11545
+$handler->override_option('path', 'workunit');
11546
+$handler->override_option('menu', array(
11547
+'type' => 'none',
11548
+'title' => '',
11549
+'description' => '',
11550
+'weight' => 0,
11551
+'name' => 'primary-links',
11552
+));
11553
+$handler->override_option('tab_options', array(
11554
+'type' => 'none',
11555
+'title' => '',
11556
+'description' => '',
11557
+'weight' => 0,
11558
+'name' => 'navigation',
11559
+));
11560 11560
 
11561
-  $views[$view->name] = $view;
11561
+$views[$view->name] = $view;
11562 11562
 
11563
-  // Exported view: boinc_workunit_tasks_all
11564
-  $view = new view;
11565
-  $view->name = 'boinc_workunit_tasks_all';
11566
-  $view->description = 'A list of all tasks in a given workunit';
11567
-  $view->tag = '';
11568
-  $view->base_table = 'result';
11569
-  $view->core = 6;
11570
-  $view->api_version = '2';
11571
-  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11572
-  $handler = $view->new_display('default', 'Defaults', 'default');
11573
-  $handler->override_option('fields', array(
11574
-    'name' => array(
11575
-      'label' => 'Name',
11576
-      'alter' => array(
11577
-        'alter_text' => 0,
11578
-        'text' => '',
11579
-        'make_link' => 0,
11580
-        'path' => '',
11581
-        'absolute' => 0,
11582
-        'link_class' => '',
11583
-        'alt' => '',
11584
-        'rel' => '',
11585
-        'prefix' => '',
11586
-        'suffix' => '',
11587
-        'target' => '',
11588
-        'help' => '',
11589
-        'trim' => 0,
11590
-        'max_length' => '',
11591
-        'word_boundary' => 1,
11592
-        'ellipsis' => 1,
11593
-        'html' => 0,
11594
-        'strip_tags' => 0,
11595
-      ),
11596
-      'empty' => '',
11597
-      'hide_empty' => 0,
11598
-      'empty_zero' => 0,
11599
-      'hide_alter_empty' => 1,
11600
-      'exclude' => 1,
11601
-      'id' => 'name',
11602
-      'table' => 'result',
11603
-      'field' => 'name',
11604
-      'relationship' => 'none',
11605
-    ),
11606
-    'id' => array(
11607
-      'label' => 'Task ID',
11608
-      'alter' => array(
11609
-        'alter_text' => 0,
11610
-        'text' => '',
11611
-        'make_link' => 0,
11612
-        'path' => 'task/[id]',
11613
-        'absolute' => 0,
11614
-        'link_class' => '',
11615
-        'alt' => '',
11616
-        'rel' => '',
11617
-        'prefix' => '',
11618
-        'suffix' => '',
11619
-        'target' => '',
11620
-        'help' => '',
11621
-        'trim' => 0,
11622
-        'max_length' => '',
11623
-        'word_boundary' => 1,
11624
-        'ellipsis' => 1,
11625
-        'html' => 0,
11626
-        'strip_tags' => 0,
11627
-      ),
11628
-      'empty' => '',
11629
-      'hide_empty' => 0,
11630
-      'empty_zero' => 0,
11631
-      'hide_alter_empty' => 1,
11632
-      'set_precision' => FALSE,
11633
-      'precision' => 0,
11634
-      'decimal' => '.',
11635
-      'separator' => '',
11636
-      'format_plural' => 0,
11637
-      'format_plural_singular' => '1',
11638
-      'format_plural_plural' => '@count',
11639
-      'prefix' => '',
11640
-      'suffix' => '',
11641
-      'exclude' => 0,
11642
-      'id' => 'id',
11643
-      'table' => 'result',
11644
-      'field' => 'id',
11645
-      'relationship' => 'none',
11646
-    ),
11647
-    'hostid' => array(
11648
-      'label' => 'Computer',
11649
-      'alter' => array(
11650
-        'alter_text' => 0,
11651
-        'text' => '',
11652
-        'make_link' => 1,
11653
-        'path' => 'host/[hostid]',
11654
-        'absolute' => 0,
11655
-        'link_class' => '',
11656
-        'alt' => '',
11657
-        'rel' => '',
11658
-        'prefix' => '',
11659
-        'suffix' => '',
11660
-        'target' => '',
11661
-        'help' => '',
11662
-        'trim' => 0,
11663
-        'max_length' => '',
11664
-        'word_boundary' => 1,
11665
-        'ellipsis' => 1,
11666
-        'html' => 0,
11667
-        'strip_tags' => 0,
11668
-      ),
11669
-      'empty' => '',
11670
-      'hide_empty' => 0,
11671
-      'empty_zero' => 0,
11672
-      'hide_alter_empty' => 1,
11673
-      'set_precision' => FALSE,
11674
-      'precision' => 0,
11675
-      'decimal' => '.',
11676
-      'separator' => '',
11677
-      'format_plural' => 0,
11678
-      'format_plural_singular' => '1',
11679
-      'format_plural_plural' => '@count',
11680
-      'prefix' => '',
11681
-      'suffix' => '',
11682
-      'exclude' => 0,
11683
-      'id' => 'hostid',
11684
-      'table' => 'result',
11685
-      'field' => 'hostid',
11686
-      'relationship' => 'none',
11687
-    ),
11688
-    'sent_time' => array(
11689
-      'label' => 'Sent',
11690
-      'alter' => array(
11691
-        'alter_text' => 0,
11692
-        'text' => '',
11693
-        'make_link' => 0,
11694
-        'path' => '',
11695
-        'link_class' => '',
11696
-        'alt' => '',
11697
-        'prefix' => '',
11698
-        'suffix' => '',
11699
-        'target' => '',
11700
-        'help' => '',
11701
-        'trim' => 0,
11702
-        'max_length' => '',
11703
-        'word_boundary' => 1,
11704
-        'ellipsis' => 1,
11705
-        'html' => 0,
11706
-        'strip_tags' => 0,
11707
-      ),
11708
-      'empty' => '',
11709
-      'hide_empty' => 0,
11710
-      'empty_zero' => 0,
11711
-      'date_format' => 'custom',
11712
-      'custom_date_format' => 'j M Y G:i:s e',
11713
-      'exclude' => 1,
11714
-      'id' => 'sent_time',
11715
-      'table' => 'result',
11716
-      'field' => 'sent_time',
11717
-      'relationship' => 'none',
11718
-    ),
11719
-    'received_time' => array(
11720
-      'label' => 'Received time',
11721
-      'alter' => array(
11722
-        'alter_text' => 0,
11723
-        'text' => '',
11724
-        'make_link' => 0,
11725
-        'path' => '',
11726
-        'link_class' => '',
11727
-        'alt' => '',
11728
-        'prefix' => '',
11729
-        'suffix' => '',
11730
-        'target' => '',
11731
-        'help' => '',
11732
-        'trim' => 0,
11733
-        'max_length' => '',
11734
-        'word_boundary' => 1,
11735
-        'ellipsis' => 1,
11736
-        'html' => 0,
11737
-        'strip_tags' => 0,
11738
-      ),
11739
-      'empty' => '',
11740
-      'hide_empty' => 0,
11741
-      'empty_zero' => 0,
11742
-      'date_format' => 'small',
11743
-      'custom_date_format' => '',
11744
-      'exclude' => 1,
11745
-      'id' => 'received_time',
11746
-      'table' => 'result',
11747
-      'field' => 'received_time',
11748
-      'relationship' => 'none',
11749
-    ),
11750
-    'report_deadline' => array(
11751
-      'label' => 'Report deadline',
11752
-      'alter' => array(
11753
-        'alter_text' => 0,
11754
-        'text' => '',
11755
-        'make_link' => 0,
11756
-        'path' => '',
11757
-        'link_class' => '',
11758
-        'alt' => '',
11759
-        'prefix' => '',
11760
-        'suffix' => '',
11761
-        'target' => '',
11762
-        'help' => '',
11763
-        'trim' => 0,
11764
-        'max_length' => '',
11765
-        'word_boundary' => 1,
11766
-        'ellipsis' => 1,
11767
-        'html' => 0,
11768
-        'strip_tags' => 0,
11769
-      ),
11770
-      'empty' => '',
11771
-      'hide_empty' => 0,
11772
-      'empty_zero' => 0,
11773
-      'date_format' => 'small',
11774
-      'custom_date_format' => '',
11775
-      'exclude' => 1,
11776
-      'id' => 'report_deadline',
11777
-      'table' => 'result',
11778
-      'field' => 'report_deadline',
11779
-      'relationship' => 'none',
11780
-    ),
11781
-    'phpcode_3' => array(
11782
-      'label' => 'Sent',
11783
-      'alter' => array(
11784
-        'alter_text' => 0,
11785
-        'text' => '',
11786
-        'make_link' => 0,
11787
-        'path' => '',
11788
-        'absolute' => 0,
11789
-        'link_class' => '',
11790
-        'alt' => '',
11791
-        'rel' => '',
11792
-        'prefix' => '',
11793
-        'suffix' => '',
11794
-        'target' => '',
11795
-        'help' => '',
11796
-        'trim' => 0,
11797
-        'max_length' => '',
11798
-        'word_boundary' => 1,
11799
-        'ellipsis' => 1,
11800
-        'html' => 0,
11801
-        'strip_tags' => 0,
11802
-      ),
11803
-      'empty' => '',
11804
-      'hide_empty' => 0,
11805
-      'empty_zero' => 0,
11806
-      'hide_alter_empty' => 1,
11807
-      'value' => '<?php
11563
+// Exported view: boinc_workunit_tasks_all
11564
+$view = new view;
11565
+$view->name = 'boinc_workunit_tasks_all';
11566
+$view->description = 'A list of all tasks in a given workunit';
11567
+$view->tag = '';
11568
+$view->base_table = 'result';
11569
+$view->core = 6;
11570
+$view->api_version = '2';
11571
+$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
11572
+$handler = $view->new_display('default', 'Defaults', 'default');
11573
+$handler->override_option('fields', array(
11574
+'name' => array(
11575
+  'label' => 'Name',
11576
+  'alter' => array(
11577
+    'alter_text' => 0,
11578
+    'text' => '',
11579
+    'make_link' => 0,
11580
+    'path' => '',
11581
+    'absolute' => 0,
11582
+    'link_class' => '',
11583
+    'alt' => '',
11584
+    'rel' => '',
11585
+    'prefix' => '',
11586
+    'suffix' => '',
11587
+    'target' => '',
11588
+    'help' => '',
11589
+    'trim' => 0,
11590
+    'max_length' => '',
11591
+    'word_boundary' => 1,
11592
+    'ellipsis' => 1,
11593
+    'html' => 0,
11594
+    'strip_tags' => 0,
11595
+  ),
11596
+  'empty' => '',
11597
+  'hide_empty' => 0,
11598
+  'empty_zero' => 0,
11599
+  'hide_alter_empty' => 1,
11600
+  'exclude' => 1,
11601
+  'id' => 'name',
11602
+  'table' => 'result',
11603
+  'field' => 'name',
11604
+  'relationship' => 'none',
11605
+),
11606
+'id' => array(
11607
+  'label' => 'Task ID',
11608
+  'alter' => array(
11609
+    'alter_text' => 0,
11610
+    'text' => '',
11611
+    'make_link' => 0,
11612
+    'path' => 'task/[id]',
11613
+    'absolute' => 0,
11614
+    'link_class' => '',
11615
+    'alt' => '',
11616
+    'rel' => '',
11617
+    'prefix' => '',
11618
+    'suffix' => '',
11619
+    'target' => '',
11620
+    'help' => '',
11621
+    'trim' => 0,
11622
+    'max_length' => '',
11623
+    'word_boundary' => 1,
11624
+    'ellipsis' => 1,
11625
+    'html' => 0,
11626
+    'strip_tags' => 0,
11627
+  ),
11628
+  'empty' => '',
11629
+  'hide_empty' => 0,
11630
+  'empty_zero' => 0,
11631
+  'hide_alter_empty' => 1,
11632
+  'set_precision' => FALSE,
11633
+  'precision' => 0,
11634
+  'decimal' => '.',
11635
+  'separator' => '',
11636
+  'format_plural' => 0,
11637
+  'format_plural_singular' => '1',
11638
+  'format_plural_plural' => '@count',
11639
+  'prefix' => '',
11640
+  'suffix' => '',
11641
+  'exclude' => 0,
11642
+  'id' => 'id',
11643
+  'table' => 'result',
11644
+  'field' => 'id',
11645
+  'relationship' => 'none',
11646
+),
11647
+'hostid' => array(
11648
+  'label' => 'Computer',
11649
+  'alter' => array(
11650
+    'alter_text' => 0,
11651
+    'text' => '',
11652
+    'make_link' => 1,
11653
+    'path' => 'host/[hostid]',
11654
+    'absolute' => 0,
11655
+    'link_class' => '',
11656
+    'alt' => '',
11657
+    'rel' => '',
11658
+    'prefix' => '',
11659
+    'suffix' => '',
11660
+    'target' => '',
11661
+    'help' => '',
11662
+    'trim' => 0,
11663
+    'max_length' => '',
11664
+    'word_boundary' => 1,
11665
+    'ellipsis' => 1,
11666
+    'html' => 0,
11667
+    'strip_tags' => 0,
11668
+  ),
11669
+  'empty' => '',
11670
+  'hide_empty' => 0,
11671
+  'empty_zero' => 0,
11672
+  'hide_alter_empty' => 1,
11673
+  'set_precision' => FALSE,
11674
+  'precision' => 0,
11675
+  'decimal' => '.',
11676
+  'separator' => '',
11677
+  'format_plural' => 0,
11678
+  'format_plural_singular' => '1',
11679
+  'format_plural_plural' => '@count',
11680
+  'prefix' => '',
11681
+  'suffix' => '',
11682
+  'exclude' => 0,
11683
+  'id' => 'hostid',
11684
+  'table' => 'result',
11685
+  'field' => 'hostid',
11686
+  'relationship' => 'none',
11687
+),
11688
+'sent_time' => array(
11689
+  'label' => 'Sent',
11690
+  'alter' => array(
11691
+    'alter_text' => 0,
11692
+    'text' => '',
11693
+    'make_link' => 0,
11694
+    'path' => '',
11695
+    'link_class' => '',
11696
+    'alt' => '',
11697
+    'prefix' => '',
11698
+    'suffix' => '',
11699
+    'target' => '',
11700
+    'help' => '',
11701
+    'trim' => 0,
11702
+    'max_length' => '',
11703
+    'word_boundary' => 1,
11704
+    'ellipsis' => 1,
11705
+    'html' => 0,
11706
+    'strip_tags' => 0,
11707
+  ),
11708
+  'empty' => '',
11709
+  'hide_empty' => 0,
11710
+  'empty_zero' => 0,
11711
+  'date_format' => 'custom',
11712
+  'custom_date_format' => 'j M Y G:i:s e',
11713
+  'exclude' => 1,
11714
+  'id' => 'sent_time',
11715
+  'table' => 'result',
11716
+  'field' => 'sent_time',
11717
+  'relationship' => 'none',
11718
+),
11719
+'received_time' => array(
11720
+  'label' => 'Received time',
11721
+  'alter' => array(
11722
+    'alter_text' => 0,
11723
+    'text' => '',
11724
+    'make_link' => 0,
11725
+    'path' => '',
11726
+    'link_class' => '',
11727
+    'alt' => '',
11728
+    'prefix' => '',
11729
+    'suffix' => '',
11730
+    'target' => '',
11731
+    'help' => '',
11732
+    'trim' => 0,
11733
+    'max_length' => '',
11734
+    'word_boundary' => 1,
11735
+    'ellipsis' => 1,
11736
+    'html' => 0,
11737
+    'strip_tags' => 0,
11738
+  ),
11739
+  'empty' => '',
11740
+  'hide_empty' => 0,
11741
+  'empty_zero' => 0,
11742
+  'date_format' => 'small',
11743
+  'custom_date_format' => '',
11744
+  'exclude' => 1,
11745
+  'id' => 'received_time',
11746
+  'table' => 'result',
11747
+  'field' => 'received_time',
11748
+  'relationship' => 'none',
11749
+),
11750
+'report_deadline' => array(
11751
+  'label' => 'Report deadline',
11752
+  'alter' => array(
11753
+    'alter_text' => 0,
11754
+    'text' => '',
11755
+    'make_link' => 0,
11756
+    'path' => '',
11757
+    'link_class' => '',
11758
+    'alt' => '',
11759
+    'prefix' => '',
11760
+    'suffix' => '',
11761
+    'target' => '',
11762
+    'help' => '',
11763
+    'trim' => 0,
11764
+    'max_length' => '',
11765
+    'word_boundary' => 1,
11766
+    'ellipsis' => 1,
11767
+    'html' => 0,
11768
+    'strip_tags' => 0,
11769
+  ),
11770
+  'empty' => '',
11771
+  'hide_empty' => 0,
11772
+  'empty_zero' => 0,
11773
+  'date_format' => 'small',
11774
+  'custom_date_format' => '',
11775
+  'exclude' => 1,
11776
+  'id' => 'report_deadline',
11777
+  'table' => 'result',
11778
+  'field' => 'report_deadline',
11779
+  'relationship' => 'none',
11780
+),
11781
+'phpcode_3' => array(
11782
+  'label' => 'Sent',
11783
+  'alter' => array(
11784
+    'alter_text' => 0,
11785
+    'text' => '',
11786
+    'make_link' => 0,
11787
+    'path' => '',
11788
+    'absolute' => 0,
11789
+    'link_class' => '',
11790
+    'alt' => '',
11791
+    'rel' => '',
11792
+    'prefix' => '',
11793
+    'suffix' => '',
11794
+    'target' => '',
11795
+    'help' => '',
11796
+    'trim' => 0,
11797
+    'max_length' => '',
11798
+    'word_boundary' => 1,
11799
+    'ellipsis' => 1,
11800
+    'html' => 0,
11801
+    'strip_tags' => 0,
11802
+  ),
11803
+  'empty' => '',
11804
+  'hide_empty' => 0,
11805
+  'empty_zero' => 0,
11806
+  'hide_alter_empty' => 1,
11807
+  'value' => '<?php
11808 11808
   require_boinc(\'util\');
11809 11809
   echo date(\'j M Y G:i:s T\', $data->result_sent_time);
11810 11810
 ?>',
11811
-      'exclude' => 0,
11812
-      'id' => 'phpcode_3',
11813
-      'table' => 'customfield',
11814
-      'field' => 'phpcode',
11815
-      'relationship' => 'none',
11816
-    ),
11817
-    'phpcode' => array(
11818
-      'label' => 'Time reported or deadline',
11819
-      'alter' => array(
11820
-        'alter_text' => 0,
11821
-        'text' => '',
11822
-        'make_link' => 0,
11823
-        'path' => '',
11824
-        'absolute' => 0,
11825
-        'link_class' => '',
11826
-        'alt' => '',
11827
-        'rel' => '',
11828
-        'prefix' => '',
11829
-        'suffix' => '',
11830
-        'target' => '',
11831
-        'help' => '',
11832
-        'trim' => 0,
11833
-        'max_length' => '',
11834
-        'word_boundary' => 1,
11835
-        'ellipsis' => 1,
11836
-        'html' => 0,
11837
-        'strip_tags' => 0,
11838
-      ),
11839
-      'empty' => '',
11840
-      'hide_empty' => 0,
11841
-      'empty_zero' => 0,
11842
-      'hide_alter_empty' => 1,
11843
-      'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
11844
-      'exclude' => 0,
11845
-      'id' => 'phpcode',
11846
-      'table' => 'customfield',
11847
-      'field' => 'phpcode',
11848
-      'override' => array(
11849
-        'button' => 'Override',
11850
-      ),
11851
-      'relationship' => 'none',
11852
-    ),
11853
-    'server_state' => array(
11854
-      'label' => 'Server state',
11855
-      'alter' => array(
11856
-        'alter_text' => 0,
11857
-        'text' => '',
11858
-        'make_link' => 0,
11859
-        'path' => '',
11860
-        'link_class' => '',
11861
-        'alt' => '',
11862
-        'prefix' => '',
11863
-        'suffix' => '',
11864
-        'target' => '',
11865
-        'help' => '',
11866
-        'trim' => 0,
11867
-        'max_length' => '',
11868
-        'word_boundary' => 1,
11869
-        'ellipsis' => 1,
11870
-        'html' => 0,
11871
-        'strip_tags' => 0,
11872
-      ),
11873
-      'empty' => '',
11874
-      'hide_empty' => 0,
11875
-      'empty_zero' => 0,
11876
-      'set_precision' => FALSE,
11877
-      'precision' => 0,
11878
-      'decimal' => '.',
11879
-      'separator' => '',
11880
-      'prefix' => '',
11881
-      'suffix' => '',
11882
-      'exclude' => 1,
11883
-      'id' => 'server_state',
11884
-      'table' => 'result',
11885
-      'field' => 'server_state',
11886
-      'relationship' => 'none',
11887
-    ),
11888
-    'outcome' => array(
11889
-      'label' => 'Outcome',
11890
-      'alter' => array(
11891
-        'alter_text' => 0,
11892
-        'text' => '',
11893
-        'make_link' => 0,
11894
-        'path' => '',
11895
-        'link_class' => '',
11896
-        'alt' => '',
11897
-        'prefix' => '',
11898
-        'suffix' => '',
11899
-        'target' => '',
11900
-        'help' => '',
11901
-        'trim' => 0,
11902
-        'max_length' => '',
11903
-        'word_boundary' => 1,
11904
-        'ellipsis' => 1,
11905
-        'html' => 0,
11906
-        'strip_tags' => 0,
11907
-      ),
11908
-      'empty' => '',
11909
-      'hide_empty' => 0,
11910
-      'empty_zero' => 0,
11911
-      'set_precision' => FALSE,
11912
-      'precision' => 0,
11913
-      'decimal' => '.',
11914
-      'separator' => '',
11915
-      'prefix' => '',
11916
-      'suffix' => '',
11917
-      'exclude' => 1,
11918
-      'id' => 'outcome',
11919
-      'table' => 'result',
11920
-      'field' => 'outcome',
11921
-      'relationship' => 'none',
11922
-    ),
11923
-    'client_state' => array(
11924
-      'label' => 'Client state',
11925
-      'alter' => array(
11926
-        'alter_text' => 0,
11927
-        'text' => '',
11928
-        'make_link' => 0,
11929
-        'path' => '',
11930
-        'link_class' => '',
11931
-        'alt' => '',
11932
-        'prefix' => '',
11933
-        'suffix' => '',
11934
-        'target' => '',
11935
-        'help' => '',
11936
-        'trim' => 0,
11937
-        'max_length' => '',
11938
-        'word_boundary' => 1,
11939
-        'ellipsis' => 1,
11940
-        'html' => 0,
11941
-        'strip_tags' => 0,
11942
-      ),
11943
-      'empty' => '',
11944
-      'hide_empty' => 0,
11945
-      'empty_zero' => 0,
11946
-      'set_precision' => FALSE,
11947
-      'precision' => 0,
11948
-      'decimal' => '.',
11949
-      'separator' => '',
11950
-      'prefix' => '',
11951
-      'suffix' => '',
11952
-      'exclude' => 1,
11953
-      'id' => 'client_state',
11954
-      'table' => 'result',
11955
-      'field' => 'client_state',
11956
-      'relationship' => 'none',
11957
-    ),
11958
-    'validate_state' => array(
11959
-      'label' => 'Validation state',
11960
-      'alter' => array(
11961
-        'alter_text' => 0,
11962
-        'text' => '',
11963
-        'make_link' => 0,
11964
-        'path' => '',
11965
-        'link_class' => '',
11966
-        'alt' => '',
11967
-        'prefix' => '',
11968
-        'suffix' => '',
11969
-        'target' => '',
11970
-        'help' => '',
11971
-        'trim' => 0,
11972
-        'max_length' => '',
11973
-        'word_boundary' => 1,
11974
-        'ellipsis' => 1,
11975
-        'html' => 0,
11976
-        'strip_tags' => 0,
11977
-      ),
11978
-      'empty' => '',
11979
-      'hide_empty' => 0,
11980
-      'empty_zero' => 0,
11981
-      'set_precision' => FALSE,
11982
-      'precision' => 0,
11983
-      'decimal' => '.',
11984
-      'separator' => '',
11985
-      'prefix' => '',
11986
-      'suffix' => '',
11987
-      'exclude' => 1,
11988
-      'id' => 'validate_state',
11989
-      'table' => 'result',
11990
-      'field' => 'validate_state',
11991
-      'relationship' => 'none',
11992
-    ),
11993
-    'exit_status' => array(
11994
-      'label' => 'Exit status',
11995
-      'alter' => array(
11996
-        'alter_text' => 0,
11997
-        'text' => '',
11998
-        'make_link' => 0,
11999
-        'path' => '',
12000
-        'link_class' => '',
12001
-        'alt' => '',
12002
-        'prefix' => '',
12003
-        'suffix' => '',
12004
-        'target' => '',
12005
-        'help' => '',
12006
-        'trim' => 0,
12007
-        'max_length' => '',
12008
-        'word_boundary' => 1,
12009
-        'ellipsis' => 1,
12010
-        'html' => 0,
12011
-        'strip_tags' => 0,
12012
-      ),
12013
-      'empty' => '',
12014
-      'hide_empty' => 0,
12015
-      'empty_zero' => 0,
12016
-      'set_precision' => FALSE,
12017
-      'precision' => 0,
12018
-      'decimal' => '.',
12019
-      'separator' => '',
12020
-      'prefix' => '',
12021
-      'suffix' => '',
12022
-      'exclude' => 1,
12023
-      'id' => 'exit_status',
12024
-      'table' => 'result',
12025
-      'field' => 'exit_status',
12026
-      'relationship' => 'none',
12027
-    ),
12028
-    'phpcode_1' => array(
12029
-      'label' => 'Status',
12030
-      'alter' => array(
12031
-        'alter_text' => 0,
12032
-        'text' => '',
12033
-        'make_link' => 0,
12034
-        'path' => '',
12035
-        'link_class' => '',
12036
-        'alt' => '',
12037
-        'prefix' => '',
12038
-        'suffix' => '',
12039
-        'target' => '',
12040
-        'help' => '',
12041
-        'trim' => 0,
12042
-        'max_length' => '',
12043
-        'word_boundary' => 1,
12044
-        'ellipsis' => 1,
12045
-        'html' => 0,
12046
-        'strip_tags' => 0,
12047
-      ),
12048
-      'empty' => '',
12049
-      'hide_empty' => 0,
12050
-      'empty_zero' => 0,
12051
-      'value' => '<?php
11811
+  'exclude' => 0,
11812
+  'id' => 'phpcode_3',
11813
+  'table' => 'customfield',
11814
+  'field' => 'phpcode',
11815
+  'relationship' => 'none',
11816
+),
11817
+'phpcode' => array(
11818
+  'label' => 'Time reported or deadline',
11819
+  'alter' => array(
11820
+    'alter_text' => 0,
11821
+    'text' => '',
11822
+    'make_link' => 0,
11823
+    'path' => '',
11824
+    'absolute' => 0,
11825
+    'link_class' => '',
11826
+    'alt' => '',
11827
+    'rel' => '',
11828
+    'prefix' => '',
11829
+    'suffix' => '',
11830
+    'target' => '',
11831
+    'help' => '',
11832
+    'trim' => 0,
11833
+    'max_length' => '',
11834
+    'word_boundary' => 1,
11835
+    'ellipsis' => 1,
11836
+    'html' => 0,
11837
+    'strip_tags' => 0,
11838
+  ),
11839
+  'empty' => '',
11840
+  'hide_empty' => 0,
11841
+  'empty_zero' => 0,
11842
+  'hide_alter_empty' => 1,
11843
+  'value' => '<?php return boincwork_task_time_reported($data->result_received_time, $data->result_report_deadline); ?>',
11844
+  'exclude' => 0,
11845
+  'id' => 'phpcode',
11846
+  'table' => 'customfield',
11847
+  'field' => 'phpcode',
11848
+  'override' => array(
11849
+    'button' => 'Override',
11850
+  ),
11851
+  'relationship' => 'none',
11852
+),
11853
+'server_state' => array(
11854
+  'label' => 'Server state',
11855
+  'alter' => array(
11856
+    'alter_text' => 0,
11857
+    'text' => '',
11858
+    'make_link' => 0,
11859
+    'path' => '',
11860
+    'link_class' => '',
11861
+    'alt' => '',
11862
+    'prefix' => '',
11863
+    'suffix' => '',
11864
+    'target' => '',
11865
+    'help' => '',
11866
+    'trim' => 0,
11867
+    'max_length' => '',
11868
+    'word_boundary' => 1,
11869
+    'ellipsis' => 1,
11870
+    'html' => 0,
11871
+    'strip_tags' => 0,
11872
+  ),
11873
+  'empty' => '',
11874
+  'hide_empty' => 0,
11875
+  'empty_zero' => 0,
11876
+  'set_precision' => FALSE,
11877
+  'precision' => 0,
11878
+  'decimal' => '.',
11879
+  'separator' => '',
11880
+  'prefix' => '',
11881
+  'suffix' => '',
11882
+  'exclude' => 1,
11883
+  'id' => 'server_state',
11884
+  'table' => 'result',
11885
+  'field' => 'server_state',
11886
+  'relationship' => 'none',
11887
+),
11888
+'outcome' => array(
11889
+  'label' => 'Outcome',
11890
+  'alter' => array(
11891
+    'alter_text' => 0,
11892
+    'text' => '',
11893
+    'make_link' => 0,
11894
+    'path' => '',
11895
+    'link_class' => '',
11896
+    'alt' => '',
11897
+    'prefix' => '',
11898
+    'suffix' => '',
11899
+    'target' => '',
11900
+    'help' => '',
11901
+    'trim' => 0,
11902
+    'max_length' => '',
11903
+    'word_boundary' => 1,
11904
+    'ellipsis' => 1,
11905
+    'html' => 0,
11906
+    'strip_tags' => 0,
11907
+  ),
11908
+  'empty' => '',
11909
+  'hide_empty' => 0,
11910
+  'empty_zero' => 0,
11911
+  'set_precision' => FALSE,
11912
+  'precision' => 0,
11913
+  'decimal' => '.',
11914
+  'separator' => '',
11915
+  'prefix' => '',
11916
+  'suffix' => '',
11917
+  'exclude' => 1,
11918
+  'id' => 'outcome',
11919
+  'table' => 'result',
11920
+  'field' => 'outcome',
11921
+  'relationship' => 'none',
11922
+),
11923
+'client_state' => array(
11924
+  'label' => 'Client state',
11925
+  'alter' => array(
11926
+    'alter_text' => 0,
11927
+    'text' => '',
11928
+    'make_link' => 0,
11929
+    'path' => '',
11930
+    'link_class' => '',
11931
+    'alt' => '',
11932
+    'prefix' => '',
11933
+    'suffix' => '',
11934
+    'target' => '',
11935
+    'help' => '',
11936
+    'trim' => 0,
11937
+    'max_length' => '',
11938
+    'word_boundary' => 1,
11939
+    'ellipsis' => 1,
11940
+    'html' => 0,
11941
+    'strip_tags' => 0,
11942
+  ),
11943
+  'empty' => '',
11944
+  'hide_empty' => 0,
11945
+  'empty_zero' => 0,
11946
+  'set_precision' => FALSE,
11947
+  'precision' => 0,
11948
+  'decimal' => '.',
11949
+  'separator' => '',
11950
+  'prefix' => '',
11951
+  'suffix' => '',
11952
+  'exclude' => 1,
11953
+  'id' => 'client_state',
11954
+  'table' => 'result',
11955
+  'field' => 'client_state',
11956
+  'relationship' => 'none',
11957
+),
11958
+'validate_state' => array(
11959
+  'label' => 'Validation state',
11960
+  'alter' => array(
11961
+    'alter_text' => 0,
11962
+    'text' => '',
11963
+    'make_link' => 0,
11964
+    'path' => '',
11965
+    'link_class' => '',
11966
+    'alt' => '',
11967
+    'prefix' => '',
11968
+    'suffix' => '',
11969
+    'target' => '',
11970
+    'help' => '',
11971
+    'trim' => 0,
11972
+    'max_length' => '',
11973
+    'word_boundary' => 1,
11974
+    'ellipsis' => 1,
11975
+    'html' => 0,
11976
+    'strip_tags' => 0,
11977
+  ),
11978
+  'empty' => '',
11979
+  'hide_empty' => 0,
11980
+  'empty_zero' => 0,
11981
+  'set_precision' => FALSE,
11982
+  'precision' => 0,
11983
+  'decimal' => '.',
11984
+  'separator' => '',
11985
+  'prefix' => '',
11986
+  'suffix' => '',
11987
+  'exclude' => 1,
11988
+  'id' => 'validate_state',
11989
+  'table' => 'result',
11990
+  'field' => 'validate_state',
11991
+  'relationship' => 'none',
11992
+),
11993
+'exit_status' => array(
11994
+  'label' => 'Exit status',
11995
+  'alter' => array(
11996
+    'alter_text' => 0,
11997
+    'text' => '',
11998
+    'make_link' => 0,
11999
+    'path' => '',
12000
+    'link_class' => '',
12001
+    'alt' => '',
12002
+    'prefix' => '',
12003
+    'suffix' => '',
12004
+    'target' => '',
12005
+    'help' => '',
12006
+    'trim' => 0,
12007
+    'max_length' => '',
12008
+    'word_boundary' => 1,
12009
+    'ellipsis' => 1,
12010
+    'html' => 0,
12011
+    'strip_tags' => 0,
12012
+  ),
12013
+  'empty' => '',
12014
+  'hide_empty' => 0,
12015
+  'empty_zero' => 0,
12016
+  'set_precision' => FALSE,
12017
+  'precision' => 0,
12018
+  'decimal' => '.',
12019
+  'separator' => '',
12020
+  'prefix' => '',
12021
+  'suffix' => '',
12022
+  'exclude' => 1,
12023
+  'id' => 'exit_status',
12024
+  'table' => 'result',
12025
+  'field' => 'exit_status',
12026
+  'relationship' => 'none',
12027
+),
12028
+'phpcode_1' => array(
12029
+  'label' => 'Status',
12030
+  'alter' => array(
12031
+    'alter_text' => 0,
12032
+    'text' => '',
12033
+    'make_link' => 0,
12034
+    'path' => '',
12035
+    'link_class' => '',
12036
+    'alt' => '',
12037
+    'prefix' => '',
12038
+    'suffix' => '',
12039
+    'target' => '',
12040
+    'help' => '',
12041
+    'trim' => 0,
12042
+    'max_length' => '',
12043
+    'word_boundary' => 1,
12044
+    'ellipsis' => 1,
12045
+    'html' => 0,
12046
+    'strip_tags' => 0,
12047
+  ),
12048
+  'empty' => '',
12049
+  'hide_empty' => 0,
12050
+  'empty_zero' => 0,
12051
+  'value' => '<?php
12052 12052
   require_boinc(\'result\');
12053 12053
   $result = new stdClass();
12054 12054
   $result->server_state = $data->result_server_state;
@@ -12058,985 +12058,985 @@  discard block
 block discarded – undo
12058 12058
   $result->exit_status = $data->result_exit_status;
12059 12059
   return state_string($result);
12060 12060
 ?>',
12061
-      'exclude' => 0,
12062
-      'id' => 'phpcode_1',
12063
-      'table' => 'customfield',
12064
-      'field' => 'phpcode',
12065
-      'override' => array(
12066
-        'button' => 'Override',
12067
-      ),
12068
-      'relationship' => 'none',
12069
-    ),
12070
-    'elapsed_time' => array(
12071
-      'label' => 'Run time',
12072
-      'alter' => array(
12073
-        'alter_text' => 0,
12074
-        'text' => '',
12075
-        'make_link' => 0,
12076
-        'path' => '',
12077
-        'absolute' => 0,
12078
-        'link_class' => '',
12079
-        'alt' => '',
12080
-        'rel' => '',
12081
-        'prefix' => '',
12082
-        'suffix' => '',
12083
-        'target' => '',
12084
-        'help' => '',
12085
-        'trim' => 0,
12086
-        'max_length' => '',
12087
-        'word_boundary' => 1,
12088
-        'ellipsis' => 1,
12089
-        'html' => 0,
12090
-        'strip_tags' => 0,
12091
-      ),
12092
-      'empty' => '',
12093
-      'hide_empty' => 0,
12094
-      'empty_zero' => 0,
12095
-      'hide_alter_empty' => 1,
12096
-      'set_precision' => 1,
12097
-      'precision' => '2',
12098
-      'decimal' => '.',
12099
-      'separator' => ',',
12100
-      'format_plural' => 0,
12101
-      'format_plural_singular' => '1',
12102
-      'format_plural_plural' => '@count',
12103
-      'prefix' => '',
12104
-      'suffix' => '',
12105
-      'exclude' => 0,
12106
-      'id' => 'elapsed_time',
12107
-      'table' => 'result',
12108
-      'field' => 'elapsed_time',
12109
-      'relationship' => 'none',
12110
-    ),
12111
-    'cpu_time' => array(
12112
-      'label' => 'CPU time',
12113
-      'alter' => array(
12114
-        'alter_text' => 0,
12115
-        'text' => '',
12116
-        'make_link' => 0,
12117
-        'path' => '',
12118
-        'absolute' => 0,
12119
-        'link_class' => '',
12120
-        'alt' => '',
12121
-        'rel' => '',
12122
-        'prefix' => '',
12123
-        'suffix' => '',
12124
-        'target' => '',
12125
-        'help' => '',
12126
-        'trim' => 0,
12127
-        'max_length' => '',
12128
-        'word_boundary' => 1,
12129
-        'ellipsis' => 1,
12130
-        'html' => 0,
12131
-        'strip_tags' => 0,
12132
-      ),
12133
-      'empty' => '',
12134
-      'hide_empty' => 0,
12135
-      'empty_zero' => 0,
12136
-      'hide_alter_empty' => 1,
12137
-      'set_precision' => 1,
12138
-      'precision' => '2',
12139
-      'decimal' => '.',
12140
-      'separator' => ',',
12141
-      'format_plural' => 0,
12142
-      'format_plural_singular' => '1',
12143
-      'format_plural_plural' => '@count',
12144
-      'prefix' => '',
12145
-      'suffix' => '',
12146
-      'exclude' => 0,
12147
-      'id' => 'cpu_time',
12148
-      'table' => 'result',
12149
-      'field' => 'cpu_time',
12150
-      'relationship' => 'none',
12151
-    ),
12152
-    'granted_credit' => array(
12153
-      'label' => 'Granted credit',
12154
-      'alter' => array(
12155
-        'alter_text' => 0,
12156
-        'text' => '',
12157
-        'make_link' => 0,
12158
-        'path' => '',
12159
-        'absolute' => 0,
12160
-        'link_class' => '',
12161
-        'alt' => '',
12162
-        'rel' => '',
12163
-        'prefix' => '',
12164
-        'suffix' => '',
12165
-        'target' => '',
12166
-        'help' => '',
12167
-        'trim' => 0,
12168
-        'max_length' => '',
12169
-        'word_boundary' => 1,
12170
-        'ellipsis' => 1,
12171
-        'html' => 0,
12172
-        'strip_tags' => 0,
12173
-      ),
12174
-      'empty' => '',
12175
-      'hide_empty' => 0,
12176
-      'empty_zero' => 0,
12177
-      'hide_alter_empty' => 0,
12178
-      'set_precision' => 1,
12179
-      'precision' => '0',
12180
-      'decimal' => '.',
12181
-      'separator' => ',',
12182
-      'format_plural' => 0,
12183
-      'format_plural_singular' => '1',
12184
-      'format_plural_plural' => '@count',
12185
-      'prefix' => '',
12186
-      'suffix' => '',
12187
-      'exclude' => 0,
12188
-      'id' => 'granted_credit',
12189
-      'table' => 'result',
12190
-      'field' => 'granted_credit',
12191
-      'relationship' => 'none',
12192
-    ),
12193
-    'appid' => array(
12194
-      'label' => 'Application ID',
12195
-      'alter' => array(
12196
-        'alter_text' => 0,
12197
-        'text' => '',
12198
-        'make_link' => 0,
12199
-        'path' => '',
12200
-        'absolute' => 0,
12201
-        'link_class' => '',
12202
-        'alt' => '',
12203
-        'rel' => '',
12204
-        'prefix' => '',
12205
-        'suffix' => '',
12206
-        'target' => '',
12207
-        'help' => '',
12208
-        'trim' => 0,
12209
-        'max_length' => '',
12210
-        'word_boundary' => 1,
12211
-        'ellipsis' => 1,
12212
-        'html' => 0,
12213
-        'strip_tags' => 0,
12214
-      ),
12215
-      'empty' => '',
12216
-      'hide_empty' => 0,
12217
-      'empty_zero' => 0,
12218
-      'hide_alter_empty' => 1,
12219
-      'set_precision' => FALSE,
12220
-      'precision' => 0,
12221
-      'decimal' => '.',
12222
-      'separator' => '',
12223
-      'format_plural' => 0,
12224
-      'format_plural_singular' => '1',
12225
-      'format_plural_plural' => '@count',
12226
-      'prefix' => '',
12227
-      'suffix' => '',
12228
-      'exclude' => 1,
12229
-      'id' => 'appid',
12230
-      'table' => 'result',
12231
-      'field' => 'appid',
12232
-      'relationship' => 'none',
12233
-    ),
12234
-    'app_version_id' => array(
12235
-      'label' => 'Application version',
12236
-      'alter' => array(
12237
-        'alter_text' => 0,
12238
-        'text' => '',
12239
-        'make_link' => 0,
12240
-        'path' => '',
12241
-        'link_class' => '',
12242
-        'alt' => '',
12243
-        'prefix' => '',
12244
-        'suffix' => '',
12245
-        'target' => '',
12246
-        'help' => '',
12247
-        'trim' => 0,
12248
-        'max_length' => '',
12249
-        'word_boundary' => 1,
12250
-        'ellipsis' => 1,
12251
-        'html' => 0,
12252
-        'strip_tags' => 0,
12253
-      ),
12254
-      'empty' => '',
12255
-      'hide_empty' => 0,
12256
-      'empty_zero' => 0,
12257
-      'set_precision' => FALSE,
12258
-      'precision' => 0,
12259
-      'decimal' => '.',
12260
-      'separator' => '',
12261
-      'prefix' => '',
12262
-      'suffix' => '',
12263
-      'exclude' => 1,
12264
-      'id' => 'app_version_id',
12265
-      'table' => 'result',
12266
-      'field' => 'app_version_id',
12267
-      'relationship' => 'none',
12268
-    ),
12269
-    'phpcode_2' => array(
12270
-      'label' => 'Application',
12271
-      'alter' => array(
12272
-        'alter_text' => 0,
12273
-        'text' => '',
12274
-        'make_link' => 0,
12275
-        'path' => '',
12276
-        'absolute' => 0,
12277
-        'link_class' => '',
12278
-        'alt' => '',
12279
-        'rel' => '',
12280
-        'prefix' => '',
12281
-        'suffix' => '',
12282
-        'target' => '',
12283
-        'help' => '',
12284
-        'trim' => 0,
12285
-        'max_length' => '',
12286
-        'word_boundary' => 1,
12287
-        'ellipsis' => 1,
12288
-        'html' => 0,
12289
-        'strip_tags' => 0,
12290
-      ),
12291
-      'empty' => '',
12292
-      'hide_empty' => 0,
12293
-      'empty_zero' => 0,
12294
-      'hide_alter_empty' => 1,
12295
-      'value' => '<?php
12061
+  'exclude' => 0,
12062
+  'id' => 'phpcode_1',
12063
+  'table' => 'customfield',
12064
+  'field' => 'phpcode',
12065
+  'override' => array(
12066
+    'button' => 'Override',
12067
+  ),
12068
+  'relationship' => 'none',
12069
+),
12070
+'elapsed_time' => array(
12071
+  'label' => 'Run time',
12072
+  'alter' => array(
12073
+    'alter_text' => 0,
12074
+    'text' => '',
12075
+    'make_link' => 0,
12076
+    'path' => '',
12077
+    'absolute' => 0,
12078
+    'link_class' => '',
12079
+    'alt' => '',
12080
+    'rel' => '',
12081
+    'prefix' => '',
12082
+    'suffix' => '',
12083
+    'target' => '',
12084
+    'help' => '',
12085
+    'trim' => 0,
12086
+    'max_length' => '',
12087
+    'word_boundary' => 1,
12088
+    'ellipsis' => 1,
12089
+    'html' => 0,
12090
+    'strip_tags' => 0,
12091
+  ),
12092
+  'empty' => '',
12093
+  'hide_empty' => 0,
12094
+  'empty_zero' => 0,
12095
+  'hide_alter_empty' => 1,
12096
+  'set_precision' => 1,
12097
+  'precision' => '2',
12098
+  'decimal' => '.',
12099
+  'separator' => ',',
12100
+  'format_plural' => 0,
12101
+  'format_plural_singular' => '1',
12102
+  'format_plural_plural' => '@count',
12103
+  'prefix' => '',
12104
+  'suffix' => '',
12105
+  'exclude' => 0,
12106
+  'id' => 'elapsed_time',
12107
+  'table' => 'result',
12108
+  'field' => 'elapsed_time',
12109
+  'relationship' => 'none',
12110
+),
12111
+'cpu_time' => array(
12112
+  'label' => 'CPU time',
12113
+  'alter' => array(
12114
+    'alter_text' => 0,
12115
+    'text' => '',
12116
+    'make_link' => 0,
12117
+    'path' => '',
12118
+    'absolute' => 0,
12119
+    'link_class' => '',
12120
+    'alt' => '',
12121
+    'rel' => '',
12122
+    'prefix' => '',
12123
+    'suffix' => '',
12124
+    'target' => '',
12125
+    'help' => '',
12126
+    'trim' => 0,
12127
+    'max_length' => '',
12128
+    'word_boundary' => 1,
12129
+    'ellipsis' => 1,
12130
+    'html' => 0,
12131
+    'strip_tags' => 0,
12132
+  ),
12133
+  'empty' => '',
12134
+  'hide_empty' => 0,
12135
+  'empty_zero' => 0,
12136
+  'hide_alter_empty' => 1,
12137
+  'set_precision' => 1,
12138
+  'precision' => '2',
12139
+  'decimal' => '.',
12140
+  'separator' => ',',
12141
+  'format_plural' => 0,
12142
+  'format_plural_singular' => '1',
12143
+  'format_plural_plural' => '@count',
12144
+  'prefix' => '',
12145
+  'suffix' => '',
12146
+  'exclude' => 0,
12147
+  'id' => 'cpu_time',
12148
+  'table' => 'result',
12149
+  'field' => 'cpu_time',
12150
+  'relationship' => 'none',
12151
+),
12152
+'granted_credit' => array(
12153
+  'label' => 'Granted credit',
12154
+  'alter' => array(
12155
+    'alter_text' => 0,
12156
+    'text' => '',
12157
+    'make_link' => 0,
12158
+    'path' => '',
12159
+    'absolute' => 0,
12160
+    'link_class' => '',
12161
+    'alt' => '',
12162
+    'rel' => '',
12163
+    'prefix' => '',
12164
+    'suffix' => '',
12165
+    'target' => '',
12166
+    'help' => '',
12167
+    'trim' => 0,
12168
+    'max_length' => '',
12169
+    'word_boundary' => 1,
12170
+    'ellipsis' => 1,
12171
+    'html' => 0,
12172
+    'strip_tags' => 0,
12173
+  ),
12174
+  'empty' => '',
12175
+  'hide_empty' => 0,
12176
+  'empty_zero' => 0,
12177
+  'hide_alter_empty' => 0,
12178
+  'set_precision' => 1,
12179
+  'precision' => '0',
12180
+  'decimal' => '.',
12181
+  'separator' => ',',
12182
+  'format_plural' => 0,
12183
+  'format_plural_singular' => '1',
12184
+  'format_plural_plural' => '@count',
12185
+  'prefix' => '',
12186
+  'suffix' => '',
12187
+  'exclude' => 0,
12188
+  'id' => 'granted_credit',
12189
+  'table' => 'result',
12190
+  'field' => 'granted_credit',
12191
+  'relationship' => 'none',
12192
+),
12193
+'appid' => array(
12194
+  'label' => 'Application ID',
12195
+  'alter' => array(
12196
+    'alter_text' => 0,
12197
+    'text' => '',
12198
+    'make_link' => 0,
12199
+    'path' => '',
12200
+    'absolute' => 0,
12201
+    'link_class' => '',
12202
+    'alt' => '',
12203
+    'rel' => '',
12204
+    'prefix' => '',
12205
+    'suffix' => '',
12206
+    'target' => '',
12207
+    'help' => '',
12208
+    'trim' => 0,
12209
+    'max_length' => '',
12210
+    'word_boundary' => 1,
12211
+    'ellipsis' => 1,
12212
+    'html' => 0,
12213
+    'strip_tags' => 0,
12214
+  ),
12215
+  'empty' => '',
12216
+  'hide_empty' => 0,
12217
+  'empty_zero' => 0,
12218
+  'hide_alter_empty' => 1,
12219
+  'set_precision' => FALSE,
12220
+  'precision' => 0,
12221
+  'decimal' => '.',
12222
+  'separator' => '',
12223
+  'format_plural' => 0,
12224
+  'format_plural_singular' => '1',
12225
+  'format_plural_plural' => '@count',
12226
+  'prefix' => '',
12227
+  'suffix' => '',
12228
+  'exclude' => 1,
12229
+  'id' => 'appid',
12230
+  'table' => 'result',
12231
+  'field' => 'appid',
12232
+  'relationship' => 'none',
12233
+),
12234
+'app_version_id' => array(
12235
+  'label' => 'Application version',
12236
+  'alter' => array(
12237
+    'alter_text' => 0,
12238
+    'text' => '',
12239
+    'make_link' => 0,
12240
+    'path' => '',
12241
+    'link_class' => '',
12242
+    'alt' => '',
12243
+    'prefix' => '',
12244
+    'suffix' => '',
12245
+    'target' => '',
12246
+    'help' => '',
12247
+    'trim' => 0,
12248
+    'max_length' => '',
12249
+    'word_boundary' => 1,
12250
+    'ellipsis' => 1,
12251
+    'html' => 0,
12252
+    'strip_tags' => 0,
12253
+  ),
12254
+  'empty' => '',
12255
+  'hide_empty' => 0,
12256
+  'empty_zero' => 0,
12257
+  'set_precision' => FALSE,
12258
+  'precision' => 0,
12259
+  'decimal' => '.',
12260
+  'separator' => '',
12261
+  'prefix' => '',
12262
+  'suffix' => '',
12263
+  'exclude' => 1,
12264
+  'id' => 'app_version_id',
12265
+  'table' => 'result',
12266
+  'field' => 'app_version_id',
12267
+  'relationship' => 'none',
12268
+),
12269
+'phpcode_2' => array(
12270
+  'label' => 'Application',
12271
+  'alter' => array(
12272
+    'alter_text' => 0,
12273
+    'text' => '',
12274
+    'make_link' => 0,
12275
+    'path' => '',
12276
+    'absolute' => 0,
12277
+    'link_class' => '',
12278
+    'alt' => '',
12279
+    'rel' => '',
12280
+    'prefix' => '',
12281
+    'suffix' => '',
12282
+    'target' => '',
12283
+    'help' => '',
12284
+    'trim' => 0,
12285
+    'max_length' => '',
12286
+    'word_boundary' => 1,
12287
+    'ellipsis' => 1,
12288
+    'html' => 0,
12289
+    'strip_tags' => 0,
12290
+  ),
12291
+  'empty' => '',
12292
+  'hide_empty' => 0,
12293
+  'empty_zero' => 0,
12294
+  'hide_alter_empty' => 1,
12295
+  'value' => '<?php
12296 12296
   require_boinc(\'result\');
12297 12297
   $result = new stdClass();
12298 12298
   $result->appid = $data->result_appid;
12299 12299
   $result->app_version_id = $data->result_app_version_id;
12300 12300
   return app_version_string($result);
12301 12301
 ?>',
12302
-      'exclude' => 0,
12303
-      'id' => 'phpcode_2',
12304
-      'table' => 'customfield',
12305
-      'field' => 'phpcode',
12306
-      'override' => array(
12307
-        'button' => 'Override',
12308
-      ),
12309
-      'relationship' => 'none',
12310
-    ),
12311
-  ));
12312
-  $handler->override_option('arguments', array(
12313
-    'workunitid' => array(
12314
-      'default_action' => 'not found',
12315
-      'style_plugin' => 'default_summary',
12316
-      'style_options' => array(),
12317
-      'wildcard' => 'all',
12318
-      'wildcard_substitution' => 'All',
12319
-      'title' => 'Tasks for workunit %1',
12320
-      'breadcrumb' => '',
12321
-      'default_argument_type' => 'fixed',
12322
-      'default_argument' => '',
12323
-      'validate_type' => 'numeric',
12324
-      'validate_fail' => 'not found',
12325
-      'id' => 'workunitid',
12326
-      'table' => 'result',
12327
-      'field' => 'workunitid',
12328
-      'validate_user_argument_type' => 'uid',
12329
-      'validate_user_roles' => array(
12330
-        2 => 0,
12331
-        4 => 0,
12332
-        7 => 0,
12333
-        5 => 0,
12334
-        3 => 0,
12335
-        6 => 0,
12336
-      ),
12337
-      'me_redirect' => 0,
12338
-      'me_validate_user_argument_type' => 'uid',
12339
-      'me_validate_user_roles' => array(
12340
-        2 => 0,
12341
-        4 => 0,
12342
-        7 => 0,
12343
-        5 => 0,
12344
-        3 => 0,
12345
-        6 => 0,
12346
-      ),
12347
-      'relationship' => 'none',
12348
-      'default_options_div_prefix' => '',
12349
-      'default_taxonomy_tid_term_page' => 0,
12350
-      'default_taxonomy_tid_node' => 0,
12351
-      'default_taxonomy_tid_limit' => 0,
12352
-      'default_taxonomy_tid_vids' => array(
12353
-        1 => 0,
12354
-        2 => 0,
12355
-      ),
12356
-      'default_argument_user' => 0,
12357
-      'default_argument_fixed' => '',
12358
-      'default_argument_php' => '',
12359
-      'validate_argument_node_type' => array(
12360
-        'page' => 0,
12361
-        'news' => 0,
12362
-        'profile' => 0,
12363
-        'forum' => 0,
12364
-        'panel' => 0,
12365
-        'story' => 0,
12366
-      ),
12367
-      'validate_argument_node_access' => 0,
12368
-      'validate_argument_nid_type' => 'nid',
12369
-      'validate_argument_vocabulary' => array(
12370
-        1 => 0,
12371
-        2 => 0,
12372
-      ),
12373
-      'validate_argument_type' => 'tid',
12374
-      'validate_argument_transform' => 0,
12375
-      'validate_user_restrict_roles' => 0,
12376
-      'validate_argument_node_flag_name' => '*relationship*',
12377
-      'validate_argument_node_flag_test' => 'flaggable',
12378
-      'validate_argument_node_flag_id_type' => 'id',
12379
-      'validate_argument_user_flag_name' => '*relationship*',
12380
-      'validate_argument_user_flag_test' => 'flaggable',
12381
-      'validate_argument_user_flag_id_type' => 'id',
12382
-      'validate_argument_php' => '',
12383
-      'me_validate_user_restrict_roles' => 0,
12384
-    ),
12385
-  ));
12386
-  $handler->override_option('access', array(
12387
-    'type' => 'none',
12388
-  ));
12389
-  $handler->override_option('cache', array(
12390
-    'type' => 'none',
12391
-  ));
12392
-  $handler->override_option('items_per_page', 20);
12393
-  $handler->override_option('use_pager', '1');
12394
-  $handler->override_option('style_plugin', 'table');
12395
-  $handler->override_option('style_options', array(
12396
-    'grouping' => '',
12397
-    'override' => 1,
12398
-    'sticky' => 1,
12399
-    'order' => 'asc',
12400
-    'summary' => '',
12401
-    'columns' => array(
12402
-      'id' => 'id',
12403
-      'hostid' => 'hostid',
12404
-      'sent_time' => 'sent_time',
12405
-      'received_time' => 'received_time',
12406
-      'report_deadline' => 'report_deadline',
12407
-      'phpcode_3' => 'phpcode_3',
12408
-      'phpcode' => 'phpcode',
12409
-      'server_state' => 'server_state',
12410
-      'outcome' => 'outcome',
12411
-      'client_state' => 'client_state',
12412
-      'validate_state' => 'validate_state',
12413
-      'exit_status' => 'exit_status',
12414
-      'phpcode_1' => 'phpcode_1',
12415
-      'elapsed_time' => 'elapsed_time',
12416
-      'cpu_time' => 'cpu_time',
12417
-      'claimed_credit_1' => 'claimed_credit_1',
12418
-      'granted_credit' => 'granted_credit',
12419
-      'app_version_id' => 'app_version_id',
12420
-      'phpcode_2' => 'phpcode_2',
12421
-    ),
12422
-    'info' => array(
12423
-      'id' => array(
12424
-        'sortable' => 1,
12425
-        'separator' => '',
12426
-      ),
12427
-      'hostid' => array(
12428
-        'sortable' => 1,
12429
-        'separator' => '',
12430
-      ),
12431
-      'sent_time' => array(
12432
-        'sortable' => 1,
12433
-        'separator' => '',
12434
-      ),
12435
-      'received_time' => array(
12436
-        'sortable' => 1,
12437
-        'separator' => '',
12438
-      ),
12439
-      'report_deadline' => array(
12440
-        'sortable' => 1,
12441
-        'separator' => '',
12442
-      ),
12443
-      'phpcode_3' => array(
12444
-        'separator' => '',
12445
-      ),
12446
-      'phpcode' => array(
12447
-        'separator' => '',
12448
-      ),
12449
-      'server_state' => array(
12450
-        'sortable' => 0,
12451
-        'separator' => '',
12452
-      ),
12453
-      'outcome' => array(
12454
-        'sortable' => 0,
12455
-        'separator' => '',
12456
-      ),
12457
-      'client_state' => array(
12458
-        'sortable' => 0,
12459
-        'separator' => '',
12460
-      ),
12461
-      'validate_state' => array(
12462
-        'sortable' => 0,
12463
-        'separator' => '',
12464
-      ),
12465
-      'exit_status' => array(
12466
-        'sortable' => 0,
12467
-        'separator' => '',
12468
-      ),
12469
-      'phpcode_1' => array(
12470
-        'separator' => '',
12471
-      ),
12472
-      'elapsed_time' => array(
12473
-        'sortable' => 1,
12474
-        'separator' => '',
12475
-      ),
12476
-      'cpu_time' => array(
12477
-        'sortable' => 1,
12478
-        'separator' => '',
12479
-      ),
12480
-      'claimed_credit_1' => array(
12481
-        'sortable' => 1,
12482
-        'separator' => '',
12483
-      ),
12484
-      'granted_credit' => array(
12485
-        'sortable' => 1,
12486
-        'separator' => '',
12487
-      ),
12488
-      'app_version_id' => array(
12489
-        'sortable' => 1,
12490
-        'separator' => '',
12491
-      ),
12492
-      'phpcode_2' => array(
12493
-        'separator' => '',
12494
-      ),
12495
-    ),
12496
-    'default' => 'id',
12497
-  ));
12498
-  $handler = $view->new_display('page', 'All tasks', 'page_1');
12499
-  $handler->override_option('path', 'workunit/%/tasks/all');
12500
-  $handler->override_option('menu', array(
12501
-    'type' => 'default tab',
12502
-    'title' => 'All tasks',
12503
-    'description' => 'Show all tasks associated with the workunit',
12504
-    'weight' => '0',
12505
-    'name' => 'navigation',
12506
-  ));
12507
-  $handler->override_option('tab_options', array(
12508
-    'type' => 'tab',
12509
-    'title' => 'Tasks',
12510
-    'description' => 'Show all tasks',
12511
-    'weight' => '0',
12512
-    'name' => 'secondary-links',
12513
-  ));
12514
-  $handler = $view->new_display('page', 'Error', 'page_2');
12515
-  $handler->override_option('filters', array(
12516
-    'server_state' => array(
12517
-      'operator' => '=',
12518
-      'value' => array(
12519
-        'value' => '5',
12520
-        'min' => '',
12521
-        'max' => '',
12522
-      ),
12523
-      'group' => '0',
12524
-      'exposed' => FALSE,
12525
-      'expose' => array(
12526
-        'operator' => FALSE,
12527
-        'label' => '',
12528
-      ),
12529
-      'id' => 'server_state',
12530
-      'table' => 'result',
12531
-      'field' => 'server_state',
12532
-      'override' => array(
12533
-        'button' => 'Use default',
12534
-      ),
12535
-      'relationship' => 'none',
12536
-    ),
12537
-    'outcome' => array(
12538
-      'operator' => '>=',
12539
-      'value' => array(
12540
-        'value' => '3',
12541
-        'min' => '',
12542
-        'max' => '',
12543
-      ),
12544
-      'group' => '0',
12545
-      'exposed' => FALSE,
12546
-      'expose' => array(
12547
-        'operator' => FALSE,
12548
-        'label' => '',
12549
-      ),
12550
-      'id' => 'outcome',
12551
-      'table' => 'result',
12552
-      'field' => 'outcome',
12553
-      'override' => array(
12554
-        'button' => 'Use default',
12555
-      ),
12556
-      'relationship' => 'none',
12557
-    ),
12558
-    'outcome_1' => array(
12559
-      'operator' => 'not between',
12560
-      'value' => array(
12561
-        'value' => '',
12562
-        'min' => '4',
12563
-        'max' => '7',
12564
-      ),
12565
-      'group' => '0',
12566
-      'exposed' => FALSE,
12567
-      'expose' => array(
12568
-        'operator' => FALSE,
12569
-        'label' => '',
12570
-      ),
12571
-      'id' => 'outcome_1',
12572
-      'table' => 'result',
12573
-      'field' => 'outcome',
12574
-      'override' => array(
12575
-        'button' => 'Use default',
12576
-      ),
12577
-      'relationship' => 'none',
12578
-    ),
12579
-    'outcome_2' => array(
12580
-      'operator' => '<=',
12581
-      'value' => array(
12582
-        'value' => '7',
12583
-        'min' => '',
12584
-        'max' => '',
12585
-      ),
12586
-      'group' => '0',
12587
-      'exposed' => FALSE,
12588
-      'expose' => array(
12589
-        'operator' => FALSE,
12590
-        'label' => '',
12591
-      ),
12592
-      'id' => 'outcome_2',
12593
-      'table' => 'result',
12594
-      'field' => 'outcome',
12595
-      'override' => array(
12596
-        'button' => 'Use default',
12597
-      ),
12598
-      'relationship' => 'none',
12599
-    ),
12600
-  ));
12601
-  $handler->override_option('path', 'workunit/%/tasks/error');
12602
-  $handler->override_option('menu', array(
12603
-    'type' => 'tab',
12604
-    'title' => 'Error',
12605
-    'description' => 'Show tasks with errors associated with the workunit',
12606
-    'weight' => '5',
12607
-    'name' => 'navigation',
12608
-  ));
12609
-  $handler->override_option('tab_options', array(
12610
-    'type' => 'none',
12611
-    'title' => '',
12612
-    'description' => '',
12613
-    'weight' => 0,
12614
-    'name' => 'navigation',
12615
-  ));
12616
-  $handler = $view->new_display('page', 'In progress', 'page_3');
12617
-  $handler->override_option('filters', array(
12618
-    'server_state' => array(
12619
-      'operator' => '=',
12620
-      'value' => array(
12621
-        'value' => '4',
12622
-        'min' => '',
12623
-        'max' => '',
12624
-      ),
12625
-      'group' => '0',
12626
-      'exposed' => FALSE,
12627
-      'expose' => array(
12628
-        'operator' => FALSE,
12629
-        'label' => '',
12630
-      ),
12631
-      'id' => 'server_state',
12632
-      'table' => 'result',
12633
-      'field' => 'server_state',
12634
-      'override' => array(
12635
-        'button' => 'Use default',
12636
-      ),
12637
-      'relationship' => 'none',
12638
-    ),
12639
-  ));
12640
-  $handler->override_option('path', 'workunit/%/tasks/active');
12641
-  $handler->override_option('menu', array(
12642
-    'type' => 'tab',
12643
-    'title' => 'In progress',
12644
-    'description' => 'Show tasks in progress associated with the workunit',
12645
-    'weight' => '1',
12646
-    'name' => 'navigation',
12647
-  ));
12648
-  $handler->override_option('tab_options', array(
12649
-    'type' => 'none',
12650
-    'title' => '',
12651
-    'description' => '',
12652
-    'weight' => 0,
12653
-    'name' => 'navigation',
12654
-  ));
12655
-  $handler = $view->new_display('page', 'Invalidated', 'page_4');
12656
-  $handler->override_option('filters', array(
12657
-    'server_state' => array(
12658
-      'operator' => '=',
12659
-      'value' => array(
12660
-        'value' => '5',
12661
-        'min' => '',
12662
-        'max' => '',
12663
-      ),
12664
-      'group' => '0',
12665
-      'exposed' => FALSE,
12666
-      'expose' => array(
12667
-        'operator' => FALSE,
12668
-        'label' => '',
12669
-      ),
12670
-      'id' => 'server_state',
12671
-      'table' => 'result',
12672
-      'field' => 'server_state',
12673
-      'override' => array(
12674
-        'button' => 'Use default',
12675
-      ),
12676
-      'relationship' => 'none',
12677
-    ),
12678
-    'views_or_begin_2' => array(
12679
-      'id' => 'views_or_begin_2',
12680
-      'table' => 'views_or',
12681
-      'field' => 'views_or_begin',
12682
-    ),
12683
-    'outcome' => array(
12684
-      'operator' => '=',
12685
-      'value' => array(
12686
-        'value' => '6',
12687
-        'min' => '',
12688
-        'max' => '',
12689
-      ),
12690
-      'group' => '0',
12691
-      'exposed' => FALSE,
12692
-      'expose' => array(
12693
-        'operator' => FALSE,
12694
-        'label' => '',
12695
-      ),
12696
-      'id' => 'outcome',
12697
-      'table' => 'result',
12698
-      'field' => 'outcome',
12699
-      'override' => array(
12700
-        'button' => 'Use default',
12701
-      ),
12702
-      'relationship' => 'none',
12703
-    ),
12704
-    'views_or_next_3' => array(
12705
-      'id' => 'views_or_next_3',
12706
-      'table' => 'views_or',
12707
-      'field' => 'views_or_next',
12708
-    ),
12709
-    'outcome_1' => array(
12710
-      'operator' => '=',
12711
-      'value' => array(
12712
-        'value' => '1',
12713
-        'min' => '',
12714
-        'max' => '',
12715
-      ),
12716
-      'group' => '0',
12717
-      'exposed' => FALSE,
12718
-      'expose' => array(
12719
-        'operator' => FALSE,
12720
-        'label' => '',
12721
-      ),
12722
-      'id' => 'outcome_1',
12723
-      'table' => 'result',
12724
-      'field' => 'outcome',
12725
-      'override' => array(
12726
-        'button' => 'Use default',
12727
-      ),
12728
-      'relationship' => 'none',
12729
-    ),
12730
-    'views_or_begin' => array(
12731
-      'id' => 'views_or_begin',
12732
-      'table' => 'views_or',
12733
-      'field' => 'views_or_begin',
12734
-    ),
12735
-    'validate_state' => array(
12736
-      'operator' => '=',
12737
-      'value' => array(
12738
-        'value' => '2',
12739
-        'min' => '',
12740
-        'max' => '',
12741
-      ),
12742
-      'group' => '0',
12743
-      'exposed' => FALSE,
12744
-      'expose' => array(
12745
-        'operator' => FALSE,
12746
-        'label' => '',
12747
-      ),
12748
-      'id' => 'validate_state',
12749
-      'table' => 'result',
12750
-      'field' => 'validate_state',
12751
-      'override' => array(
12752
-        'button' => 'Use default',
12753
-      ),
12754
-      'relationship' => 'none',
12755
-    ),
12756
-    'views_or_next_4' => array(
12757
-      'id' => 'views_or_next_4',
12758
-      'table' => 'views_or',
12759
-      'field' => 'views_or_next',
12760
-    ),
12761
-    'validate_state_1' => array(
12762
-      'operator' => '=',
12763
-      'value' => array(
12764
-        'value' => '3',
12765
-        'min' => '',
12766
-        'max' => '',
12767
-      ),
12768
-      'group' => '0',
12769
-      'exposed' => FALSE,
12770
-      'expose' => array(
12771
-        'operator' => FALSE,
12772
-        'label' => '',
12773
-      ),
12774
-      'id' => 'validate_state_1',
12775
-      'table' => 'result',
12776
-      'field' => 'validate_state',
12777
-      'override' => array(
12778
-        'button' => 'Use default',
12779
-      ),
12780
-      'relationship' => 'none',
12781
-    ),
12782
-    'views_or_next' => array(
12783
-      'id' => 'views_or_next',
12784
-      'table' => 'views_or',
12785
-      'field' => 'views_or_next',
12786
-    ),
12787
-    'validate_state_2' => array(
12788
-      'operator' => '=',
12789
-      'value' => array(
12790
-        'value' => '5',
12791
-        'min' => '',
12792
-        'max' => '',
12793
-      ),
12794
-      'group' => '0',
12795
-      'exposed' => FALSE,
12796
-      'expose' => array(
12797
-        'operator' => FALSE,
12798
-        'label' => '',
12799
-      ),
12800
-      'id' => 'validate_state_2',
12801
-      'table' => 'result',
12802
-      'field' => 'validate_state',
12803
-      'override' => array(
12804
-        'button' => 'Use default',
12805
-      ),
12806
-      'relationship' => 'none',
12807
-    ),
12808
-    'views_or_end_3' => array(
12809
-      'id' => 'views_or_end_3',
12810
-      'table' => 'views_or',
12811
-      'field' => 'views_or_end',
12812
-    ),
12813
-    'views_or_end_2' => array(
12814
-      'id' => 'views_or_end_2',
12815
-      'table' => 'views_or',
12816
-      'field' => 'views_or_end',
12817
-    ),
12818
-  ));
12819
-  $handler->override_option('path', 'workunit/%/tasks/invalid');
12820
-  $handler->override_option('menu', array(
12821
-    'type' => 'tab',
12822
-    'title' => 'Invalid',
12823
-    'description' => 'Show invalidated tasks associated with the workunit',
12824
-    'weight' => '4',
12825
-    'name' => 'navigation',
12826
-  ));
12827
-  $handler->override_option('tab_options', array(
12828
-    'type' => 'none',
12829
-    'title' => '',
12830
-    'description' => '',
12831
-    'weight' => 0,
12832
-    'name' => 'navigation',
12833
-  ));
12834
-  $handler = $view->new_display('page', 'Pending', 'page_5');
12835
-  $handler->override_option('filters', array(
12836
-    'server_state' => array(
12837
-      'operator' => '=',
12838
-      'value' => array(
12839
-        'value' => '5',
12840
-        'min' => '',
12841
-        'max' => '',
12842
-      ),
12843
-      'group' => '0',
12844
-      'exposed' => FALSE,
12845
-      'expose' => array(
12846
-        'operator' => FALSE,
12847
-        'label' => '',
12848
-      ),
12849
-      'id' => 'server_state',
12850
-      'table' => 'result',
12851
-      'field' => 'server_state',
12852
-      'override' => array(
12853
-        'button' => 'Use default',
12854
-      ),
12855
-      'relationship' => 'none',
12856
-    ),
12857
-    'outcome' => array(
12858
-      'operator' => '=',
12859
-      'value' => array(
12860
-        'value' => '1',
12861
-        'min' => '',
12862
-        'max' => '',
12863
-      ),
12864
-      'group' => '0',
12865
-      'exposed' => FALSE,
12866
-      'expose' => array(
12867
-        'operator' => FALSE,
12868
-        'label' => '',
12869
-      ),
12870
-      'id' => 'outcome',
12871
-      'table' => 'result',
12872
-      'field' => 'outcome',
12873
-      'override' => array(
12874
-        'button' => 'Use default',
12875
-      ),
12876
-      'relationship' => 'none',
12877
-    ),
12878
-    'validate_state' => array(
12879
-      'operator' => '>=',
12880
-      'value' => array(
12881
-        'value' => '0',
12882
-        'min' => '',
12883
-        'max' => '',
12884
-      ),
12885
-      'group' => '0',
12886
-      'exposed' => FALSE,
12887
-      'expose' => array(
12888
-        'operator' => FALSE,
12889
-        'label' => '',
12890
-      ),
12891
-      'id' => 'validate_state',
12892
-      'table' => 'result',
12893
-      'field' => 'validate_state',
12894
-      'override' => array(
12895
-        'button' => 'Use default',
12896
-      ),
12897
-      'relationship' => 'none',
12898
-    ),
12899
-    'validate_state_1' => array(
12900
-      'operator' => 'not between',
12901
-      'value' => array(
12902
-        'value' => '',
12903
-        'min' => '0',
12904
-        'max' => '4',
12905
-      ),
12906
-      'group' => '0',
12907
-      'exposed' => FALSE,
12908
-      'expose' => array(
12909
-        'operator' => FALSE,
12910
-        'label' => '',
12911
-      ),
12912
-      'id' => 'validate_state_1',
12913
-      'table' => 'result',
12914
-      'field' => 'validate_state',
12915
-      'override' => array(
12916
-        'button' => 'Use default',
12917
-      ),
12918
-      'relationship' => 'none',
12919
-    ),
12920
-    'validate_state_2' => array(
12921
-      'operator' => '<=',
12922
-      'value' => array(
12923
-        'value' => '4',
12924
-        'min' => '',
12925
-        'max' => '',
12926
-      ),
12927
-      'group' => '0',
12928
-      'exposed' => FALSE,
12929
-      'expose' => array(
12930
-        'operator' => FALSE,
12931
-        'label' => '',
12932
-      ),
12933
-      'id' => 'validate_state_2',
12934
-      'table' => 'result',
12935
-      'field' => 'validate_state',
12936
-      'override' => array(
12937
-        'button' => 'Use default',
12938
-      ),
12939
-      'relationship' => 'none',
12940
-    ),
12941
-  ));
12942
-  $handler->override_option('path', 'workunit/%/tasks/pending');
12943
-  $handler->override_option('menu', array(
12944
-    'type' => 'tab',
12945
-    'title' => 'Pending',
12946
-    'description' => 'Show tasks associated with the workunit with results pending',
12947
-    'weight' => '2',
12948
-    'name' => 'navigation',
12949
-  ));
12950
-  $handler->override_option('tab_options', array(
12951
-    'type' => 'none',
12952
-    'title' => '',
12953
-    'description' => '',
12954
-    'weight' => 0,
12955
-    'name' => 'navigation',
12956
-  ));
12957
-  $handler = $view->new_display('page', 'Validated', 'page_6');
12958
-  $handler->override_option('filters', array(
12959
-    'server_state' => array(
12960
-      'operator' => '=',
12961
-      'value' => array(
12962
-        'value' => '5',
12963
-        'min' => '',
12964
-        'max' => '',
12965
-      ),
12966
-      'group' => '0',
12967
-      'exposed' => FALSE,
12968
-      'expose' => array(
12969
-        'operator' => FALSE,
12970
-        'label' => '',
12971
-      ),
12972
-      'id' => 'server_state',
12973
-      'table' => 'result',
12974
-      'field' => 'server_state',
12975
-      'override' => array(
12976
-        'button' => 'Use default',
12977
-      ),
12978
-      'relationship' => 'none',
12979
-    ),
12980
-    'outcome' => array(
12981
-      'operator' => '=',
12982
-      'value' => array(
12983
-        'value' => '1',
12984
-        'min' => '',
12985
-        'max' => '',
12986
-      ),
12987
-      'group' => '0',
12988
-      'exposed' => FALSE,
12989
-      'expose' => array(
12990
-        'operator' => FALSE,
12991
-        'label' => '',
12992
-      ),
12993
-      'id' => 'outcome',
12994
-      'table' => 'result',
12995
-      'field' => 'outcome',
12996
-      'override' => array(
12997
-        'button' => 'Use default',
12998
-      ),
12999
-      'relationship' => 'none',
13000
-    ),
13001
-    'validate_state' => array(
13002
-      'operator' => '=',
13003
-      'value' => array(
13004
-        'value' => '1',
13005
-        'min' => '',
13006
-        'max' => '',
13007
-      ),
13008
-      'group' => '0',
13009
-      'exposed' => FALSE,
13010
-      'expose' => array(
13011
-        'operator' => FALSE,
13012
-        'label' => '',
13013
-      ),
13014
-      'id' => 'validate_state',
13015
-      'table' => 'result',
13016
-      'field' => 'validate_state',
13017
-      'override' => array(
13018
-        'button' => 'Use default',
13019
-      ),
13020
-      'relationship' => 'none',
13021
-    ),
13022
-  ));
13023
-  $handler->override_option('path', 'workunit/%/tasks/valid');
13024
-  $handler->override_option('menu', array(
13025
-    'type' => 'tab',
13026
-    'title' => 'Valid',
13027
-    'description' => 'Show validated tasks associated with the workunit',
13028
-    'weight' => '3',
13029
-    'name' => 'navigation',
13030
-  ));
13031
-  $handler->override_option('tab_options', array(
13032
-    'type' => 'none',
13033
-    'title' => '',
13034
-    'description' => '',
13035
-    'weight' => 0,
13036
-    'name' => 'navigation',
13037
-  ));
12302
+  'exclude' => 0,
12303
+  'id' => 'phpcode_2',
12304
+  'table' => 'customfield',
12305
+  'field' => 'phpcode',
12306
+  'override' => array(
12307
+    'button' => 'Override',
12308
+  ),
12309
+  'relationship' => 'none',
12310
+),
12311
+));
12312
+$handler->override_option('arguments', array(
12313
+'workunitid' => array(
12314
+  'default_action' => 'not found',
12315
+  'style_plugin' => 'default_summary',
12316
+  'style_options' => array(),
12317
+  'wildcard' => 'all',
12318
+  'wildcard_substitution' => 'All',
12319
+  'title' => 'Tasks for workunit %1',
12320
+  'breadcrumb' => '',
12321
+  'default_argument_type' => 'fixed',
12322
+  'default_argument' => '',
12323
+  'validate_type' => 'numeric',
12324
+  'validate_fail' => 'not found',
12325
+  'id' => 'workunitid',
12326
+  'table' => 'result',
12327
+  'field' => 'workunitid',
12328
+  'validate_user_argument_type' => 'uid',
12329
+  'validate_user_roles' => array(
12330
+    2 => 0,
12331
+    4 => 0,
12332
+    7 => 0,
12333
+    5 => 0,
12334
+    3 => 0,
12335
+    6 => 0,
12336
+  ),
12337
+  'me_redirect' => 0,
12338
+  'me_validate_user_argument_type' => 'uid',
12339
+  'me_validate_user_roles' => array(
12340
+    2 => 0,
12341
+    4 => 0,
12342
+    7 => 0,
12343
+    5 => 0,
12344
+    3 => 0,
12345
+    6 => 0,
12346
+  ),
12347
+  'relationship' => 'none',
12348
+  'default_options_div_prefix' => '',
12349
+  'default_taxonomy_tid_term_page' => 0,
12350
+  'default_taxonomy_tid_node' => 0,
12351
+  'default_taxonomy_tid_limit' => 0,
12352
+  'default_taxonomy_tid_vids' => array(
12353
+    1 => 0,
12354
+    2 => 0,
12355
+  ),
12356
+  'default_argument_user' => 0,
12357
+  'default_argument_fixed' => '',
12358
+  'default_argument_php' => '',
12359
+  'validate_argument_node_type' => array(
12360
+    'page' => 0,
12361
+    'news' => 0,
12362
+    'profile' => 0,
12363
+    'forum' => 0,
12364
+    'panel' => 0,
12365
+    'story' => 0,
12366
+  ),
12367
+  'validate_argument_node_access' => 0,
12368
+  'validate_argument_nid_type' => 'nid',
12369
+  'validate_argument_vocabulary' => array(
12370
+    1 => 0,
12371
+    2 => 0,
12372
+  ),
12373
+  'validate_argument_type' => 'tid',
12374
+  'validate_argument_transform' => 0,
12375
+  'validate_user_restrict_roles' => 0,
12376
+  'validate_argument_node_flag_name' => '*relationship*',
12377
+  'validate_argument_node_flag_test' => 'flaggable',
12378
+  'validate_argument_node_flag_id_type' => 'id',
12379
+  'validate_argument_user_flag_name' => '*relationship*',
12380
+  'validate_argument_user_flag_test' => 'flaggable',
12381
+  'validate_argument_user_flag_id_type' => 'id',
12382
+  'validate_argument_php' => '',
12383
+  'me_validate_user_restrict_roles' => 0,
12384
+),
12385
+));
12386
+$handler->override_option('access', array(
12387
+'type' => 'none',
12388
+));
12389
+$handler->override_option('cache', array(
12390
+'type' => 'none',
12391
+));
12392
+$handler->override_option('items_per_page', 20);
12393
+$handler->override_option('use_pager', '1');
12394
+$handler->override_option('style_plugin', 'table');
12395
+$handler->override_option('style_options', array(
12396
+'grouping' => '',
12397
+'override' => 1,
12398
+'sticky' => 1,
12399
+'order' => 'asc',
12400
+'summary' => '',
12401
+'columns' => array(
12402
+  'id' => 'id',
12403
+  'hostid' => 'hostid',
12404
+  'sent_time' => 'sent_time',
12405
+  'received_time' => 'received_time',
12406
+  'report_deadline' => 'report_deadline',
12407
+  'phpcode_3' => 'phpcode_3',
12408
+  'phpcode' => 'phpcode',
12409
+  'server_state' => 'server_state',
12410
+  'outcome' => 'outcome',
12411
+  'client_state' => 'client_state',
12412
+  'validate_state' => 'validate_state',
12413
+  'exit_status' => 'exit_status',
12414
+  'phpcode_1' => 'phpcode_1',
12415
+  'elapsed_time' => 'elapsed_time',
12416
+  'cpu_time' => 'cpu_time',
12417
+  'claimed_credit_1' => 'claimed_credit_1',
12418
+  'granted_credit' => 'granted_credit',
12419
+  'app_version_id' => 'app_version_id',
12420
+  'phpcode_2' => 'phpcode_2',
12421
+),
12422
+'info' => array(
12423
+  'id' => array(
12424
+    'sortable' => 1,
12425
+    'separator' => '',
12426
+  ),
12427
+  'hostid' => array(
12428
+    'sortable' => 1,
12429
+    'separator' => '',
12430
+  ),
12431
+  'sent_time' => array(
12432
+    'sortable' => 1,
12433
+    'separator' => '',
12434
+  ),
12435
+  'received_time' => array(
12436
+    'sortable' => 1,
12437
+    'separator' => '',
12438
+  ),
12439
+  'report_deadline' => array(
12440
+    'sortable' => 1,
12441
+    'separator' => '',
12442
+  ),
12443
+  'phpcode_3' => array(
12444
+    'separator' => '',
12445
+  ),
12446
+  'phpcode' => array(
12447
+    'separator' => '',
12448
+  ),
12449
+  'server_state' => array(
12450
+    'sortable' => 0,
12451
+    'separator' => '',
12452
+  ),
12453
+  'outcome' => array(
12454
+    'sortable' => 0,
12455
+    'separator' => '',
12456
+  ),
12457
+  'client_state' => array(
12458
+    'sortable' => 0,
12459
+    'separator' => '',
12460
+  ),
12461
+  'validate_state' => array(
12462
+    'sortable' => 0,
12463
+    'separator' => '',
12464
+  ),
12465
+  'exit_status' => array(
12466
+    'sortable' => 0,
12467
+    'separator' => '',
12468
+  ),
12469
+  'phpcode_1' => array(
12470
+    'separator' => '',
12471
+  ),
12472
+  'elapsed_time' => array(
12473
+    'sortable' => 1,
12474
+    'separator' => '',
12475
+  ),
12476
+  'cpu_time' => array(
12477
+    'sortable' => 1,
12478
+    'separator' => '',
12479
+  ),
12480
+  'claimed_credit_1' => array(
12481
+    'sortable' => 1,
12482
+    'separator' => '',
12483
+  ),
12484
+  'granted_credit' => array(
12485
+    'sortable' => 1,
12486
+    'separator' => '',
12487
+  ),
12488
+  'app_version_id' => array(
12489
+    'sortable' => 1,
12490
+    'separator' => '',
12491
+  ),
12492
+  'phpcode_2' => array(
12493
+    'separator' => '',
12494
+  ),
12495
+),
12496
+'default' => 'id',
12497
+));
12498
+$handler = $view->new_display('page', 'All tasks', 'page_1');
12499
+$handler->override_option('path', 'workunit/%/tasks/all');
12500
+$handler->override_option('menu', array(
12501
+'type' => 'default tab',
12502
+'title' => 'All tasks',
12503
+'description' => 'Show all tasks associated with the workunit',
12504
+'weight' => '0',
12505
+'name' => 'navigation',
12506
+));
12507
+$handler->override_option('tab_options', array(
12508
+'type' => 'tab',
12509
+'title' => 'Tasks',
12510
+'description' => 'Show all tasks',
12511
+'weight' => '0',
12512
+'name' => 'secondary-links',
12513
+));
12514
+$handler = $view->new_display('page', 'Error', 'page_2');
12515
+$handler->override_option('filters', array(
12516
+'server_state' => array(
12517
+  'operator' => '=',
12518
+  'value' => array(
12519
+    'value' => '5',
12520
+    'min' => '',
12521
+    'max' => '',
12522
+  ),
12523
+  'group' => '0',
12524
+  'exposed' => FALSE,
12525
+  'expose' => array(
12526
+    'operator' => FALSE,
12527
+    'label' => '',
12528
+  ),
12529
+  'id' => 'server_state',
12530
+  'table' => 'result',
12531
+  'field' => 'server_state',
12532
+  'override' => array(
12533
+    'button' => 'Use default',
12534
+  ),
12535
+  'relationship' => 'none',
12536
+),
12537
+'outcome' => array(
12538
+  'operator' => '>=',
12539
+  'value' => array(
12540
+    'value' => '3',
12541
+    'min' => '',
12542
+    'max' => '',
12543
+  ),
12544
+  'group' => '0',
12545
+  'exposed' => FALSE,
12546
+  'expose' => array(
12547
+    'operator' => FALSE,
12548
+    'label' => '',
12549
+  ),
12550
+  'id' => 'outcome',
12551
+  'table' => 'result',
12552
+  'field' => 'outcome',
12553
+  'override' => array(
12554
+    'button' => 'Use default',
12555
+  ),
12556
+  'relationship' => 'none',
12557
+),
12558
+'outcome_1' => array(
12559
+  'operator' => 'not between',
12560
+  'value' => array(
12561
+    'value' => '',
12562
+    'min' => '4',
12563
+    'max' => '7',
12564
+  ),
12565
+  'group' => '0',
12566
+  'exposed' => FALSE,
12567
+  'expose' => array(
12568
+    'operator' => FALSE,
12569
+    'label' => '',
12570
+  ),
12571
+  'id' => 'outcome_1',
12572
+  'table' => 'result',
12573
+  'field' => 'outcome',
12574
+  'override' => array(
12575
+    'button' => 'Use default',
12576
+  ),
12577
+  'relationship' => 'none',
12578
+),
12579
+'outcome_2' => array(
12580
+  'operator' => '<=',
12581
+  'value' => array(
12582
+    'value' => '7',
12583
+    'min' => '',
12584
+    'max' => '',
12585
+  ),
12586
+  'group' => '0',
12587
+  'exposed' => FALSE,
12588
+  'expose' => array(
12589
+    'operator' => FALSE,
12590
+    'label' => '',
12591
+  ),
12592
+  'id' => 'outcome_2',
12593
+  'table' => 'result',
12594
+  'field' => 'outcome',
12595
+  'override' => array(
12596
+    'button' => 'Use default',
12597
+  ),
12598
+  'relationship' => 'none',
12599
+),
12600
+));
12601
+$handler->override_option('path', 'workunit/%/tasks/error');
12602
+$handler->override_option('menu', array(
12603
+'type' => 'tab',
12604
+'title' => 'Error',
12605
+'description' => 'Show tasks with errors associated with the workunit',
12606
+'weight' => '5',
12607
+'name' => 'navigation',
12608
+));
12609
+$handler->override_option('tab_options', array(
12610
+'type' => 'none',
12611
+'title' => '',
12612
+'description' => '',
12613
+'weight' => 0,
12614
+'name' => 'navigation',
12615
+));
12616
+$handler = $view->new_display('page', 'In progress', 'page_3');
12617
+$handler->override_option('filters', array(
12618
+'server_state' => array(
12619
+  'operator' => '=',
12620
+  'value' => array(
12621
+    'value' => '4',
12622
+    'min' => '',
12623
+    'max' => '',
12624
+  ),
12625
+  'group' => '0',
12626
+  'exposed' => FALSE,
12627
+  'expose' => array(
12628
+    'operator' => FALSE,
12629
+    'label' => '',
12630
+  ),
12631
+  'id' => 'server_state',
12632
+  'table' => 'result',
12633
+  'field' => 'server_state',
12634
+  'override' => array(
12635
+    'button' => 'Use default',
12636
+  ),
12637
+  'relationship' => 'none',
12638
+),
12639
+));
12640
+$handler->override_option('path', 'workunit/%/tasks/active');
12641
+$handler->override_option('menu', array(
12642
+'type' => 'tab',
12643
+'title' => 'In progress',
12644
+'description' => 'Show tasks in progress associated with the workunit',
12645
+'weight' => '1',
12646
+'name' => 'navigation',
12647
+));
12648
+$handler->override_option('tab_options', array(
12649
+'type' => 'none',
12650
+'title' => '',
12651
+'description' => '',
12652
+'weight' => 0,
12653
+'name' => 'navigation',
12654
+));
12655
+$handler = $view->new_display('page', 'Invalidated', 'page_4');
12656
+$handler->override_option('filters', array(
12657
+'server_state' => array(
12658
+  'operator' => '=',
12659
+  'value' => array(
12660
+    'value' => '5',
12661
+    'min' => '',
12662
+    'max' => '',
12663
+  ),
12664
+  'group' => '0',
12665
+  'exposed' => FALSE,
12666
+  'expose' => array(
12667
+    'operator' => FALSE,
12668
+    'label' => '',
12669
+  ),
12670
+  'id' => 'server_state',
12671
+  'table' => 'result',
12672
+  'field' => 'server_state',
12673
+  'override' => array(
12674
+    'button' => 'Use default',
12675
+  ),
12676
+  'relationship' => 'none',
12677
+),
12678
+'views_or_begin_2' => array(
12679
+  'id' => 'views_or_begin_2',
12680
+  'table' => 'views_or',
12681
+  'field' => 'views_or_begin',
12682
+),
12683
+'outcome' => array(
12684
+  'operator' => '=',
12685
+  'value' => array(
12686
+    'value' => '6',
12687
+    'min' => '',
12688
+    'max' => '',
12689
+  ),
12690
+  'group' => '0',
12691
+  'exposed' => FALSE,
12692
+  'expose' => array(
12693
+    'operator' => FALSE,
12694
+    'label' => '',
12695
+  ),
12696
+  'id' => 'outcome',
12697
+  'table' => 'result',
12698
+  'field' => 'outcome',
12699
+  'override' => array(
12700
+    'button' => 'Use default',
12701
+  ),
12702
+  'relationship' => 'none',
12703
+),
12704
+'views_or_next_3' => array(
12705
+  'id' => 'views_or_next_3',
12706
+  'table' => 'views_or',
12707
+  'field' => 'views_or_next',
12708
+),
12709
+'outcome_1' => array(
12710
+  'operator' => '=',
12711
+  'value' => array(
12712
+    'value' => '1',
12713
+    'min' => '',
12714
+    'max' => '',
12715
+  ),
12716
+  'group' => '0',
12717
+  'exposed' => FALSE,
12718
+  'expose' => array(
12719
+    'operator' => FALSE,
12720
+    'label' => '',
12721
+  ),
12722
+  'id' => 'outcome_1',
12723
+  'table' => 'result',
12724
+  'field' => 'outcome',
12725
+  'override' => array(
12726
+    'button' => 'Use default',
12727
+  ),
12728
+  'relationship' => 'none',
12729
+),
12730
+'views_or_begin' => array(
12731
+  'id' => 'views_or_begin',
12732
+  'table' => 'views_or',
12733
+  'field' => 'views_or_begin',
12734
+),
12735
+'validate_state' => array(
12736
+  'operator' => '=',
12737
+  'value' => array(
12738
+    'value' => '2',
12739
+    'min' => '',
12740
+    'max' => '',
12741
+  ),
12742
+  'group' => '0',
12743
+  'exposed' => FALSE,
12744
+  'expose' => array(
12745
+    'operator' => FALSE,
12746
+    'label' => '',
12747
+  ),
12748
+  'id' => 'validate_state',
12749
+  'table' => 'result',
12750
+  'field' => 'validate_state',
12751
+  'override' => array(
12752
+    'button' => 'Use default',
12753
+  ),
12754
+  'relationship' => 'none',
12755
+),
12756
+'views_or_next_4' => array(
12757
+  'id' => 'views_or_next_4',
12758
+  'table' => 'views_or',
12759
+  'field' => 'views_or_next',
12760
+),
12761
+'validate_state_1' => array(
12762
+  'operator' => '=',
12763
+  'value' => array(
12764
+    'value' => '3',
12765
+    'min' => '',
12766
+    'max' => '',
12767
+  ),
12768
+  'group' => '0',
12769
+  'exposed' => FALSE,
12770
+  'expose' => array(
12771
+    'operator' => FALSE,
12772
+    'label' => '',
12773
+  ),
12774
+  'id' => 'validate_state_1',
12775
+  'table' => 'result',
12776
+  'field' => 'validate_state',
12777
+  'override' => array(
12778
+    'button' => 'Use default',
12779
+  ),
12780
+  'relationship' => 'none',
12781
+),
12782
+'views_or_next' => array(
12783
+  'id' => 'views_or_next',
12784
+  'table' => 'views_or',
12785
+  'field' => 'views_or_next',
12786
+),
12787
+'validate_state_2' => array(
12788
+  'operator' => '=',
12789
+  'value' => array(
12790
+    'value' => '5',
12791
+    'min' => '',
12792
+    'max' => '',
12793
+  ),
12794
+  'group' => '0',
12795
+  'exposed' => FALSE,
12796
+  'expose' => array(
12797
+    'operator' => FALSE,
12798
+    'label' => '',
12799
+  ),
12800
+  'id' => 'validate_state_2',
12801
+  'table' => 'result',
12802
+  'field' => 'validate_state',
12803
+  'override' => array(
12804
+    'button' => 'Use default',
12805
+  ),
12806
+  'relationship' => 'none',
12807
+),
12808
+'views_or_end_3' => array(
12809
+  'id' => 'views_or_end_3',
12810
+  'table' => 'views_or',
12811
+  'field' => 'views_or_end',
12812
+),
12813
+'views_or_end_2' => array(
12814
+  'id' => 'views_or_end_2',
12815
+  'table' => 'views_or',
12816
+  'field' => 'views_or_end',
12817
+),
12818
+));
12819
+$handler->override_option('path', 'workunit/%/tasks/invalid');
12820
+$handler->override_option('menu', array(
12821
+'type' => 'tab',
12822
+'title' => 'Invalid',
12823
+'description' => 'Show invalidated tasks associated with the workunit',
12824
+'weight' => '4',
12825
+'name' => 'navigation',
12826
+));
12827
+$handler->override_option('tab_options', array(
12828
+'type' => 'none',
12829
+'title' => '',
12830
+'description' => '',
12831
+'weight' => 0,
12832
+'name' => 'navigation',
12833
+));
12834
+$handler = $view->new_display('page', 'Pending', 'page_5');
12835
+$handler->override_option('filters', array(
12836
+'server_state' => array(
12837
+  'operator' => '=',
12838
+  'value' => array(
12839
+    'value' => '5',
12840
+    'min' => '',
12841
+    'max' => '',
12842
+  ),
12843
+  'group' => '0',
12844
+  'exposed' => FALSE,
12845
+  'expose' => array(
12846
+    'operator' => FALSE,
12847
+    'label' => '',
12848
+  ),
12849
+  'id' => 'server_state',
12850
+  'table' => 'result',
12851
+  'field' => 'server_state',
12852
+  'override' => array(
12853
+    'button' => 'Use default',
12854
+  ),
12855
+  'relationship' => 'none',
12856
+),
12857
+'outcome' => array(
12858
+  'operator' => '=',
12859
+  'value' => array(
12860
+    'value' => '1',
12861
+    'min' => '',
12862
+    'max' => '',
12863
+  ),
12864
+  'group' => '0',
12865
+  'exposed' => FALSE,
12866
+  'expose' => array(
12867
+    'operator' => FALSE,
12868
+    'label' => '',
12869
+  ),
12870
+  'id' => 'outcome',
12871
+  'table' => 'result',
12872
+  'field' => 'outcome',
12873
+  'override' => array(
12874
+    'button' => 'Use default',
12875
+  ),
12876
+  'relationship' => 'none',
12877
+),
12878
+'validate_state' => array(
12879
+  'operator' => '>=',
12880
+  'value' => array(
12881
+    'value' => '0',
12882
+    'min' => '',
12883
+    'max' => '',
12884
+  ),
12885
+  'group' => '0',
12886
+  'exposed' => FALSE,
12887
+  'expose' => array(
12888
+    'operator' => FALSE,
12889
+    'label' => '',
12890
+  ),
12891
+  'id' => 'validate_state',
12892
+  'table' => 'result',
12893
+  'field' => 'validate_state',
12894
+  'override' => array(
12895
+    'button' => 'Use default',
12896
+  ),
12897
+  'relationship' => 'none',
12898
+),
12899
+'validate_state_1' => array(
12900
+  'operator' => 'not between',
12901
+  'value' => array(
12902
+    'value' => '',
12903
+    'min' => '0',
12904
+    'max' => '4',
12905
+  ),
12906
+  'group' => '0',
12907
+  'exposed' => FALSE,
12908
+  'expose' => array(
12909
+    'operator' => FALSE,
12910
+    'label' => '',
12911
+  ),
12912
+  'id' => 'validate_state_1',
12913
+  'table' => 'result',
12914
+  'field' => 'validate_state',
12915
+  'override' => array(
12916
+    'button' => 'Use default',
12917
+  ),
12918
+  'relationship' => 'none',
12919
+),
12920
+'validate_state_2' => array(
12921
+  'operator' => '<=',
12922
+  'value' => array(
12923
+    'value' => '4',
12924
+    'min' => '',
12925
+    'max' => '',
12926
+  ),
12927
+  'group' => '0',
12928
+  'exposed' => FALSE,
12929
+  'expose' => array(
12930
+    'operator' => FALSE,
12931
+    'label' => '',
12932
+  ),
12933
+  'id' => 'validate_state_2',
12934
+  'table' => 'result',
12935
+  'field' => 'validate_state',
12936
+  'override' => array(
12937
+    'button' => 'Use default',
12938
+  ),
12939
+  'relationship' => 'none',
12940
+),
12941
+));
12942
+$handler->override_option('path', 'workunit/%/tasks/pending');
12943
+$handler->override_option('menu', array(
12944
+'type' => 'tab',
12945
+'title' => 'Pending',
12946
+'description' => 'Show tasks associated with the workunit with results pending',
12947
+'weight' => '2',
12948
+'name' => 'navigation',
12949
+));
12950
+$handler->override_option('tab_options', array(
12951
+'type' => 'none',
12952
+'title' => '',
12953
+'description' => '',
12954
+'weight' => 0,
12955
+'name' => 'navigation',
12956
+));
12957
+$handler = $view->new_display('page', 'Validated', 'page_6');
12958
+$handler->override_option('filters', array(
12959
+'server_state' => array(
12960
+  'operator' => '=',
12961
+  'value' => array(
12962
+    'value' => '5',
12963
+    'min' => '',
12964
+    'max' => '',
12965
+  ),
12966
+  'group' => '0',
12967
+  'exposed' => FALSE,
12968
+  'expose' => array(
12969
+    'operator' => FALSE,
12970
+    'label' => '',
12971
+  ),
12972
+  'id' => 'server_state',
12973
+  'table' => 'result',
12974
+  'field' => 'server_state',
12975
+  'override' => array(
12976
+    'button' => 'Use default',
12977
+  ),
12978
+  'relationship' => 'none',
12979
+),
12980
+'outcome' => array(
12981
+  'operator' => '=',
12982
+  'value' => array(
12983
+    'value' => '1',
12984
+    'min' => '',
12985
+    'max' => '',
12986
+  ),
12987
+  'group' => '0',
12988
+  'exposed' => FALSE,
12989
+  'expose' => array(
12990
+    'operator' => FALSE,
12991
+    'label' => '',
12992
+  ),
12993
+  'id' => 'outcome',
12994
+  'table' => 'result',
12995
+  'field' => 'outcome',
12996
+  'override' => array(
12997
+    'button' => 'Use default',
12998
+  ),
12999
+  'relationship' => 'none',
13000
+),
13001
+'validate_state' => array(
13002
+  'operator' => '=',
13003
+  'value' => array(
13004
+    'value' => '1',
13005
+    'min' => '',
13006
+    'max' => '',
13007
+  ),
13008
+  'group' => '0',
13009
+  'exposed' => FALSE,
13010
+  'expose' => array(
13011
+    'operator' => FALSE,
13012
+    'label' => '',
13013
+  ),
13014
+  'id' => 'validate_state',
13015
+  'table' => 'result',
13016
+  'field' => 'validate_state',
13017
+  'override' => array(
13018
+    'button' => 'Use default',
13019
+  ),
13020
+  'relationship' => 'none',
13021
+),
13022
+));
13023
+$handler->override_option('path', 'workunit/%/tasks/valid');
13024
+$handler->override_option('menu', array(
13025
+'type' => 'tab',
13026
+'title' => 'Valid',
13027
+'description' => 'Show validated tasks associated with the workunit',
13028
+'weight' => '3',
13029
+'name' => 'navigation',
13030
+));
13031
+$handler->override_option('tab_options', array(
13032
+'type' => 'none',
13033
+'title' => '',
13034
+'description' => '',
13035
+'weight' => 0,
13036
+'name' => 'navigation',
13037
+));
13038 13038
 
13039
-  $views[$view->name] = $view;
13039
+$views[$view->name] = $view;
13040 13040
 
13041
-  return $views;
13041
+return $views;
13042 13042
 }
Please login to merge, or discard this patch.
sites/all/features/work_and_host_stats/work_and_host_stats.features.inc 1 patch
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function work_and_host_stats_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "page_manager" && $api == "pages_default") {
9
-    return array("version" => 1);
10
-  }
7
+list($module, $api) = func_get_args();
8
+if ($module == "page_manager" && $api == "pages_default") {
9
+return array("version" => 1);
10
+}
11 11
 }
12 12
 
13 13
 /**
14 14
  * Implementation of hook_views_api().
15 15
  */
16 16
 function work_and_host_stats_views_api() {
17
-  return array(
18
-    'api' => '2',
19
-  );
17
+return array(
18
+'api' => '2',
19
+);
20 20
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/teams/teams.strongarm.inc 1 patch
Switch Indentation   +70 added lines, -70 removed lines patch added patch discarded remove patch
@@ -4,86 +4,86 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function teams_strongarm() {
7
-  $export = array();
7
+$export = array();
8 8
 
9
-  $strongarm = new stdClass;
10
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
-  $strongarm->api_version = 1;
12
-  $strongarm->name = 'comment_anonymous_team';
13
-  $strongarm->value = 0;
14
-  $export['comment_anonymous_team'] = $strongarm;
9
+$strongarm = new stdClass;
10
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
11
+$strongarm->api_version = 1;
12
+$strongarm->name = 'comment_anonymous_team';
13
+$strongarm->value = 0;
14
+$export['comment_anonymous_team'] = $strongarm;
15 15
 
16
-  $strongarm = new stdClass;
17
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
18
-  $strongarm->api_version = 1;
19
-  $strongarm->name = 'comment_controls_team';
20
-  $strongarm->value = '3';
21
-  $export['comment_controls_team'] = $strongarm;
16
+$strongarm = new stdClass;
17
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
18
+$strongarm->api_version = 1;
19
+$strongarm->name = 'comment_controls_team';
20
+$strongarm->value = '3';
21
+$export['comment_controls_team'] = $strongarm;
22 22
 
23
-  $strongarm = new stdClass;
24
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
25
-  $strongarm->api_version = 1;
26
-  $strongarm->name = 'comment_default_mode_team';
27
-  $strongarm->value = '4';
28
-  $export['comment_default_mode_team'] = $strongarm;
23
+$strongarm = new stdClass;
24
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
25
+$strongarm->api_version = 1;
26
+$strongarm->name = 'comment_default_mode_team';
27
+$strongarm->value = '4';
28
+$export['comment_default_mode_team'] = $strongarm;
29 29
 
30
-  $strongarm = new stdClass;
31
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
32
-  $strongarm->api_version = 1;
33
-  $strongarm->name = 'comment_default_order_team';
34
-  $strongarm->value = '1';
35
-  $export['comment_default_order_team'] = $strongarm;
30
+$strongarm = new stdClass;
31
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
32
+$strongarm->api_version = 1;
33
+$strongarm->name = 'comment_default_order_team';
34
+$strongarm->value = '1';
35
+$export['comment_default_order_team'] = $strongarm;
36 36
 
37
-  $strongarm = new stdClass;
38
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
39
-  $strongarm->api_version = 1;
40
-  $strongarm->name = 'comment_default_per_page_team';
41
-  $strongarm->value = '50';
42
-  $export['comment_default_per_page_team'] = $strongarm;
37
+$strongarm = new stdClass;
38
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
39
+$strongarm->api_version = 1;
40
+$strongarm->name = 'comment_default_per_page_team';
41
+$strongarm->value = '50';
42
+$export['comment_default_per_page_team'] = $strongarm;
43 43
 
44
-  $strongarm = new stdClass;
45
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
46
-  $strongarm->api_version = 1;
47
-  $strongarm->name = 'comment_form_location_team';
48
-  $strongarm->value = '0';
49
-  $export['comment_form_location_team'] = $strongarm;
44
+$strongarm = new stdClass;
45
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
46
+$strongarm->api_version = 1;
47
+$strongarm->name = 'comment_form_location_team';
48
+$strongarm->value = '0';
49
+$export['comment_form_location_team'] = $strongarm;
50 50
 
51
-  $strongarm = new stdClass;
52
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
53
-  $strongarm->api_version = 1;
54
-  $strongarm->name = 'comment_preview_team';
55
-  $strongarm->value = '1';
56
-  $export['comment_preview_team'] = $strongarm;
51
+$strongarm = new stdClass;
52
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
53
+$strongarm->api_version = 1;
54
+$strongarm->name = 'comment_preview_team';
55
+$strongarm->value = '1';
56
+$export['comment_preview_team'] = $strongarm;
57 57
 
58
-  $strongarm = new stdClass;
59
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
60
-  $strongarm->api_version = 1;
61
-  $strongarm->name = 'comment_subject_field_team';
62
-  $strongarm->value = '1';
63
-  $export['comment_subject_field_team'] = $strongarm;
58
+$strongarm = new stdClass;
59
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
60
+$strongarm->api_version = 1;
61
+$strongarm->name = 'comment_subject_field_team';
62
+$strongarm->value = '1';
63
+$export['comment_subject_field_team'] = $strongarm;
64 64
 
65
-  $strongarm = new stdClass;
66
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
67
-  $strongarm->api_version = 1;
68
-  $strongarm->name = 'comment_team';
69
-  $strongarm->value = '0';
70
-  $export['comment_team'] = $strongarm;
65
+$strongarm = new stdClass;
66
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
67
+$strongarm->api_version = 1;
68
+$strongarm->name = 'comment_team';
69
+$strongarm->value = '0';
70
+$export['comment_team'] = $strongarm;
71 71
 
72
-  $strongarm = new stdClass;
73
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
74
-  $strongarm->api_version = 1;
75
-  $strongarm->name = 'node_options_team';
76
-  $strongarm->value = array(
77
-    0 => 'status',
78
-  );
79
-  $export['node_options_team'] = $strongarm;
72
+$strongarm = new stdClass;
73
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
74
+$strongarm->api_version = 1;
75
+$strongarm->name = 'node_options_team';
76
+$strongarm->value = array(
77
+0 => 'status',
78
+);
79
+$export['node_options_team'] = $strongarm;
80 80
 
81
-  $strongarm = new stdClass;
82
-  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
83
-  $strongarm->api_version = 1;
84
-  $strongarm->name = 'upload_team';
85
-  $strongarm->value = '0';
86
-  $export['upload_team'] = $strongarm;
81
+$strongarm = new stdClass;
82
+$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
83
+$strongarm->api_version = 1;
84
+$strongarm->name = 'upload_team';
85
+$strongarm->value = '0';
86
+$export['upload_team'] = $strongarm;
87 87
 
88
-  return $export;
88
+return $export;
89 89
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/teams/teams.pages_default.inc 1 patch
Switch Indentation   +1782 added lines, -1782 removed lines patch added patch discarded remove patch
@@ -4,1670 +4,1670 @@  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(
16
-    'plugins' => array(
17
-      0 => array(
18
-        'name' => 'perm',
19
-        'settings' => array(
20
-          'perm' => 'create boincteam',
21
-        ),
22
-        'context' => 'logged-in-user',
23
-        'not' => FALSE,
24
-      ),
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
+'plugins' => array(
17
+  0 => array(
18
+    'name' => 'perm',
19
+    'settings' => array(
20
+      'perm' => 'create boincteam',
25 21
     ),
26
-    'logic' => 'and',
27
-    'type' => 'none',
28
-    'settings' => NULL,
29
-  );
30
-  $page->menu = array(
31
-    'type' => 'none',
32
-    'title' => 'Teams',
33
-    'name' => 'navigation',
34
-    'weight' => '10',
35
-    'parent' => array(
36
-      'type' => 'none',
37
-      'title' => '',
38
-      'name' => 'navigation',
39
-      'weight' => '0',
22
+    'context' => 'logged-in-user',
23
+    'not' => FALSE,
24
+  ),
25
+),
26
+'logic' => 'and',
27
+'type' => 'none',
28
+'settings' => NULL,
29
+);
30
+$page->menu = array(
31
+'type' => 'none',
32
+'title' => 'Teams',
33
+'name' => 'navigation',
34
+'weight' => '10',
35
+'parent' => array(
36
+  'type' => 'none',
37
+  'title' => '',
38
+  'name' => 'navigation',
39
+  'weight' => '0',
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(
54
+'title' => 'Panel',
55
+'no_blocks' => 0,
56
+'pipeline' => 'standard',
57
+'css_id' => '',
58
+'css' => '',
59
+'contexts' => array(),
60
+'relationships' => array(),
61
+);
62
+$display = new panels_display;
63
+$display->layout = 'twocol_stacked';
64
+$display->layout_settings = array(
65
+'items' => array(
66
+  'canvas' => array(
67
+    'type' => 'row',
68
+    'contains' => 'column',
69
+    'children' => array(
70
+      0 => 'main',
71
+      1 => 2,
40 72
     ),
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
-    'title' => 'Panel',
55
-    'no_blocks' => 0,
56
-    'pipeline' => 'standard',
57
-    'css_id' => '',
58
-    'css' => '',
59
-    'contexts' => array(),
60
-    'relationships' => array(),
61
-  );
62
-  $display = new panels_display;
63
-  $display->layout = 'twocol_stacked';
64
-  $display->layout_settings = array(
65
-    'items' => array(
66
-      'canvas' => array(
67
-        'type' => 'row',
68
-        'contains' => 'column',
69
-        'children' => array(
70
-          0 => 'main',
71
-          1 => 2,
72
-        ),
73
-        'parent' => NULL,
74
-      ),
75
-      'main' => array(
76
-        'type' => 'column',
77
-        'width' => 50,
78
-        'width_type' => '%',
79
-        'children' => array(
80
-          0 => 'main-row',
81
-          1 => 1,
82
-        ),
83
-        'parent' => 'canvas',
84
-      ),
85
-      'main-row' => array(
86
-        'type' => 'row',
87
-        'contains' => 'region',
88
-        'children' => array(
89
-          0 => 'center',
90
-        ),
91
-        'parent' => 'main',
92
-      ),
93
-      'center' => array(
94
-        'type' => 'region',
95
-        'title' => 'Center',
96
-        'width' => 100,
97
-        'width_type' => '%',
98
-        'parent' => 'main-row',
99
-      ),
100
-      1 => array(
101
-        'type' => 'row',
102
-        'contains' => 'region',
103
-        'children' => array(
104
-          0 => 'top_teams',
105
-        ),
106
-        'parent' => 'main',
107
-        'class' => 'panel-primary container shadow',
108
-      ),
109
-      'top_teams' => array(
110
-        'type' => 'region',
111
-        'title' => 'Top teams',
112
-        'width' => 100,
113
-        'width_type' => '%',
114
-        'parent' => '1',
115
-        'class' => 'panel-primary container shadow',
116
-      ),
117
-      2 => array(
118
-        'type' => 'column',
119
-        'width' => 50,
120
-        'width_type' => '%',
121
-        'parent' => 'canvas',
122
-        'children' => array(),
123
-        'class' => '',
124
-      ),
73
+    'parent' => NULL,
74
+  ),
75
+  'main' => array(
76
+    'type' => 'column',
77
+    'width' => 50,
78
+    'width_type' => '%',
79
+    'children' => array(
80
+      0 => 'main-row',
81
+      1 => 1,
82
+    ),
83
+    'parent' => 'canvas',
84
+  ),
85
+  'main-row' => array(
86
+    'type' => 'row',
87
+    'contains' => 'region',
88
+    'children' => array(
89
+      0 => 'center',
125 90
     ),
126
-  );
127
-  $display->panel_settings = array(
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,
91
+    'parent' => 'main',
92
+  ),
93
+  'center' => array(
94
+    'type' => 'region',
95
+    'title' => 'Center',
96
+    'width' => 100,
97
+    'width_type' => '%',
98
+    'parent' => 'main-row',
99
+  ),
100
+  1 => array(
101
+    'type' => 'row',
102
+    'contains' => 'region',
103
+    'children' => array(
104
+      0 => 'top_teams',
138 105
     ),
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
-    $pane = new stdClass;
147
-    $pane->pid = 'new-1';
148
-    $pane->panel = 'left';
149
-    $pane->type = 'custom';
150
-    $pane->subtype = 'custom';
151
-    $pane->shown = TRUE;
152
-    $pane->access = array();
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,
159
-    );
160
-    $pane->cache = array();
161
-    $pane->style = array(
162
-      'settings' => NULL,
163
-    );
164
-    $pane->css = array(
165
-      'css_id' => '',
166
-      'css_class' => 'panel-primary container shadow',
167
-    );
168
-    $pane->extras = array();
169
-    $pane->position = 0;
170
-    $display->content['new-1'] = $pane;
171
-    $display->panels['left'][0] = 'new-1';
172
-    $pane = new stdClass;
173
-    $pane->pid = 'new-2';
174
-    $pane->panel = 'right';
175
-    $pane->type = 'custom';
176
-    $pane->subtype = 'custom';
177
-    $pane->shown = TRUE;
178
-    $pane->access = array();
179
-    $pane->configuration = array(
180
-      'admin_title' => 'Search teams',
181
-      'title' => '',
182
-      'body' => '<?php echo boincteam_search_panel(); ?>',
183
-      'format' => '3',
184
-      'substitute' => TRUE,
185
-    );
186
-    $pane->cache = array();
187
-    $pane->style = array(
188
-      'settings' => NULL,
189
-    );
190
-    $pane->css = array(
191
-      'css_id' => '',
192
-      'css_class' => 'panel-secondary container shadow',
193
-    );
194
-    $pane->extras = array();
195
-    $pane->position = 0;
196
-    $display->content['new-2'] = $pane;
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;
106
+    'parent' => 'main',
107
+    'class' => 'panel-primary container shadow',
108
+  ),
109
+  'top_teams' => array(
110
+    'type' => 'region',
111
+    'title' => 'Top teams',
112
+    'width' => 100,
113
+    'width_type' => '%',
114
+    'parent' => '1',
115
+    'class' => 'panel-primary container shadow',
116
+  ),
117
+  2 => array(
118
+    'type' => 'column',
119
+    'width' => 50,
120
+    'width_type' => '%',
121
+    'parent' => 'canvas',
122
+    'children' => array(),
123
+    'class' => '',
124
+  ),
125
+),
126
+);
127
+$display->panel_settings = array(
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,
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();
146
+$pane = new stdClass;
147
+$pane->pid = 'new-1';
148
+$pane->panel = 'left';
149
+$pane->type = 'custom';
150
+$pane->subtype = 'custom';
151
+$pane->shown = TRUE;
152
+$pane->access = array();
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,
159
+);
160
+$pane->cache = array();
161
+$pane->style = array(
162
+  'settings' => NULL,
163
+);
164
+$pane->css = array(
165
+  'css_id' => '',
166
+  'css_class' => 'panel-primary container shadow',
167
+);
168
+$pane->extras = array();
169
+$pane->position = 0;
170
+$display->content['new-1'] = $pane;
171
+$display->panels['left'][0] = 'new-1';
172
+$pane = new stdClass;
173
+$pane->pid = 'new-2';
174
+$pane->panel = 'right';
175
+$pane->type = 'custom';
176
+$pane->subtype = 'custom';
177
+$pane->shown = TRUE;
178
+$pane->access = array();
179
+$pane->configuration = array(
180
+  'admin_title' => 'Search teams',
181
+  'title' => '',
182
+  'body' => '<?php echo boincteam_search_panel(); ?>',
183
+  'format' => '3',
184
+  'substitute' => TRUE,
185
+);
186
+$pane->cache = array();
187
+$pane->style = array(
188
+  'settings' => NULL,
189
+);
190
+$pane->css = array(
191
+  'css_id' => '',
192
+  'css_class' => 'panel-secondary container shadow',
193
+);
194
+$pane->extras = array();
195
+$pane->position = 0;
196
+$display->content['new-2'] = $pane;
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;
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(
213
-    'type' => 'none',
214
-    'settings' => NULL,
215
-  );
216
-  $page->menu = array(
217
-    'type' => 'normal',
218
-    'title' => 'Teams',
219
-    'name' => 'primary-links',
220
-    'weight' => '10',
221
-    'parent' => array(
222
-      'type' => 'none',
223
-      'title' => '',
224
-      'name' => 'navigation',
225
-      'weight' => '0',
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
+'type' => 'none',
214
+'settings' => NULL,
215
+);
216
+$page->menu = array(
217
+'type' => 'normal',
218
+'title' => 'Teams',
219
+'name' => 'primary-links',
220
+'weight' => '10',
221
+'parent' => array(
222
+  'type' => 'none',
223
+  'title' => '',
224
+  'name' => 'navigation',
225
+  'weight' => '0',
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(
240
+'title' => 'Panel',
241
+'no_blocks' => 0,
242
+'pipeline' => 'standard',
243
+'css_id' => '',
244
+'css' => '',
245
+'contexts' => array(
246
+  0 => array(
247
+    'name' => 'user',
248
+    'id' => 1,
249
+    'identifier' => 'User',
250
+    'keyword' => 'user',
251
+    'context_settings' => array(
252
+      'type' => 'current',
253
+      'user' => '',
254
+      'uid' => '',
226 255
     ),
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
-    'title' => 'Panel',
241
-    'no_blocks' => 0,
242
-    'pipeline' => 'standard',
243
-    'css_id' => '',
244
-    'css' => '',
245
-    'contexts' => array(
246
-      0 => array(
247
-        'name' => 'user',
248
-        'id' => 1,
249
-        'identifier' => 'User',
250
-        'keyword' => 'user',
251
-        'context_settings' => array(
252
-          'type' => 'current',
253
-          'user' => '',
254
-          'uid' => '',
255
-        ),
256
-      ),
256
+  ),
257
+),
258
+'relationships' => array(),
259
+);
260
+$display = new panels_display;
261
+$display->layout = 'twocol_stacked';
262
+$display->layout_settings = array(
263
+'items' => array(
264
+  'canvas' => array(
265
+    'type' => 'row',
266
+    'contains' => 'column',
267
+    'children' => array(
268
+      0 => 'main',
269
+      1 => 2,
257 270
     ),
258
-    'relationships' => array(),
259
-  );
260
-  $display = new panels_display;
261
-  $display->layout = 'twocol_stacked';
262
-  $display->layout_settings = array(
263
-    'items' => array(
264
-      'canvas' => array(
265
-        'type' => 'row',
266
-        'contains' => 'column',
267
-        'children' => array(
268
-          0 => 'main',
269
-          1 => 2,
270
-        ),
271
-        'parent' => NULL,
272
-      ),
273
-      'main' => array(
274
-        'type' => 'column',
275
-        'width' => 50,
276
-        'width_type' => '%',
277
-        'children' => array(
278
-          0 => 'main-row',
279
-          1 => 1,
280
-        ),
281
-        'parent' => 'canvas',
282
-      ),
283
-      'main-row' => array(
284
-        'type' => 'row',
285
-        'contains' => 'region',
286
-        'children' => array(
287
-          0 => 'center',
288
-        ),
289
-        'parent' => 'main',
290
-      ),
291
-      'center' => array(
292
-        'type' => 'region',
293
-        'title' => 'Center',
294
-        'width' => 100,
295
-        'width_type' => '%',
296
-        'parent' => 'main-row',
297
-      ),
298
-      1 => array(
299
-        'type' => 'row',
300
-        'contains' => 'region',
301
-        'children' => array(
302
-          0 => 'top_teams',
303
-        ),
304
-        'parent' => 'main',
305
-        'class' => 'panel-primary container shadow',
306
-      ),
307
-      'top_teams' => array(
308
-        'type' => 'region',
309
-        'title' => 'Top teams',
310
-        'width' => 100,
311
-        'width_type' => '%',
312
-        'parent' => '1',
313
-        'class' => 'panel-primary container shadow',
314
-      ),
315
-      2 => array(
316
-        'type' => 'column',
317
-        'width' => 50,
318
-        'width_type' => '%',
319
-        'parent' => 'canvas',
320
-        'children' => array(),
321
-        'class' => '',
322
-      ),
271
+    'parent' => NULL,
272
+  ),
273
+  'main' => array(
274
+    'type' => 'column',
275
+    'width' => 50,
276
+    'width_type' => '%',
277
+    'children' => array(
278
+      0 => 'main-row',
279
+      1 => 1,
323 280
     ),
324
-  );
325
-  $display->panel_settings = array(
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,
281
+    'parent' => 'canvas',
282
+  ),
283
+  'main-row' => array(
284
+    'type' => 'row',
285
+    'contains' => 'region',
286
+    'children' => array(
287
+      0 => 'center',
336 288
     ),
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
-    $pane = new stdClass;
345
-    $pane->pid = 'new-1';
346
-    $pane->panel = 'bottom';
347
-    $pane->type = 'views_panes';
348
-    $pane->subtype = 'boinc_teams-panel_pane_1';
349
-    $pane->shown = TRUE;
350
-    $pane->access = array();
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',
359
-    );
360
-    $pane->cache = array();
361
-    $pane->style = array(
362
-      'settings' => NULL,
363
-    );
364
-    $pane->css = array(
365
-      'css_id' => '',
366
-      'css_class' => 'panel-primary container shadow',
367
-    );
368
-    $pane->extras = array();
369
-    $pane->position = 0;
370
-    $display->content['new-1'] = $pane;
371
-    $display->panels['bottom'][0] = 'new-1';
372
-    $pane = new stdClass;
373
-    $pane->pid = 'new-2';
374
-    $pane->panel = 'left';
375
-    $pane->type = 'custom';
376
-    $pane->subtype = 'custom';
377
-    $pane->shown = TRUE;
378
-    $pane->access = array();
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,
385
-    );
386
-    $pane->cache = array();
387
-    $pane->style = array(
388
-      'settings' => NULL,
389
-    );
390
-    $pane->css = array(
391
-      'css_id' => '',
392
-      'css_class' => 'panel-primary container shadow balance-height',
393
-    );
394
-    $pane->extras = array();
395
-    $pane->position = 0;
396
-    $display->content['new-2'] = $pane;
397
-    $display->panels['left'][0] = 'new-2';
398
-    $pane = new stdClass;
399
-    $pane->pid = 'new-3';
400
-    $pane->panel = 'right';
401
-    $pane->type = 'custom';
402
-    $pane->subtype = 'custom';
403
-    $pane->shown = TRUE;
404
-    $pane->access = array(
405
-      'plugins' => array(
406
-        0 => array(
407
-          'name' => 'php',
408
-          'settings' => array(
409
-            'description' => 'Already a team member',
410
-            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
289
+    'parent' => 'main',
290
+  ),
291
+  'center' => array(
292
+    'type' => 'region',
293
+    'title' => 'Center',
294
+    'width' => 100,
295
+    'width_type' => '%',
296
+    'parent' => 'main-row',
297
+  ),
298
+  1 => array(
299
+    'type' => 'row',
300
+    'contains' => 'region',
301
+    'children' => array(
302
+      0 => 'top_teams',
303
+    ),
304
+    'parent' => 'main',
305
+    'class' => 'panel-primary container shadow',
306
+  ),
307
+  'top_teams' => array(
308
+    'type' => 'region',
309
+    'title' => 'Top teams',
310
+    'width' => 100,
311
+    'width_type' => '%',
312
+    'parent' => '1',
313
+    'class' => 'panel-primary container shadow',
314
+  ),
315
+  2 => array(
316
+    'type' => 'column',
317
+    'width' => 50,
318
+    'width_type' => '%',
319
+    'parent' => 'canvas',
320
+    'children' => array(),
321
+    'class' => '',
322
+  ),
323
+),
324
+);
325
+$display->panel_settings = array(
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,
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();
344
+$pane = new stdClass;
345
+$pane->pid = 'new-1';
346
+$pane->panel = 'bottom';
347
+$pane->type = 'views_panes';
348
+$pane->subtype = 'boinc_teams-panel_pane_1';
349
+$pane->shown = TRUE;
350
+$pane->access = array();
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',
359
+);
360
+$pane->cache = array();
361
+$pane->style = array(
362
+  'settings' => NULL,
363
+);
364
+$pane->css = array(
365
+  'css_id' => '',
366
+  'css_class' => 'panel-primary container shadow',
367
+);
368
+$pane->extras = array();
369
+$pane->position = 0;
370
+$display->content['new-1'] = $pane;
371
+$display->panels['bottom'][0] = 'new-1';
372
+$pane = new stdClass;
373
+$pane->pid = 'new-2';
374
+$pane->panel = 'left';
375
+$pane->type = 'custom';
376
+$pane->subtype = 'custom';
377
+$pane->shown = TRUE;
378
+$pane->access = array();
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,
385
+);
386
+$pane->cache = array();
387
+$pane->style = array(
388
+  'settings' => NULL,
389
+);
390
+$pane->css = array(
391
+  'css_id' => '',
392
+  'css_class' => 'panel-primary container shadow balance-height',
393
+);
394
+$pane->extras = array();
395
+$pane->position = 0;
396
+$display->content['new-2'] = $pane;
397
+$display->panels['left'][0] = 'new-2';
398
+$pane = new stdClass;
399
+$pane->pid = 'new-3';
400
+$pane->panel = 'right';
401
+$pane->type = 'custom';
402
+$pane->subtype = 'custom';
403
+$pane->shown = TRUE;
404
+$pane->access = array(
405
+  'plugins' => array(
406
+    0 => array(
407
+      'name' => 'php',
408
+      'settings' => array(
409
+        'description' => 'Already a team member',
410
+        'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
411 411
 return ($account->team > 0);',
412
-          ),
413
-          'not' => FALSE,
414
-        ),
415 412
       ),
416
-    );
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,
423
-    );
424
-    $pane->cache = array();
425
-    $pane->style = array(
426
-      'settings' => NULL,
427
-    );
428
-    $pane->css = array(
429
-      'css_id' => '',
430
-      'css_class' => 'panel-secondary container shadow balance-height no-resize',
431
-    );
432
-    $pane->extras = array();
433
-    $pane->position = 0;
434
-    $display->content['new-3'] = $pane;
435
-    $display->panels['right'][0] = 'new-3';
436
-    $pane = new stdClass;
437
-    $pane->pid = 'new-4';
438
-    $pane->panel = 'right';
439
-    $pane->type = 'custom';
440
-    $pane->subtype = 'custom';
441
-    $pane->shown = TRUE;
442
-    $pane->access = array();
443
-    $pane->configuration = array(
444
-      'admin_title' => 'Search teams',
445
-      'title' => '',
446
-      'body' => '<?php echo boincteam_search_panel(); ?>',
447
-      'format' => '3',
448
-      'substitute' => TRUE,
449
-    );
450
-    $pane->cache = array();
451
-    $pane->style = array(
452
-      'settings' => NULL,
453
-    );
454
-    $pane->css = array(
455
-      'css_id' => '',
456
-      'css_class' => 'panel-secondary container shadow balance-height',
457
-    );
458
-    $pane->extras = array();
459
-    $pane->position = 1;
460
-    $display->content['new-4'] = $pane;
461
-    $display->panels['right'][1] = 'new-4';
462
-    $pane = new stdClass;
463
-    $pane->pid = 'new-5';
464
-    $pane->panel = 'right';
465
-    $pane->type = 'custom';
466
-    $pane->subtype = 'custom';
467
-    $pane->shown = TRUE;
468
-    $pane->access = array(
469
-      'plugins' => array(
470
-        0 => array(
471
-          'name' => 'php',
472
-          'settings' => array(
473
-            'description' => 'Not in another team',
474
-            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
413
+      'not' => FALSE,
414
+    ),
415
+  ),
416
+);
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,
423
+);
424
+$pane->cache = array();
425
+$pane->style = array(
426
+  'settings' => NULL,
427
+);
428
+$pane->css = array(
429
+  'css_id' => '',
430
+  'css_class' => 'panel-secondary container shadow balance-height no-resize',
431
+);
432
+$pane->extras = array();
433
+$pane->position = 0;
434
+$display->content['new-3'] = $pane;
435
+$display->panels['right'][0] = 'new-3';
436
+$pane = new stdClass;
437
+$pane->pid = 'new-4';
438
+$pane->panel = 'right';
439
+$pane->type = 'custom';
440
+$pane->subtype = 'custom';
441
+$pane->shown = TRUE;
442
+$pane->access = array();
443
+$pane->configuration = array(
444
+  'admin_title' => 'Search teams',
445
+  'title' => '',
446
+  'body' => '<?php echo boincteam_search_panel(); ?>',
447
+  'format' => '3',
448
+  'substitute' => TRUE,
449
+);
450
+$pane->cache = array();
451
+$pane->style = array(
452
+  'settings' => NULL,
453
+);
454
+$pane->css = array(
455
+  'css_id' => '',
456
+  'css_class' => 'panel-secondary container shadow balance-height',
457
+);
458
+$pane->extras = array();
459
+$pane->position = 1;
460
+$display->content['new-4'] = $pane;
461
+$display->panels['right'][1] = 'new-4';
462
+$pane = new stdClass;
463
+$pane->pid = 'new-5';
464
+$pane->panel = 'right';
465
+$pane->type = 'custom';
466
+$pane->subtype = 'custom';
467
+$pane->shown = TRUE;
468
+$pane->access = array(
469
+  'plugins' => array(
470
+    0 => array(
471
+      'name' => 'php',
472
+      'settings' => array(
473
+        'description' => 'Not in another team',
474
+        'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
475 475
 return ($account->team == 0);',
476
-          ),
477
-          'not' => FALSE,
478
-        ),
479 476
       ),
480
-    );
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,
487
-    );
488
-    $pane->cache = array();
489
-    $pane->style = array(
490
-      'settings' => NULL,
491
-    );
492
-    $pane->css = array(
493
-      'css_id' => '',
494
-      'css_class' => 'panel-secondary container shadow balance-height no-resize',
495
-    );
496
-    $pane->extras = array();
497
-    $pane->position = 2;
498
-    $display->content['new-5'] = $pane;
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;
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(
515
-    'type' => 'none',
516
-    'settings' => NULL,
517
-  );
518
-  $page->menu = array(
519
-    'type' => 'none',
520
-    'title' => 'Teams',
521
-    'name' => 'navigation',
522
-    'weight' => '10',
523
-    'parent' => array(
524
-      'type' => 'none',
525
-      'title' => '',
526
-      'name' => 'navigation',
527
-      'weight' => '0',
477
+      'not' => FALSE,
528 478
     ),
529
-  );
530
-  $page->arguments = array(
531
-    'team_id' => array(
532
-      'id' => 1,
533
-      'identifier' => 'Node: ID',
534
-      'name' => 'nid',
535
-      'settings' => array(),
536
-    ),
537
-    'section' => array(
538
-      'id' => 1,
539
-      'identifier' => 'Section',
540
-      'name' => 'string',
479
+  ),
480
+);
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,
487
+);
488
+$pane->cache = array();
489
+$pane->style = array(
490
+  'settings' => NULL,
491
+);
492
+$pane->css = array(
493
+  'css_id' => '',
494
+  'css_class' => 'panel-secondary container shadow balance-height no-resize',
495
+);
496
+$pane->extras = array();
497
+$pane->position = 2;
498
+$display->content['new-5'] = $pane;
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;
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(
515
+'type' => 'none',
516
+'settings' => NULL,
517
+);
518
+$page->menu = array(
519
+'type' => 'none',
520
+'title' => 'Teams',
521
+'name' => 'navigation',
522
+'weight' => '10',
523
+'parent' => array(
524
+  'type' => 'none',
525
+  'title' => '',
526
+  'name' => 'navigation',
527
+  'weight' => '0',
528
+),
529
+);
530
+$page->arguments = array(
531
+'team_id' => array(
532
+  'id' => 1,
533
+  'identifier' => 'Node: ID',
534
+  'name' => 'nid',
535
+  'settings' => array(),
536
+),
537
+'section' => array(
538
+  'id' => 1,
539
+  'identifier' => 'Section',
540
+  'name' => 'string',
541
+  'settings' => array(
542
+    'use_tail' => 0,
543
+  ),
544
+),
545
+'option' => array(
546
+  'id' => 2,
547
+  'identifier' => 'Option',
548
+  'name' => 'string',
549
+  'settings' => array(
550
+    'use_tail' => 0,
551
+  ),
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(
565
+'title' => 'Edit team',
566
+'no_blocks' => 0,
567
+'pipeline' => 'standard',
568
+'css_id' => '',
569
+'css' => '',
570
+'contexts' => array(),
571
+'relationships' => array(),
572
+'access' => array(
573
+  'plugins' => array(
574
+    0 => array(
575
+      'name' => 'path_visibility',
541 576
       'settings' => array(
542
-        'use_tail' => 0,
577
+        'visibility_setting' => '1',
578
+        'paths' => 'community/teams/*/edit/info',
543 579
       ),
580
+      'context' => 'empty',
581
+      'not' => FALSE,
544 582
     ),
545
-    'option' => array(
546
-      'id' => 2,
547
-      'identifier' => 'Option',
548
-      'name' => 'string',
583
+    3 => array(
584
+      'name' => 'role',
549 585
       'settings' => array(
550
-        'use_tail' => 0,
586
+        'rids' => array(
587
+          0 => 2,
588
+        ),
551 589
       ),
590
+      'context' => 'logged-in-user',
591
+      'not' => FALSE,
552 592
     ),
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
-    'title' => 'Edit team',
566
-    'no_blocks' => 0,
567
-    'pipeline' => 'standard',
568
-    'css_id' => '',
569
-    'css' => '',
570
-    'contexts' => array(),
571
-    'relationships' => array(),
572
-    'access' => array(
573
-      'plugins' => array(
574
-        0 => array(
575
-          'name' => 'path_visibility',
576
-          'settings' => array(
577
-            'visibility_setting' => '1',
578
-            'paths' => 'community/teams/*/edit/info',
579
-          ),
580
-          'context' => 'empty',
581
-          'not' => FALSE,
582
-        ),
583
-        3 => array(
584
-          'name' => 'role',
585
-          'settings' => array(
586
-            'rids' => array(
587
-              0 => 2,
588
-            ),
589
-          ),
590
-          'context' => 'logged-in-user',
591
-          'not' => FALSE,
592
-        ),
593
-        4 => array(
594
-          'name' => 'php',
595
-          'settings' => array(
596
-            'description' => 'An admin of this team',
597
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
593
+    4 => array(
594
+      'name' => 'php',
595
+      'settings' => array(
596
+        'description' => 'An admin of this team',
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,
601
-        ),
602 599
       ),
603
-      'logic' => 'and',
600
+      'not' => FALSE,
604 601
     ),
605
-  );
606
-  $display = new panels_display;
607
-  $display->layout = 'twocol_stacked';
608
-  $display->layout_settings = array();
609
-  $display->panel_settings = array(
610
-    'style_settings' => array(
611
-      'default' => NULL,
612
-      'left' => NULL,
613
-      'right' => NULL,
614
-      'top' => NULL,
615
-      'bottom' => NULL,
602
+  ),
603
+  'logic' => 'and',
604
+),
605
+);
606
+$display = new panels_display;
607
+$display->layout = 'twocol_stacked';
608
+$display->layout_settings = array();
609
+$display->panel_settings = array(
610
+'style_settings' => array(
611
+  'default' => NULL,
612
+  'left' => NULL,
613
+  'right' => NULL,
614
+  'top' => NULL,
615
+  'bottom' => NULL,
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();
624
+$pane = new stdClass;
625
+$pane->pid = 'new-1';
626
+$pane->panel = 'left';
627
+$pane->type = 'custom';
628
+$pane->subtype = 'custom';
629
+$pane->shown = TRUE;
630
+$pane->access = array();
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,
637
+);
638
+$pane->cache = array();
639
+$pane->style = array(
640
+  'settings' => NULL,
641
+);
642
+$pane->css = array(
643
+  'css_id' => '',
644
+  'css_class' => 'panel-primary container shadow',
645
+);
646
+$pane->extras = array();
647
+$pane->position = 0;
648
+$display->content['new-1'] = $pane;
649
+$display->panels['left'][0] = 'new-1';
650
+$pane = new stdClass;
651
+$pane->pid = 'new-2';
652
+$pane->panel = 'right';
653
+$pane->type = 'custom';
654
+$pane->subtype = 'custom';
655
+$pane->shown = TRUE;
656
+$pane->access = array();
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,
663
+);
664
+$pane->cache = array();
665
+$pane->style = array(
666
+  'settings' => NULL,
667
+);
668
+$pane->css = array(
669
+  'css_id' => 'team-management',
670
+  'css_class' => 'panel-secondary container shadow',
671
+);
672
+$pane->extras = array();
673
+$pane->position = 0;
674
+$display->content['new-2'] = $pane;
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(
689
+'title' => 'Manage members',
690
+'no_blocks' => 0,
691
+'pipeline' => 'standard',
692
+'css_id' => '',
693
+'css' => '',
694
+'contexts' => array(),
695
+'relationships' => array(),
696
+'access' => array(
697
+  'plugins' => array(
698
+    0 => array(
699
+      'name' => 'path_visibility',
700
+      'settings' => array(
701
+        'visibility_setting' => '1',
702
+        'paths' => 'community/teams/*/edit/members',
703
+      ),
704
+      'context' => 'empty',
705
+      'not' => FALSE,
616 706
     ),
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
-    $pane = new stdClass;
625
-    $pane->pid = 'new-1';
626
-    $pane->panel = 'left';
627
-    $pane->type = 'custom';
628
-    $pane->subtype = 'custom';
629
-    $pane->shown = TRUE;
630
-    $pane->access = array();
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,
637
-    );
638
-    $pane->cache = array();
639
-    $pane->style = array(
640
-      'settings' => NULL,
641
-    );
642
-    $pane->css = array(
643
-      'css_id' => '',
644
-      'css_class' => 'panel-primary container shadow',
645
-    );
646
-    $pane->extras = array();
647
-    $pane->position = 0;
648
-    $display->content['new-1'] = $pane;
649
-    $display->panels['left'][0] = 'new-1';
650
-    $pane = new stdClass;
651
-    $pane->pid = 'new-2';
652
-    $pane->panel = 'right';
653
-    $pane->type = 'custom';
654
-    $pane->subtype = 'custom';
655
-    $pane->shown = TRUE;
656
-    $pane->access = array();
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,
663
-    );
664
-    $pane->cache = array();
665
-    $pane->style = array(
666
-      'settings' => NULL,
667
-    );
668
-    $pane->css = array(
669
-      'css_id' => 'team-management',
670
-      'css_class' => 'panel-secondary container shadow',
671
-    );
672
-    $pane->extras = array();
673
-    $pane->position = 0;
674
-    $display->content['new-2'] = $pane;
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(
689
-    'title' => 'Manage members',
690
-    'no_blocks' => 0,
691
-    'pipeline' => 'standard',
692
-    'css_id' => '',
693
-    'css' => '',
694
-    'contexts' => array(),
695
-    'relationships' => array(),
696
-    'access' => array(
697
-      'plugins' => array(
698
-        0 => array(
699
-          'name' => 'path_visibility',
700
-          'settings' => array(
701
-            'visibility_setting' => '1',
702
-            'paths' => 'community/teams/*/edit/members',
703
-          ),
704
-          'context' => 'empty',
705
-          'not' => FALSE,
706
-        ),
707
-        3 => array(
708
-          'name' => 'role',
709
-          'settings' => array(
710
-            'rids' => array(
711
-              0 => 2,
712
-            ),
713
-          ),
714
-          'context' => 'logged-in-user',
715
-          'not' => FALSE,
707
+    3 => array(
708
+      'name' => 'role',
709
+      'settings' => array(
710
+        'rids' => array(
711
+          0 => 2,
716 712
         ),
717
-        4 => array(
718
-          'name' => 'php',
719
-          'settings' => array(
720
-            'description' => 'An admin of this team',
721
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
713
+      ),
714
+      'context' => 'logged-in-user',
715
+      'not' => FALSE,
716
+    ),
717
+    4 => array(
718
+      'name' => 'php',
719
+      'settings' => array(
720
+        'description' => 'An admin of this team',
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,
725
-        ),
726 723
       ),
727
-      'logic' => 'and',
724
+      'not' => FALSE,
728 725
     ),
729
-  );
730
-  $display = new panels_display;
731
-  $display->layout = 'onecol';
732
-  $display->layout_settings = array();
733
-  $display->panel_settings = array(
734
-    'style_settings' => array(
735
-      'default' => NULL,
736
-      'left' => NULL,
737
-      'right' => NULL,
738
-      'top' => NULL,
739
-      'bottom' => NULL,
740
-      'middle' => NULL,
726
+  ),
727
+  'logic' => 'and',
728
+),
729
+);
730
+$display = new panels_display;
731
+$display->layout = 'onecol';
732
+$display->layout_settings = array();
733
+$display->panel_settings = array(
734
+'style_settings' => array(
735
+  'default' => NULL,
736
+  'left' => NULL,
737
+  'right' => NULL,
738
+  'top' => NULL,
739
+  'bottom' => NULL,
740
+  'middle' => NULL,
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();
749
+$pane = new stdClass;
750
+$pane->pid = 'new-1';
751
+$pane->panel = 'middle';
752
+$pane->type = 'views_panes';
753
+$pane->subtype = 'boinc_team_members-panel_pane_5';
754
+$pane->shown = TRUE;
755
+$pane->access = array();
756
+$pane->configuration = array(
757
+  'items_per_page' => '25',
758
+  'override_title' => 1,
759
+  'override_title_text' => 'Remove members',
760
+);
761
+$pane->cache = array();
762
+$pane->style = array(
763
+  'settings' => NULL,
764
+);
765
+$pane->css = array(
766
+  'css_id' => '',
767
+  'css_class' => 'section framing container shadow',
768
+);
769
+$pane->extras = array();
770
+$pane->position = 0;
771
+$display->content['new-1'] = $pane;
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(
786
+'title' => 'View emails',
787
+'no_blocks' => 0,
788
+'pipeline' => 'standard',
789
+'css_id' => '',
790
+'css' => '',
791
+'contexts' => array(),
792
+'relationships' => array(),
793
+'access' => array(
794
+  'plugins' => array(
795
+    0 => array(
796
+      'name' => 'path_visibility',
797
+      'settings' => array(
798
+        'visibility_setting' => '1',
799
+        'paths' => 'community/teams/*/members/email',
800
+      ),
801
+      'context' => 'empty',
802
+      'not' => FALSE,
741 803
     ),
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
-    $pane = new stdClass;
750
-    $pane->pid = 'new-1';
751
-    $pane->panel = 'middle';
752
-    $pane->type = 'views_panes';
753
-    $pane->subtype = 'boinc_team_members-panel_pane_5';
754
-    $pane->shown = TRUE;
755
-    $pane->access = array();
756
-    $pane->configuration = array(
757
-      'items_per_page' => '25',
758
-      'override_title' => 1,
759
-      'override_title_text' => 'Remove members',
760
-    );
761
-    $pane->cache = array();
762
-    $pane->style = array(
763
-      'settings' => NULL,
764
-    );
765
-    $pane->css = array(
766
-      'css_id' => '',
767
-      'css_class' => 'section framing container shadow',
768
-    );
769
-    $pane->extras = array();
770
-    $pane->position = 0;
771
-    $display->content['new-1'] = $pane;
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(
786
-    'title' => 'View emails',
787
-    'no_blocks' => 0,
788
-    'pipeline' => 'standard',
789
-    'css_id' => '',
790
-    'css' => '',
791
-    'contexts' => array(),
792
-    'relationships' => array(),
793
-    'access' => array(
794
-      'plugins' => array(
795
-        0 => array(
796
-          'name' => 'path_visibility',
797
-          'settings' => array(
798
-            'visibility_setting' => '1',
799
-            'paths' => 'community/teams/*/members/email',
800
-          ),
801
-          'context' => 'empty',
802
-          'not' => FALSE,
803
-        ),
804
-        3 => array(
805
-          'name' => 'role',
806
-          'settings' => array(
807
-            'rids' => array(
808
-              0 => 2,
809
-            ),
810
-          ),
811
-          'context' => 'logged-in-user',
812
-          'not' => FALSE,
804
+    3 => array(
805
+      'name' => 'role',
806
+      'settings' => array(
807
+        'rids' => array(
808
+          0 => 2,
813 809
         ),
814
-        4 => array(
815
-          'name' => 'php',
816
-          'settings' => array(
817
-            'description' => 'An admin of this team',
818
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
810
+      ),
811
+      'context' => 'logged-in-user',
812
+      'not' => FALSE,
813
+    ),
814
+    4 => array(
815
+      'name' => 'php',
816
+      'settings' => array(
817
+        'description' => 'An admin of this team',
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,
822
-        ),
823 820
       ),
824
-      'logic' => 'and',
821
+      'not' => FALSE,
825 822
     ),
826
-  );
827
-  $display = new panels_display;
828
-  $display->layout = 'onecol';
829
-  $display->layout_settings = array();
830
-  $display->panel_settings = array(
831
-    'style_settings' => array(
832
-      'default' => NULL,
833
-      'left' => NULL,
834
-      'right' => NULL,
835
-      'top' => NULL,
836
-      'bottom' => NULL,
837
-      'middle' => NULL,
823
+  ),
824
+  'logic' => 'and',
825
+),
826
+);
827
+$display = new panels_display;
828
+$display->layout = 'onecol';
829
+$display->layout_settings = array();
830
+$display->panel_settings = array(
831
+'style_settings' => array(
832
+  'default' => NULL,
833
+  'left' => NULL,
834
+  'right' => NULL,
835
+  'top' => NULL,
836
+  'bottom' => NULL,
837
+  'middle' => NULL,
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();
846
+$pane = new stdClass;
847
+$pane->pid = 'new-1';
848
+$pane->panel = 'middle';
849
+$pane->type = 'views_panes';
850
+$pane->subtype = 'boinc_team_members-panel_pane_3';
851
+$pane->shown = TRUE;
852
+$pane->access = array();
853
+$pane->configuration = array(
854
+  'items_per_page' => '25',
855
+  'override_title' => 1,
856
+  'override_title_text' => 'Email list',
857
+);
858
+$pane->cache = array();
859
+$pane->style = array(
860
+  'settings' => NULL,
861
+);
862
+$pane->css = array(
863
+  'css_id' => '',
864
+  'css_class' => 'section framing container shadow',
865
+);
866
+$pane->extras = array();
867
+$pane->position = 0;
868
+$display->content['new-1'] = $pane;
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(
883
+'title' => 'View members',
884
+'no_blocks' => 0,
885
+'pipeline' => 'standard',
886
+'css_id' => '',
887
+'css' => '',
888
+'contexts' => array(),
889
+'relationships' => array(),
890
+'access' => array(
891
+  'plugins' => array(
892
+    0 => array(
893
+      'name' => 'path_visibility',
894
+      'settings' => array(
895
+        'visibility_setting' => '1',
896
+        'paths' => 'community/teams/*/members',
897
+      ),
898
+      'context' => 'empty',
899
+      'not' => FALSE,
838 900
     ),
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
-    $pane = new stdClass;
847
-    $pane->pid = 'new-1';
848
-    $pane->panel = 'middle';
849
-    $pane->type = 'views_panes';
850
-    $pane->subtype = 'boinc_team_members-panel_pane_3';
851
-    $pane->shown = TRUE;
852
-    $pane->access = array();
853
-    $pane->configuration = array(
854
-      'items_per_page' => '25',
855
-      'override_title' => 1,
856
-      'override_title_text' => 'Email list',
857
-    );
858
-    $pane->cache = array();
859
-    $pane->style = array(
860
-      'settings' => NULL,
861
-    );
862
-    $pane->css = array(
863
-      'css_id' => '',
864
-      'css_class' => 'section framing container shadow',
865
-    );
866
-    $pane->extras = array();
867
-    $pane->position = 0;
868
-    $display->content['new-1'] = $pane;
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(
883
-    'title' => 'View members',
884
-    'no_blocks' => 0,
885
-    'pipeline' => 'standard',
886
-    'css_id' => '',
887
-    'css' => '',
888
-    'contexts' => array(),
889
-    'relationships' => array(),
890
-    'access' => array(
891
-      'plugins' => array(
892
-        0 => array(
893
-          'name' => 'path_visibility',
894
-          'settings' => array(
895
-            'visibility_setting' => '1',
896
-            'paths' => 'community/teams/*/members',
897
-          ),
898
-          'context' => 'empty',
899
-          'not' => FALSE,
900
-        ),
901
-        3 => array(
902
-          'name' => 'role',
903
-          'settings' => array(
904
-            'rids' => array(
905
-              0 => 2,
906
-            ),
907
-          ),
908
-          'context' => 'logged-in-user',
909
-          'not' => FALSE,
901
+    3 => array(
902
+      'name' => 'role',
903
+      'settings' => array(
904
+        'rids' => array(
905
+          0 => 2,
910 906
         ),
911 907
       ),
912
-      'logic' => 'and',
908
+      'context' => 'logged-in-user',
909
+      'not' => FALSE,
913 910
     ),
914
-  );
915
-  $display = new panels_display;
916
-  $display->layout = 'onecol';
917
-  $display->layout_settings = array();
918
-  $display->panel_settings = array(
919
-    'style_settings' => array(
920
-      'default' => NULL,
921
-      'left' => NULL,
922
-      'right' => NULL,
923
-      'top' => NULL,
924
-      'bottom' => NULL,
925
-      'middle' => NULL,
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();
934
-    $pane = new stdClass;
935
-    $pane->pid = 'new-1';
936
-    $pane->panel = 'middle';
937
-    $pane->type = 'views_panes';
938
-    $pane->subtype = 'boinc_team_members-panel_pane_1';
939
-    $pane->shown = TRUE;
940
-    $pane->access = array(
941
-      'plugins' => array(
942
-        0 => array(
943
-          'name' => 'php',
944
-          'settings' => array(
945
-            'description' => 'An admin of this team',
946
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
911
+  ),
912
+  'logic' => 'and',
913
+),
914
+);
915
+$display = new panels_display;
916
+$display->layout = 'onecol';
917
+$display->layout_settings = array();
918
+$display->panel_settings = array(
919
+'style_settings' => array(
920
+  'default' => NULL,
921
+  'left' => NULL,
922
+  'right' => NULL,
923
+  'top' => NULL,
924
+  'bottom' => NULL,
925
+  'middle' => NULL,
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();
934
+$pane = new stdClass;
935
+$pane->pid = 'new-1';
936
+$pane->panel = 'middle';
937
+$pane->type = 'views_panes';
938
+$pane->subtype = 'boinc_team_members-panel_pane_1';
939
+$pane->shown = TRUE;
940
+$pane->access = array(
941
+  'plugins' => array(
942
+    0 => array(
943
+      'name' => 'php',
944
+      'settings' => array(
945
+        'description' => 'An admin of this team',
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,
950
-        ),
951 948
       ),
952
-    );
953
-    $pane->configuration = array(
954
-      'items_per_page' => '25',
955
-      'override_title' => 1,
956
-      'override_title_text' => 'Member list',
957
-    );
958
-    $pane->cache = array();
959
-    $pane->style = array(
960
-      'settings' => NULL,
961
-    );
962
-    $pane->css = array(
963
-      'css_id' => '',
964
-      'css_class' => 'section framing container shadow',
965
-    );
966
-    $pane->extras = array();
967
-    $pane->position = 0;
968
-    $display->content['new-1'] = $pane;
969
-    $display->panels['middle'][0] = 'new-1';
970
-    $pane = new stdClass;
971
-    $pane->pid = 'new-2';
972
-    $pane->panel = 'middle';
973
-    $pane->type = 'views_panes';
974
-    $pane->subtype = 'boinc_team_members-panel_pane_2';
975
-    $pane->shown = TRUE;
976
-    $pane->access = array(
977
-      'plugins' => array(
978
-        0 => array(
979
-          'name' => 'php',
980
-          'settings' => array(
981
-            'description' => 'An admin of this team',
982
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
949
+      'not' => TRUE,
950
+    ),
951
+  ),
952
+);
953
+$pane->configuration = array(
954
+  'items_per_page' => '25',
955
+  'override_title' => 1,
956
+  'override_title_text' => 'Member list',
957
+);
958
+$pane->cache = array();
959
+$pane->style = array(
960
+  'settings' => NULL,
961
+);
962
+$pane->css = array(
963
+  'css_id' => '',
964
+  'css_class' => 'section framing container shadow',
965
+);
966
+$pane->extras = array();
967
+$pane->position = 0;
968
+$display->content['new-1'] = $pane;
969
+$display->panels['middle'][0] = 'new-1';
970
+$pane = new stdClass;
971
+$pane->pid = 'new-2';
972
+$pane->panel = 'middle';
973
+$pane->type = 'views_panes';
974
+$pane->subtype = 'boinc_team_members-panel_pane_2';
975
+$pane->shown = TRUE;
976
+$pane->access = array(
977
+  'plugins' => array(
978
+    0 => array(
979
+      'name' => 'php',
980
+      'settings' => array(
981
+        'description' => 'An admin of this team',
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,
986
-        ),
987 984
       ),
988
-    );
989
-    $pane->configuration = array(
990
-      'items_per_page' => '25',
991
-      'override_title' => 1,
992
-      'override_title_text' => 'Member list',
993
-    );
994
-    $pane->cache = array();
995
-    $pane->style = array(
996
-      'settings' => NULL,
997
-    );
998
-    $pane->css = array(
999
-      'css_id' => '',
1000
-      'css_class' => 'section framing container shadow',
1001
-    );
1002
-    $pane->extras = array();
1003
-    $pane->position = 1;
1004
-    $display->content['new-2'] = $pane;
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(
1019
-    'title' => 'View history',
1020
-    'no_blocks' => 0,
1021
-    'pipeline' => 'standard',
1022
-    'css_id' => '',
1023
-    'css' => '',
1024
-    'contexts' => array(),
1025
-    'relationships' => array(),
1026
-    'access' => array(
1027
-      'plugins' => array(
1028
-        0 => array(
1029
-          'name' => 'path_visibility',
1030
-          'settings' => array(
1031
-            'visibility_setting' => '1',
1032
-            'paths' => 'community/teams/*/history',
1033
-          ),
1034
-          'context' => 'empty',
1035
-          'not' => FALSE,
1036
-        ),
1037
-        3 => array(
1038
-          'name' => 'role',
1039
-          'settings' => array(
1040
-            'rids' => array(
1041
-              0 => 2,
1042
-            ),
1043
-          ),
1044
-          'context' => 'logged-in-user',
1045
-          'not' => FALSE,
985
+      'not' => FALSE,
986
+    ),
987
+  ),
988
+);
989
+$pane->configuration = array(
990
+  'items_per_page' => '25',
991
+  'override_title' => 1,
992
+  'override_title_text' => 'Member list',
993
+);
994
+$pane->cache = array();
995
+$pane->style = array(
996
+  'settings' => NULL,
997
+);
998
+$pane->css = array(
999
+  'css_id' => '',
1000
+  'css_class' => 'section framing container shadow',
1001
+);
1002
+$pane->extras = array();
1003
+$pane->position = 1;
1004
+$display->content['new-2'] = $pane;
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(
1019
+'title' => 'View history',
1020
+'no_blocks' => 0,
1021
+'pipeline' => 'standard',
1022
+'css_id' => '',
1023
+'css' => '',
1024
+'contexts' => array(),
1025
+'relationships' => array(),
1026
+'access' => array(
1027
+  'plugins' => array(
1028
+    0 => array(
1029
+      'name' => 'path_visibility',
1030
+      'settings' => array(
1031
+        'visibility_setting' => '1',
1032
+        'paths' => 'community/teams/*/history',
1033
+      ),
1034
+      'context' => 'empty',
1035
+      'not' => FALSE,
1036
+    ),
1037
+    3 => array(
1038
+      'name' => 'role',
1039
+      'settings' => array(
1040
+        'rids' => array(
1041
+          0 => 2,
1046 1042
         ),
1047
-        4 => array(
1048
-          'name' => 'php',
1049
-          'settings' => array(
1050
-            'description' => 'An admin of this team',
1051
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1043
+      ),
1044
+      'context' => 'logged-in-user',
1045
+      'not' => FALSE,
1046
+    ),
1047
+    4 => array(
1048
+      'name' => 'php',
1049
+      'settings' => array(
1050
+        'description' => 'An admin of this team',
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,
1055
-        ),
1056 1053
       ),
1057
-      'logic' => 'and',
1054
+      'not' => FALSE,
1058 1055
     ),
1059
-  );
1060
-  $display = new panels_display;
1061
-  $display->layout = 'onecol';
1062
-  $display->layout_settings = array();
1063
-  $display->panel_settings = array(
1064
-    'style_settings' => array(
1065
-      'default' => NULL,
1066
-      'left' => NULL,
1067
-      'right' => NULL,
1068
-      'top' => NULL,
1069
-      'bottom' => NULL,
1070
-      'middle' => NULL,
1056
+  ),
1057
+  'logic' => 'and',
1058
+),
1059
+);
1060
+$display = new panels_display;
1061
+$display->layout = 'onecol';
1062
+$display->layout_settings = array();
1063
+$display->panel_settings = array(
1064
+'style_settings' => array(
1065
+  'default' => NULL,
1066
+  'left' => NULL,
1067
+  'right' => NULL,
1068
+  'top' => NULL,
1069
+  'bottom' => NULL,
1070
+  'middle' => NULL,
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();
1079
+$pane = new stdClass;
1080
+$pane->pid = 'new-1';
1081
+$pane->panel = 'middle';
1082
+$pane->type = 'views_panes';
1083
+$pane->subtype = 'boinc_teams-panel_pane_2';
1084
+$pane->shown = TRUE;
1085
+$pane->access = array();
1086
+$pane->configuration = array(
1087
+  'items_per_page' => '25',
1088
+  'override_title' => 1,
1089
+  'override_title_text' => 'Team history',
1090
+);
1091
+$pane->cache = array();
1092
+$pane->style = array(
1093
+  'settings' => NULL,
1094
+);
1095
+$pane->css = array(
1096
+  'css_id' => '',
1097
+  'css_class' => 'section framing container shadow',
1098
+);
1099
+$pane->extras = array();
1100
+$pane->position = 0;
1101
+$display->content['new-1'] = $pane;
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(
1116
+'title' => 'Manage admins',
1117
+'no_blocks' => 0,
1118
+'pipeline' => 'standard',
1119
+'css_id' => '',
1120
+'css' => '',
1121
+'contexts' => array(),
1122
+'relationships' => array(),
1123
+'access' => array(
1124
+  'plugins' => array(
1125
+    0 => array(
1126
+      'name' => 'path_visibility',
1127
+      'settings' => array(
1128
+        'visibility_setting' => '1',
1129
+        'paths' => 'community/teams/*/edit/admins',
1130
+      ),
1131
+      'context' => 'empty',
1132
+      'not' => FALSE,
1071 1133
     ),
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
-    $pane = new stdClass;
1080
-    $pane->pid = 'new-1';
1081
-    $pane->panel = 'middle';
1082
-    $pane->type = 'views_panes';
1083
-    $pane->subtype = 'boinc_teams-panel_pane_2';
1084
-    $pane->shown = TRUE;
1085
-    $pane->access = array();
1086
-    $pane->configuration = array(
1087
-      'items_per_page' => '25',
1088
-      'override_title' => 1,
1089
-      'override_title_text' => 'Team history',
1090
-    );
1091
-    $pane->cache = array();
1092
-    $pane->style = array(
1093
-      'settings' => NULL,
1094
-    );
1095
-    $pane->css = array(
1096
-      'css_id' => '',
1097
-      'css_class' => 'section framing container shadow',
1098
-    );
1099
-    $pane->extras = array();
1100
-    $pane->position = 0;
1101
-    $display->content['new-1'] = $pane;
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(
1116
-    'title' => 'Manage admins',
1117
-    'no_blocks' => 0,
1118
-    'pipeline' => 'standard',
1119
-    'css_id' => '',
1120
-    'css' => '',
1121
-    'contexts' => array(),
1122
-    'relationships' => array(),
1123
-    'access' => array(
1124
-      'plugins' => array(
1125
-        0 => array(
1126
-          'name' => 'path_visibility',
1127
-          'settings' => array(
1128
-            'visibility_setting' => '1',
1129
-            'paths' => 'community/teams/*/edit/admins',
1130
-          ),
1131
-          'context' => 'empty',
1132
-          'not' => FALSE,
1133
-        ),
1134
-        3 => array(
1135
-          'name' => 'role',
1136
-          'settings' => array(
1137
-            'rids' => array(
1138
-              0 => 2,
1139
-            ),
1140
-          ),
1141
-          'context' => 'logged-in-user',
1142
-          'not' => FALSE,
1143
-        ),
1144
-        4 => array(
1145
-          'name' => 'php',
1146
-          'settings' => array(
1147
-            'description' => 'User is team founder',
1148
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1149
-return boincteam_is_founder($team_id);',
1150
-          ),
1151
-          'not' => FALSE,
1134
+    3 => array(
1135
+      'name' => 'role',
1136
+      'settings' => array(
1137
+        'rids' => array(
1138
+          0 => 2,
1152 1139
         ),
1153 1140
       ),
1154
-      'logic' => 'and',
1155
-    ),
1156
-  );
1157
-  $display = new panels_display;
1158
-  $display->layout = 'twocol_stacked';
1159
-  $display->layout_settings = array();
1160
-  $display->panel_settings = array(
1161
-    'style_settings' => array(
1162
-      'default' => NULL,
1163
-      'left' => NULL,
1164
-      'right' => NULL,
1165
-      'top' => NULL,
1166
-      'bottom' => NULL,
1167
-      'middle' => NULL,
1141
+      'context' => 'logged-in-user',
1142
+      'not' => FALSE,
1168 1143
     ),
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
-    $pane = new stdClass;
1177
-    $pane->pid = 'new-1';
1178
-    $pane->panel = 'left';
1179
-    $pane->type = 'views_panes';
1180
-    $pane->subtype = 'boinc_teams-panel_pane_3';
1181
-    $pane->shown = TRUE;
1182
-    $pane->access = array();
1183
-    $pane->configuration = array(
1184
-      'items_per_page' => '10',
1185
-      'override_title' => 1,
1186
-      'override_title_text' => 'Manage team admins',
1187
-    );
1188
-    $pane->cache = array();
1189
-    $pane->style = array(
1190
-      'settings' => NULL,
1191
-    );
1192
-    $pane->css = array(
1193
-      'css_id' => '',
1194
-      'css_class' => 'panel-primary container shadow',
1195
-    );
1196
-    $pane->extras = array();
1197
-    $pane->position = 0;
1198
-    $display->content['new-1'] = $pane;
1199
-    $display->panels['left'][0] = 'new-1';
1200
-    $pane = new stdClass;
1201
-    $pane->pid = 'new-2';
1202
-    $pane->panel = 'right';
1203
-    $pane->type = 'custom';
1204
-    $pane->subtype = 'custom';
1205
-    $pane->shown = TRUE;
1206
-    $pane->access = array();
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,
1213
-    );
1214
-    $pane->cache = array();
1215
-    $pane->style = array(
1216
-      'settings' => NULL,
1217
-    );
1218
-    $pane->css = array(
1219
-      'css_id' => '',
1220
-      'css_class' => 'panel-secondary container shadow',
1221
-    );
1222
-    $pane->extras = array();
1223
-    $pane->position = 0;
1224
-    $display->content['new-2'] = $pane;
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(
1239
-    'title' => 'Change founder',
1240
-    'no_blocks' => 0,
1241
-    'pipeline' => 'standard',
1242
-    'css_id' => '',
1243
-    'css' => '',
1244
-    'contexts' => array(),
1245
-    'relationships' => array(),
1246
-    'access' => array(
1247
-      'plugins' => array(
1248
-        0 => array(
1249
-          'name' => 'path_visibility',
1250
-          'settings' => array(
1251
-            'visibility_setting' => '1',
1252
-            'paths' => 'community/teams/*/edit/founder',
1253
-          ),
1254
-          'context' => 'empty',
1255
-          'not' => FALSE,
1256
-        ),
1257
-        3 => array(
1258
-          'name' => 'role',
1259
-          'settings' => array(
1260
-            'rids' => array(
1261
-              0 => 2,
1262
-            ),
1263
-          ),
1264
-          'context' => 'logged-in-user',
1265
-          'not' => FALSE,
1266
-        ),
1267
-        4 => array(
1268
-          'name' => 'php',
1269
-          'settings' => array(
1270
-            'description' => 'User is team founder',
1271
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1144
+    4 => array(
1145
+      'name' => 'php',
1146
+      'settings' => array(
1147
+        'description' => 'User is team founder',
1148
+        'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1272 1149
 return boincteam_is_founder($team_id);',
1273
-          ),
1274
-          'not' => FALSE,
1275
-        ),
1276 1150
       ),
1277
-      'logic' => 'and',
1151
+      'not' => FALSE,
1278 1152
     ),
1279
-  );
1280
-  $display = new panels_display;
1281
-  $display->layout = 'twocol_stacked';
1282
-  $display->layout_settings = array();
1283
-  $display->panel_settings = array(
1284
-    'style_settings' => array(
1285
-      'default' => NULL,
1286
-      'left' => NULL,
1287
-      'right' => NULL,
1288
-      'top' => NULL,
1289
-      'bottom' => NULL,
1290
-      'middle' => NULL,
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();
1299
-    $pane = new stdClass;
1300
-    $pane->pid = 'new-1';
1301
-    $pane->panel = 'left';
1302
-    $pane->type = 'custom';
1303
-    $pane->subtype = 'custom';
1304
-    $pane->shown = TRUE;
1305
-    $pane->access = array();
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,
1312
-    );
1313
-    $pane->cache = array();
1314
-    $pane->style = array(
1315
-      'settings' => NULL,
1316
-    );
1317
-    $pane->css = array(
1318
-      'css_id' => '',
1319
-      'css_class' => 'panel-primary container shadow',
1320
-    );
1321
-    $pane->extras = array();
1322
-    $pane->position = 0;
1323
-    $display->content['new-1'] = $pane;
1324
-    $display->panels['left'][0] = 'new-1';
1325
-    $pane = new stdClass;
1326
-    $pane->pid = 'new-2';
1327
-    $pane->panel = 'left';
1328
-    $pane->type = 'views_panes';
1329
-    $pane->subtype = 'boinc_team_members-panel_pane_4';
1330
-    $pane->shown = TRUE;
1331
-    $pane->access = array();
1332
-    $pane->configuration = array(
1333
-      'items_per_page' => '25',
1334
-      'override_title' => 1,
1335
-      'override_title_text' => 'Change founder',
1336
-    );
1337
-    $pane->cache = array();
1338
-    $pane->style = array(
1339
-      'settings' => NULL,
1340
-    );
1341
-    $pane->css = array(
1342
-      'css_id' => '',
1343
-      'css_class' => 'panel-primary container shadow',
1344
-    );
1345
-    $pane->extras = array();
1346
-    $pane->position = 1;
1347
-    $display->content['new-2'] = $pane;
1348
-    $display->panels['left'][1] = 'new-2';
1349
-    $pane = new stdClass;
1350
-    $pane->pid = 'new-3';
1351
-    $pane->panel = 'right';
1352
-    $pane->type = 'custom';
1353
-    $pane->subtype = 'custom';
1354
-    $pane->shown = TRUE;
1355
-    $pane->access = array();
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,
1362
-    );
1363
-    $pane->cache = array();
1364
-    $pane->style = array(
1365
-      'settings' => NULL,
1366
-    );
1367
-    $pane->css = array(
1368
-      'css_id' => '',
1369
-      'css_class' => 'panel-secondary container shadow',
1370
-    );
1371
-    $pane->extras = array();
1372
-    $pane->position = 0;
1373
-    $display->content['new-3'] = $pane;
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(
1388
-    'title' => 'View forum',
1389
-    'no_blocks' => 0,
1390
-    'pipeline' => 'standard',
1391
-    'css_id' => '',
1392
-    'css' => '',
1393
-    'contexts' => array(),
1394
-    'relationships' => array(),
1395
-    'access' => array(
1396
-      'plugins' => array(
1397
-        0 => array(
1398
-          'name' => 'path_visibility',
1399
-          'settings' => array(
1400
-            'visibility_setting' => '1',
1401
-            'paths' => 'community/teams/*/forum/*',
1402
-          ),
1403
-          'context' => 'empty',
1404
-          'not' => FALSE,
1405
-        ),
1406
-        3 => array(
1407
-          'name' => 'role',
1408
-          'settings' => array(
1409
-            'rids' => array(
1410
-              0 => 2,
1411
-            ),
1412
-          ),
1413
-          'context' => 'logged-in-user',
1414
-          'not' => FALSE,
1415
-        ),
1416
-        4 => array(
1417
-          'name' => 'php',
1418
-          'settings' => array(
1419
-            'description' => 'A member of this team or the forum is public',
1420
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1421
-$team_forum_id = $contexts[\'argument_string_2\']->data;
1422
-return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));',
1423
-          ),
1424
-          'not' => FALSE,
1425
-        ),
1153
+  ),
1154
+  'logic' => 'and',
1155
+),
1156
+);
1157
+$display = new panels_display;
1158
+$display->layout = 'twocol_stacked';
1159
+$display->layout_settings = array();
1160
+$display->panel_settings = array(
1161
+'style_settings' => array(
1162
+  'default' => NULL,
1163
+  'left' => NULL,
1164
+  'right' => NULL,
1165
+  'top' => NULL,
1166
+  'bottom' => NULL,
1167
+  'middle' => NULL,
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();
1176
+$pane = new stdClass;
1177
+$pane->pid = 'new-1';
1178
+$pane->panel = 'left';
1179
+$pane->type = 'views_panes';
1180
+$pane->subtype = 'boinc_teams-panel_pane_3';
1181
+$pane->shown = TRUE;
1182
+$pane->access = array();
1183
+$pane->configuration = array(
1184
+  'items_per_page' => '10',
1185
+  'override_title' => 1,
1186
+  'override_title_text' => 'Manage team admins',
1187
+);
1188
+$pane->cache = array();
1189
+$pane->style = array(
1190
+  'settings' => NULL,
1191
+);
1192
+$pane->css = array(
1193
+  'css_id' => '',
1194
+  'css_class' => 'panel-primary container shadow',
1195
+);
1196
+$pane->extras = array();
1197
+$pane->position = 0;
1198
+$display->content['new-1'] = $pane;
1199
+$display->panels['left'][0] = 'new-1';
1200
+$pane = new stdClass;
1201
+$pane->pid = 'new-2';
1202
+$pane->panel = 'right';
1203
+$pane->type = 'custom';
1204
+$pane->subtype = 'custom';
1205
+$pane->shown = TRUE;
1206
+$pane->access = array();
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,
1213
+);
1214
+$pane->cache = array();
1215
+$pane->style = array(
1216
+  'settings' => NULL,
1217
+);
1218
+$pane->css = array(
1219
+  'css_id' => '',
1220
+  'css_class' => 'panel-secondary container shadow',
1221
+);
1222
+$pane->extras = array();
1223
+$pane->position = 0;
1224
+$display->content['new-2'] = $pane;
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(
1239
+'title' => 'Change founder',
1240
+'no_blocks' => 0,
1241
+'pipeline' => 'standard',
1242
+'css_id' => '',
1243
+'css' => '',
1244
+'contexts' => array(),
1245
+'relationships' => array(),
1246
+'access' => array(
1247
+  'plugins' => array(
1248
+    0 => array(
1249
+      'name' => 'path_visibility',
1250
+      'settings' => array(
1251
+        'visibility_setting' => '1',
1252
+        'paths' => 'community/teams/*/edit/founder',
1426 1253
       ),
1427
-      'logic' => 'and',
1254
+      'context' => 'empty',
1255
+      'not' => FALSE,
1428 1256
     ),
1429
-  );
1430
-  $display = new panels_display;
1431
-  $display->layout = 'onecol';
1432
-  $display->layout_settings = array();
1433
-  $display->panel_settings = array(
1434
-    'style_settings' => array(
1435
-      'default' => NULL,
1436
-      'left' => NULL,
1437
-      'right' => NULL,
1438
-      'top' => NULL,
1439
-      'bottom' => NULL,
1440
-      'middle' => NULL,
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();
1449
-    $pane = new stdClass;
1450
-    $pane->pid = 'new-1';
1451
-    $pane->panel = 'middle';
1452
-    $pane->type = 'views_panes';
1453
-    $pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
1454
-    $pane->shown = TRUE;
1455
-    $pane->access = array();
1456
-    $pane->configuration = array(
1457
-      'override_title' => 0,
1458
-      'override_title_text' => '',
1459
-    );
1460
-    $pane->cache = array();
1461
-    $pane->style = array(
1462
-      'settings' => NULL,
1463
-    );
1464
-    $pane->css = array(
1465
-      'css_id' => '',
1466
-      'css_class' => 'section framing container shadow',
1467
-    );
1468
-    $pane->extras = array();
1469
-    $pane->position = 0;
1470
-    $display->content['new-1'] = $pane;
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(
1485
-    'title' => 'View team',
1486
-    'no_blocks' => 0,
1487
-    'pipeline' => 'standard',
1488
-    'css_id' => '',
1489
-    'css' => '',
1490
-    'contexts' => array(),
1491
-    'relationships' => array(),
1492
-    'access' => array(
1493
-      'plugins' => array(
1494
-        0 => array(
1495
-          'name' => 'node_access',
1496
-          'settings' => array(
1497
-            'type' => 'view',
1498
-          ),
1499
-          'context' => array(
1500
-            0 => 'logged-in-user',
1501
-            1 => 'argument_nid_1',
1502
-          ),
1503
-          'not' => FALSE,
1257
+    3 => array(
1258
+      'name' => 'role',
1259
+      'settings' => array(
1260
+        'rids' => array(
1261
+          0 => 2,
1504 1262
         ),
1505 1263
       ),
1506
-      'logic' => 'and',
1264
+      'context' => 'logged-in-user',
1265
+      'not' => FALSE,
1507 1266
     ),
1508
-  );
1509
-  $display = new panels_display;
1510
-  $display->layout = 'twocol_stacked';
1511
-  $display->layout_settings = array(
1512
-    'items' => array(
1513
-      'canvas' => array(
1514
-        'type' => 'row',
1515
-        'contains' => 'column',
1516
-        'children' => array(
1517
-          0 => 'main',
1518
-          1 => 2,
1519
-        ),
1520
-        'parent' => NULL,
1267
+    4 => array(
1268
+      'name' => 'php',
1269
+      'settings' => array(
1270
+        'description' => 'User is team founder',
1271
+        'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1272
+return boincteam_is_founder($team_id);',
1521 1273
       ),
1522
-      'main' => array(
1523
-        'type' => 'column',
1524
-        'width' => 50,
1525
-        'width_type' => '%',
1526
-        'children' => array(
1527
-          0 => 'main-row',
1528
-          1 => 1,
1529
-        ),
1530
-        'parent' => 'canvas',
1274
+      'not' => FALSE,
1275
+    ),
1276
+  ),
1277
+  'logic' => 'and',
1278
+),
1279
+);
1280
+$display = new panels_display;
1281
+$display->layout = 'twocol_stacked';
1282
+$display->layout_settings = array();
1283
+$display->panel_settings = array(
1284
+'style_settings' => array(
1285
+  'default' => NULL,
1286
+  'left' => NULL,
1287
+  'right' => NULL,
1288
+  'top' => NULL,
1289
+  'bottom' => NULL,
1290
+  'middle' => NULL,
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();
1299
+$pane = new stdClass;
1300
+$pane->pid = 'new-1';
1301
+$pane->panel = 'left';
1302
+$pane->type = 'custom';
1303
+$pane->subtype = 'custom';
1304
+$pane->shown = TRUE;
1305
+$pane->access = array();
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,
1312
+);
1313
+$pane->cache = array();
1314
+$pane->style = array(
1315
+  'settings' => NULL,
1316
+);
1317
+$pane->css = array(
1318
+  'css_id' => '',
1319
+  'css_class' => 'panel-primary container shadow',
1320
+);
1321
+$pane->extras = array();
1322
+$pane->position = 0;
1323
+$display->content['new-1'] = $pane;
1324
+$display->panels['left'][0] = 'new-1';
1325
+$pane = new stdClass;
1326
+$pane->pid = 'new-2';
1327
+$pane->panel = 'left';
1328
+$pane->type = 'views_panes';
1329
+$pane->subtype = 'boinc_team_members-panel_pane_4';
1330
+$pane->shown = TRUE;
1331
+$pane->access = array();
1332
+$pane->configuration = array(
1333
+  'items_per_page' => '25',
1334
+  'override_title' => 1,
1335
+  'override_title_text' => 'Change founder',
1336
+);
1337
+$pane->cache = array();
1338
+$pane->style = array(
1339
+  'settings' => NULL,
1340
+);
1341
+$pane->css = array(
1342
+  'css_id' => '',
1343
+  'css_class' => 'panel-primary container shadow',
1344
+);
1345
+$pane->extras = array();
1346
+$pane->position = 1;
1347
+$display->content['new-2'] = $pane;
1348
+$display->panels['left'][1] = 'new-2';
1349
+$pane = new stdClass;
1350
+$pane->pid = 'new-3';
1351
+$pane->panel = 'right';
1352
+$pane->type = 'custom';
1353
+$pane->subtype = 'custom';
1354
+$pane->shown = TRUE;
1355
+$pane->access = array();
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,
1362
+);
1363
+$pane->cache = array();
1364
+$pane->style = array(
1365
+  'settings' => NULL,
1366
+);
1367
+$pane->css = array(
1368
+  'css_id' => '',
1369
+  'css_class' => 'panel-secondary container shadow',
1370
+);
1371
+$pane->extras = array();
1372
+$pane->position = 0;
1373
+$display->content['new-3'] = $pane;
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(
1388
+'title' => 'View forum',
1389
+'no_blocks' => 0,
1390
+'pipeline' => 'standard',
1391
+'css_id' => '',
1392
+'css' => '',
1393
+'contexts' => array(),
1394
+'relationships' => array(),
1395
+'access' => array(
1396
+  'plugins' => array(
1397
+    0 => array(
1398
+      'name' => 'path_visibility',
1399
+      'settings' => array(
1400
+        'visibility_setting' => '1',
1401
+        'paths' => 'community/teams/*/forum/*',
1531 1402
       ),
1532
-      'main-row' => array(
1533
-        'type' => 'row',
1534
-        'contains' => 'region',
1535
-        'children' => array(
1536
-          0 => 'center',
1403
+      'context' => 'empty',
1404
+      'not' => FALSE,
1405
+    ),
1406
+    3 => array(
1407
+      'name' => 'role',
1408
+      'settings' => array(
1409
+        'rids' => array(
1410
+          0 => 2,
1537 1411
         ),
1538
-        'parent' => 'main',
1539
-      ),
1540
-      'center' => array(
1541
-        'type' => 'region',
1542
-        'title' => 'Center',
1543
-        'width' => 100,
1544
-        'width_type' => '%',
1545
-        'parent' => 'main-row',
1546 1412
       ),
1547
-      1 => array(
1548
-        'type' => 'row',
1549
-        'contains' => 'region',
1550
-        'children' => array(
1551
-          0 => 'top_teams',
1552
-        ),
1553
-        'parent' => 'main',
1554
-        'class' => 'panel-primary container shadow',
1413
+      'context' => 'logged-in-user',
1414
+      'not' => FALSE,
1415
+    ),
1416
+    4 => array(
1417
+      'name' => 'php',
1418
+      'settings' => array(
1419
+        'description' => 'A member of this team or the forum is public',
1420
+        'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1421
+$team_forum_id = $contexts[\'argument_string_2\']->data;
1422
+return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));',
1555 1423
       ),
1556
-      'top_teams' => array(
1557
-        'type' => 'region',
1558
-        'title' => 'Top teams',
1559
-        'width' => 100,
1560
-        'width_type' => '%',
1561
-        'parent' => '1',
1562
-        'class' => 'panel-primary container shadow',
1424
+      'not' => FALSE,
1425
+    ),
1426
+  ),
1427
+  'logic' => 'and',
1428
+),
1429
+);
1430
+$display = new panels_display;
1431
+$display->layout = 'onecol';
1432
+$display->layout_settings = array();
1433
+$display->panel_settings = array(
1434
+'style_settings' => array(
1435
+  'default' => NULL,
1436
+  'left' => NULL,
1437
+  'right' => NULL,
1438
+  'top' => NULL,
1439
+  'bottom' => NULL,
1440
+  'middle' => NULL,
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();
1449
+$pane = new stdClass;
1450
+$pane->pid = 'new-1';
1451
+$pane->panel = 'middle';
1452
+$pane->type = 'views_panes';
1453
+$pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
1454
+$pane->shown = TRUE;
1455
+$pane->access = array();
1456
+$pane->configuration = array(
1457
+  'override_title' => 0,
1458
+  'override_title_text' => '',
1459
+);
1460
+$pane->cache = array();
1461
+$pane->style = array(
1462
+  'settings' => NULL,
1463
+);
1464
+$pane->css = array(
1465
+  'css_id' => '',
1466
+  'css_class' => 'section framing container shadow',
1467
+);
1468
+$pane->extras = array();
1469
+$pane->position = 0;
1470
+$display->content['new-1'] = $pane;
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(
1485
+'title' => 'View team',
1486
+'no_blocks' => 0,
1487
+'pipeline' => 'standard',
1488
+'css_id' => '',
1489
+'css' => '',
1490
+'contexts' => array(),
1491
+'relationships' => array(),
1492
+'access' => array(
1493
+  'plugins' => array(
1494
+    0 => array(
1495
+      'name' => 'node_access',
1496
+      'settings' => array(
1497
+        'type' => 'view',
1563 1498
       ),
1564
-      2 => array(
1565
-        'type' => 'column',
1566
-        'width' => 50,
1567
-        'width_type' => '%',
1568
-        'parent' => 'canvas',
1569
-        'children' => array(),
1570
-        'class' => '',
1499
+      'context' => array(
1500
+        0 => 'logged-in-user',
1501
+        1 => 'argument_nid_1',
1571 1502
       ),
1503
+      'not' => FALSE,
1572 1504
     ),
1573
-  );
1574
-  $display->panel_settings = array(
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,
1505
+  ),
1506
+  'logic' => 'and',
1507
+),
1508
+);
1509
+$display = new panels_display;
1510
+$display->layout = 'twocol_stacked';
1511
+$display->layout_settings = array(
1512
+'items' => array(
1513
+  'canvas' => array(
1514
+    'type' => 'row',
1515
+    'contains' => 'column',
1516
+    'children' => array(
1517
+      0 => 'main',
1518
+      1 => 2,
1585 1519
     ),
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
-    $pane = new stdClass;
1594
-    $pane->pid = 'new-1';
1595
-    $pane->panel = 'left';
1596
-    $pane->type = 'custom';
1597
-    $pane->subtype = 'custom';
1598
-    $pane->shown = TRUE;
1599
-    $pane->access = array();
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,
1606
-    );
1607
-    $pane->cache = array();
1608
-    $pane->style = array(
1609
-      'settings' => NULL,
1610
-    );
1611
-    $pane->css = array(
1612
-      'css_id' => '',
1613
-      'css_class' => 'panel-primary container shadow',
1614
-    );
1615
-    $pane->extras = array();
1616
-    $pane->position = 0;
1617
-    $display->content['new-1'] = $pane;
1618
-    $display->panels['left'][0] = 'new-1';
1619
-    $pane = new stdClass;
1620
-    $pane->pid = 'new-2';
1621
-    $pane->panel = 'right';
1622
-    $pane->type = 'custom';
1623
-    $pane->subtype = 'custom';
1624
-    $pane->shown = TRUE;
1625
-    $pane->access = array(
1626
-      'plugins' => array(
1627
-        0 => array(
1628
-          'name' => 'php',
1629
-          'settings' => array(
1630
-            'description' => 'An admin of this team',
1631
-            'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1520
+    'parent' => NULL,
1521
+  ),
1522
+  'main' => array(
1523
+    'type' => 'column',
1524
+    'width' => 50,
1525
+    'width_type' => '%',
1526
+    'children' => array(
1527
+      0 => 'main-row',
1528
+      1 => 1,
1529
+    ),
1530
+    'parent' => 'canvas',
1531
+  ),
1532
+  'main-row' => array(
1533
+    'type' => 'row',
1534
+    'contains' => 'region',
1535
+    'children' => array(
1536
+      0 => 'center',
1537
+    ),
1538
+    'parent' => 'main',
1539
+  ),
1540
+  'center' => array(
1541
+    'type' => 'region',
1542
+    'title' => 'Center',
1543
+    'width' => 100,
1544
+    'width_type' => '%',
1545
+    'parent' => 'main-row',
1546
+  ),
1547
+  1 => array(
1548
+    'type' => 'row',
1549
+    'contains' => 'region',
1550
+    'children' => array(
1551
+      0 => 'top_teams',
1552
+    ),
1553
+    'parent' => 'main',
1554
+    'class' => 'panel-primary container shadow',
1555
+  ),
1556
+  'top_teams' => array(
1557
+    'type' => 'region',
1558
+    'title' => 'Top teams',
1559
+    'width' => 100,
1560
+    'width_type' => '%',
1561
+    'parent' => '1',
1562
+    'class' => 'panel-primary container shadow',
1563
+  ),
1564
+  2 => array(
1565
+    'type' => 'column',
1566
+    'width' => 50,
1567
+    'width_type' => '%',
1568
+    'parent' => 'canvas',
1569
+    'children' => array(),
1570
+    'class' => '',
1571
+  ),
1572
+),
1573
+);
1574
+$display->panel_settings = array(
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,
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();
1593
+$pane = new stdClass;
1594
+$pane->pid = 'new-1';
1595
+$pane->panel = 'left';
1596
+$pane->type = 'custom';
1597
+$pane->subtype = 'custom';
1598
+$pane->shown = TRUE;
1599
+$pane->access = array();
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,
1606
+);
1607
+$pane->cache = array();
1608
+$pane->style = array(
1609
+  'settings' => NULL,
1610
+);
1611
+$pane->css = array(
1612
+  'css_id' => '',
1613
+  'css_class' => 'panel-primary container shadow',
1614
+);
1615
+$pane->extras = array();
1616
+$pane->position = 0;
1617
+$display->content['new-1'] = $pane;
1618
+$display->panels['left'][0] = 'new-1';
1619
+$pane = new stdClass;
1620
+$pane->pid = 'new-2';
1621
+$pane->panel = 'right';
1622
+$pane->type = 'custom';
1623
+$pane->subtype = 'custom';
1624
+$pane->shown = TRUE;
1625
+$pane->access = array(
1626
+  'plugins' => array(
1627
+    0 => array(
1628
+      'name' => 'php',
1629
+      'settings' => array(
1630
+        'description' => 'An admin of this team',
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,
1636
-        ),
1637 1634
       ),
1638
-    );
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,
1645
-    );
1646
-    $pane->cache = array();
1647
-    $pane->style = array(
1648
-      'settings' => NULL,
1649
-    );
1650
-    $pane->css = array(
1651
-      'css_id' => 'team-management',
1652
-      'css_class' => 'panel-secondary container shadow',
1653
-    );
1654
-    $pane->extras = array();
1655
-    $pane->position = 0;
1656
-    $display->content['new-2'] = $pane;
1657
-    $display->panels['right'][0] = 'new-2';
1658
-    $pane = new stdClass;
1659
-    $pane->pid = 'new-3';
1660
-    $pane->panel = 'right';
1661
-    $pane->type = 'custom';
1662
-    $pane->subtype = 'custom';
1663
-    $pane->shown = TRUE;
1664
-    $pane->access = array(
1665
-      'plugins' => array(
1666
-        0 => array(
1667
-          'name' => 'php',
1668
-          'settings' => array(
1669
-            'description' => 'A member of this team, the forum is public, or has global team moderation',
1670
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1635
+      'not' => FALSE,
1636
+    ),
1637
+  ),
1638
+);
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,
1645
+);
1646
+$pane->cache = array();
1647
+$pane->style = array(
1648
+  'settings' => NULL,
1649
+);
1650
+$pane->css = array(
1651
+  'css_id' => 'team-management',
1652
+  'css_class' => 'panel-secondary container shadow',
1653
+);
1654
+$pane->extras = array();
1655
+$pane->position = 0;
1656
+$display->content['new-2'] = $pane;
1657
+$display->panels['right'][0] = 'new-2';
1658
+$pane = new stdClass;
1659
+$pane->pid = 'new-3';
1660
+$pane->panel = 'right';
1661
+$pane->type = 'custom';
1662
+$pane->subtype = 'custom';
1663
+$pane->shown = TRUE;
1664
+$pane->access = array(
1665
+  'plugins' => array(
1666
+    0 => array(
1667
+      'name' => 'php',
1668
+      'settings' => array(
1669
+        'description' => 'A member of this team, the forum is public, or has global team moderation',
1670
+        'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1671 1671
 return (
1672 1672
   (
1673 1673
     boincteam_is_member($team_id) OR
@@ -1677,204 +1677,204 @@  discard block
 block discarded – undo
1677 1677
    boincteam_forum_list($team_id)
1678 1678
   )
1679 1679
 );',
1680
-          ),
1681
-          'not' => FALSE,
1682
-        ),
1683 1680
       ),
1684
-    );
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,
1691
-    );
1692
-    $pane->cache = array();
1693
-    $pane->style = array(
1694
-      'settings' => NULL,
1695
-    );
1696
-    $pane->css = array(
1697
-      'css_id' => '',
1698
-      'css_class' => 'panel-secondary container shadow',
1699
-    );
1700
-    $pane->extras = array();
1701
-    $pane->position = 1;
1702
-    $display->content['new-3'] = $pane;
1703
-    $display->panels['right'][1] = 'new-3';
1704
-    $pane = new stdClass;
1705
-    $pane->pid = 'new-4';
1706
-    $pane->panel = 'right';
1707
-    $pane->type = 'custom';
1708
-    $pane->subtype = 'custom';
1709
-    $pane->shown = TRUE;
1710
-    $pane->access = array(
1711
-      'plugins' => array(
1712
-        0 => array(
1713
-          'name' => 'php',
1714
-          'settings' => array(
1715
-            'description' => 'Not in another team',
1716
-            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1681
+      'not' => FALSE,
1682
+    ),
1683
+  ),
1684
+);
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,
1691
+);
1692
+$pane->cache = array();
1693
+$pane->style = array(
1694
+  'settings' => NULL,
1695
+);
1696
+$pane->css = array(
1697
+  'css_id' => '',
1698
+  'css_class' => 'panel-secondary container shadow',
1699
+);
1700
+$pane->extras = array();
1701
+$pane->position = 1;
1702
+$display->content['new-3'] = $pane;
1703
+$display->panels['right'][1] = 'new-3';
1704
+$pane = new stdClass;
1705
+$pane->pid = 'new-4';
1706
+$pane->panel = 'right';
1707
+$pane->type = 'custom';
1708
+$pane->subtype = 'custom';
1709
+$pane->shown = TRUE;
1710
+$pane->access = array(
1711
+  'plugins' => array(
1712
+    0 => array(
1713
+      'name' => 'php',
1714
+      'settings' => array(
1715
+        'description' => 'Not in another team',
1716
+        'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1717 1717
 return ($account->team == 0);',
1718
-          ),
1719
-          'not' => FALSE,
1720
-        ),
1721
-        1 => array(
1722
-          'name' => 'perm',
1723
-          'settings' => array(
1724
-            'perm' => 'join boincteam',
1725
-          ),
1726
-          'context' => 'logged-in-user',
1727
-          'not' => FALSE,
1728
-        ),
1729
-        2 => array(
1730
-          'name' => 'php',
1731
-          'settings' => array(
1732
-            'description' => 'Team is open',
1733
-            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1718
+      ),
1719
+      'not' => FALSE,
1720
+    ),
1721
+    1 => array(
1722
+      'name' => 'perm',
1723
+      'settings' => array(
1724
+        'perm' => 'join boincteam',
1725
+      ),
1726
+      'context' => 'logged-in-user',
1727
+      'not' => FALSE,
1728
+    ),
1729
+    2 => array(
1730
+      'name' => 'php',
1731
+      'settings' => array(
1732
+        'description' => 'Team is open',
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,
1738
-        ),
1739 1736
       ),
1740
-    );
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,
1747
-    );
1748
-    $pane->cache = array();
1749
-    $pane->style = array(
1750
-      'settings' => NULL,
1751
-    );
1752
-    $pane->css = array(
1753
-      'css_id' => '',
1754
-      'css_class' => 'panel-secondary container shadow',
1755
-    );
1756
-    $pane->extras = array();
1757
-    $pane->position = 2;
1758
-    $display->content['new-4'] = $pane;
1759
-    $display->panels['right'][2] = 'new-4';
1760
-    $pane = new stdClass;
1761
-    $pane->pid = 'new-5';
1762
-    $pane->panel = 'right';
1763
-    $pane->type = 'custom';
1764
-    $pane->subtype = 'custom';
1765
-    $pane->shown = TRUE;
1766
-    $pane->access = array(
1767
-      'plugins' => array(
1768
-        0 => array(
1769
-          'name' => 'php',
1770
-          'settings' => array(
1771
-            'description' => 'A member of this team',
1772
-            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1737
+      'not' => FALSE,
1738
+    ),
1739
+  ),
1740
+);
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,
1747
+);
1748
+$pane->cache = array();
1749
+$pane->style = array(
1750
+  'settings' => NULL,
1751
+);
1752
+$pane->css = array(
1753
+  'css_id' => '',
1754
+  'css_class' => 'panel-secondary container shadow',
1755
+);
1756
+$pane->extras = array();
1757
+$pane->position = 2;
1758
+$display->content['new-4'] = $pane;
1759
+$display->panels['right'][2] = 'new-4';
1760
+$pane = new stdClass;
1761
+$pane->pid = 'new-5';
1762
+$pane->panel = 'right';
1763
+$pane->type = 'custom';
1764
+$pane->subtype = 'custom';
1765
+$pane->shown = TRUE;
1766
+$pane->access = array(
1767
+  'plugins' => array(
1768
+    0 => array(
1769
+      'name' => 'php',
1770
+      'settings' => array(
1771
+        'description' => 'A member of this team',
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,
1776
-        ),
1777 1774
       ),
1778
-    );
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,
1785
-    );
1786
-    $pane->cache = array();
1787
-    $pane->style = array(
1788
-      'settings' => NULL,
1789
-    );
1790
-    $pane->css = array(
1791
-      'css_id' => '',
1792
-      'css_class' => 'panel-secondary container shadow',
1793
-    );
1794
-    $pane->extras = array();
1795
-    $pane->position = 3;
1796
-    $display->content['new-5'] = $pane;
1797
-    $display->panels['right'][3] = 'new-5';
1798
-    $pane = new stdClass;
1799
-    $pane->pid = 'new-6';
1800
-    $pane->panel = 'right';
1801
-    $pane->type = 'custom';
1802
-    $pane->subtype = 'custom';
1803
-    $pane->shown = TRUE;
1804
-    $pane->access = array(
1805
-      'plugins' => array(
1806
-        0 => array(
1807
-          'name' => 'php',
1808
-          'settings' => array(
1809
-            'description' => 'A member of this team',
1810
-            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1775
+      'not' => FALSE,
1776
+    ),
1777
+  ),
1778
+);
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,
1785
+);
1786
+$pane->cache = array();
1787
+$pane->style = array(
1788
+  'settings' => NULL,
1789
+);
1790
+$pane->css = array(
1791
+  'css_id' => '',
1792
+  'css_class' => 'panel-secondary container shadow',
1793
+);
1794
+$pane->extras = array();
1795
+$pane->position = 3;
1796
+$display->content['new-5'] = $pane;
1797
+$display->panels['right'][3] = 'new-5';
1798
+$pane = new stdClass;
1799
+$pane->pid = 'new-6';
1800
+$pane->panel = 'right';
1801
+$pane->type = 'custom';
1802
+$pane->subtype = 'custom';
1803
+$pane->shown = TRUE;
1804
+$pane->access = array(
1805
+  'plugins' => array(
1806
+    0 => array(
1807
+      'name' => 'php',
1808
+      'settings' => array(
1809
+        'description' => 'A member of this team',
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,
1814
-        ),
1815
-        1 => array(
1816
-          'name' => 'php',
1817
-          'settings' => array(
1818
-            'description' => 'User is team founder',
1819
-            'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1812
+      ),
1813
+      'not' => FALSE,
1814
+    ),
1815
+    1 => array(
1816
+      'name' => 'php',
1817
+      'settings' => array(
1818
+        'description' => 'User is team founder',
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,
1824
-        ),
1825 1822
       ),
1826
-    );
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,
1833
-    );
1834
-    $pane->cache = array();
1835
-    $pane->style = array(
1836
-      'settings' => NULL,
1837
-    );
1838
-    $pane->css = array(
1839
-      'css_id' => '',
1840
-      'css_class' => 'panel-secondary container shadow',
1841
-    );
1842
-    $pane->extras = array();
1843
-    $pane->position = 4;
1844
-    $display->content['new-6'] = $pane;
1845
-    $display->panels['right'][4] = 'new-6';
1846
-    $pane = new stdClass;
1847
-    $pane->pid = 'new-7';
1848
-    $pane->panel = 'right';
1849
-    $pane->type = 'custom';
1850
-    $pane->subtype = 'custom';
1851
-    $pane->shown = TRUE;
1852
-    $pane->access = array();
1853
-    $pane->configuration = array(
1854
-      'admin_title' => 'Search teams',
1855
-      'title' => '',
1856
-      'body' => '<?php echo boincteam_search_panel(); ?>',
1857
-      'format' => '3',
1858
-      'substitute' => TRUE,
1859
-    );
1860
-    $pane->cache = array();
1861
-    $pane->style = array(
1862
-      'settings' => NULL,
1863
-    );
1864
-    $pane->css = array(
1865
-      'css_id' => '',
1866
-      'css_class' => 'panel-secondary container shadow',
1867
-    );
1868
-    $pane->extras = array();
1869
-    $pane->position = 5;
1870
-    $display->content['new-7'] = $pane;
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;
1823
+      'not' => TRUE,
1824
+    ),
1825
+  ),
1826
+);
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,
1833
+);
1834
+$pane->cache = array();
1835
+$pane->style = array(
1836
+  'settings' => NULL,
1837
+);
1838
+$pane->css = array(
1839
+  'css_id' => '',
1840
+  'css_class' => 'panel-secondary container shadow',
1841
+);
1842
+$pane->extras = array();
1843
+$pane->position = 4;
1844
+$display->content['new-6'] = $pane;
1845
+$display->panels['right'][4] = 'new-6';
1846
+$pane = new stdClass;
1847
+$pane->pid = 'new-7';
1848
+$pane->panel = 'right';
1849
+$pane->type = 'custom';
1850
+$pane->subtype = 'custom';
1851
+$pane->shown = TRUE;
1852
+$pane->access = array();
1853
+$pane->configuration = array(
1854
+  'admin_title' => 'Search teams',
1855
+  'title' => '',
1856
+  'body' => '<?php echo boincteam_search_panel(); ?>',
1857
+  'format' => '3',
1858
+  'substitute' => TRUE,
1859
+);
1860
+$pane->cache = array();
1861
+$pane->style = array(
1862
+  'settings' => NULL,
1863
+);
1864
+$pane->css = array(
1865
+  'css_id' => '',
1866
+  'css_class' => 'panel-secondary container shadow',
1867
+);
1868
+$pane->extras = array();
1869
+$pane->position = 5;
1870
+$display->content['new-7'] = $pane;
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;
1877 1877
 
1878
- return $pages;
1878
+return $pages;
1879 1879
 
1880 1880
 }
Please login to merge, or discard this patch.