0) { $_REQUEST['limit']++; // Account for the header line $netstat .= " | /usr/bin/head -n {$_REQUEST['limit']}"; } echo htmlspecialchars_decode(shell_exec($netstat)); exit; } require_once('guiconfig.inc'); $pgtitle = array(gettext("Diagnostics"), gettext("Routes")); $shortcut_section = "routing"; include('head.inc'); $form = new Form(false); $form->addGlobal(new Form_Input( 'isAjax', null, 'hidden', 1 )); $section = new Form_Section('Routing Table Display Options'); $section->addInput(new Form_Checkbox( 'resolve', 'Resolve names', 'Enable', $resolve ))->setHelp('Enabling name resolution may cause the query to take longer.'. ' It can be stopped at any time by clicking the Stop button in the browser.'); $validLimits = array('10', '50', '100', '200', '500', '1000', 'all'); $section->addInput(new Form_Select( 'limit', 'Rows to display', $limit, array_combine($validLimits, $validLimits) )); $section->addInput(new Form_Input( 'filter', 'Filter', 'text', $host ))->setHelp('Use a regular expression to filter the tables.'); $form->add($section); $form->addGlobal(new Form_Button( 'Submit', 'Update', null, 'fa-refresh' ))->addClass('btn-primary'); print $form; ?>