29 |
$drop['keyboard'] = array('kbd'); |
$drop['keyboard'] = array('kbd'); |
30 |
$drop['cfg_network_module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); |
$drop['cfg_network_module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211'); |
31 |
$drop['networking'] = array('dhcp', 'static'); |
$drop['networking'] = array('dhcp', 'static'); |
32 |
$drop['default_iface'] = sqlarr('SELECT iface FROM cfg_network_interfaces where serial='.$id, 'default_iface', 'iface'); |
$drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, 'default_iface', 'iface'); |
33 |
$drop['iface'] = 'show'; |
$drop['iface'] = 'show'; |
34 |
$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp'); |
35 |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
$drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location'); |
174 |
|
|
175 |
foreach($arr as $k=>$v) |
foreach($arr as $k=>$v) |
176 |
{ |
{ |
177 |
if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; |
//if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue; |
178 |
|
|
179 |
$d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k]; |
$d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k]; |
180 |
$k = str_replace('wireless_', '', $k); |
//$k = str_replace('wireless_', '', $k); |
181 |
$k2 = $k; |
$k2 = $k; |
182 |
|
|
183 |
if(is_array($d)) |
if(is_array($d)) |
203 |
echo '</table>'; |
echo '</table>'; |
204 |
closeabs(); |
closeabs(); |
205 |
|
|
206 |
if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); |
//if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true); |
207 |
} |
} |
208 |
function parsearrs($name, $arr) |
function parsearrs($name, $arr) |
209 |
{ |
{ |