$str = "";
#print print_r(is_array($pcu)) . "<BR>";
#print print_r(array_key_exists('portstatus', $pcu)) . "<BR>";
- if ( is_array($pcu) && array_key_exists('portstatus', $pcu) )
+ if ( is_array($pcu) && array_key_exists('portstatus', $pcu) && count(array_keys($pcu['portstatus'])) > 0 )
{
$portstat = $pcu['portstatus'];
}
}
-if ( $_GET['auth'] )
-{
- $auth = True;
-} else {
- $auth = False;
-}
-
//array_multisort($protocols, SORT_ASC, SORT_STRING, $pculist);
?>
<th><?= get_category_link("reboot", "Dry Run Results") ?></th>
<th><?= get_category_link("model", "Model") ?></th>
<th><?= get_category_link("node_ids", "Nodes") ?></th>
- <?php if ( $auth ): ?>
- <th>Username</th>
- <th>Password</th>
- <th>Notes</th>
- <?php endif; ?>
</tr>
<?php $count = 0; ?>
<?php foreach ( $pculist as $pcu ): ?>
<td bgcolor='<?= reboot_to_color($pcu['reboot']) ?>'><?= $pcu['reboot'] ?></td>
<td nowrap><?= $pcu['model'] ?></td>
<td><?= count( $pcu['node_ids'] ) ?></td>
- <?php if ( $auth ): ?>
- <td><?= ( $pcu['username'] ? $pcu['username'] : " " ) ?></td>
- <td><?= $pcu['password'] ?></td>
- <td><?= $pcu['notes'] ?></td>
- <?php endif; ?>
</tr>
<?php $count += 1; ?>
<?php endforeach; ?>