mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Update common.php
This commit is contained in:
parent
b339c9cd70
commit
e057bb077f
@ -36,10 +36,14 @@ if (!defined('IN_FORUM') && !defined('IN_TRACKER')) define('IN_FORUM', true);
|
||||
header('X-Frame-Options: SAMEORIGIN');
|
||||
header('X-Powered-By: TorrentPier LTS Forever!');
|
||||
|
||||
// Cloudflare
|
||||
// Set remote address
|
||||
if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; // Cloudflare
|
||||
}
|
||||
elseif (isset($_SERVER['HTTP_FASTLY_CLIENT_IP']))
|
||||
{
|
||||
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_FASTLY_CLIENT_IP']; // Fastly
|
||||
}
|
||||
|
||||
// Get initial config
|
||||
|
Loading…
Reference in New Issue
Block a user