123456789101112 |
- <?php
- include_once("../auth.php");
- $result = [];
- if (file_exists("iptable.txt")){
- $ips = file_get_contents("iptable.txt");
- //There are an extra "," at the end of the iptable generated. That has to be poped away
- $result = explode(",",$ips);
- array_pop($result);
- }
- header('Content-Type: application/json');
- echo json_encode($result);
- ?>
|