if ($auto_configure) { $read_only = TRUE; $buttons = array(); } else { if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/pptpd/settings')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/pptpd/settings/edit')); } } /////////////////////////////////////////////////////////////////////////////// // Auto configure help /////////////////////////////////////////////////////////////////////////////// $options['buttons'] = array(anchor_custom('/app/pptpd/settings/disable_auto_configure', lang('base_disable_auto_configuration'))); if ($auto_configure) { echo infobox_highlight(lang('base_automatic_configuration_enabled'), lang('pptpd_auto_configure_help'), $options); } /////////////////////////////////////////////////////////////////////////////// // Form /////////////////////////////////////////////////////////////////////////////// echo form_open('pptpd/settings'); echo form_header(lang('base_settings')); echo field_input('local_ip', $local_ip, lang('pptpd_local_ip_range'), $read_only); echo field_input('remote_ip', $remote_ip, lang('pptpd_remote_ip_range'), $read_only); echo field_input('dns', $dns, lang('pptpd_dns_server'), $read_only); echo field_input('wins', $wins, lang('pptpd_wins_server'), $read_only); echo field_button_set($buttons); echo form_footer(); echo form_close();
// You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('web_proxy'); /////////////////////////////////////////////////////////////////////////////// // Headers /////////////////////////////////////////////////////////////////////////////// $headers = array(lang('web_proxy_site')); /////////////////////////////////////////////////////////////////////////////// // Anchors /////////////////////////////////////////////////////////////////////////////// $anchors = array(anchor_custom('/app/web_proxy', lang('base_return_to_summary')), anchor_add('/app/web_proxy/exceptions/add')); /////////////////////////////////////////////////////////////////////////////// // Items /////////////////////////////////////////////////////////////////////////////// foreach ($exceptions as $site) { $item['title'] = $site; $item['action'] = '/app/web_proxy/exceptions/edit/' . $site; $item['anchors'] = button_set(array(anchor_delete('/app/web_proxy/exceptions/delete/' . $site))); $item['details'] = array($site); $items[] = $item; } sort($items); /////////////////////////////////////////////////////////////////////////////// // Summary table /////////////////////////////////////////////////////////////////////////////// echo summary_table(lang('web_proxy_exception_sites'), $anchors, $headers, $items);
// along with this program. If not, see <http://www.gnu.org/licenses/>. // /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// // Load dependencies /////////////////////////////////////////////////////////////////////////////// $this->lang->load('web_proxy'); /////////////////////////////////////////////////////////////////////////////// // Form handler /////////////////////////////////////////////////////////////////////////////// if ($form_type === 'edit') { $read_only = FALSE; $buttons = array(form_submit_update('submit'), anchor_cancel('/app/web_proxy')); } else { $read_only = TRUE; $buttons = array(anchor_edit('/app/web_proxy/settings/edit'), anchor_custom('/app/web_proxy/settings/delete', lang('web_proxy_reset_cache'))); // anchor_javascript('reset_cache', lang('web_proxy_reset_cache'), 'high') } /////////////////////////////////////////////////////////////////////////////// // Form open /////////////////////////////////////////////////////////////////////////////// echo form_open('web_proxy/settings/edit'); echo form_header(lang('base_settings')); echo fieldset_header(lang('web_proxy_cache')); echo field_dropdown('cache', $cache_options, $cache, lang('web_proxy_maximum_cache_size'), $read_only); echo field_dropdown('object', $object_options, $object, lang('web_proxy_maximum_object_size'), $read_only); echo field_dropdown('download', $download_options, $download, lang('web_proxy_maximum_file_download_size'), $read_only); echo fieldset_footer(); echo fieldset_header(lang('base_tuning')); echo field_dropdown('levels', $levels, $level, lang('base_performance_level'), TRUE); echo fieldset_footer();