17 | | $CONFsubnet = $CONFline_split[0]; |
18 | | $CONFmask = $CONFline_split[1]; |
19 | | $CONFsamp = $CONFline_split[2]; |
20 | | if ($CONFsubnet) { |
21 | | $nb_prefv4 += 1; |
22 | | $PREFIXV4_TABLE_INBUILT .= "<tr>\n"; |
23 | | $PREFIXV4_TABLE_INBUILT .= "<td>$CONFsubnet</td><td>$CONFmask</td><td>$CONFsamp</td>\n"; |
24 | | $PREFIXV4_TABLE_INBUILT .= "</tr>\n"; |
| 17 | $CONFline_split2 = split("-",$CONFline_split[0]); |
| 18 | if ($CONFline_split2[1] != NULL) { |
| 19 | $CONFline_split3 = split("/",$CONFline_split2[0]); |
| 20 | $CONFsubnet = $CONFline_split3[0]; |
| 21 | $CONFmask = $CONFline_split3[1]; |
| 22 | $CONFIDR = $CONFline_split2[1]; |
| 23 | $CONFsamp = $CONFline_split[1]; |
| 24 | if ($CONFsubnet) { |
| 25 | $nb_prefv4 += 1; |
| 26 | $PREFIXV4_TABLE_INBUILT .= "<tr>\n"; |
| 27 | $PREFIXV4_TABLE_INBUILT .= "<td>$CONFsubnet</td><td>$CONFmask</td><td>$CONFsamp</td><td>$CONFIDR</td>\n"; |
| 28 | $PREFIXV4_TABLE_INBUILT .= "</tr>\n"; |
| 29 | } |
| 30 | }else{ |
| 31 | $CONFsubnet = $CONFline_split[0]; |
| 32 | $CONFmask = $CONFline_split[1]; |
| 33 | $CONFsamp = $CONFline_split[2]; |
| 34 | if ($CONFsubnet) { |
| 35 | $nb_prefv4 += 1; |
| 36 | $PREFIXV4_TABLE_INBUILT .= "<tr>\n"; |
| 37 | $PREFIXV4_TABLE_INBUILT .= "<td>$CONFsubnet</td><td>$CONFmask</td><td>$CONFsamp</td><td> UN </td>\n"; |
| 38 | $PREFIXV4_TABLE_INBUILT .= "</tr>\n"; |
| 39 | } |