/[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.12 - (show annotations)
Wed Apr 23 05:13:57 2025 UTC (10 months, 3 weeks ago) by sysadm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Refine deprecated PHP short tags

1 <?php
2 require_once "../lib/ip_mask.inc.php";
3 ?>
4 <?php
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