mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 05:43:55 -07:00
Исправления SSL, sitemap и т.д.
Множественные исправления предыдущих коммитов, правки форматирования.
This commit is contained in:
parent
0804706fd7
commit
1c5fb857f2
13 changed files with 71 additions and 77 deletions
|
@ -19,9 +19,10 @@ header('X-Frame-Options: SAMEORIGIN');
|
|||
// Get initial config
|
||||
require(BB_ROOT . 'library/config.php');
|
||||
|
||||
$server_protocol = '//';
|
||||
$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://';
|
||||
$server_port = (in_array($bb_cfg['server_port'], array(80, 443))) ? '' : ':' . $bb_cfg['server_port'];
|
||||
define('FORUM_PATH', $bb_cfg['script_path']);
|
||||
define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $bb_cfg['script_path']);
|
||||
define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $server_port . $bb_cfg['script_path']);
|
||||
unset($server_protocol, $server_port);
|
||||
|
||||
// Debug options
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue