$ifinfo) { if (preg_match($g['wireless_regex'], $ifn)) { $parentlist[$ifn] = htmlspecialchars($ifn . ' (' . $ifinfo['mac'] . ')'); $count++; } } if ($count > 0) { return($parentlist); } else { return(array('0' => gettext('None available'))); } } $pgtitle = array(gettext("Interfaces"), gettext("Wireless"), gettext("Edit")); include("head.inc"); if ($input_errors) { print_input_errors($input_errors); } $form = new Form(); $section = new Form_Section('Wireless Interface Configuration'); $section->addInput(new Form_Select( 'if', 'Parent Interface', $pconfig['if'], build_parent_list() )); $section->addInput(new Form_Select( 'mode', 'Mode', $pconfig['mode'], array( 'bss' => gettext('Infrastructure (BSS)'), 'adhoc' => gettext('Ad-hoc (IBSS)'), 'hostap' => gettext('Access Point') ) )); $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( 'cloneif', null, 'hidden', $pconfig['cloneif'] )); if (isset($id) && $a_clones[$id]) { $section->addInput(new Form_Input( 'id', null, 'hidden', $id )); } $form->add($section); print($form); include("foot.inc");