Browse Source

адаптация для версии ave.cms 3.26

master
Repellent 5 years ago
parent
commit
319e0a4d26
  1. 2
      README.md
  2. 0
      gmap/class/gmap.php
  3. 20
      gmap/info.php
  4. 3
      gmap/lang/en.txt
  5. 4
      gmap/lang/ru.txt
  6. 3
      gmap/lang/ua.txt
  7. 21
      gmap/module.php
  8. 14
      gmap/sql.php
  9. 98
      gmap/templates/admin_gmap_markers.tpl

2
README.md

@ -8,6 +8,8 @@
##### Changelog:
##### 05.09.2019 - обновление модуля до версии 1.26.1.4b - адаптация для версии ave.cms 3.26
##### 16.12.2018 - обновление модуля до версии 1.1.4b - Исправлен баг с файловым менеджером elFinder
##### 08.10.2017 - обновление модуля до версии 1.1.3b - Удалена JS функция document.write(), все js-скрипты выненсены в файлы т подключаются в сеции head

0
gmap/class.gmap.php → gmap/class/gmap.php

20
gmap/info.php

@ -0,0 +1,20 @@
<?php
if (! defined('BASE_DIR'))
exit;
$module = array(
'ModuleSysName' => 'gmap',
'ModuleVersion' => '1.26.1.4b',
'ModuleAutor' => 'OcPh | Project Manager Duncan | Upgrade-Remake 2016-' . date('Y') . ' Repellent',
'ModuleCopyright' => '&copy; 2007-' . date('Y') . ' AVE.cms',
'ModuleStatus' => 1,
'ModuleIsFunction' => 1,
'ModuleTemplate' => 0,
'ModuleAdminEdit' => 1,
'ModuleFunction' => 'mod_gmap',
'ModuleTag' => '[mod_gmap:XXX]',
'ModuleTagLink' => null,
'ModuleAveTag' => '#\\\[mod_gmap:([\\\d-]+)]#',
'ModulePHPTag' => "<?php mod_gmap(''$1''); ?>"
);
?>

3
gmap/lang/en.txt

@ -1,3 +1,6 @@
MODULE_NAME = "GMap"
MODULE_DESCRIPTION = "Gmap<br/>Для того, чтобы осуществить просмотр карты, необходимо разместить системный тег <strong>[mod_gmap:XXX]</strong> в теле какого-либо документа"
NoTitle = "Без названия"
WinClose = "Закрыть окно"

4
gmap/lang/ru.txt

@ -1,3 +1,7 @@
MODULE_NAME = "GMap"
MODULE_DESCRIPTION = "Gmap<br/>Для того, чтобы осуществить просмотр карты, необходимо разместить системный тег <strong>[mod_gmap:XXX]</strong> в теле какого-либо документа"
NoTitle = "Без названия"
WinClose = "Закрыть окно"

3
gmap/lang/ua.txt

@ -1,3 +1,6 @@
MODULE_NAME = "GMap"
MODULE_DESCRIPTION = "Gmap<br/>Для того, чтобы осуществить просмотр карты, необходимо разместить системный тег <strong>[mod_gmap:XXX]</strong> в теле какого-либо документа"
NoTitle = "Без названия"
WinClose = "Закрыть окно"

21
gmap/module.php

@ -10,23 +10,6 @@
if(!defined('BASE_DIR')) exit;
if (defined('ACP'))
{
$modul['ModuleName'] = 'GMap';
$modul['ModuleSysName'] = 'gmap';
$modul['ModuleVersion'] = '1.1.4b';
$modul['ModuleDescription'] = 'Gmap<br/>Для того, чтобы осуществить просмотр карты, необходимо разместить системный тег <strong>[mod_gmap:XXX]</strong> в теле какого-либо документа';
$modul['ModuleAutor'] = 'OcPh | Project Manager Duncan | Upgrade module 2016-2017 Repellent';
$modul['ModuleCopyright'] = '&copy; 2016-2017 AVE.cms Team';
$modul['ModuleIsFunction'] = 1;
$modul['ModuleAdminEdit'] = 1;
$modul['ModuleFunction'] = 'mod_gmap';
$modul['ModuleTag'] = '[mod_gmap:XXX]';
$modul['ModuleTagLink'] = null;
$modul['ModuleAveTag'] = '#\\\[mod_gmap:([\\\d-]+)]#';
$modul['ModulePHPTag'] = "<?php mod_gmap(''$1''); ?>";
}
/**
* Функция вывода карты
*
@ -36,7 +19,7 @@ function mod_gmap($gmap_id)
{
global $AVE_Template;
require_once(BASE_DIR . '/modules/gmap/class.gmap.php');
require_once(BASE_DIR . '/modules/gmap/class/gmap.php');
$gmap = new Gmap;
$tpl_dir = BASE_DIR . '/modules/gmap/templates/';
@ -52,7 +35,7 @@ function mod_gmap($gmap_id)
//=======================================================
if (defined('ACP') && !empty($_REQUEST['moduleaction']))
{
require_once(BASE_DIR . '/modules/gmap/class.gmap.php');
require_once(BASE_DIR . '/modules/gmap/class/gmap.php');
$gmap = new Gmap;
$tpl_dir = BASE_DIR . '/modules/gmap/templates/';

14
gmap/sql.php

@ -17,12 +17,12 @@ $module_sql_deinstall = array();
$module_sql_update = array();
//Удаление модуля
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_gmap;";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_gmap_category;";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS CPPREFIX_module_gmap_markers;";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%%_module_gmap;";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%%_module_gmap_category;";
$module_sql_deinstall[] = "DROP TABLE IF EXISTS %%PRFX%%_module_gmap_markers;";
//Установка модуля
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap` (
$module_sql_install[] = "CREATE TABLE `%%PRFX%%_module_gmap` (
`id` int(10) unsigned NOT NULL auto_increment,
`gmap_title` varchar(255) NOT NULL,
`gmap_width` varchar(10) NOT NULL,
@ -33,14 +33,14 @@ $module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap` (
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;";
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap_category` (
$module_sql_install[] = "CREATE TABLE `%%PRFX%%_module_gmap_category` (
`id` int(10) unsigned NOT NULL auto_increment,
`gcat_title` varchar(255) NOT NULL default '',
`gcat_link` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;";
$module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap_markers` (
$module_sql_install[] = "CREATE TABLE `%%PRFX%%_module_gmap_markers` (
`id` int(10) unsigned NOT NULL auto_increment,
`gmap_id` int(10) unsigned NOT NULL default '0',
`marker_cat_id` int(10) unsigned NOT NULL default '0',
@ -63,7 +63,7 @@ $module_sql_install[] = "CREATE TABLE `CPPREFIX_module_gmap_markers` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8 PACK_KEYS=0;";
$module_sql_update[] = "
UPDATE `CPPREFIX_module`
UPDATE `%%PRFX%%_module`
SET
ModuleAveTag = '" . $modul['ModuleAveTag'] . "',
ModulePHPTag = '" . $modul['ModulePHPTag'] . "',

98
gmap/templates/admin_gmap_markers.tpl

@ -1,98 +1,8 @@
{if check_permission('adminpanel')}
<!-- elfinder css -->
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/commands.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/common.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/contextmenu.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/cwd.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/dialog.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/fonts.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/navbar.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/places.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/quicklook.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/statusbar.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/theme.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/toast.css" type="text/css">
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/toolbar.css" type="text/css">
<!-- elfinder core -->
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.version.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/jquery.elfinder.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.mimetypes.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.options.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.options.netmount.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.history.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.command.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elFinder.resources.js"></script>
<!-- elfinder dialog -->
<script src="{$ABS_PATH}lib/redactor/elfinder/js/jquery.dialogelfinder.js"></script>
<!-- elfinder default lang -->
<script src="{$ABS_PATH}lib/redactor/elfinder/js/i18n/elfinder.ru.js"></script>
<!-- elfinder ui -->
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/button.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/contextmenu.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/cwd.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/dialog.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/fullscreenbutton.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/navbar.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/navdock.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/overlay.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/panel.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/path.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/places.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/searchbutton.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/sortbutton.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/stat.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/toast.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/toolbar.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/tree.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/uploadButton.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/viewbutton.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/ui/workzone.js"></script>
<!-- elfinder commands -->
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/archive.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/back.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/chmod.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/colwidth.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/copy.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/cut.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/download.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/duplicate.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/edit.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/empty.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/extract.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/forward.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/fullscreen.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/getfile.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/help.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/hidden.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/hide.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/home.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/info.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/mkdir.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/mkfile.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/netmount.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/open.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/opendir.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/opennew.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/paste.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/places.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/preference.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/quicklook.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/quicklook.plugins.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/reload.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/rename.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/resize.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/restore.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/rm.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/search.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/selectall.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/selectinvert.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/selectnone.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/sort.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/undo.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/up.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/upload.js"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/commands/view.js"></script>
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/elfinder.full.css" type="text/css" media="screen" charset="utf-8" />
<link rel="stylesheet" href="{$ABS_PATH}lib/redactor/elfinder/css/theme.css" type="text/css" media="screen" charset="utf-8" />
<script src="{$ABS_PATH}lib/redactor/elfinder/js/elfinder.full.js" type="text/javascript" charset="utf-8"></script>
<script src="{$ABS_PATH}lib/redactor/elfinder/js/i18n/elfinder.ru.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="{$ABS_PATH}modules/gmap/js/filemanager_gmap.js"></script>
{/if}

Loading…
Cancel
Save