Magellan Linux

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

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

revision 469 by niro, Thu Jun 5 21:58:08 2008 UTC revision 494 by niro, Sun Jun 8 13:49:11 2008 UTC
# Line 27  Line 27 
27   $drop['depth'] = array('24', '16', '8');   $drop['depth'] = array('24', '16', '8');
28   $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');   $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');
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['module'] = array('auto','3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211');
32   $drop['networking'] = array('dhcp', 'static');   $drop['networking'] = array('dhcp', 'static');
33   $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, '', 'iface');   $drop['default_iface'] = sqlarr('SELECT iface FROM cfg_interfaces where serial='.$id, '', 'iface');
34   $drop['iface'] = 'show';   $drop['iface'] = 'show';
35   $drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp');   # only support parallel and seriell printing on tinyalx
36     //$drop['port'] = array('lpt1', 'com1', 'com2', 'lpd', 'socket', 'ipp');
37     $drop['port'] = array('lpt1', 'com1');
38   $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');   $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');
39   $drop['id'] = 'hidden';   $drop['id'] = 'hidden';
40   $drop['flg_modified'] = '1';   $drop['flg_modified'] = '1';
# Line 40  Line 43 
43   $drop['hostname'] = 'bold';   $drop['hostname'] = 'bold';
44   $drop['session'] = 'bold';   $drop['session'] = 'bold';
45   $drop['displaymode'] = array('fullscreen', 'seamless', '1280x1024', '1024x768', '800x600');   $drop['displaymode'] = array('fullscreen', 'seamless', '1280x1024', '1024x768', '800x600');
46   $drop['cfg_autostart_session'] = 'filename';   $drop['cfg_autostart_session'] = array('');
47     $drop['cfg_autostart_session'] += sqlarr('SELECT filename FROM cfg_sessions where serial='.$id, 'array', 'filename');
48   $drop['mtime'] = 'showtime';   $drop['mtime'] = 'showtime';
49   $drop['mac'] = 'show';   $drop['mac'] = 'show';
50   $drop['client_serials_serial'] = 'show';   $drop['client_serials_serial'] = 'show';
# Line 102  Line 106 
106    
107   foreach($tabs as $k=>$t)   foreach($tabs as $k=>$t)
108   {   {
109   echo "debug1: '".updatestr(postarr($t))."'<br>";   if(!$multi[$k])
110   if(!$multi[$k]) mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);   {
111     mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t)).' WHERE serial='.$id);
112     }
113   else   else
114   {   {
115   $i=0;   $i=0;
# Line 112  Line 118 
118   if($_POST[$t.'_'.$i.'_delete'])   if($_POST[$t.'_'.$i.'_delete'])
119   mysql_query('DELETE FROM '.$t.' WHERE serial='.$id.' AND id='.$_POST[$t.'_'.$i.'_id']);   mysql_query('DELETE FROM '.$t.' WHERE serial='.$id.' AND id='.$_POST[$t.'_'.$i.'_id']);
120   else   else
  echo "debug2: '".updatestr(postarr($t.'_'.$i))."'<br>";  
121   mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t.'_'.$i)).' WHERE serial='.$id.' AND id='.$_POST[$t.'_'.$i.'_id']);   mysql_query('UPDATE '.$t.' SET '.updatestr(postarr($t.'_'.$i)).' WHERE serial='.$id.' AND id='.$_POST[$t.'_'.$i.'_id']);
122   $i++;   $i++;
123   }   }

Legend:
Removed from v.469  
changed lines
  Added in v.494