array( 'active' => false, 'text' => '' . html_print_image ("images/eye.png", true, array ("title" => __('Update manager'))) .'')); ui_print_page_header (__('Update manager').' - '. __('Settings'), "images/extensions.png", false, "", true, $buttons); if ($update_settings) { foreach ($_POST['keys'] as $key => $value) { um_db_update_setting ($key, $value); } if (!enterprise_installed()) { global $conf_update_pandora; if (empty($conf_update_pandora)) $conf_update_pandora = update_pandora_get_conf(); $conf_update_pandora['download_mode'] = get_parameter('download_mode', 'curl'); update_pandora_update_conf(); } echo "

" . __('Update manager settings updated') . "

"; } $settings = null; $settings = um_db_load_settings (); echo '
'; $table->width = '95%'; $table->data = array (); $table->data[0][0] = ''.__('Customer key').''; $table->data[0][1] = html_print_input_text ('keys[customer_key]', $settings->customer_key, '', 40, 255, true); $table->data[0][1] .= ' '.html_print_image('images/lock.png', true, array('class' => 'bot', 'title' => __('License info'))).''; $table->data[0][1] .= ''; $table->data[1][0] = ''.__('Update server host').''; $table->data[1][1] = html_print_input_text ('keys[update_server_host]', $settings->update_server_host, '', 20, 255, true); $table->data[2][0] = ''.__('Update server path').''; $table->data[2][1] = html_print_input_text ('keys[update_server_path]', $settings->update_server_path, '', 40, 255, true); $table->data[3][0] = ''.__('Update server port').''; $table->data[3][1] = html_print_input_text ('keys[update_server_port]', $settings->update_server_port, '', 5, 5, true); $table->data[6][0] = ''.__('Proxy server').''; $table->data[6][1] = html_print_input_text ('keys[proxy]', $settings->proxy, '', 40, 255, true); $table->data[7][0] = ''.__('Proxy port').''; $table->data[7][1] = html_print_input_text ('keys[proxy_port]', $settings->proxy_port, '', 40, 255, true); $table->data[8][0] = ''.__('Proxy user').''; $table->data[8][1] = html_print_input_text ('keys[proxy_user]', $settings->proxy_user, '', 40, 255, true); $table->data[9][0] = ''.__('Proxy password').''; $table->data[9][1] = html_print_input_password ('keys[proxy_pass]', $settings->proxy_pass, '', 40, 255, true); if (!enterprise_installed()) { global $conf_update_pandora; if (empty($conf_update_pandora)) $conf_update_pandora = update_pandora_get_conf(); $methods = array( 'wget' => __('WGET, no interactive, external command, fast'), 'curl' =>__('CURL, interactive, internal command, slow')); $table->data[10][0] = '' . __('Download Method') . ''; $table->data[10][1] = html_print_select($methods, 'download_mode', $conf_update_pandora['download_mode'], '', '', 0, true); } html_print_table ($table); echo '
'; html_print_input_hidden ('update_settings', 1); html_print_submit_button (__('Update'), 'update_button', false, 'class="sub upd"'); echo '
'; echo '
'; ?>