Added support for the new license format.

This commit is contained in:
Ramon Novoa 2015-09-18 12:58:04 +02:00
parent bd336d68f0
commit b4beb466a4
1 changed files with 11 additions and 3 deletions

View File

@ -62,20 +62,28 @@ $table->class = 'databox filters';
$table->data = array ();
$table->data[0][0] = '<strong>'.__('Customer key').'</strong>';
$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] = '<strong>'.__('Expires').'</strong>';
$table->data[1][1] = html_print_input_text('expires', $license['expiry_date'], '', 10, 255, true, true);
$table->data[2][0] = '<strong>'.__('Platform Limit').'</strong>';
$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] = '<strong>'.__('Current Platform Count').'</strong>';
$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] = '<strong>'.__('License Mode').'</strong>';
$table->data[4][1] = html_print_input_text('expires', $license['license_mode'], '', 10, 255, true, true);
$table->data[5][0] = '<strong>'.__('NMS').'</strong>';
$table->data[5][1] = html_print_input_text('expires', ($license['nms'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true);
$table->data[6][0] = '<strong>'.__('DHPM').'</strong>';
$table->data[6][1] = html_print_input_text('expires', ($license['dhpm'] == 1 ? __('enabled') : __('disabled')), '', 10, 255, true, true);
$table->data[7][0] = '<strong>'.__('Licensed to').'</strong>';
$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 '<div class="action-buttons" style="width: '.$table->width.'">';