mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Various bug fixes described on the forum.
This commit is contained in:
parent
4ec6a3e578
commit
b54c9d0c2e
11 changed files with 25 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue