35 |
if($op=="calc") |
if($op=="calc") |
36 |
{ |
{ |
37 |
echo '<img src="pics/online.gif" align=top> '.strtoupper('Fetching list of packages to upgrade on client #'.$client.' ('.$ip.')...<br>'); |
echo '<img src="pics/online.gif" align=top> '.strtoupper('Fetching list of packages to upgrade on client #'.$client.' ('.$ip.')...<br>'); |
38 |
exec($sshcmd.' -l root '.$ip.' /sbin/mageupgrade --calc-bash',$out,$err); |
exec($sshcmd.' -l root '.$ip.' /sbin/mage uppretend',$out,$err); |
39 |
echo '<pre>'; |
echo '<pre>'; |
40 |
echo '<table border="0">'; |
echo '<table border="0">'; |
41 |
if (array_key_exists("0", $out)) |
if (array_key_exists("0", $out)) |