} $table->data[0][0] = print_select($auth_methods, "auth_methods", $auth_method, '', '', '', true, 0, true, __('Authentication method')); $table->data[0][1] = print_input_text("session_timeout", $config['session_timeout'], '', 10, 10, true, __('Session timeout (secs)')); $table->data[0][1] .= print_help_tip(__("This is defined in seconds. "), true); $table->data[1][0] = '<b>' . __('Autocreate remote users') . '</b>'; $table->data[2][0] = __('Yes') . ' ' . print_radio_button_extended('autocreate_remote_users', 1, '', $config['autocreate_remote_users'], false, 'enable_autocreate_profile();', '', true) . ' '; $table->data[2][0] .= __('No') . ' ' . print_radio_button_extended('autocreate_remote_users', 0, '', $config['autocreate_remote_users'], false, 'enable_autocreate_profile();', '', true); if ($config['autocreate_remote_users'] == 0) { $disabled = true; } $profile_list = profile_get_profiles(); if ($profile_list === false) { $profile_list = array(); } $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') . ' ' . print_radio_button('ldap_start_tls', 1, '', $config['ldap_start_tls'], true, '', '', '') . ' '; $table->data[10][0] .= __('No') . ' ' . 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'));
$content = ""; $expire = 0; $date = date('Y-m-d', time() + 604800); //one week later $time = date('H:i:s', time()); $table->width = '99%'; $table->class = 'search-table-button'; $table->colspan = array(); $table->colspan[1][0] = 2; $table->colspan[2][0] = 4; $table->colspan[3][0] = 2; $table->colspan[4][0] = 2; $table->data = array(); $table->data[1][0] = print_input_text('title', $title, '', 60, 100, true, __('Title')); $table->data[2][0] = print_textarea("content", 10, 1, $content, '', true, __('Contents')); $all_groups = group_get_groups(); $table->data[0][0] = print_select($all_groups, "id_group", $id_grupo, '', '', 0, true, false, false, __('Group')); $table->data[0][1] = print_checkbox('expire', 1, false, true, __('Expire')); $table->data[0][2] = "<div style='display:inline-block;'>" . print_input_text('expire_date', $date, '', 11, 2, true, __('Date')) . "</div>"; $table->data[0][2] .= " "; $table->data[0][2] .= "<div style='display:inline-block;'>" . print_input_text('expire_time', $time, '', 7, 20, true, __('Time')) . "</div>"; $button = print_submit_button(__('Create'), 'crt', false, 'class="sub create"', true); $button .= print_input_hidden('operation', 'insert', true); $table->data['button'][0] = $button; $table->colspan['button'][0] = 4; echo '<form method="post" action="index.php?sec=godmode&sec2=godmode/setup/newsboard">'; print_table($table); echo '</form>'; } // ------------------------- // TODO VIEW of my OWN items