This is a comment on Action: GetIP, posted by qianmengnet at 16.04.2022 21:59

View source for 评论 4240

%% templatest: no main template found in action/template/getip.tpl %%

Add failed.
I don't understand templates.
If I can succeed, I want to modify the code to display part of the IP and publish the IP of the page, not that of the visitor.

%% 

$dot = strripos($ip,"."); //查找“.”最后出现的位置
$hide_ip = substr($ip,0,$dot).".*"; //输出“.”最后出现位置之前的字符串并加上*号
echo $hide_ip;
%% 

If the IP is 111.111.111.111, display 111.111.111.*,or 111.111.*.*