".__('Pandora servers')." » ".__('Configuration detail').""; $total_modules = (int) get_db_value ('COUNT(*)', 'tagente_modulo', 'disabled', 0); $servers = get_server_info (); $table->width = '98%'; $table->size = array (); $table->size[6] = '60'; $table->style = array (); $table->style[0] = 'font-weight: bold'; $table->align = array (); $table->align[1] = 'center'; $table->align[6] = 'center'; $table->head = array (); $table->head[0] = __('Name'); $table->head[1] = __('Status'); $table->head[2] = __('Load'); $table->head[3] = __('Modules'); $table->head[4] = __('Lag'); $table->head[5] = __('Type'); $table->head[6] = __('Version'); // This will have a column of data such as "6 hours" $table->head[7] = __('Updated'); $table->data = array (); foreach ($servers as $server) { $data = array (); $data[0] = $server['name']; if ($server['status'] == 0) { $data[1] = print_status_image (STATUS_SERVER_DOWN, '', true); } else { $data[1] = print_status_image (STATUS_SERVER_OK, '', true); } // Load $data[2] = print_image ("reporting/fgraph.php?tipo=progress&percent=".$server["load"]."&height=20&width=80", true, array ("title" => $server["lag_txt"])); $data[3] = $server["modules"] . " ".__('of')." ". $server["modules_total"]; $data[4] = ''.$server["lag_txt"].''; $data[5] = ''.$server["img"].''; $data[6] = $server['version']; $data[7] = print_timestamp ($server['keepalive'], true); array_push ($table->data, $data); } if (! empty ($table->data)) { print_table ($table); } else { echo "