/[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.13 - (show annotations)
Tue Apr 29 11:55:32 2025 UTC (10 months, 2 weeks ago) by sysadm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +6 -8 lines
Remove redundant PHP closing tag

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

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