$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( 'parent', 'Parent Interface', $pconfig['if'], build_parent_list() )); $section->addInput(new Form_Select( 'mode', 'Mode', $pconfig['mode'], array( 'bss' => 'Infrastructure (BSS)', 'adhoc' => 'Ad-hoc (IBSS)', 'hostap' => 'Access Point' ) )); $section->addInput(new Form_Input( 'descr', 'Description', 'text', $pconfig['descr'] ))->setHelp('You may enter a description here for your 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");