--- alx-src/branches/alx-web-060/show.php 2011/11/02 14:41:24 3284 +++ alx-src/branches/alx-web-060/show.php 2013/05/29 06:44:21 4908 @@ -37,7 +37,14 @@ $drop = array(); if($alxos >= '0.6.0') { - $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); + if($alxos >= '0.6.2') + { + $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'nouveau', 'mach64', 'mga', 'unichrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); + } + else + { + $drop['cfg_graphic_module'] = array('vesa', 'ati', 'cirrus', 'i710', 'intel', 'nv', 'mach64', 'mga', 'openchrome', 'radeon', 's3', 's3virge', 'savage', 'sis', 'trident', 'tseng', 'vmware'); + } if($gfxinfo[module] == 'intel') { $drop['cfg_graphic_hdmi'] = array('disable', 'enable'); @@ -145,7 +152,10 @@ for ($i=0; $i<999; $i++) { $drop['cfg_plugins_'.$i.'_plugin'] = 'pluginconfig'; } for ($i=0; $i<999; $i++) { - $drop['cfg_plugins_'.$i.'_plugin_array'] = sqlarr('SELECT plugin FROM avail_plugins', '', 'plugin'); + if($alxos>'0.6.5') + $drop['cfg_plugins_'.$i.'_plugin_array'] = sqlarr('SELECT plugin FROM avail_plugins', '', 'plugin'); + else + $drop['cfg_plugins_'.$i.'_plugin_array'] = sqlarr('SELECT plugin FROM avail_plugins where plugin<>"citrix_spe"', '', 'plugin'); array_unshift($drop['cfg_plugins_'.$i.'_plugin_array'], ""); } } @@ -169,8 +179,11 @@ array_unshift($citrix_public_applications, ""); for ($i=0; $i<999; $i++) { $drop['cfg_sessions_'.$i.'_session'] = $citrix_public_applications; } } - else if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper."; - else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'
"; + else + { + if($retval = 126) echo "pnabrowser-wrapper has no execute permission! please run chmod +x on ".$wwwroot."/pnabrowser-wrapper."; + else echo "pnabrowse-wrapper does not run successfully! retval->'".$retval."'
"; + } } // GGF. NEUEN DATENSATZ EINFÜGEN @@ -302,7 +315,20 @@ $v='openchrome'; } } - + if($alxos >= '0.6.2') + { + if($v == 'via') + { + echo '
Replaced "via" with "unichrome" - Please press SAVE!
'; + $v='unichrome'; + } + if($v == 'openchrome') + { + echo '
Replaced "openchrome" with "unichrome" - Please press SAVE!
'; + $v='unichrome'; + } + } + # tell something about vesa if ($v == 'vesa') echo '
Warning: "vesa" graphic module doesn\'t support any resolutions higher than 1024x786x16@60hz!
'; @@ -335,7 +361,7 @@ else if($d=='showtime') echo ''.$k2.'= '.date('d.m.y - H:i:s', $v).''; else if($d=='password' && $v=='') echo ''.$k2.'= '; else if($d=='password') echo ''.$k2.'= '; - else if($d=='txt') echo ''; + else if($d=='txt') echo ''; else if($d!='ignore') echo ''.$k2.'= '; } @@ -503,15 +529,15 @@ echo 'IP: '.$conn['ip'].'

'; if($alxos >= '0.6.0') { - $osver = sshdo('os_ver=$(= '0.5.3') @@ -525,7 +551,7 @@ echo 'OS: '.$osver[0].'
'; echo 'Utils: '.$osver[1].'
'; - if($osver[0] <> 'unkown') + if($osver[0] <> 'unknown') { //write them to database } @@ -548,10 +574,7 @@ echo ''; echo '
'; echo ''; - if($alxutils >= '0.6.3') - { - echo ''; - } + echo ''; echo '

'; }