Magellan Linux

Diff of /alx-src/tags/alx-web-0_7_0_20171218_1/index.php

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

revision 2948 by niro, Wed Sep 7 08:54:25 2011 UTC revision 3349 by niro, Wed Feb 8 13:05:29 2012 UTC
# Line 114  echo '</form>'; Line 114  echo '</form>';
114    
115  echo '<table border="1" id="mytab">';  echo '<table border="1" id="mytab">';
116  echo '<thead><tr style="font-weight:bold;background-color:#d5e5ff"><th>edit</th><th colspan=3>serial</th><th width=170>hostname</th><th width=100>ip</th><th width=100>last connected</th>';  echo '<thead><tr style="font-weight:bold;background-color:#d5e5ff"><th>edit</th><th colspan=3>serial</th><th width=170>hostname</th><th width=100>ip</th><th width=100>last connected</th>';
117    //always enable showversion atm
118    $showversion = "on";
119  if($showversion=='on') echo '<th colspan=2>version</th>';  if($showversion=='on') echo '<th colspan=2>version</th>';
120  echo '<th width=150>up/down</th></tr></thead><tbody>';  echo '<th width=150>up/down</th></tr></thead><tbody>';
121    
# Line 154  foreach($comps as $c) Line 156  foreach($comps as $c)
156   {   {
157   if($c['online'])   if($c['online'])
158   {   {
159   //$alxinfo = 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}"', $c['ip']);   //$alxinfo = @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}"', $c['ip']);
160   //$alxinfo = explode(':',$alxinfo[1]);   //$alxinfo = explode(':',$alxinfo[1]);
161   //$alxver = $alxinfo[0];   //$alxver = $alxinfo[0];
162   //$alxutils = $alxinfo[1];   //$alxutils = $alxinfo[1];
163   }   }
164   }   }
165   if($alxver == '') $alxver='unkown';   if($alxver == '') $alxver='unknown';
166   if($alxutils == '') $alxutils='unkown';   if($alxutils == '') $alxutils='unknown';
167    
168         echo '<td>'.$alxver.'</td>';         echo '<td>'.$alxver.'</td>';
169         echo '<td>'.$alxutils.'</td>';         echo '<td>'.$alxutils.'</td>';

Legend:
Removed from v.2948  
changed lines
  Added in v.3349