mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-15 20:48:00 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
de764c105c | ||
|
|
bc1eca4014 |
4
.github/workflows/build-docker.yml
vendored
4
.github/workflows/build-docker.yml
vendored
@@ -20,8 +20,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# list of Docker images to use as base name for tags
|
# list of Docker images to use as base name for tags
|
||||||
images: |
|
images: |
|
||||||
hascheksolutions/opentrashmail
|
hascheksolutions/pictshare
|
||||||
ghcr.io/hascheksolutions/opentrashmail
|
ghcr.io/hascheksolutions/pictshare
|
||||||
# generate Docker tags based on the following events/attributes
|
# generate Docker tags based on the following events/attributes
|
||||||
tags: |
|
tags: |
|
||||||
type=schedule
|
type=schedule
|
||||||
|
|||||||
@@ -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