$i = 0; foreach ($ovpncli as $client) { if (!isset($client['enable'])) { $spans = "<span class=\"gray\">"; $spane = "</span>"; } else { $spans = $spane = ""; } ?> <tr> <td class="listlr"><?php echo $spans; ?> <?php if ($interface = ovpn_get_opt_interface($client['if'])) { $iface = $config['interfaces'][$interface]['descr']; } else { $iface = strtoupper($client['if']); } ?> <?php echo $iface; ?> <?php echo $spane; ?> </td> <td class="listr"><?php echo $spans; ?>
} else { $spans = $spane = ""; } if ($server['bind_iface'] == 'all') { $ipaddr = "0.0.0.0"; } else { $ipaddr = ovpn_get_ip($server['bind_iface']); } ?> <tr> <td class="listlr"><?php echo $spans; ?> <?php if ($interface = ovpn_get_opt_interface($server['tun_iface'])) { $iface = $config['interfaces'][$interface]['descr']; } else { $iface = strtoupper($server['tun_iface']); } ?> <?php echo $iface; ?> <?php echo $spane; ?> </td> <td class="listr"><?php echo $spans; ?>