/[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.10 - (show annotations)
Sun Mar 2 02:32:22 2025 UTC (12 months, 2 weeks ago) by sysadm
Branch: MAIN
Changes since 1.9: +0 -31 lines
Remove legacy feature
Update license date

1 <?
2 require_once "common.inc.php";
3
4 function Client_Address($addr=null,$x_addr=null)
5 {
6 if ($addr == null)
7 $addr = $_SERVER["REMOTE_ADDR"];
8
9 if ($x_addr == null && isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
10 $x_addr = $_SERVER["HTTP_X_FORWARDED_FOR"];
11
12 return $_SERVER["REMOTE_ADDR"];
13 }
14
15 ?>

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