Magellan Linux

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

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

revision 1610 by niro, Thu Dec 2 23:02:19 2010 UTC revision 1650 by niro, Fri Jan 21 00:01:27 2011 UTC
# Line 29  Line 29 
29   $drop = array();   $drop = array();
30   if($alxos >= '0.5.3')   if($alxos >= '0.5.3')
31   {   {
32   $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mga', 'r128', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'via');   $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng');
33   }   }
34   else   else
35   {   {
# Line 38  Line 38 
38   $drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050');   $drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050');
39   $drop['depth'] = array('24', '16', '8');   $drop['depth'] = array('24', '16', '8');
40   $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');   $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2');
41     $drop['keyboard'] = array('PC105');
42   $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', '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', 'r8169', 'sk98lin', 'tg3', 'via-velocity');
43   $drop['networking'] = array('dhcp', 'static');   $drop['networking'] = array('dhcp', 'static');
44   $drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp');   $drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp');
# Line 197  Line 198 
198   $k = str_replace('wireless_', '', $k);   $k = str_replace('wireless_', '', $k);
199   $k2 = $k;   $k2 = $k;
200    
201   //replace i810 with intel on 0.5.3 or higher   //replace some drivers on 0.5.3 or higher
202   if($alxos >= '0.5.3' && $v == 'i810')   if($alxos >= '0.5.3')
203   {   {
204   echo '<br><font color="#FF0000">Replaced "i810" with "intel" - Please press SAVE!</font><br>';   if($v == 'i810')
205   $v='intel';   {
206     echo '<br><font color="#FF0000">Replaced "i810" with "intel" - Please press SAVE!</font><br>';
207     $v='intel';
208     }
209     if($v == 'r128')
210     {
211     echo '<br><font color="#FF0000">Replaced "r128" with "vesa" - Please press SAVE!</font><br>';
212     $v='vesa';
213     }
214    
215     if($v == 'via')
216     {
217     echo '<br><font color="#FF0000">Replaced "via" with "openchrome" - Please press SAVE!</font><br>';
218     $v='openchrome';
219     }
220   }   }
221    
222     # tell something about vesa
223     if ($v == 'vesa') echo '<br><font color="#FF0000">Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1020x786x16@60hz!</font><br>';
224    
225    
226   if(is_array($d))   if(is_array($d))
227   {   {
# Line 377  Line 396 
396   }   }
397   if($osver[0] == '') $osver[0]='unkown';   if($osver[0] == '') $osver[0]='unkown';
398   if($osver[1] == '') $osver[1]='unkown';   if($osver[1] == '') $osver[1]='unkown';
399                   echo '<u>OS:</u> '.$osver[0].'<br>';  
400                   echo '<u>Utils:</u> '.$osver[1].'<br>';   # update os string in database
401     if($alxos == '' && $osver[0] >= '0.5.3')
402     {
403     mysql_query('insert into client_version(serial,os,utils) values("'.$id.'","'.$osver[0].'","'.$osver[1].'")
404     on duplicate key update os="'.$osver[0].'", utils="'.$osver[1].'"');
405     # reload the site
406     echo '<script type="text/javascript">setTimeout(\'window.location.reload()\',0);</script>';
407     }
408    
409     echo '<u>OS:</u> '.$osver[0].'<br>';
410     echo '<u>Utils:</u> '.$osver[1].'<br>';
411    
412   if($osver[0] <> 'unkown')   if($osver[0] <> 'unkown')
413   {   {
# Line 397  Line 426 
426                   echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>';                   echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>';
427                  echo 'Remote Shadow:</b></div>';                  echo 'Remote Shadow:</b></div>';
428   echo '<input class="but" type=button value="VNC" style="width:150px" onclick="window.open(\'vncviewer.php?ip='.$conn['ip'].'\', \'VncViewer\', \'width=200,height=100\')"><br>';   echo '<input class="but" type=button value="VNC" style="width:150px" onclick="window.open(\'vncviewer.php?ip='.$conn['ip'].'\', \'VncViewer\', \'width=200,height=100\')"><br>';
429     echo '<input class="but" type=button value="SSH" style="width:150px" onclick="window.open(\'mindterm.php?ip='.$conn['ip'].'\', \'MindTerm\', \'width=200,height=100\')"><br>';
430   echo '<br>';   echo '<br>';
431                   echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>';                   echo '<div style="border:solid black 1px; padding:5px; background-color:#d5e5ff" align="center"><b>';
432                  echo 'Client Update:</b></div>';                  echo 'Client Update:</b></div>';
433   echo '<input class="but" type=button value="UPDATE MAGE DB" style="width:150px" onclick="if(confirm(\'UPDATE DB ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=update\', \'ShutdownWin\', \'width=800,height=600\')"><br>';   echo '<input class="but" type=button value="UPDATE MAGE DB" style="width:150px" onclick="if(confirm(\'UPDATE DB ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=update\', \'ShutdownWin\', \'width=800,height=600\')"><br>';
434   echo '<input class="but" type=button value="CALC DEPS" style="width:150px" onclick="if(confirm(\'CALC DEPS FOR CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=calc\', \'ShutdownWin\', \'width=800,height=600\')"><br>';   echo '<input class="but" type=button value="CALC DEPS" style="width:150px" onclick="if(confirm(\'CALC DEPS FOR CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=calc\', \'ShutdownWin\', \'width=800,height=600\')"><br>';
435   echo '<input class="but" type=button value="UPGRADE CLIENT" style="width:150px" onclick="if(confirm(\'UPGRADE ALL PACKAGES ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=upgrade\', \'ShutdownWin\', \'width=800,height=600\')"><br>';                                         echo '<input class="but" type=button value="UPGRADE CLIENT" style="width:150px" onclick="if(confirm(\'UPGRADE ALL PACKAGES ON CLIENT #'.$id.' ?\')) window.open(\'mageupgrade.php?client='.$id.'&ip='.$conn['ip'].'&op=upgrade\', \'ShutdownWin\', \'width=800,height=600\');setTimeout(\'window.location.reload()\',0);"><br>';
436   }   }
437   else   else
438   echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>';   echo '<input class="but" type=button value="WAKE ON LAN" style="width:150px" onclick="if(confirm(\'WAKE CLIENT #'.$id.' ?\')) window.open(\'wake_on_lan.php?mac='.$data['client_serials']['mac'].'\', \'WakeWin\', \'width=200,height=100\')"><br>';

Legend:
Removed from v.1610  
changed lines
  Added in v.1650