mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Updated
This commit is contained in:
parent
ad1d16af97
commit
08ff1c2cf7
20
common.php
20
common.php
@ -20,26 +20,14 @@ header('X-Frame-Options: SAMEORIGIN');
|
||||
header('X-Powered-By: TorrentPier LTS');
|
||||
|
||||
// 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
|
||||
if (file_exists(BB_ROOT . 'library/config.local.php'))
|
||||
{
|
||||
require(BB_ROOT . 'library/config.local.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
require(BB_ROOT . 'library/config.php');
|
||||
}
|
||||
if (file_exists(BB_ROOT . 'library/config.local.php')) require(BB_ROOT . 'library/config.local.php');
|
||||
else require(BB_ROOT . 'library/config.php');
|
||||
|
||||
// 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
|
||||
use Zend\Loader\StandardAutoloader;
|
||||
|
@ -565,8 +565,8 @@ switch ($mode)
|
||||
sync('forum', array($forum_id, $new_forum_id));
|
||||
|
||||
//bot
|
||||
$message = $lang['TOPIC_SPLIT'] .'<br /><br /><a href="'. TOPIC_URL ."$topic_id&sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_OLD'] .'</a>';
|
||||
$message .= ' :: <a href="'. TOPIC_URL ."$new_topic_id&sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_NEW'] .'</a>';
|
||||
$message = $lang['TOPIC_SPLIT'] .'<br /><br /><a href="' . TOPIC_URL . "$topic_id&sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_OLD'] .'</a>';
|
||||
$message .= ' :: <a href="' . TOPIC_URL . "$new_topic_id&sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_NEW'] .'</a>';
|
||||
|
||||
// Log action
|
||||
$log_action->mod('mod_topic_split', array(
|
||||
|
Loading…
Reference in New Issue
Block a user