2.php
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
<?php error_reporting(0);
$ken=$_POST['ken'];
$ipz=$_POST['ipz'];
$handle = fopen ("http://adm.fxtcvip.com/user_add_whitelist?token=$ken&remark=&ip=$ipz", "rb");
$contents = "";
do {
$data = fread($handle, 1024);
if (strlen($data) == 0) {
break;
}
$contents.= $data;
} while(true);
fclose ($handle);
if(isset($_POST["ken"]))
echo file_get_contents("http://adm.fxtcvip.com/user_get_whitelist?token=".$_POST["ken"]);
echo "<br><br><br><br><br><br><br><br><br><br>复制网址,网址最后填写你要删除的ip,打开即可: http://adm.fxtcvip.com/user_del_whitelist?token=$ken&ip=";
?>
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
打开php返回数据如下
{"code":0,"data":[{"create_time":"2021-03-16 18:18:57","id":34248,"ip":"1.1.1.1","remark":"","update_time":"2021-03-16 18:18:57"},{"create_time":"2021-03-13 02:43:39","id":34125,"ip":"113.250.211.54","remark":"","update_time":"2021-03-13 02:43:39"},{"create_time":"2021-03-11 16:43:19","id":33966,"ip":"13.13.13.13","remark":"","update_time":"2021-03-11 16:43:19"},{"create_time":"2021-03-11 12:10:55","id":33945,"ip":"121.121.121.11","remark":"","update_time":"2021-03-11 12:10:55"},{"create_time":"2021-03-11 12:09:19","id":33944,"ip":"121.121.121.10","remark":"","update_time":"2021-03-11 12:09:19"},{"create_time":"2021-03-10 11:36:45","id":33883,"ip":"114.99.200.228","remark":"","update_time":"2021-03-10 11:36:45"},{"create_time":"2021-03-10 11:34:56","id":33882,"ip":"15.15.15.15","remark":"","update_time":"2021-03-10 11:34:56"}],"msg":"\u6210\u529f"}
复制网址,网址最后填写你要删除的ip,打开即可: http://adm.fxtcvip.com/user_del_whitelist?token=3ePdlaQDXxyNnCmA1613651742395&ip=
〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓
2.php里代码怎么写,可以把返回的数据整理为以下结果
ip白名单 添加ip时间
1.1.1.1 2021-03-16 18:18:57
113.250.211.54 2021-03-13 02:43:39
13.13.13.13 2021-03-11 16:43:19
复制网址,网址最后填写你要删除的ip,打开即可: http://adm.fxtcvip.com/user_del_whitelist?token=3ePdlaQDXxyNnCmA1613651742395&ip=