# deliver zone details if ($_POST['operation'] == 'deliverZoneDetail') { if ($_POST['zoneId']) { if (preg_match('/^[0-9]+$/i', $_POST['zoneId'])) { # return the zone details $Zones->get_zone_detail($_POST['zoneId']); } else { $Result->show('danger', _('Invalid zone ID.'), true); } } } # deliver networkinformations about a specific zone if ($_POST['netZoneId']) { if (preg_match('/^[0-9]+$/i', $_POST['netZoneId'])) { # return the zone details $Zones->get_zone_network($_POST['netZoneId']); } else { $Result->show('danger', _('Invalid netZone ID.'), true); } } # deliver networkinformations about a specific zone if ($_POST['noZone'] == 1) { if ($_POST['masterSubnetId']) { $_POST['network'][] = $_POST['masterSubnetId']; } if ($_POST['network']) { $rowspan = count($_POST['network']); $i = 1; print '<table class="table table-noborder table-condensed" style="padding-bottom:20px;">'; foreach ($_POST['network'] as $key => $network) { $network = $Subnets->fetch_subnet(null, $network);