Magellan Linux

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

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

revision 438 by niro, Thu Jun 5 11:00:34 2008 UTC revision 478 by niro, Sat Jun 7 10:10:34 2008 UTC
# Line 1  Line 1 
1  <?  <?
2   // INCLUDE UND TABELLEN-DEFINITIONEN   // INCLUDE UND TABELLEN-DEFINITIONEN
3   include('include/basesql.php');   include('include/basesql.php');
4   $tabs = array('cfg_graphic', 'cfg_network', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver');   $tabs = array('cfg_graphic', 'cfg_network', 'cfg_interfaces', 'cfg_input', 'client_auth', 'cfg_autostart', 'client_serials', 'cfg_comments', 'cfg_printers', 'cfg_sessions', 'cfg_modules', 'cfg_other_menuitems', 'cfg_screensaver');
5   $multi= array(    0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0);   $multi= array(    0, 0,  1,   0, 0, 0, 0,   1,   1,   1,   1, 1,   0);
6   $data = array();   $data = array();
7    
8   if($kill==1)   if($kill==1)
# 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['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp');   $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, '', 'iface');
33     $drop['iface'] = 'show';
34     # only support parallel and seriell printing on tinyalx
35     //$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp');
36     $drop['port'] = array('lpt1', 'com1');
37   $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');   $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');
38   $drop['id'] = 'hidden';   $drop['id'] = 'hidden';
39   $drop['flg_modified'] = '1';   $drop['flg_modified'] = '1';
# Line 37  Line 41 
41   $drop['monitorid'] = 'monitorid';   $drop['monitorid'] = 'monitorid';
42   $drop['hostname'] = 'bold';   $drop['hostname'] = 'bold';
43   $drop['session'] = 'bold';   $drop['session'] = 'bold';
44     $drop['displaymode'] = array('fullscreen', 'seamless', '1280x1024', '1024x768', '800x600');
45   $drop['cfg_autostart_session'] = 'filename';   $drop['cfg_autostart_session'] = 'filename';
46   $drop['mtime'] = 'showtime';   $drop['mtime'] = 'showtime';
47   $drop['mac'] = 'show';   $drop['mac'] = 'show';
# Line 57  Line 62 
62   'sierpinski', 'slip', 'solitare', 'space', 'sphere', 'spiral', 'spline', 'star', 'starfish', 'strange',   'sierpinski', 'slip', 'solitare', 'space', 'sphere', 'spiral', 'spline', 'star', 'starfish', 'strange',
63   'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle',   'swarm', 'swirl', 't3d', 'tetris', 'thornbird', 'tik_tak', 'toneclock', 'triangle', 'tube', 'turtle',
64   'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack');   'vines', 'voters', 'wator', 'wire', 'world', 'worm', 'xcl', 'xjack');
65   $drop['iface'] = array('eth0', 'wlan0');  
   
66    
67   // ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_   // ACHTUNG!!! wlan_-Felder heißen eigentlich wireless_
68   $drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto');   $drop['wireless_mode'] = array('', 'managed', 'ad-hoc', 'master', 'repeater', 'secondary', 'monitor', 'auto');
# Line 100  Line 104 
104    
105   foreach($tabs as $k=>$t)   foreach($tabs as $k=>$t)
106   {   {
107   if(!$multi[$k]) mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);   if(!$multi[$k])
108     {
109     mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);
110     }
111   else   else
112   {   {
113   $i=0;   $i=0;
# Line 172  Line 179 
179    
180   foreach($arr as $k=>$v)   foreach($arr as $k=>$v)
181   {   {
182   if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;   //if( (substr($k,0,9)=='wireless_') xor $wireless ) Continue;
183    
184   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];   $d = $drop[$name.'_'.$k]; if($d==null) $d = $drop[$k];
185   $k = str_replace('wireless_', '', $k);   //$k = str_replace('wireless_', '', $k);
186   $k2 = $k;   $k2 = $k;
187    
188   if(is_array($d))   if(is_array($d))
# Line 201  Line 208 
208   echo '</table>';   echo '</table>';
209   closeabs();   closeabs();
210    
211   if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);   //if($name=='cfg_network' && !$wireless) parsearr($name.'_wireless', $arr, $del, true);
212   }   }
213   function parsearrs($name, $arr)   function parsearrs($name, $arr)
214   {   {

Legend:
Removed from v.438  
changed lines
  Added in v.478