Permalink
Browse files

Merge pull request #34 from torrentpier/develop

Версия 2.1.1 ALPHA-1

Начало разработки версии 2.2. Первый ALPHA-билд.

Основные изменения:

- удалена встроенная система жалоб по причине излишней монструозности и несоответствия современным стандартам в целом;
- удалена поддержка кеширующей системы eaccelerator (последняя версия вышла в 2007 году, последняя совместимая версия php 5.4);
- удаление скриптов для бекапа через php (бекап настраивать надо на сервере, а не таким способом);
- переделка скрипта вывода служебных текстов (невозможность XSS, file include априори);
- мелкие правки верстки, локализации.

Для обновления на версию, необходимо выполнить следующие запросы к базе данных:

DROP TABLE IF EXISTS `bb_reports`;
DROP TABLE IF EXISTS `bb_reports_changes`;
DROP TABLE IF EXISTS `bb_reports_modules`;
DROP TABLE IF EXISTS `bb_reports_reasons`;
DELETE FROM `bb_config` WHERE `config_name` = 'report_subject_auth';
DELETE FROM `bb_config` WHERE `config_name` = 'report_modules_cache';
DELETE FROM `bb_config` WHERE `config_name` = 'report_hack_count';
DELETE FROM `bb_config` WHERE `config_name` = 'report_notify';
DELETE FROM `bb_config` WHERE `config_name` = 'report_list_admin';
DELETE FROM `bb_config` WHERE `config_name` = 'report_new_window';
DELETE FROM `bb_config` WHERE `config_name` = 'reports_enabled';
ALTER TABLE `bb_posts` DROP COLUMN `post_reported`;
ALTER TABLE `bb_privmsgs` DROP COLUMN `privmsgs_reported`;
ALTER TABLE `bb_topics` DROP COLUMN `topic_reported`;
DELETE FROM `bb_cron` WHERE `cron_script` = 'site_backup.php';
DELETE FROM `bb_cron` WHERE `cron_script` = 'db_backup.php';
  • Loading branch information...
Exileum committed Sep 11, 2014
2 parents 44dd6f6 + 90c7d4e commit cbae34ebf47e606ce8c651ca586f7a2f3a5ca1e3
Showing with 202 additions and 6,553 deletions.
  1. +2 −2 contributors.txt
  2. +23 −133 install/sql/mysql.sql
  3. +20 −0 upgrade/changes.txt
  4. +0 −1 upload/admin/admin_board.php
  5. +0 −2 upload/admin/admin_forums.php
  6. +0 −558 upload/admin/admin_reports.php
  7. +11 −16 upload/attach_mod/posting_attachments.php
  8. +0 −135 upload/common.php
  9. +9 −15 upload/config.php
  10. +0 −37 upload/includes/cron/jobs/db_backup.php
  11. +0 −33 upload/includes/cron/jobs/site_backup.php
  12. +0 −1,138 upload/includes/functions_report.php
  13. +0 −520 upload/includes/functions_report_admin.php
  14. +1 −25 upload/includes/init_bb.php
  15. +0 −59 upload/includes/page_header.php
  16. +0 −2 upload/includes/report_hack/.htaccess
  17. +0 −17 upload/includes/report_hack/report_general.php
  18. +0 −245 upload/includes/report_hack/report_post.php
  19. +0 −226 upload/includes/report_hack/report_privmsg.php
  20. +0 −229 upload/includes/report_hack/report_topic.php
  21. +0 −44 upload/includes/report_hack/report_user.php
  22. +0 −191 upload/includes/report_module.php
  23. +0 −17 upload/includes/ucp/viewprofile.php
  24. +71 −0 upload/info.php
  25. +4 −17 upload/language/en/html/advert.html
  26. +2 −18 upload/language/en/html/copyright_holders.html
  27. +3 −14 upload/language/en/html/not_found.html
  28. +3 −3 upload/language/en/html/sidebar1.html
  29. +3 −3 upload/language/en/html/sidebar2.html
  30. +3 −24 upload/language/en/html/user_agreement.html
  31. +1 −128 upload/language/en/main.php
  32. +0 −2 upload/language/en/report_hack/.htaccess
  33. +0 −17 upload/language/en/report_hack/report_general.php
  34. +0 −23 upload/language/en/report_hack/report_post.php
  35. +0 −27 upload/language/en/report_hack/report_privmsg.php
  36. +0 −23 upload/language/en/report_hack/report_topic.php
  37. +0 −21 upload/language/en/report_hack/report_user.php
  38. +4 −17 upload/language/ru/html/advert.html
  39. +2 −18 upload/language/ru/html/copyright_holders.html
  40. +3 −14 upload/language/ru/html/not_found.html
  41. +3 −3 upload/language/ru/html/sidebar1.html
  42. +3 −3 upload/language/ru/html/sidebar2.html
  43. +3 −24 upload/language/ru/html/user_agreement.html
  44. +3 −130 upload/language/ru/main.php
  45. +0 −2 upload/language/ru/report_hack/.htaccess
  46. +0 −17 upload/language/ru/report_hack/report_general.php
  47. +0 −23 upload/language/ru/report_hack/report_post.php
  48. +0 −27 upload/language/ru/report_hack/report_privmsg.php
  49. +0 −23 upload/language/ru/report_hack/report_topic.php
  50. +0 −21 upload/language/ru/report_hack/report_user.php
  51. +4 −17 upload/language/uk/html/advert.html
  52. +2 −18 upload/language/uk/html/copyright_holders.html
  53. +3 −14 upload/language/uk/html/not_found.html
  54. +3 −3 upload/language/uk/html/sidebar1.html
  55. +3 −3 upload/language/uk/html/sidebar2.html
  56. +3 −24 upload/language/uk/html/user_agreement.html
  57. +3 −130 upload/language/uk/main.php
  58. +0 −2 upload/language/uk/report_hack/.htaccess
  59. +0 −17 upload/language/uk/report_hack/report_general.php
  60. +0 −23 upload/language/uk/report_hack/report_post.php
  61. +0 −27 upload/language/uk/report_hack/report_privmsg.php
  62. +0 −23 upload/language/uk/report_hack/report_topic.php
  63. +0 −21 upload/language/uk/report_hack/report_user.php
  64. +0 −144 upload/misc.php
  65. +0 −31 upload/privmsg.php
  66. +0 −753 upload/report.php
  67. +0 −7 upload/templates/admin/admin_board.tpl
  68. +0 −96 upload/templates/admin/report_config_body.tpl
  69. +0 −96 upload/templates/admin/report_module_edit_body.tpl
  70. +0 −30 upload/templates/admin/report_module_reasons_body.tpl
  71. +0 −70 upload/templates/admin/report_modules_body.tpl
  72. +0 −36 upload/templates/admin/report_reason_edit_body.tpl
  73. +0 −24 upload/templates/default/attach_rules.tpl
  74. +0 −64 upload/templates/default/css/main.css
  75. BIN upload/templates/default/images/icon_report.gif
  76. BIN upload/templates/default/images/icon_reported.gif
  77. BIN upload/templates/default/images/topic_report.gif
  78. BIN upload/templates/default/images/topic_reported.gif
  79. +0 −10 upload/templates/default/page_header.tpl
  80. +1 −1 upload/templates/default/privmsgs_read.tpl
  81. +0 −29 upload/templates/default/report_change_body.tpl
  82. +0 −72 upload/templates/default/report_form_body.tpl
  83. +0 −78 upload/templates/default/report_index_body.tpl
  84. +0 −115 upload/templates/default/report_list_body.tpl
  85. +0 −90 upload/templates/default/report_open_body.tpl
  86. +0 −114 upload/templates/default/report_view_body.tpl
  87. +0 −7 upload/templates/default/tpl_config.php
  88. +0 −9 upload/templates/default/usercp_viewprofile.tpl
  89. +0 −1 upload/templates/default/viewtopic.tpl
  90. +3 −3 upload/tracker.php
  91. +0 −64 upload/viewtopic.php
View
@@ -16,7 +16,7 @@ qaqra
rserg99
leszav
Dr_Brown
Bullit
Bullit (http://bestrip.org/)
Triceratop (http://goldenshara.com/)
Ramzess
@@ -26,7 +26,7 @@ Ramzess
SamSeGo
alesel (http://sporttracker.kz/)
Bullit
Bullit (http://bestrip.org/)
igorsaevets
vasilich619
wint1000 (http://asmlocator.ru/)
View
@@ -44,10 +44,6 @@ DROP TABLE IF EXISTS `bb_privmsgs`;
DROP TABLE IF EXISTS `bb_privmsgs_text`;
DROP TABLE IF EXISTS `bb_quota_limits`;
DROP TABLE IF EXISTS `bb_ranks`;
DROP TABLE IF EXISTS `bb_reports`;
DROP TABLE IF EXISTS `bb_reports_changes`;
DROP TABLE IF EXISTS `bb_reports_modules`;
DROP TABLE IF EXISTS `bb_reports_reasons`;
DROP TABLE IF EXISTS `bb_search_rebuild`;
DROP TABLE IF EXISTS `bb_search_results`;
DROP TABLE IF EXISTS `bb_sessions`;
@@ -555,15 +551,8 @@ INSERT INTO `bb_config` VALUES ('static_sitemap', '');
INSERT INTO `bb_config` VALUES ('topics_per_page', '50');
INSERT INTO `bb_config` VALUES ('xs_use_cache', '1');
INSERT INTO `bb_config` VALUES ('active_ads', '');
INSERT INTO `bb_config` VALUES ('report_subject_auth', '1');
INSERT INTO `bb_config` VALUES ('report_modules_cache', '1');
INSERT INTO `bb_config` VALUES ('report_hack_count', '0');
INSERT INTO `bb_config` VALUES ('report_notify', '0');
INSERT INTO `bb_config` VALUES ('report_list_admin', '0');
INSERT INTO `bb_config` VALUES ('report_new_window', '0');
INSERT INTO `bb_config` VALUES ('cron_enabled', '1');
INSERT INTO `bb_config` VALUES ('cron_check_interval', '300');
INSERT INTO `bb_config` VALUES ('reports_enabled', '1');
INSERT INTO `bb_config` VALUES ('magnet_links_enabled', '1');
INSERT INTO `bb_config` VALUES ('gender', '1');
INSERT INTO `bb_config` VALUES ('callseed', '0');
@@ -615,29 +604,27 @@ CREATE TABLE IF NOT EXISTS `bb_cron` (
-- Дамп данных таблицы `bb_cron`
--
INSERT INTO `bb_cron` VALUES (1, 0, 'Site backup', 'site_backup.php', 'daily', '1', '05:00:00', 10, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (2, 0, 'DB backup', 'db_backup.php', 'daily', '1', '05:00:00', 20, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (3, 1, 'Attach maintenance', 'attach_maintenance.php', 'daily', NULL, '05:00:00', 40, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (4, 1, 'Board maintenance', 'bb_maintenance.php', 'daily', NULL, '05:00:00', 40, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (5, 1, 'Prune forums', 'prune_forums.php', 'daily', NULL, '05:00:00', 50, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (6, 1, 'Prune topic moved stubs', 'prune_topic_moved.php', 'daily', NULL, '05:00:00', 60, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (7, 1, 'Logs cleanup', 'clean_log.php', 'daily', NULL, '05:00:00', 70, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (8, 1, 'Tracker maintenance', 'tr_maintenance.php', 'daily', NULL, '05:00:00', 90, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (9, 1, 'Clean dlstat', 'clean_dlstat.php', 'daily', NULL, '05:00:00', 100, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (10, 1, 'Prune inactive users', 'prune_inactive_users.php', 'daily', NULL, '05:00:00', 110, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (11, 1, 'Sessions cleanup', 'sessions_cleanup.php', 'interval', NULL, NULL, 255, '', '', '00:03:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (12, 1, 'DS update ''cat_forums''', 'ds_update_cat_forums.php', 'interval', NULL, NULL, 255, '', '', '00:05:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (13, 1, 'DS update ''stats''', 'ds_update_stats.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (14, 1, 'Flash topic view', 'flash_topic_view.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (15, 1, 'Clean search results', 'clean_search_results.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (16, 1, 'Tracker cleanup and dlstat', 'tr_cleanup_and_dlstat.php', 'interval', NULL, NULL, 20, '', '', '00:15:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (17, 1, 'Make tracker snapshot', 'tr_make_snapshot.php', 'interval', NULL, NULL, 10, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (18, 1, 'Seeder last seen', 'tr_update_seeder_last_seen.php', 'interval', NULL, NULL, 255, '', '', '01:00:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (19, 1, 'Captcha', 'captcha_gen_gc.php', 'daily', NULL, '05:00:00', 120, '', '', NULL, 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (20, 1, 'Tracker dl-complete count', 'tr_complete_count.php', 'interval', NULL, NULL, 255, '', '', '06:00:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (21, 1, 'Cache garbage collector', 'cache_gc.php', 'interval', NULL, NULL, 255, '', '', '00:05:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (22, 1, 'Sitemap update', 'sitemap.php', 'daily', NULL, '06:00:00', 30, '', '', NULL, 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (23, 1, 'Update forums atom', 'update_forums_atom.php', 'interval', NULL, NULL, 255, '', '', '00:15:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (1, 1, 'Attach maintenance', 'attach_maintenance.php', 'daily', NULL, '05:00:00', 40, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (2, 1, 'Board maintenance', 'bb_maintenance.php', 'daily', NULL, '05:00:00', 40, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (3, 1, 'Prune forums', 'prune_forums.php', 'daily', NULL, '05:00:00', 50, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (4, 1, 'Prune topic moved stubs', 'prune_topic_moved.php', 'daily', NULL, '05:00:00', 60, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (5, 1, 'Logs cleanup', 'clean_log.php', 'daily', NULL, '05:00:00', 70, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (6, 1, 'Tracker maintenance', 'tr_maintenance.php', 'daily', NULL, '05:00:00', 90, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (7, 1, 'Clean dlstat', 'clean_dlstat.php', 'daily', NULL, '05:00:00', 100, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (8, 1, 'Prune inactive users', 'prune_inactive_users.php', 'daily', NULL, '05:00:00', 110, '', '', NULL, 1, '', 0, 1, 0);
INSERT INTO `bb_cron` VALUES (9, 1, 'Sessions cleanup', 'sessions_cleanup.php', 'interval', NULL, NULL, 255, '', '', '00:03:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (10, 1, 'DS update ''cat_forums''', 'ds_update_cat_forums.php', 'interval', NULL, NULL, 255, '', '', '00:05:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (11, 1, 'DS update ''stats''', 'ds_update_stats.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (12, 1, 'Flash topic view', 'flash_topic_view.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (13, 1, 'Clean search results', 'clean_search_results.php', 'interval', NULL, NULL, 255, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (14, 1, 'Tracker cleanup and dlstat', 'tr_cleanup_and_dlstat.php', 'interval', NULL, NULL, 20, '', '', '00:15:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (15, 1, 'Make tracker snapshot', 'tr_make_snapshot.php', 'interval', NULL, NULL, 10, '', '', '00:10:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (16, 1, 'Seeder last seen', 'tr_update_seeder_last_seen.php', 'interval', NULL, NULL, 255, '', '', '01:00:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (17, 1, 'Captcha', 'captcha_gen_gc.php', 'daily', NULL, '05:00:00', 120, '', '', NULL, 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (18, 1, 'Tracker dl-complete count', 'tr_complete_count.php', 'interval', NULL, NULL, 255, '', '', '06:00:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (19, 1, 'Cache garbage collector', 'cache_gc.php', 'interval', NULL, NULL, 255, '', '', '00:05:00', 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (20, 1, 'Sitemap update', 'sitemap.php', 'daily', NULL, '06:00:00', 30, '', '', NULL, 0, '', 0, 0, 0);
INSERT INTO `bb_cron` VALUES (21, 1, 'Update forums atom', 'update_forums_atom.php', 'interval', NULL, NULL, 255, '', '', '00:15:00', 0, '', 0, 0, 0);
-- --------------------------------------------------------
@@ -868,7 +855,6 @@ CREATE TABLE IF NOT EXISTS `bb_posts` (
`post_edit_time` int(11) NOT NULL DEFAULT '0',
`post_edit_count` smallint(5) unsigned NOT NULL DEFAULT '0',
`post_attachment` tinyint(1) NOT NULL DEFAULT '0',
`post_reported` tinyint(1) NOT NULL DEFAULT '0',
`user_post` tinyint(1) NOT NULL DEFAULT '1',
`mc_comment` TEXT NOT NULL DEFAULT '',
`mc_type` TINYINT( 1 ) NOT NULL DEFAULT '0',
@@ -884,7 +870,7 @@ CREATE TABLE IF NOT EXISTS `bb_posts` (
-- Дамп данных таблицы `bb_posts`
--
INSERT INTO `bb_posts` VALUES (1, 1, 1, 2, UNIX_TIMESTAMP(), '', 0, 0, '', 0, 0, 0, 0, 1, '', 0, 0);
INSERT INTO `bb_posts` VALUES (1, 1, 1, 2, UNIX_TIMESTAMP(), '', 0, 0, '', 0, 0, 0, 1, '', 0, 0);
-- --------------------------------------------------------
@@ -944,7 +930,6 @@ CREATE TABLE IF NOT EXISTS `bb_privmsgs` (
`privmsgs_to_userid` mediumint(8) NOT NULL DEFAULT '0',
`privmsgs_date` int(11) NOT NULL DEFAULT '0',
`privmsgs_ip` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
`privmsgs_reported` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`privmsgs_id`),
KEY `privmsgs_from_userid` (`privmsgs_from_userid`),
KEY `privmsgs_to_userid` (`privmsgs_to_userid`)
@@ -1007,100 +992,6 @@ INSERT INTO `bb_ranks` VALUES (1, 'Администратор', -1, 1, 'images/r
-- --------------------------------------------------------
--
-- Структура таблицы `bb_reports`
--
CREATE TABLE IF NOT EXISTS `bb_reports` (
`report_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`user_id` mediumint(8) NOT NULL,
`report_time` int(11) NOT NULL,
`report_last_change` mediumint(8) unsigned DEFAULT NULL,
`report_module_id` mediumint(8) unsigned NOT NULL,
`report_status` tinyint(1) NOT NULL,
`report_reason_id` mediumint(8) unsigned NOT NULL,
`report_subject` int(11) NOT NULL,
`report_subject_data` mediumtext,
`report_title` varchar(255) NOT NULL,
`report_desc` text NOT NULL,
PRIMARY KEY (`report_id`),
KEY `user_id` (`user_id`),
KEY `report_time` (`report_time`),
KEY `report_type_id` (`report_module_id`),
KEY `report_status` (`report_status`),
KEY `report_reason_id` (`report_reason_id`),
KEY `report_subject` (`report_subject`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `bb_reports_changes`
--
CREATE TABLE IF NOT EXISTS `bb_reports_changes` (
`report_change_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`report_id` mediumint(8) unsigned NOT NULL,
`user_id` mediumint(8) NOT NULL,
`report_change_time` int(11) NOT NULL,
`report_status` tinyint(1) NOT NULL,
`report_change_comment` text NOT NULL,
PRIMARY KEY (`report_change_id`),
KEY `report_id` (`report_id`),
KEY `user_id` (`user_id`),
KEY `report_change_time` (`report_change_time`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `bb_reports_modules`
--
CREATE TABLE IF NOT EXISTS `bb_reports_modules` (
`report_module_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`report_module_order` mediumint(8) unsigned NOT NULL,
`report_module_notify` tinyint(1) NOT NULL,
`report_module_prune` smallint(6) NOT NULL,
`report_module_last_prune` int(11) DEFAULT NULL,
`report_module_name` varchar(50) NOT NULL,
`auth_write` tinyint(1) NOT NULL,
`auth_view` tinyint(1) NOT NULL,
`auth_notify` tinyint(1) NOT NULL,
`auth_delete` tinyint(1) NOT NULL,
PRIMARY KEY (`report_module_id`),
KEY `report_module_order` (`report_module_order`),
KEY `auth_view` (`auth_view`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `bb_reports_modules`
--
INSERT INTO `bb_reports_modules` VALUES (1, 1, 0, 0, NULL, 'report_general', 0, 1, 1, 1);
INSERT INTO `bb_reports_modules` VALUES (2, 2, 0, 0, NULL, 'report_post', 0, 1, 1, 1);
INSERT INTO `bb_reports_modules` VALUES (3, 3, 0, 0, NULL, 'report_topic', 0, 1, 1, 1);
INSERT INTO `bb_reports_modules` VALUES (4, 4, 0, 0, NULL, 'report_user', 0, 1, 1, 1);
INSERT INTO `bb_reports_modules` VALUES (5, 5, 0, 0, NULL, 'report_privmsg', 0, 1, 1, 1);
-- --------------------------------------------------------
--
-- Структура таблицы `bb_reports_reasons`
--
CREATE TABLE IF NOT EXISTS `bb_reports_reasons` (
`report_reason_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`report_module_id` mediumint(8) unsigned NOT NULL,
`report_reason_order` mediumint(8) unsigned NOT NULL,
`report_reason_desc` varchar(255) NOT NULL,
PRIMARY KEY (`report_reason_id`),
KEY `report_type_id` (`report_module_id`),
KEY `report_reason_order` (`report_reason_order`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Структура таблицы `bb_search_rebuild`
--
@@ -1248,7 +1139,6 @@ CREATE TABLE IF NOT EXISTS `bb_topics` (
`topic_last_post_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`topic_moved_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
`topic_attachment` tinyint(1) NOT NULL DEFAULT '0',
`topic_reported` tinyint(1) NOT NULL DEFAULT '0',
`topic_dl_type` tinyint(1) NOT NULL DEFAULT '0',
`topic_last_post_time` int(11) NOT NULL DEFAULT '0',
`topic_show_first_post` tinyint(1) unsigned NOT NULL DEFAULT '0',
@@ -1263,7 +1153,7 @@ CREATE TABLE IF NOT EXISTS `bb_topics` (
-- Дамп данных таблицы `bb_topics`
--
INSERT INTO `bb_topics` VALUES (1, 1, 'Добро пожаловать в TorrentPier II', 2, UNIX_TIMESTAMP(), 2, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 972086460, 0);
INSERT INTO `bb_topics` VALUES (1, 1, 'Добро пожаловать в TorrentPier II', 2, UNIX_TIMESTAMP(), 2, 0, 0, 0, 0, 1, 1, 0, 0, 0, UNIX_TIMESTAMP(), 0);
-- --------------------------------------------------------
View
@@ -0,0 +1,20 @@
Схема изменений начиная с версии 2.1 (R600):
Изменения в базе:
DROP TABLE IF EXISTS `bb_reports`;
DROP TABLE IF EXISTS `bb_reports_changes`;
DROP TABLE IF EXISTS `bb_reports_modules`;
DROP TABLE IF EXISTS `bb_reports_reasons`;
DELETE FROM `bb_config` WHERE `config_name` = 'report_subject_auth';
DELETE FROM `bb_config` WHERE `config_name` = 'report_modules_cache';
DELETE FROM `bb_config` WHERE `config_name` = 'report_hack_count';
DELETE FROM `bb_config` WHERE `config_name` = 'report_notify';
DELETE FROM `bb_config` WHERE `config_name` = 'report_list_admin';
DELETE FROM `bb_config` WHERE `config_name` = 'report_new_window';
DELETE FROM `bb_config` WHERE `config_name` = 'reports_enabled';
ALTER TABLE `bb_posts` DROP COLUMN `post_reported`;
ALTER TABLE `bb_privmsgs` DROP COLUMN `privmsgs_reported`;
ALTER TABLE `bb_topics` DROP COLUMN `topic_reported`;
DELETE FROM `bb_cron` WHERE `cron_script` = 'site_backup.php';
DELETE FROM `bb_cron` WHERE `cron_script` = 'db_backup.php';
@@ -56,7 +56,6 @@
'S_CONFIG_ACTION' => 'admin_board.php?mode=config_mods',
'CONFIG_MODS' => true,
'REPORTS_ENABLED' => $new['reports_enabled'],
'MAGNET_LINKS_ENABLED' => $new['magnet_links_enabled'],
'GENDER' => $new['gender'],
'CALLSEED' => $new['callseed'],
@@ -831,13 +831,11 @@ function get_info ($mode, $id)
case 'category':
$table = BB_CATEGORIES;
$idfield = 'cat_id';
$namefield = 'cat_title';
break;
case 'forum':
$table = BB_FORUMS;
$idfield = 'forum_id';
$namefield = 'forum_name';
break;
default:
Oops, something went wrong.

0 comments on commit cbae34e

Please sign in to comment.