From 214e862e91652570b248ec98ebad57cfd477d26a Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 23 May 2023 13:38:28 +0700 Subject: [PATCH] Minor improvements (#707) --- common.php | 3 +++ install/sql/mysql.sql | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/common.php b/common.php index 7993d7b56..c14fbe7df 100644 --- a/common.php +++ b/common.php @@ -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']); diff --git a/install/sql/mysql.sql b/install/sql/mysql.sql index 965b91b9a..b7a818595 100644 --- a/install/sql/mysql.sql +++ b/install/sql/mysql.sql @@ -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');