Various bug fixes described on the forum.

This commit is contained in:
Yuriy Pikhtarev 2017-07-29 09:05:12 +03:00
commit b54c9d0c2e
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
11 changed files with 25 additions and 22 deletions

View file

@ -29,6 +29,7 @@ if (!defined('BB_ROOT')) {
$domain_name = 'torrentpier.com'; // enter here your primary domain name of your site
$domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $domain_name;
$domain_ssl = true;
$bb_cfg = [];
@ -366,7 +367,7 @@ $bb_cfg['show_sidebar2_on_every_page'] = false;
// Cookie
$bb_cfg['cookie_domain'] = in_array($domain_name, [getenv('SERVER_ADDR'), 'localhost'], true) ? '' : ".$domain_name";
$bb_cfg['cookie_secure'] = !empty($_SERVER['HTTPS']) ? 1 : 0;
$bb_cfg['cookie_secure'] = $domain_ssl ? true : (!empty($_SERVER['HTTPS']) ? true : false);
$bb_cfg['cookie_prefix'] = 'bb_'; // 'bb_'
// Sessions