mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-13 11:46:20 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de764c105c |
@@ -419,7 +419,7 @@ function endswith($string, $test) {
|
|||||||
|
|
||||||
function getUserIP()
|
function getUserIP()
|
||||||
{
|
{
|
||||||
if(isCloudflare())
|
if(isCloudflare() || $_SERVER['HTTP_CF_CONNECTING_IP'])
|
||||||
return $_SERVER['HTTP_CF_CONNECTING_IP'];
|
return $_SERVER['HTTP_CF_CONNECTING_IP'];
|
||||||
$client = @$_SERVER['HTTP_CLIENT_IP'];
|
$client = @$_SERVER['HTTP_CLIENT_IP'];
|
||||||
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
|
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||||
|
|||||||
Reference in New Issue
Block a user