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
c42225beaa
commit
77ded00c68
20
common.php
20
common.php
@ -20,14 +20,26 @@ header('X-Frame-Options: SAMEORIGIN');
|
|||||||
header('X-Powered-By: TorrentPier LTS');
|
header('X-Powered-By: TorrentPier LTS');
|
||||||
|
|
||||||
// Cloudflare
|
// Cloudflare
|
||||||
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
|
if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
|
||||||
|
{
|
||||||
|
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP'];
|
||||||
|
}
|
||||||
|
|
||||||
// Get initial config
|
// Get initial config
|
||||||
if (file_exists(BB_ROOT . 'library/config.local.php')) require(BB_ROOT . 'library/config.local.php');
|
if (file_exists(BB_ROOT . 'library/config.local.php'))
|
||||||
else require(BB_ROOT . 'library/config.php');
|
{
|
||||||
|
require(BB_ROOT . 'library/config.local.php');
|
||||||
|
}
|
||||||
|
elseif (file_exists(BB_ROOT . 'library/config.php'))
|
||||||
|
{
|
||||||
|
require(BB_ROOT . 'library/config.php');
|
||||||
|
}
|
||||||
|
|
||||||
// Get mods config
|
// Get mods config
|
||||||
if (file_exists(BB_ROOT . 'library/config.mods.php')) require(BB_ROOT . 'library/config.mods.php');
|
if (file_exists(BB_ROOT . 'library/config.mods.php'))
|
||||||
|
{
|
||||||
|
require(BB_ROOT . 'library/config.mods.php');
|
||||||
|
}
|
||||||
|
|
||||||
// Load Zend Framework
|
// Load Zend Framework
|
||||||
use Zend\Loader\StandardAutoloader;
|
use Zend\Loader\StandardAutoloader;
|
||||||
|
Loading…
Reference in New Issue
Block a user