mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-19 21:03:54 -07:00
Minor improvements (#707)
This commit is contained in:
parent
b93f841e24
commit
214e862e91
2 changed files with 10 additions and 1 deletions
|
@ -79,6 +79,9 @@ if (file_exists(BB_PATH . '/library/config.local.php')) {
|
||||||
define('DBG_USER', (isset($_COOKIE[COOKIE_DBG])));
|
define('DBG_USER', (isset($_COOKIE[COOKIE_DBG])));
|
||||||
\TorrentPier\Dev::initDebug();
|
\TorrentPier\Dev::initDebug();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Server variables initialize
|
||||||
|
*/
|
||||||
$server_protocol = $bb_cfg['cookie_secure'] ? 'https://' : 'http://';
|
$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'];
|
$server_port = in_array((int)$bb_cfg['server_port'], array(80, 443), true) ? '' : ':' . $bb_cfg['server_port'];
|
||||||
define('FORUM_PATH', $bb_cfg['script_path']);
|
define('FORUM_PATH', $bb_cfg['script_path']);
|
||||||
|
|
|
@ -673,6 +673,11 @@ CREATE TABLE IF NOT EXISTS `bb_disallow`
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
-- Records of 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`
|
-- Table structure for `bb_extensions`
|
||||||
|
@ -1263,7 +1268,8 @@ CREATE TABLE IF NOT EXISTS `bb_topics`
|
||||||
-- Records of bb_topics
|
-- Records of bb_topics
|
||||||
-- ----------------------------
|
-- ----------------------------
|
||||||
INSERT INTO `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',
|
||||||
'0', UNIX_TIMESTAMP(), '0');
|
'0', UNIX_TIMESTAMP(), '0');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue