Magellan Linux

Diff of /alx-src/trunk/alx-web/show.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 465 by niro, Thu Jun 5 20:46:44 2008 UTC revision 471 by niro, Fri Jun 6 08:37:02 2008 UTC
# Line 29  Line 29 
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_interfaces where serial='.$id, 'default_iface', 'iface');   $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, '', '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');
# Line 102  Line 102 
102    
103   foreach($tabs as $k=>$t)   foreach($tabs as $k=>$t)
104   {   {
105   if(!$multi[$k]) mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);   if(!$multi[$k])
106     {
107     mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);
108     }
109   else   else
110   {   {
111   $i=0;   $i=0;
# Line 174  Line 177 
177    
178   foreach($arr as $k=>$v)   foreach($arr as $k=>$v)
179   {   {
180   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;   //if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;
181    
182   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];
183   $k = str_replace('wireless_', '', $k);   //$k = str_replace('wireless_', '', $k);
184   $k2 = $k;   $k2 = $k;
185    
186   if(is_array($d))   if(is_array($d))
# Line 203  Line 206 
206   echo '</table>';   echo '</table>';
207   closeabs();   closeabs();
208    
209   if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);   //if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);
210   }   }
211   function parsearrs($name, $arr)   function parsearrs($name, $arr)
212   {   {

Legend:
Removed from v.465  
changed lines
  Added in v.471