".__('Setup')." > "; echo __('General configuration').""; $file_styles = list_files('include/styles/', "pandora", 1, 0); $table->width = '90%'; $table->data = array (); $table->data[0][0] = __('Language code for Pandora'); $table->data[0][1] = print_select_from_sql ('SELECT id_language, name FROM tlanguage', 'language_code', $config["language"], '', '', '', true); $table->data[1][0] = __('Date format string') . pandora_help("date_format", true); $table->data[1][1] = ''.__('Example').' '.date ($config["date_format"]); $table->data[1][1] .= print_input_text ('date_format', $config["date_format"], '', 30, 100, true); $table->data[2][0] = __('Remote config directory'); $table->data[2][1] = print_input_text ('remote_config', $config["remote_config"], '', 30, 100, true); $table->data[3][0] = __('Graph color (min)'); $table->data[3][1] = print_input_text ('graph_color1', $config["graph_color1"], '', 8, 8, true); $table->data[4][0] = __('Graph color (avg)'); $table->data[4][1] = print_input_text ('graph_color2', $config["graph_color2"], '', 8, 8, true); $table->data[5][0] = __('Graph color (max)'); $table->data[5][1] = print_input_text ('graph_color3', $config["graph_color3"], '', 8, 8, true); $table->data[6][0] = __('SLA period (seconds)'); $table->data[6][1] = print_input_text ('sla_period', $config["sla_period"], '', 8, 8, true); $table->data[7][0] = __('Max. days before compact data'); $table->data[7][1] = print_input_text ('days_compact', $config["days_compact"], '', 5, 5, true); $table->data[8][0] = __('Max. days before purge'); $table->data[8][1] = print_input_text ('days_purge', $config["days_purge"], '', 5, 5, true); $table->data[9][0] = __('Graphic resolution (1-low, 5-high)'); $table->data[9][1] = print_input_text ('graph_res', $config["graph_res"], '', 5, 5, true); $table->data[10][0] = __('Compact interpolation in hours (1 Fine-20 bad)'); $table->data[10][1] = print_input_text ('step_compact', $config["step_compact"], '', 5, 5, true); $table->data[11][0] = __('Auto login (Hash) password'); $table->data[11][1] = print_input_text ('loginhash_pwd', $config["loginhash_pwd"], '', 15, 15, true); $table->data[13][0] = __('Style template'); $table->data[13][1] = print_select ($file_styles, 'style', $config["style"], '', '', '', true); $table->data[14][0] = __('Block size for pagination'); $table->data[14][1] = print_input_text ('block_size', $config["block_size"], '', 5, 5, true); $table->data[14][0] = __('Default hours for event view'); $table->data[14][1] = print_input_text ('event_view_hr', $config["event_view_hr"], '', 5, 5, true); $table->data[15][0] = __('Timestamp or time comparation') . pandora_help("time_stamp-comparation", true); $table->data[15][1] = __('Comparation in rollover').' '; $table->data[15][1] .= print_radio_button ('prominent_time', "timestamp", '', $config["prominent_time"], true); $table->data[15][1] .= '
'.__('Timestamp in rollover').' '; $table->data[15][1] .= print_radio_button ('prominent_time', "comparation", '', $config["prominent_time"], true); $table->data[16][0] = __('Time source') . pandora_help("timesource", true); $sources["system"] = __('System'); $sources["sql"] = __('Database'); $table->data[16][1] = print_select ($sources, 'timesource', $config["timesource"], '', '', '', true); $table->data[17][0] = __('Automatic update check'); $table->data[17][1] = print_checkbox ('autoupdate', 1, $config["autoupdate"], true); // 18 enterprise_hook ('load_snmpforward_enterprise'); $table->data[19][0] = __('Activate AD Authentication'); $table->data[19][1] = print_checkbox ('ad_auth', 1, $config["ad_auth"], false); $table->data[20][0] = __('Activate AD Authentication'); $table->data[20][1] = print_input_text ('loginhash_pwd', $config["loginhash_pwd"], '', 15, 15, true); $table->data[21][0] = __('Activate AD Authentication'); $table->data[21][1] = print_input_text ('loginhash_pwd', $config["loginhash_pwd"], '', 15, 15, true); echo '
'; print_input_hidden ('update_settings', 1); print_table ($table); echo '
'; print_submit_button (__('Update'), 'update_button', false, 'class="sub upd"'); echo '
'; echo '
'; ?>