--- alx-src/branches/alx-web-060/index.php 2011/06/15 13:14:25 2415 +++ alx-src/branches/alx-web-070/index.php 2015/09/07 10:50:48 7070 @@ -1,6 +1,8 @@ '; echo 'editserialhostnameiplast connected'; +//always enable showversion atm +$showversion = "on"; if($showversion=='on') echo 'version'; echo 'up/down'; @@ -131,7 +135,7 @@ else echo ''; echo ''; - echo ''.substr($c['location'],0,1).''; + echo ''.substr($c['location'],0,3).''; echo ''.strtoupper($pic).''; echo '#'.$c['serial'].''; echo ''.$c['hostname'].''; @@ -141,17 +145,28 @@ //if($c['mtime']) { echo ''.$c['mtime'].''; } else echo ''; - if($c['online']) + if($showversion=='on') { - if($showversion=='on') + // get alx version info for + $alxinfo = sqlfirst('SELECT * FROM client_version WHERE serial='.$c['serial']); + $alxver = $alxinfo[os]; + $alxutils = $alxinfo[utils]; + + if( $alxver == '') { - $osver = sshdo('os_ver=$('.$osver[0].''; - echo ''.$osver[1].''; - } + if($c['online']) + { + //$alxinfo = @sshdo('os_ver=$('.$alxver.''; + echo ''.$alxutils.''; } echo '';