From b4beb466a46c829d9919501c1cb7b00c9f61c330 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 18 Sep 2015 12:58:04 +0200 Subject: [PATCH] Added support for the new license format. --- pandora_console/godmode/setup/license.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pandora_console/godmode/setup/license.php b/pandora_console/godmode/setup/license.php index 85078f3741..19f4644995 100644 --- a/pandora_console/godmode/setup/license.php +++ b/pandora_console/godmode/setup/license.php @@ -62,20 +62,28 @@ $table->class = 'databox filters'; $table->data = array (); $table->data[0][0] = ''.__('Customer key').''; -$table->data[0][1] = html_print_input_text ('keys[customer_key]', $settings->customer_key, '', 81, 255, true); +$table->data[0][1] = html_print_textarea ('keys[customer_key]', 10, 255, $settings->customer_key, 'style="height:50px; width:250px;"', true); $table->data[1][0] = ''.__('Expires').''; $table->data[1][1] = html_print_input_text('expires', $license['expiry_date'], '', 10, 255, true, true); $table->data[2][0] = ''.__('Platform Limit').''; -$table->data[2][1] = html_print_input_text('expires', $license['max_agents'], '', 10, 255, true, true); +$table->data[2][1] = html_print_input_text('expires', $license['limit'], '', 10, 255, true, true) . ' ' . ($license['limit_mode'] == 0 ? __('agents') : __('modules')); $table->data[3][0] = ''.__('Current Platform Count').''; -$table->data[3][1] = html_print_input_text('expires', $license['agent_count'], '', 10, 255, true, true); +$table->data[3][1] = html_print_input_text('expires', $license['count'], '', 10, 255, true, true) . ' ' . ($license['limit_mode'] == 0 ? __('agents') : __('modules')); $table->data[4][0] = ''.__('License Mode').''; $table->data[4][1] = html_print_input_text('expires', $license['license_mode'], '', 10, 255, true, true); +$table->data[5][0] = ''.__('NMS').''; +$table->data[5][1] = html_print_input_text('expires', ($license['nms'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true); + +$table->data[6][0] = ''.__('DHPM').''; +$table->data[6][1] = html_print_input_text('expires', ($license['dhpm'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true); + +$table->data[7][0] = ''.__('Licensed to').''; +$table->data[7][1] = html_print_input_text('licensed_to', $license['licensed_to'], '', 64, 255, true, true); html_print_table ($table); if (enterprise_installed()) { echo '
';