--- alx-src/branches/alx-web-050/show.php 2010/12/02 23:02:19 1610 +++ alx-src/branches/alx-web-050/show.php 2011/03/16 11:07:08 1726 @@ -1,6 +1,10 @@ = '0.5.3') { - $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'); } else { @@ -38,6 +42,7 @@ $drop['resolution'] = array('640x480', '800x600', '1024x768', '1280x960', '1280x1024', '1360x768', '1366x768', '1400x1050', '1440x900', '1600x1200', '1680x1050'); $drop['depth'] = array('24', '16', '8'); $drop['mouse'] = array('Auto', 'IMPS/2', 'PS/2'); + $drop['keyboard'] = array('PC105'); $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['networking'] = array('dhcp', 'static'); $drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp'); @@ -197,12 +202,30 @@ $k = str_replace('wireless_', '', $k); $k2 = $k; - //replace i810 with intel on 0.5.3 or higher - if($alxos >= '0.5.3' && $v == 'i810') + //replace some drivers on 0.5.3 or higher + if($alxos >= '0.5.3') { - echo '
Replaced "i810" with "intel" - Please press SAVE!
'; - $v='intel'; + if($v == 'i810') + { + echo '
Replaced "i810" with "intel" - Please press SAVE!
'; + $v='intel'; + } + if($v == 'r128') + { + echo '
Replaced "r128" with "vesa" - Please press SAVE!
'; + $v='vesa'; + } + + if($v == 'via') + { + echo '
Replaced "via" with "openchrome" - Please press SAVE!
'; + $v='openchrome'; + } } + + # tell something about vesa + if ($v == 'vesa') echo '
Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1020x786x16@60hz!
'; + if(is_array($d)) { @@ -377,8 +400,18 @@ } if($osver[0] == '') $osver[0]='unkown'; if($osver[1] == '') $osver[1]='unkown'; - echo 'OS: '.$osver[0].'
'; - echo 'Utils: '.$osver[1].'
'; + + # update os string in database + if($alxos == '' && $osver[0] >= '0.5.3') + { + mysql_query('insert into client_version(serial,os,utils) values("'.$id.'","'.$osver[0].'","'.$osver[1].'") + on duplicate key update os="'.$osver[0].'", utils="'.$osver[1].'"'); + # reload the site + echo ''; + } + + echo 'OS: '.$osver[0].'
'; + echo 'Utils: '.$osver[1].'
'; if($osver[0] <> 'unkown') { @@ -397,12 +430,13 @@ echo '
'; echo 'Remote Shadow:
'; echo '
'; + echo '
'; echo '
'; echo '
'; echo 'Client Update:
'; echo '
'; echo '
'; - echo '
'; + echo '
'; } else echo '
';