addInput(new Form_Select( 'dir', 'Direction', strtolower($pconfig['dir']), build_dir_list() ))->setHelp('Use "From" to always allow a Hostname through the captive portal (without authentication). ' . 'Use "To" to allow access from all clients (even non-authenticated ones) behind the portal to this Hostname.'); $section->addInput(new Form_Input( 'hostname', 'Hostname', 'text', $pconfig['hostname'] )); $section->addInput(new Form_Input( 'descr', 'Description', 'text', $pconfig['descr'] ))->setHelp('A description may be entered here for administrative reference (not parsed).'); $section->addInput(new Form_Input( 'bw_up', 'Bandwidth up', 'text', $pconfig['bw_up'] ))->setHelp('Enter a upload limit to be enforced on this Hostname in Kbit/s'); $section->addInput(new Form_Input( 'bw_down', 'Bandwidth down', 'text', $pconfig['bw_down'] ))->setHelp('Enter a download limit to be enforced on this Hostname in Kbit/s'); $section->addInput(new Form_Input( 'zone', null, 'hidden', $cpzone )); if (isset($id) && $a_allowedhostnames[$id]) { $section->addInput(new Form_Input( 'id', null, 'hidden', $id )); } $form->add($section); print($form); include("foot.inc");