Minor improvements (#707)

This commit is contained in:
Roman Kelesidis 2023-05-23 13:38:28 +07:00 committed by GitHub
commit 214e862e91
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View file

@ -79,6 +79,9 @@ if (file_exists(BB_PATH . '/library/config.local.php')) {
define('DBG_USER', (isset($_COOKIE[COOKIE_DBG])));
\TorrentPier\Dev::initDebug();
/**
* Server variables initialize
*/
$server_protocol = $bb_cfg['cookie_secure'] ? 'https://' : 'http://';
$server_port = in_array((int)$bb_cfg['server_port'], array(80, 443), true) ? '' : ':' . $bb_cfg['server_port'];
define('FORUM_PATH', $bb_cfg['script_path']);

View file

@ -673,6 +673,11 @@ CREATE TABLE IF NOT EXISTS `bb_disallow`
-- ----------------------------
-- Records of bb_disallow
-- ----------------------------
INSERT INTO `bb_disallow` (`disallow_id`, `disallow_username`)
VALUES ('1', 'torrentpier*'),
('2', 'tracker*'),
('3', 'forum*'),
('4', 'torrent*');
-- ----------------------------
-- Table structure for `bb_extensions`
@ -1263,7 +1268,8 @@ CREATE TABLE IF NOT EXISTS `bb_topics`
-- Records of bb_topics
-- ----------------------------
INSERT INTO `bb_topics`
VALUES ('1', '1', 'Добро пожаловать в TorrentPier Cattle', '2', UNIX_TIMESTAMP(), '0', '0', '0', '0', '0', '1', '1', '0',
VALUES ('1', '1', 'Добро пожаловать в TorrentPier Cattle', '2', UNIX_TIMESTAMP(), '0', '0', '0', '0', '0', '1', '1',
'0',
'0',
'0', UNIX_TIMESTAMP(), '0');