From 4f2ffca5b561b8a32ac732ab030e5dceef1093e5 Mon Sep 17 00:00:00 2001 From: Alex Trofimov Date: Fri, 8 Feb 2019 15:03:12 +1100 Subject: [PATCH] Upgrade script --- upgrade/files/7.3.5-7.4.0/lang_ru.php | 23 +++++++++++++++++ upgrade/files/7.3.5-7.4.0/modules/ads/sql.sql | 7 ++++++ .../7.3.5-7.4.0/modules/articles/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/articles/lang_ru.php | 9 +++++++ .../7.3.5-7.4.0/modules/articles/sql.sql | 7 ++++++ .../files/7.3.5-7.4.0/modules/avatar/sql.sql | 6 +++++ .../files/7.3.5-7.4.0/modules/blogs/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/custom_rss/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/dolphcon/sql.sql | 8 ++++++ .../files/7.3.5-7.4.0/modules/events/sql.sql | 25 +++++++++++++++++++ .../modules/facebook_connect/lang_en.php | 9 +++++++ .../modules/facebook_connect/lang_ru.php | 9 +++++++ .../modules/facebook_connect/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/feedback/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/feedback/lang_ru.php | 9 +++++++ .../7.3.5-7.4.0/modules/feedback/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/files/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/files/lang_ru.php | 9 +++++++ .../7.3.5-7.4.0/modules/files/script.php | 11 ++++++++ .../files/7.3.5-7.4.0/modules/files/sql.sql | 12 +++++++++ .../7.3.5-7.4.0/modules/forum/lang_en.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/forum/sql.sql | 8 ++++++ .../files/7.3.5-7.4.0/modules/groups/sql.sql | 8 ++++++ .../files/7.3.5-7.4.0/modules/h5av/sql.sql | 19 ++++++++++++++ .../7.3.5-7.4.0/modules/news/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/news/lang_ru.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/news/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/payflow/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/payflow/lang_ru.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/payflow/sql.sql | 10 ++++++++ .../7.3.5-7.4.0/modules/payment/lang_en.php | 14 +++++++++++ .../7.3.5-7.4.0/modules/payment/lang_ru.php | 15 +++++++++++ .../files/7.3.5-7.4.0/modules/payment/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/photos/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/photos/lang_ru.php | 9 +++++++ .../7.3.5-7.4.0/modules/photos/script.php | 11 ++++++++ .../files/7.3.5-7.4.0/modules/photos/sql.sql | 15 +++++++++++ .../files/7.3.5-7.4.0/modules/poll/sql.sql | 8 ++++++ .../modules/profile_customize/sql.sql | 14 +++++++++++ .../files/7.3.5-7.4.0/modules/russian/sql.sql | 6 +++++ .../7.3.5-7.4.0/modules/shoutbox/sql.sql | 8 ++++++ .../modules/simple_messenger/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/sites/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/sites/lang_ru.php | 16 ++++++++++++ .../files/7.3.5-7.4.0/modules/sites/sql.sql | 12 +++++++++ .../7.3.5-7.4.0/modules/smtpmailer/sql.sql | 9 +++++++ .../7.3.5-7.4.0/modules/sounds/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/sounds/lang_ru.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/sounds/sql.sql | 12 +++++++++ upgrade/files/7.3.5-7.4.0/modules/spy/sql.sql | 8 ++++++ .../files/7.3.5-7.4.0/modules/store/sql.sql | 8 ++++++ .../7.3.5-7.4.0/modules/videos/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/videos/lang_ru.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/videos/sql.sql | 12 +++++++++ .../7.3.5-7.4.0/modules/wall/lang_en.php | 9 +++++++ .../7.3.5-7.4.0/modules/wall/lang_ru.php | 9 +++++++ .../files/7.3.5-7.4.0/modules/wall/sql.sql | 8 ++++++ .../files/7.3.5-7.4.0/modules/wmap/sql.sql | 8 ++++++ upgrade/files/7.3.5-7.4.0/sql.sql | 5 ++++ 59 files changed, 587 insertions(+) create mode 100644 upgrade/files/7.3.5-7.4.0/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/articles/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/articles/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/feedback/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/feedback/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/files/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/files/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/files/script.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/forum/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/news/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/news/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/payflow/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/payflow/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/payment/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/payment/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/photos/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/photos/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/photos/script.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/sites/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/sites/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/sounds/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/sounds/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/videos/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/videos/lang_ru.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/wall/lang_en.php create mode 100644 upgrade/files/7.3.5-7.4.0/modules/wall/lang_ru.php diff --git a/upgrade/files/7.3.5-7.4.0/lang_ru.php b/upgrade/files/7.3.5-7.4.0/lang_ru.php new file mode 100644 index 00000000..83db881b --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/lang_ru.php @@ -0,0 +1,23 @@ + 'Оставьте пустым, если Вы хотите использовать ранее загруженное изображение.', + '_mma_send_friend_request' => 'посылать предложения дружбы', + '_sys_btn_thumbnail_change' => 'Изменить миниатюру', + '_sys_export_success' => 'Ссылка на скачивание данных была отправлена на емейл: {0}', + '_sys_wrn_disabled_scripts' => 'Ваш браузер не поддерживает скрипты!', + + // ================ CHANGED KEYS ================ + + '_ATT_ACTIVE' => 'Изменить + + Пояснение + + Спрятать + + Экспортировать персональные данные', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/ads/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/ads/sql.sql index 0ba24b27..b65e66d0 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/ads/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/ads/sql.sql @@ -1,4 +1,11 @@ +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_ads'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_ads', '_bx_ads_Ads', 'BxAdsExport', 'modules/boonex/ads/classes/BxAdsExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'ads' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/articles/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/articles/lang_en.php new file mode 100644 index 00000000..628e9700 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/articles/lang_en.php @@ -0,0 +1,9 @@ + 'Articles', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/articles/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/articles/lang_ru.php new file mode 100644 index 00000000..655c63be --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/articles/lang_ru.php @@ -0,0 +1,9 @@ + 'Статьи', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/articles/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/articles/sql.sql index 355fe375..a4bdcdb0 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/articles/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/articles/sql.sql @@ -1,4 +1,11 @@ +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_articles'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_articles', '_articles', 'BxArlExport', 'modules/boonex/articles/classes/BxArlExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'articles' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/avatar/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/avatar/sql.sql index 611cd21c..4117c73a 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/avatar/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/avatar/sql.sql @@ -1,4 +1,10 @@ +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_avatar'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_avatar', '_bx_ava_avatar', 'BxAvaExport', 'modules/boonex/avatar/classes/BxAvaExport.php', @iMaxOrderExports, 1); + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'avatar' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/blogs/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/blogs/sql.sql index d62d6717..5d3cd554 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/blogs/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/blogs/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_blogs'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_blogs', '_bx_blog_Blogs', 'BxBlogsExport', 'modules/boonex/blogs/classes/BxBlogsExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'blogs' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/custom_rss/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/custom_rss/sql.sql index d18cc906..2fb3f762 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/custom_rss/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/custom_rss/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_crss'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_crss', '_sys_module_custom_rss', 'BxCRSSExport', 'modules/boonex/custom_rss/classes/BxCRSSExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'custom_rss' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/dolphcon/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/dolphcon/sql.sql index d23b5cc4..9afaecf1 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/dolphcon/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/dolphcon/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_dolphcon'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_dolphcon', '_sys_module_dolphcon', 'BxDolphConExport', 'modules/boonex/dolphin_connect/classes/BxDolphConExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'dolphcon' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/events/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/events/sql.sql index 23d57ac1..94183ca7 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/events/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/events/sql.sql @@ -1,4 +1,29 @@ + +SET @iCategId = (SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Events' LIMIT 1); + +DELETE FROM `sys_options` WHERE `Name` = 'bx_events_only_upcoming_events_on_map'; + +INSERT INTO `sys_options` (`Name`, `VALUE`, `kateg`, `desc`, `Type`, `check`, `err_text`, `order_in_kateg`, `AvailableValues`) VALUES +('bx_events_only_upcoming_events_on_map', '', @iCategId, 'Display only upcoming and current events on the map', 'checkbox', '', '', '0', ''); + + +SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_events_set_param' LIMIT 1); +DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler; +DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler; + +INSERT INTO `sys_alerts_handlers` VALUES (NULL, 'bx_events_set_param', '', '', 'if (''bx_events_only_upcoming_events_on_map'' == $this->aExtras[''name'']) BxDolService::call(''events'', ''set_upcoming_events_on_map'');'); +SET @iHandler := LAST_INSERT_ID(); +INSERT INTO `sys_alerts` VALUES (NULL , 'system', 'set_param', @iHandler); + + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_events'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_events', '_bx_events', 'BxEventsExport', 'modules/boonex/events/classes/BxEventsExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'events' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_en.php new file mode 100644 index 00000000..2bfcc742 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_en.php @@ -0,0 +1,9 @@ + 'To get your "App ID" and "App Secret", you need to make Facebook app.

Please follow these instructions on how to create and setup the app.

Your "Site URL" for the app: {0}
Your "OAuth Redirect URI" for the app: {1}

After completing these steps, insert your "App ID" and "App Secret" below:', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_ru.php new file mode 100644 index 00000000..67194faf --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/lang_ru.php @@ -0,0 +1,9 @@ + 'Чтобы получить "App ID" и "App Secret", нужно создать новое приложение.

Инструкции по созданию Facebook приложения

Значение поля "Site URL" для приложения: {0}
Значение поля "URI перенаправления для OAuth" для приложения: {1}

После выполнения этих шагов укажите "API Key" и "App Secret" в форме ниже:', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/sql.sql index f0a62040..d2099d9b 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/facebook_connect/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_facebook'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_facebook', '_sys_module_facebook_connect', 'BxFaceBookConnectExport', 'modules/boonex/facebook_connect/classes/BxFaceBookConnectExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'facebook_connect' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_en.php new file mode 100644 index 00000000..02cd166c --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_en.php @@ -0,0 +1,9 @@ + 'Feedback', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_ru.php new file mode 100644 index 00000000..0b5a27fa --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/feedback/lang_ru.php @@ -0,0 +1,9 @@ + 'Отзывы', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/feedback/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/feedback/sql.sql index 32ab564e..15b44178 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/feedback/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/feedback/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_feedback'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_feedback', '_feedback', 'BxFdbExport', 'modules/boonex/feedback/classes/BxFdbExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'feedback' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/files/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/files/lang_en.php new file mode 100644 index 00000000..d97b15ac --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/files/lang_en.php @@ -0,0 +1,9 @@ + 'I have the right to distribute these files', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/files/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/files/lang_ru.php new file mode 100644 index 00000000..ea3b6723 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/files/lang_ru.php @@ -0,0 +1,9 @@ + 'У меня есть право распространять эти файлы', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/files/script.php b/upgrade/files/7.3.5-7.4.0/modules/files/script.php new file mode 100644 index 00000000..12efea34 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/files/script.php @@ -0,0 +1,11 @@ +oDb->getOne("SELECT COUNT(*) AS `count` FROM `bx_files_main` GROUP BY `Uri` ORDER BY `count` DESC LIMIT 1") <= 1) { + + if ($this->oDb->isIndexExists('bx_files_main', 'Uri')) + $this->oDb->res("ALTER TABLE `bx_files_main` DROP INDEX `Uri`"); + + $this->oDb->res("ALTER TABLE `bx_files_main` ADD UNIQUE (`Uri`)"); + } + + return true; diff --git a/upgrade/files/7.3.5-7.4.0/modules/files/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/files/sql.sql index aa540cca..fcf79b76 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/files/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/files/sql.sql @@ -1,4 +1,16 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = '[db_prefix]'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('[db_prefix]', '_bx_files', 'BxFilesExport', 'modules/boonex/files/classes/BxFilesExport.php', @iMaxOrderExports, 1); + + +DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_bx_files_i_have_the_right_to_distribute'); +DELETE FROM `sys_localization_keys` WHERE `Key` IN('_bx_files_i_have_the_right_to_distribute'); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'files' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/forum/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/forum/lang_en.php new file mode 100644 index 00000000..1e4728ab --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/forum/lang_en.php @@ -0,0 +1,9 @@ + 'forum delete topics', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/forum/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/forum/sql.sql index 5502738b..dd4e0003 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/forum/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/forum/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_forum'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_forum', '_sys_module_forum', 'BxForumExport', 'modules/boonex/forum/classes/BxForumExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'forum' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/groups/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/groups/sql.sql index ff36a72f..e68332c0 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/groups/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/groups/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_groups'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_groups', '_sys_module_groups', 'BxGroupsExport', 'modules/boonex/groups/classes/BxGroupsExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'groups' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/h5av/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/h5av/sql.sql index 3a46de10..2bc9d086 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/h5av/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/h5av/sql.sql @@ -1,4 +1,23 @@ + +SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_h5av_video_embed' LIMIT 1); +DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler; +DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler; + +INSERT INTO `sys_alerts_handlers` VALUES (NULL, 'bx_h5av_video_embed', '', '', 'BxDolService::call(''h5av'', ''response_video_embed'', array($this));'); +SET @iHandler := LAST_INSERT_ID(); +INSERT INTO `sys_alerts` VALUES (NULL , 'bx_videos', 'embed_code', @iHandler); + + +SET @iHandler := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_h5av_audio_embed' LIMIT 1); +DELETE FROM `sys_alerts` WHERE `handler_id` = @iHandler; +DELETE FROM `sys_alerts_handlers` WHERE `id` = @iHandler; + +INSERT INTO `sys_alerts_handlers` VALUES (NULL, 'bx_h5av_audio_embed', '', '', 'BxDolService::call(''h5av'', ''response_audio_embed'', array($this));'); +SET @iHandler := LAST_INSERT_ID(); +INSERT INTO `sys_alerts` VALUES (NULL , 'bx_sounds', 'embed_code', @iHandler); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'h5av' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/news/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/news/lang_en.php new file mode 100644 index 00000000..41a7d17f --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/news/lang_en.php @@ -0,0 +1,9 @@ + 'News', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/news/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/news/lang_ru.php new file mode 100644 index 00000000..5c18bf83 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/news/lang_ru.php @@ -0,0 +1,9 @@ + 'Новости', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/news/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/news/sql.sql index f455a937..cead26c2 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/news/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/news/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_news'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_news', '_news', 'BxNewsExport', 'modules/boonex/news/classes/BxNewsExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'news' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_en.php new file mode 100644 index 00000000..283dd0d8 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_en.php @@ -0,0 +1,9 @@ + 'PayPal PayFlow Pro', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_ru.php new file mode 100644 index 00000000..f0b2369f --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/payflow/lang_ru.php @@ -0,0 +1,9 @@ + 'PayPal PayFlow Pro', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/payflow/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/payflow/sql.sql index ba061e31..261e40ce 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/payflow/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/payflow/sql.sql @@ -1,4 +1,14 @@ +SET @sModuleName = 'bx_payflow'; + + +DELETE FROM `sys_objects_exports` WHERE `object` = @sModuleName; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +(@sModuleName, '_bx_pfw', 'BxPfwExport', 'modules/boonex/paypal_payflow/classes/BxPfwExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'payflow' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/payment/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/payment/lang_en.php new file mode 100644 index 00000000..97fe2f67 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/payment/lang_en.php @@ -0,0 +1,14 @@ + 'Payment', + '_payment_txt_shopping_cart_summary' => '{0} item(s) - {1} {2}', + + // ================ CHANGED KEYS ================== + + '_payment_txt_shopping_cart' => 'Seller: {0}', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/payment/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/payment/lang_ru.php new file mode 100644 index 00000000..33b1e96a --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/payment/lang_ru.php @@ -0,0 +1,15 @@ + 'Платежи', + '_payment_txt_shopping_cart_summary' => 'товаров: {0}, цена: {1} {2}', + + // ================ CHANGED KEYS ================== + + '_payment_txt_shopping_cart' => 'Продавец: {0}', + +); + diff --git a/upgrade/files/7.3.5-7.4.0/modules/payment/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/payment/sql.sql index b8f0c8ef..c61af66a 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/payment/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/payment/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_pmt'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_pmt', '_payment', 'BxPmtExport', 'modules/boonex/payment/classes/BxPmtExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'payment' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/photos/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/photos/lang_en.php new file mode 100644 index 00000000..92988e0a --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/photos/lang_en.php @@ -0,0 +1,9 @@ + 'I have the right to distribute these photos', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/photos/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/photos/lang_ru.php new file mode 100644 index 00000000..2222a7fe --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/photos/lang_ru.php @@ -0,0 +1,9 @@ + 'У меня есть право выкладывать это фото', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/photos/script.php b/upgrade/files/7.3.5-7.4.0/modules/photos/script.php new file mode 100644 index 00000000..5b42d331 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/photos/script.php @@ -0,0 +1,11 @@ +oDb->getOne("SELECT COUNT(*) AS `count` FROM `bx_photos_main` GROUP BY `Uri` ORDER BY `count` DESC LIMIT 1") <= 1) { + + if ($this->oDb->isIndexExists('bx_photos_main', 'Uri')) + $this->oDb->res("ALTER TABLE `bx_photos_main` DROP INDEX `Uri`"); + + $this->oDb->res("ALTER TABLE `bx_photos_main` ADD UNIQUE (`Uri`)"); + } + + return true; diff --git a/upgrade/files/7.3.5-7.4.0/modules/photos/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/photos/sql.sql index 9c11d55a..a0653a43 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/photos/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/photos/sql.sql @@ -1,4 +1,19 @@ + +UPDATE `sys_options` SET `desc` = 'Flickr API key. You can get Flickr API keys here: https://www.flickr.com/services/api/keys/' WHERE `Name` = 'bx_photos_flickr_photo_api'; + + +DELETE FROM `sys_objects_exports` WHERE `object` = '[db_prefix]'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('[db_prefix]', '_bx_photos', 'BxPhotosExport', 'modules/boonex/photos/classes/BxPhotosExport.php', @iMaxOrderExports, 1); + + +DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_bx_photos_i_have_the_right_to_distribute'); +DELETE FROM `sys_localization_keys` WHERE `Key` IN('_bx_photos_i_have_the_right_to_distribute'); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'photos' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/poll/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/poll/sql.sql index 44b82cc2..ad61bd47 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/poll/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/poll/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_poll'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_poll', '_sys_module_poll', 'BxPollExport', 'modules/boonex/poll/classes/BxPollExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'poll' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/profile_customize/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/profile_customize/sql.sql index d5b0a269..baf95feb 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/profile_customize/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/profile_customize/sql.sql @@ -1,4 +1,18 @@ + +DELETE FROM `sys_objects_actions` WHERE `Type` = 'Profile' AND `Icon` = 'magic' AND `Script` LIKE '%profile_customize_page%'; + +SET @iMaxOrder = (SELECT `Order` + 1 FROM `sys_objects_actions` WHERE `Type` = 'Profile' ORDER BY `Order` DESC LIMIT 1); +INSERT INTO `sys_objects_actions` (`Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`, `Type`) VALUES('{evalResult}', 'magic', '', '$(''#profile_customize_page'').fadeIn(''slow'');', 'return array(''evalResult'' => defined(''BX_PROFILE_PAGE'') && {ID} == {member_id} && getParam(''bx_profile_customize_enable'') == ''on'' ? _t( ''_Customize'' ) : null, ''evalResultCssClassWrapper'' => ''bx-phone-hide'');', @iMaxOrder, 'Profile'); + + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_profile_customize'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_profile_customize', '_sys_module_profile_customize', 'BxProfileCustomizeExport', 'modules/boonex/profile_customize/classes/BxProfileCustomizeExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'profile_customize' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/russian/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/russian/sql.sql index 8d4046e1..6d88ba17 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/russian/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/russian/sql.sql @@ -1,4 +1,10 @@ + +SET @iLangId = (SELECT `ID` FROM `sys_localization_languages` WHERE `Name` = 'ru'); +INSERT INTO `sys_email_templates` (`Name`, `Subject`, `Body`, `Desc`, `LangID`) VALUES +('t_ExportReady', ' экспорт данных готов', '\r\n\r\n\r\n

Дорогой ,

\r\n\r\n

Данные могут быть скачаны по следующей ссылке:

\r\n\r\n

\r\n\r\n

Ссылка будет доступна в течение 24 часов.

\r\n\r\n\r\n', 'Уведомление об экспорте данных', @iLangId); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'russian' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/shoutbox/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/shoutbox/sql.sql index eb2bd38e..66ca4283 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/shoutbox/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/shoutbox/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_shoutbox'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_shoutbox', '_sys_module_shoutbox', 'BxShoutBoxExport', 'modules/boonex/shoutbox/classes/BxShoutBoxExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'shoutbox' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/simple_messenger/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/simple_messenger/sql.sql index 1bc43306..60bc8f12 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/simple_messenger/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/simple_messenger/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_simple_messenger'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_simple_messenger', '_sys_module_simple_messenger', 'BxSimpleMessengerExport', 'modules/boonex/simple_messenger/classes/BxSimpleMessengerExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'simple_messenger' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/sites/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/sites/lang_en.php new file mode 100644 index 00000000..ffc0c810 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/sites/lang_en.php @@ -0,0 +1,9 @@ + 'Leave this field empty to allow the system to get an image automatically from provided URL.', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/sites/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/sites/lang_ru.php new file mode 100644 index 00000000..a8c4ae76 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/sites/lang_ru.php @@ -0,0 +1,16 @@ + 'Оставьте данное поле пустым, чтобы позволить системе получить изображение автоматически из предоставленной ссылки.', + '_wall_reposted_bx_sites_comment_add' => 'зарепостил комментарий к сайту', + '_wall_reposted_title_bx_sites_comment_add' => '{0} зарепостил комментарий к сайту', + + // ================ DELETED KEYS ================== +/* + '_wall_reposted_bx_sites_commentPost' => 'зарепостил комментарий к сайту', + '_wall_reposted_title_bx_sites_commentPost' => '{0} зарепостил комментарий к сайту', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/sites/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/sites/sql.sql index 35134179..53d40ef0 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/sites/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/sites/sql.sql @@ -1,4 +1,16 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_sites'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_sites', '_sys_module_sites', 'BxSitesExport', 'modules/boonex/sites/classes/BxSitesExport.php', @iMaxOrderExports, 1); + + +DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_wall_reposted_bx_sites_commentPost','_wall_reposted_title_bx_sites_commentPost'); +DELETE FROM `sys_localization_keys` WHERE `Key` IN('_wall_reposted_bx_sites_commentPost','_wall_reposted_title_bx_sites_commentPost'); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'sites' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/smtpmailer/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/smtpmailer/sql.sql index 4ff4fb68..0872f2c9 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/smtpmailer/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/smtpmailer/sql.sql @@ -1,4 +1,13 @@ + +SET @iCategId = (SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'SMTP Mailer' LIMIT 1); + +DELETE FROM `sys_options` WHERE `Name` = 'bx_smtp_allow_selfsigned'; + +INSERT INTO `sys_options` (`Name`, `VALUE`, `kateg`, `desc`, `Type`, `check`, `err_text`, `order_in_kateg`, `AvailableValues`) VALUES +('bx_smtp_allow_selfsigned', '', @iCategId, 'Allow self-signed certificates', 'checkbox', '', '', '0', ''); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'smtpmailer' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_en.php new file mode 100644 index 00000000..4fa13582 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_en.php @@ -0,0 +1,9 @@ + 'I have the right to publish these Sounds', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_ru.php new file mode 100644 index 00000000..81a70c62 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/sounds/lang_ru.php @@ -0,0 +1,9 @@ + 'У меня есть право на публикацию этого аудио', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/sounds/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/sounds/sql.sql index 2b5102bd..4ade0df7 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/sounds/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/sounds/sql.sql @@ -1,4 +1,16 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = '[db_prefix]'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('[db_prefix]', '_bx_sounds', 'BxSoundsExport', 'modules/boonex/sounds/classes/BxSoundsExport.php', @iMaxOrderExports, 1); + + +DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_bx_sounds_i_have_the_right_to_distribute'); +DELETE FROM `sys_localization_keys` WHERE `Key` IN('_bx_sounds_i_have_the_right_to_distribute'); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'sounds' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/spy/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/spy/sql.sql index 0c145dc2..ef7dc6dc 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/spy/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/spy/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_spy'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_spy', '_sys_module_spy', 'BxSpyExport', 'modules/boonex/spy/classes/BxSpyExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'spy' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/store/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/store/sql.sql index 77aad641..9435b56e 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/store/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/store/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_store'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_store', '_sys_module_store', 'BxStoreExport', 'modules/boonex/store/classes/BxStoreExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'store' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/videos/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/videos/lang_en.php new file mode 100644 index 00000000..cf38e519 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/videos/lang_en.php @@ -0,0 +1,9 @@ + 'I have the right to distribute this Video', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/videos/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/videos/lang_ru.php new file mode 100644 index 00000000..1dc1ac75 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/videos/lang_ru.php @@ -0,0 +1,9 @@ + 'У меня есть право выкладывать это видео', +*/ +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/videos/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/videos/sql.sql index 4568f97b..68e9f2e1 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/videos/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/videos/sql.sql @@ -1,4 +1,16 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = '[db_prefix]'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('[db_prefix]', '_bx_videos', 'BxVideosExport', 'modules/boonex/videos/classes/BxVideosExport.php', @iMaxOrderExports, 1); + + +DELETE `sys_localization_strings` FROM `sys_localization_strings`, `sys_localization_keys` WHERE `sys_localization_keys`.`ID` = `sys_localization_strings`.`IDKey` AND `sys_localization_keys`.`Key` IN('_bx_videos_i_have_the_right_to_distribute'); +DELETE FROM `sys_localization_keys` WHERE `Key` IN('_bx_videos_i_have_the_right_to_distribute'); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'videos' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/wall/lang_en.php b/upgrade/files/7.3.5-7.4.0/modules/wall/lang_en.php new file mode 100644 index 00000000..404a76e7 --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/wall/lang_en.php @@ -0,0 +1,9 @@ + 'Timeline', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/wall/lang_ru.php b/upgrade/files/7.3.5-7.4.0/modules/wall/lang_ru.php new file mode 100644 index 00000000..15b185cf --- /dev/null +++ b/upgrade/files/7.3.5-7.4.0/modules/wall/lang_ru.php @@ -0,0 +1,9 @@ + 'Линейка', + +); diff --git a/upgrade/files/7.3.5-7.4.0/modules/wall/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/wall/sql.sql index 0b1690a0..c0755f1b 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/wall/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/wall/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_wall'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_wall', '_wall', 'BxWallExport', 'modules/boonex/wall/classes/BxWallExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'wall' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/modules/wmap/sql.sql b/upgrade/files/7.3.5-7.4.0/modules/wmap/sql.sql index 32cb1ffc..34fbb954 100644 --- a/upgrade/files/7.3.5-7.4.0/modules/wmap/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/modules/wmap/sql.sql @@ -1,4 +1,12 @@ + +DELETE FROM `sys_objects_exports` WHERE `object` = 'bx_wmap'; + +SET @iMaxOrderExports = (SELECT MAX(`order`)+1 FROM `sys_objects_exports`); +INSERT INTO `sys_objects_exports` (`object`, `title`, `class_name`, `class_file`, `order`, `active`) VALUES +('bx_wmap', '_sys_module_wmap', 'BxWmapExport', 'modules/boonex/world_map/classes/BxWmapExport.php', @iMaxOrderExports, 1); + + -- update module version UPDATE `sys_modules` SET `version` = '1.4.0' WHERE `uri` = 'wmap' AND `version` = '1.3.5'; diff --git a/upgrade/files/7.3.5-7.4.0/sql.sql b/upgrade/files/7.3.5-7.4.0/sql.sql index f7640046..d06eab26 100644 --- a/upgrade/files/7.3.5-7.4.0/sql.sql +++ b/upgrade/files/7.3.5-7.4.0/sql.sql @@ -1,5 +1,10 @@ +DELETE FROM `sys_email_templates` WHERE `Name` = 't_ExportReady'; +INSERT INTO `sys_email_templates` (`Name`, `Subject`, `Body`, `Desc`, `LangID`) VALUES +('t_ExportReady', ' Your data export is ready', '\r\n\r\n\r\n

Dear ,

\r\n\r\n

Your data download link:

\r\n\r\n

\r\n\r\n

Link will be availiable for 24 hours.

\r\n\r\n\r\n', 'Notification about user data export', 0); + + UPDATE `sys_menu_member` SET `Eval` = 'return array(''evalResultCssClassWrapper'' => ''extra_item_add_content'');' WHERE `Name` = 'AddContent';