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