summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scire/.lib/functions.php')
-rw-r--r--scire/.lib/functions.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/scire/.lib/functions.php b/scire/.lib/functions.php
index 5908f09..7f49f7f 100644
--- a/scire/.lib/functions.php
+++ b/scire/.lib/functions.php
@@ -40,6 +40,10 @@ function get_clients_fields() {
return $fields;
}
+function get_default_clients_fields() {
+ return 'hostname,ip,profile_name,osname,username,status,groups';
+}
+
function get_users_fields() {
$fields['username'] = array('name' => 'Username', 'sortable' => True);
$fields['real_name'] = array('name' => 'Real Name', 'sortable' => True);
@@ -49,6 +53,10 @@ function get_users_fields() {
return $fields;
}
+function get_default_users_fields() {
+ return 'username,real_name,comment,status,groups';
+}
+
function get_jobs_fields() {
$fields['hostname'] = array('name' => 'Hostname', 'sortable' => True);
$fields['priority'] = array('name' => 'Priority', 'sortable' => True);
@@ -62,6 +70,10 @@ function get_jobs_fields() {
return $fields;
}
+function get_default_jobs_fields() {
+ return 'hostname,scriptname,priority,created,permname,pending,failed';
+}
+
function get_priorities() {
return array('1','2','3','4','5','6','7','8','9');
}