From 78ef8cc2bc68163ffc6052e1eb6f8d83cb8aef36 Mon Sep 17 00:00:00 2001 From: Repellent Date: Mon, 2 Sep 2019 20:49:48 +0500 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=B4=D0=B0=D0=BF=D1=82=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=B5=D1=80=D1=81?= =?UTF-8?q?=D0=B8=D0=B8=20ave.cms=20v3.26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- import/info.php | 20 ++++++++++++++++++++ import/lang/ru.txt | 5 +++++ import/module.php | 22 +--------------------- import/sql.php | 6 +++--- 5 files changed, 32 insertions(+), 25 deletions(-) create mode 100644 import/info.php diff --git a/README.md b/README.md index 35acc02..39e12fa 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## import -## Модуль импорта v2.1 (Light версия) +## Модуль импорта v2.26.0 (Light версия) ## Автор: @MadDen @@ -13,6 +13,8 @@ ## Changelog: +02.09.2019 - версия 2.26.0 - Адаптация для версии cms 3.26 + 13.04.2017 - версия 2.1 10.08.2016 - версия 2.0.1 diff --git a/import/info.php b/import/info.php new file mode 100644 index 0000000..c1690ad --- /dev/null +++ b/import/info.php @@ -0,0 +1,20 @@ + 'import', + 'ModuleVersion' => '2.26.0', + 'ModuleAutor' => 'AVE.cms Team', + 'ModuleCopyright' => '© 2007-' . date('Y') . ' AVE.cms', + 'ModuleStatus' => 1, + 'ModuleIsFunction' => 1, + 'ModuleTemplate' => 0, + 'ModuleAdminEdit' => 1, + 'ModuleFunction' => 'import', + 'ModuleTag' => null, + 'ModuleTagLink' => null, + 'ModuleAveTag' => null, + 'ModulePHPTag' => null + ); +?> \ No newline at end of file diff --git a/import/lang/ru.txt b/import/lang/ru.txt index 2536079..325251e 100644 --- a/import/lang/ru.txt +++ b/import/lang/ru.txt @@ -1,3 +1,8 @@ +[name] +MODULE_NAME = "Импорт (Облегченная версия)" +MODULE_DESCRIPTION = "Осуществляет импорт документов из файлов различных типов" + + [admin] mod_name = "Импорт" imports = "Список импортов" diff --git a/import/module.php b/import/module.php index 599b064..00cd66d 100644 --- a/import/module.php +++ b/import/module.php @@ -10,27 +10,7 @@ if(!defined('BASE_DIR')) exit; -if (defined('ACP')) -{ - $modul = - [ - 'ModuleName' => "Импорт (Облегченная версия)", - 'ModuleSysName' => "import", - 'ModuleVersion' => "2.1", - 'ModuleDescription' => "Осуществляет импорт документов из файлов различных типов", - 'ModuleAutor' => "AVE.cms Team", - 'ModuleCopyright' => "© AVE.cms Team 2017", - 'ModuleStatus' => 1, - 'ModuleIsFunction' => 0, - 'ModuleTemplate' => 0, - 'ModuleAdminEdit' => 1, - 'ModuleFunction' => 'import', - 'ModuleTag' => null, - 'ModuleTagLink' => null, - 'ModuleAveTag' => null, - 'ModulePHPTag' => null - ]; -} + /** * Админка diff --git a/import/sql.php b/import/sql.php index 513507d..90c855b 100644 --- a/import/sql.php +++ b/import/sql.php @@ -16,9 +16,9 @@ $module_sql_install = array(); $module_sql_deinstall = array(); $module_sql_update = array(); -$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_import;"; +$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%%_module_import;"; -$module_sql_install[] = "CREATE TABLE CPPREFIX_module_import ( +$module_sql_install[] = "CREATE TABLE %%PRFX%%_module_import ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `rub_id` int(10) unsigned NOT NULL, @@ -37,7 +37,7 @@ $module_sql_install[] = "CREATE TABLE CPPREFIX_module_import ( // Обновление модуля $module_sql_update[] = " UPDATE - `CPPREFIX_module` + `%%PRFX%%_module` SET ModuleAveTag = '" . $modul['ModuleAveTag'] . "', ModulePHPTag = '" . $modul['ModulePHPTag'] . "',