This commit is contained in:
Roman Kelesidis 2023-09-27 23:47:06 +07:00
parent ad1d16af97
commit 08ff1c2cf7
2 changed files with 6 additions and 18 deletions

View File

@ -20,26 +20,14 @@ 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'])) if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) $_SERVER['REMOTE_ADDR'] = $_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')) if (file_exists(BB_ROOT . 'library/config.local.php')) require(BB_ROOT . 'library/config.local.php');
{ else require(BB_ROOT . 'library/config.php');
require(BB_ROOT . 'library/config.local.php');
}
else
{
require(BB_ROOT . 'library/config.php');
}
// Get mods config // Get mods config
if (file_exists(BB_ROOT . 'library/config.mods.php')) if (file_exists(BB_ROOT . 'library/config.mods.php')) require(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;

View File

@ -565,8 +565,8 @@ switch ($mode)
sync('forum', array($forum_id, $new_forum_id)); sync('forum', array($forum_id, $new_forum_id));
//bot //bot
$message = $lang['TOPIC_SPLIT'] .'<br /><br /><a href="'. TOPIC_URL ."$topic_id&amp;sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_OLD'] .'</a>'; $message = $lang['TOPIC_SPLIT'] .'<br /><br /><a href="' . TOPIC_URL . "$topic_id&amp;sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_OLD'] .'</a>';
$message .= ' &nbsp;::&nbsp; <a href="'. TOPIC_URL ."$new_topic_id&amp;sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_NEW'] .'</a>'; $message .= ' &nbsp;::&nbsp; <a href="' . TOPIC_URL . "$new_topic_id&amp;sid=". $userdata['session_id'] .'">'. $lang['TOPIC_SPLIT_NEW'] .'</a>';
// Log action // Log action
$log_action->mod('mod_topic_split', array( $log_action->mod('mod_topic_split', array(