/[LeafOK_CVS]/fenglin/lib/client_addr.inc.php
ViewVC logotype

Contents of /fenglin/lib/client_addr.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations)
Fri Mar 28 05:51:38 2025 UTC (11 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.10: +6 -10 lines
Refine

1 <?
2 require_once "../lib/ip_mask.inc.php";
3 ?>
4 <?
5 function client_addr(int $mask_level = 0) : string
6 {
7 $ip = (isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : "");
8
9 return ip_mask($ip, $mask_level, "%");
10 }
11 ?>

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1