From 56c352b28414bf3f7ef0dcf5ace17a19374a99c2 Mon Sep 17 00:00:00 2001 From: Vitalychez Date: Mon, 10 Nov 2014 18:15:24 +0400 Subject: [PATCH] ssl fix --- common.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common.php b/common.php index 0f6c0f71c..86254493f 100644 --- a/common.php +++ b/common.php @@ -19,10 +19,9 @@ header('X-Frame-Options: SAMEORIGIN'); // Get initial config require(BB_ROOT . 'library/config.php'); -$server_protocol = ($bb_cfg['cookie_secure']) ? 'https://' : 'http://'; -$server_port = ($bb_cfg['server_port'] != 80) ? ':'. $bb_cfg['server_port'] : ''; +$server_protocol = '//'; define('FORUM_PATH', $bb_cfg['script_path']); -define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $server_port . $bb_cfg['script_path']); +define('FULL_URL', $server_protocol . $bb_cfg['server_name'] . $bb_cfg['script_path']); unset($server_protocol, $server_port); // Debug options