From 023e108c2e264053dcf146f436cee80ad25a9136 Mon Sep 17 00:00:00 2001 From: "M@d D3n" Date: Wed, 26 Feb 2020 21:59:06 +0300 Subject: [PATCH] Fixes --- admin/lang/ru/sysblocks.txt | 20 +- admin/sysblocks.php | 24 + admin/templates/sysblocks/form.tpl | 24 + admin/templates/sysblocks/form_visual.tpl | 24 + admin/templates/sysblocks/multi.tpl | 24 + admin/templates/sysblocks/start.tpl | 27 +- class/class.database.php | 2 +- class/class.docs.php | 10 +- class/class.sysblocks.php | 204 +- install/index.php | 4 +- install/lang/ru.txt | 4 +- install/tpl/error.tpl | 6 +- install/tpl/step1.tpl | 208 +- install/tpl/step2.tpl | 6 +- install/tpl/step3.tpl | 6 +- install/tpl/step4.tpl | 6 +- install/tpl/step5.tpl | 288 +- install/tpl/step6.tpl | 6 +- .../codemirror/addon/comment/comment.js | 2 +- .../addon/comment/continuecomment.js | 76 +- .../codemirror/addon/dialog/dialog.js | 6 +- .../codemirror/addon/display/autorefresh.js | 2 +- .../codemirror/addon/display/fullscreen.js | 2 +- .../codemirror/addon/display/panel.js | 56 +- .../codemirror/addon/display/placeholder.js | 4 +- .../codemirror/addon/display/rulers.js | 2 +- .../codemirror/addon/edit/closebrackets.js | 15 +- .../codemirror/addon/edit/closetag.js | 49 +- .../codemirror/addon/edit/continuelist.js | 12 +- .../codemirror/addon/edit/matchbrackets.js | 17 +- .../codemirror/addon/edit/matchtags.js | 2 +- .../codemirror/addon/edit/trailingspace.js | 2 +- .../codemirror/addon/fold/brace-fold.js | 4 +- .../codemirror/addon/fold/comment-fold.js | 2 +- .../codemirror/addon/fold/foldcode.js | 11 +- .../codemirror/addon/fold/foldgutter.js | 35 +- .../codemirror/addon/fold/indent-fold.js | 2 +- .../codemirror/addon/fold/markdown-fold.js | 2 +- .../codemirror/addon/fold/xml-fold.js | 10 +- .../codemirror/addon/hint/anyword-hint.js | 2 +- .../codemirror/addon/hint/css-hint.js | 14 +- .../codemirror/addon/hint/html-hint.js | 4 +- .../codemirror/addon/hint/javascript-hint.js | 4 +- .../codemirror/addon/hint/show-hint.js | 69 +- .../codemirror/addon/hint/sql-hint.js | 30 +- .../codemirror/addon/hint/xml-hint.js | 37 +- .../addon/lint/coffeescript-lint.js | 2 +- .../codemirror/addon/lint/css-lint.js | 2 +- .../codemirror/addon/lint/html-lint.js | 10 +- .../codemirror/addon/lint/javascript-lint.js | 2 +- .../codemirror/addon/lint/json-lint.js | 5 +- lib/redactor/codemirror/addon/lint/lint.js | 2 +- .../codemirror/addon/lint/yaml-lint.js | 4 +- lib/redactor/codemirror/addon/merge/merge.js | 11 +- .../codemirror/addon/mode/loadmode.js | 2 +- .../codemirror/addon/mode/multiplex.js | 10 +- .../codemirror/addon/mode/multiplex_test.js | 2 +- lib/redactor/codemirror/addon/mode/overlay.js | 6 +- lib/redactor/codemirror/addon/mode/simple.js | 2 +- .../codemirror/addon/runmode/colorize.js | 2 +- .../addon/runmode/runmode-standalone.js | 2 +- .../codemirror/addon/runmode/runmode.js | 2 +- .../codemirror/addon/runmode/runmode.node.js | 2 +- .../addon/scroll/annotatescrollbar.js | 6 +- .../codemirror/addon/scroll/scrollpastend.js | 2 +- .../addon/scroll/simplescrollbars.js | 2 +- .../codemirror/addon/search/jump-to-line.js | 9 +- .../addon/search/match-highlighter.js | 2 +- .../addon/search/matchesonscrollbar.js | 4 +- .../codemirror/addon/search/search.js | 40 +- .../codemirror/addon/search/searchcursor.js | 35 +- .../codemirror/addon/selection/active-line.js | 2 +- .../addon/selection/mark-selection.js | 2 +- .../addon/selection/selection-pointer.js | 2 +- lib/redactor/codemirror/addon/tern/tern.js | 2 +- lib/redactor/codemirror/addon/tern/worker.js | 2 +- .../codemirror/addon/wrap/hardwrap.js | 3 +- lib/redactor/codemirror/lib/codemirror.css | 11 +- lib/redactor/codemirror/lib/codemirror.js | 18913 ++++++++-------- lib/redactor/codemirror/mode/clike/clike.js | 196 +- lib/redactor/codemirror/mode/css/css.js | 17 +- .../mode/htmlembedded/htmlembedded.js | 2 +- .../codemirror/mode/htmlmixed/htmlmixed.js | 6 +- .../codemirror/mode/javascript/javascript.js | 201 +- lib/redactor/codemirror/mode/meta.js | 15 +- lib/redactor/codemirror/mode/php/php.js | 10 +- lib/redactor/codemirror/mode/smarty/smarty.js | 6 +- lib/redactor/codemirror/mode/sql/sql.js | 83 +- lib/redactor/codemirror/mode/xml/xml.js | 16 +- .../codemirror/theme/base16-light.css | 2 +- lib/redactor/codemirror/theme/lesser-dark.css | 4 +- lib/redactor/codemirror/theme/material.css | 154 +- lib/redactor/codemirror/theme/midnight.css | 4 - lib/redactor/codemirror/theme/monokai.css | 5 + .../codemirror/theme/panda-syntax.css | 2 +- lib/redactor/codemirror/theme/vibrant-ink.css | 2 +- 96 files changed, 11023 insertions(+), 10173 deletions(-) diff --git a/admin/lang/ru/sysblocks.txt b/admin/lang/ru/sysblocks.txt index 53a6a7e..5febec6 100644 --- a/admin/lang/ru/sysblocks.txt +++ b/admin/lang/ru/sysblocks.txt @@ -76,7 +76,19 @@ SYSBLOCK_ER_SYN = "Неверный алиас!
Алиас не долже SYSBLOCK_ER_EXISTS = "Неверный алиас!
Данный алиас уже привязан к другоому системному блоку" // v 3.26 -SYSBLOCK_EVAL = "Выполнять PHP перед возвращением результата" -SYS_GROUP_NO_TITLE = "Без группы" -SYS_GROUP_NO_DESCRIPTION = "Описание отсутвует" -SYS_GROUP_PLEASE_SELECT = "Выберите группу" \ No newline at end of file +SYSBLOCK_EVAL = "Выполнять PHP перед возвращением результата" +SYS_GROUP_NO_TITLE = "Без группы" +SYS_GROUP_NO_DESCRIPTION = "Описание отсутвует" +SYS_GROUP_PLEASE_SELECT = "Выберите группу" +SYS_GROUP_TITLE = "Наименование группы" +SYS_GROUP_DESCRIPTION = "Описание группы" +SYS_GROUP_BTN = "Добавить группу" +SYS_GROUPS = "Список групп" +SYS_GROUPS_SORT_TIP = "Для упорядочивания полей нажмите на крестик и, удерживая его, перетащите поле" +SYS_GROUPS_GROUP_TITLE = "Наименование группы" +SYS_GROUPS_TIP = "Список групп для системных блоков" +SYS_NO_GROUPS = "В настоящий момент, нет групп для системных блоков" +SYS_GROUPS_DELETE = "Удалить группу" +SYS_GROUPS_DELETE_H = "Вы уверены, что хотите удалить группу?" +SYS_GROUPS_NEW = "Добавить новую группу" +SYSBLOCK_COPY_LOG = "создал копию системного блока" \ No newline at end of file diff --git a/admin/sysblocks.php b/admin/sysblocks.php index 6b2a3d1..23aa3a6 100644 --- a/admin/sysblocks.php +++ b/admin/sysblocks.php @@ -43,6 +43,30 @@ } break; + // Сортировка списока групп + case 'groupssort': + if (check_permission_acp('sysblocks_edit')) + { + Sysblocks::groupsSort(); + } + break; + + // Новая группа + case 'newgroup': + if (check_permission_acp('sysblocks_edit')) + { + Sysblocks::newGroup(); + } + break; + + // Удаление группы + case 'delgroup': + if (check_permission_acp('sysblocks_edit')) + { + Sysblocks::delGroup(); + } + break; + // Создать новый системный блок case 'new': if (check_permission_acp('sysblocks_edit')) diff --git a/admin/templates/sysblocks/form.tpl b/admin/templates/sysblocks/form.tpl index 29847a3..46c8d94 100644 --- a/admin/templates/sysblocks/form.tpl +++ b/admin/templates/sysblocks/form.tpl @@ -28,6 +28,30 @@ +
+ + + + + + + + + + + + + + +
+ {#SYSBLOCK_LIST_LINK#} + + {#SYSBLOCK_BUTTON_ADD#} + + {#SYS_GROUPS#} +
+
+
diff --git a/admin/templates/sysblocks/form_visual.tpl b/admin/templates/sysblocks/form_visual.tpl index 1d73a74..235adf8 100644 --- a/admin/templates/sysblocks/form_visual.tpl +++ b/admin/templates/sysblocks/form_visual.tpl @@ -28,6 +28,30 @@
+
+ + + + + + + + + + + + + + +
+ {#SYSBLOCK_LIST_LINK#} + + {#SYSBLOCK_BUTTON_ADD#} + + {#SYS_GROUPS#} +
+
+
diff --git a/admin/templates/sysblocks/multi.tpl b/admin/templates/sysblocks/multi.tpl index 1e2239c..4933b7c 100644 --- a/admin/templates/sysblocks/multi.tpl +++ b/admin/templates/sysblocks/multi.tpl @@ -18,6 +18,30 @@
+
+ + + + + + + + + + + + + + +
+ {#SYSBLOCK_LIST_LINK#} + + {#SYSBLOCK_BUTTON_ADD#} + + {#SYS_GROUPS#} +
+
+ {foreach from=$errors item=e} {assign var=message value=$e}