Ejemplo n.º 1
0
$table->data[1][0] = print_checkbox("error_log", $error_log_options, $config["error_log"], true, __('Enable error log') . print_help_tip(__("This errorlog is on /integria.log"), true));
$table->data[1][1] = print_input_text("timezone", $config["timezone"], '', 15, 30, true, __('Timezone for integria'));
$table->data[2][0] = print_textarea("api_acl", 2, 1, $config["api_acl"], 'style="max-width: 280px;"', true, __('List of IP with access to API') . print_help_tip(__("List of IP (separated with commas which can access to the integria API. Use * for any address (INSECURE!)"), true), false);
$table->data[2][1] = print_input_password("api_password", $config["api_password"], '', 30, 255, true, __('API password'));
$days_of_week = get_days_of_week();
$table->data[4][0] = print_select($days_of_week, "first_day_week", $config["first_day_week"], '', '', '', true, 0, false, __('First day of the week'));
$table->data[4][1] = print_input_text("url_updatemanager", $config["url_updatemanager"], '', 35, 255, true, __('URL update manager'));
$table->data[5][0] = print_input_text("loginhash_pwd", $config["loginhash_pwd"], '', 30, 255, true, __('Loginhash password'));
$table->data[5][1] = print_checkbox("access_protocol", 1, $config["access_protocol"], true, __('Enable HTTPS access'));
$table->data[6][0] = print_input_text("access_port", $config["access_port"], '', 10, 255, true, __('Access port') . print_help_tip(__("Leave blank to use default port (80)"), true));
$table->data[6][1] = print_input_text("access_public", $config["access_public"], '', 30, 50, true, __('Public access to server') . print_help_tip(__("Public IP or name for the server, for example (23.45.67.3 or mydomain.com)"), true));
$csv_standard_encoding = !isset($config['csv_standard_encoding']) ? false : (bool) $config['csv_standard_encoding'];
$table->data[7][0] = print_label(__('CSV encoding type'), '', '', true);
$table->data[7][0] .= __('Excel') . ' ' . print_radio_button('csv_standard_encoding', 0, '', $csv_standard_encoding, true);
$table->data[7][0] .= print_help_tip(__("The Excel type may not be compatible with other applications"), true);
$table->data[7][0] .= '  ' . __('Other') . ' ' . print_radio_button('csv_standard_encoding', 1, '', $csv_standard_encoding, true);
$table->data[7][1] = print_checkbox("enable_update_manager", 1, $config["enable_update_manager"], true, __('Enable update manager updates'));
$table->data[8][0] = print_input_text("max_direct_download", $config["max_direct_download"], '', 10, 255, true, __('Maximum direct download size (MB)'));
$table->data[8][1] = print_input_text("max_file_size", $config["max_file_size"], '', 10, 255, true, __('Max. Upload file size'));
echo "<form name='setup' method='post'>";
print_table($table);
echo "<div class='button-form'>";
print_input_hidden('update', 1);
print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"');
echo "</div>";
echo '</form>';
?>

<script type="text/javascript" src="include/js/integria.js"></script>

<script type="text/javascript">
Ejemplo n.º 2
0
}
$table->data[3][0] = print_select($profile_list, "default_remote_profile", $config['default_remote_profile'], '', '', '', true, 0, true, __('Autocreate profile'), $disabled);
$group_list = group_get_groups();
if ($group_list === false) {
    $group_list = array();
}
$table->data[4][0] = print_select($group_list, "default_remote_group", $config['default_remote_group'], '', '', '', true, 0, true, __('Autocreate group'), $disabled);
$table->data[5][0] = print_input_text("autocreate_blacklist", $config['autocreate_blacklist'], '', 60, 500, true, __('Autocreate blacklist'), $disabled);
$table->data[5][0] .= integria_help("autocreate_blacklist", true);
$table->data[6][0] = print_input_text("LDAP_server", $config['ldap_server'], '', 10, 50, true, __('LDAP server'));
$table->data[7][0] = print_input_text("LDAP_port", $config['ldap_port'], '', 10, 50, true, __('LDAP port'));
$ldap_version = array(1 => 'LDAPv1', 2 => 'LDAPv2', 3 => 'LDAPv3');
$table->data[8][0] = print_select($ldap_version, "ldap_version", $config['ldap_version'], '', '', '', true, 0, true, __('LDAP version'));
$table->data[9][0] = '<b>' . __('Start TLS') . '</b>';
$table->data[10][0] = __('Yes') . '&nbsp;' . print_radio_button('ldap_start_tls', 1, '', $config['ldap_start_tls'], true, '', '', '') . '&nbsp;&nbsp;';
$table->data[10][0] .= __('No') . '&nbsp;' . print_radio_button('ldap_start_tls', 0, '', $config['ldap_start_tls'], true, '', '', '');
$table->data[11][0] = print_input_text("ldap_base_dn", $config['ldap_base_dn'], '', 60, 50, true, __('Base DN'));
$table->data[12][0] = print_input_text("ldap_login_attr", $config['ldap_login_attr'], '', 60, 50, true, __('Login attribute'));
// Hide LDAP configuration options
/*for ($i = 6; $i <= 11; $i++) {
	$table->rowstyle[$i] = $config['auth_methods'] == 'ldap' ? '' : 'display: none;';
	$table->rowclass[$i] = 'ldap';
}*/
// Add enterprise authentication options
if ($is_enterprise) {
    add_enterprise_auth_options($table, 13);
}
$button = print_input_hidden('update', 1, true);
$button .= print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"', true);
$table->data['button'][0] = $button;
$table->colspan['button'][0] = 2;