Magellan Linux

Diff of /alx-src/branches/alx-web-060/show.php

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

revision 2600 by niro, Wed Jul 6 10:32:27 2011 UTC revision 2601 by niro, Wed Jul 6 10:37:11 2011 UTC
# Line 44  $drop['resolution'] = array('640x480', ' Line 44  $drop['resolution'] = array('640x480', '
44  $drop['depth'] = array('24', '16', '8');  $drop['depth'] = array('24', '16', '8');
45  $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');  $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');
46  $drop['keyboard'] = array('PC105');  $drop['keyboard'] = array('PC105');
47  if($alxos >= '0.6.0') {  if($alxos >= '0.6.0')
48    {
49   $drop['cfg_network_module'] = array('3c509', '3c59x', '8139cp', '8139too', '8390', 'amd8111e', 'atl1c', 'atl1e', 'atl1', 'atl2', 'b44', 'bnx2', 'cnic', 'e100', 'e1000', 'e1000e', 'forcedeth', 'igb', 'ipg', 'jme', 'natsemi', 'ne2k-pci', 'ns83820', 'pcnet32', 'qla3xxx', 'r8169', 'sis190', 'sis900', 'skge', 'sky2', 'tg3', 'typhoon', 'via-rhine', 'via-velocity', 'adm8211', 'airo', 'at76c50x-usb', 'ar9170usb', 'ath5k', 'ath9k', 'atmel', 'b43', 'b43legacy', 'hostap_pci', 'hostap_plx', 'ipw2100', 'ipw2200', 'iwl3945', 'usb8xxx', 'libertas_tf', 'libertas_tf_usb', 'mwl8k', 'orinoco', 'orinoco_nortel', 'orinoco_plx', 'orinoco_tmd', 'orinoco_usb', 'p54pci', 'p54usb', 'prism54', 'rndis_wlan', 'rt2400pci', 'rt2500pci', 'rt2500usb', 'rt2800pci', 'rt2800usb', 'rt61pci', 'rt73usb', 'rtl8180', 'rtl8187', 'wl1251', 'wl1271', 'zd1201', 'zd1211rw');   $drop['cfg_network_module'] = array('3c509', '3c59x', '8139cp', '8139too', '8390', 'amd8111e', 'atl1c', 'atl1e', 'atl1', 'atl2', 'b44', 'bnx2', 'cnic', 'e100', 'e1000', 'e1000e', 'forcedeth', 'igb', 'ipg', 'jme', 'natsemi', 'ne2k-pci', 'ns83820', 'pcnet32', 'qla3xxx', 'r8169', 'sis190', 'sis900', 'skge', 'sky2', 'tg3', 'typhoon', 'via-rhine', 'via-velocity', 'adm8211', 'airo', 'at76c50x-usb', 'ar9170usb', 'ath5k', 'ath9k', 'atmel', 'b43', 'b43legacy', 'hostap_pci', 'hostap_plx', 'ipw2100', 'ipw2200', 'iwl3945', 'usb8xxx', 'libertas_tf', 'libertas_tf_usb', 'mwl8k', 'orinoco', 'orinoco_nortel', 'orinoco_plx', 'orinoco_tmd', 'orinoco_usb', 'p54pci', 'p54usb', 'prism54', 'rndis_wlan', 'rt2400pci', 'rt2500pci', 'rt2500usb', 'rt2800pci', 'rt2800usb', 'rt61pci', 'rt73usb', 'rtl8180', 'rtl8187', 'wl1251', 'wl1271', 'zd1201', 'zd1211rw');
50  } else {  }
51    else
52    {
53   $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity');   $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity');
54  }  }
55  $drop['networking'] = array('dhcp', 'static');  $drop['networking'] = array('dhcp', 'static');
# Line 311  function parsearrs($name, $arr) Line 314  function parsearrs($name, $arr)
314    
315  <body><?  <body><?
316    
317  //echo '<body style="background-image:URL(logo.jpg);background-repeat:no-repeat; background-position:0px 0px; margin-top:25px">';  echo '<form action="show.php" method="post" onreset="return confirm(\'UNDO CHANGES?\')">';
 echo '<form action="show.php" method=post onreset="return confirm(\'UNDO CHANGES?\')">';  
318  echo '<input type=hidden name="do_upl" value="1">';  echo '<input type=hidden name="do_upl" value="1">';
319  echo '<input type=hidden name="id" value="'.$id.'">';  echo '<input type=hidden name="id" value="'.$id.'">';
320    
# Line 347  echo '</td><td valign=top>'; Line 349  echo '</td><td valign=top>';
349   $state = 'Off';   $state = 'Off';
350   if(count($conn)>0)   if(count($conn)>0)
351   {   {
 // passthru($pingcmd." ".$conn['ip']." &> /dev/null && exit 0 || exit 1",$retval);  
352   if($retval==0) $state = 'On';   if($retval==0) $state = 'On';
353   }   }
354    
   
355   echo '<img src="pics/logo2.jpg"><br><br>';   echo '<img src="pics/logo2.jpg"><br><br>';
356    
357   echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>';   echo '<input class="but" type=submit value="SAVE" style="width:150px"><br><br>';
# Line 385  echo '</td><td valign=top>'; Line 385  echo '</td><td valign=top>';
385   if($state=='On')   if($state=='On')
386   {   {
387   echo '<u>IP:</u> '.$conn['ip'].'<br><br>';   echo '<u>IP:</u> '.$conn['ip'].'<br><br>';
388   if($alxos >= '0.6.0') {   if($alxos >= '0.6.0')
389     {
390   $osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']);   $osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']);
391   } else {   }
392     else
393     {
394   $osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng-alx | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']);   $osver = sshdo('os_ver=$(</etc/mageversion);cfg_ver=$(/sbin/magequery -n alxconfig-ng-alx | cut -d" " -f5);pname=${cfg_ver%-*-*};cfg_ver=${cfg_ver/${pname}-};echo "${os_ver}:${cfg_ver}"', $conn['ip']);
395   }   }
396   $osver = explode(':',$osver[1]);   $osver = explode(':',$osver[1]);
# Line 413  echo '</td><td valign=top>'; Line 416  echo '</td><td valign=top>';
416   }   }
417    
418   echo '</b></div>';   echo '</b></div>';
  //echo '<br><br>';  
419    
420   if($state=='On')   if($state=='On')
421   {   {

Legend:
Removed from v.2600  
changed lines
  Added in v.2601