diff --git a/plugins/box/plugins/languages/en.lang.php b/plugins/box/plugins/languages/en.lang.php
index 6cbe7958..fa9e28d6 100644
--- a/plugins/box/plugins/languages/en.lang.php
+++ b/plugins/box/plugins/languages/en.lang.php
@@ -3,11 +3,12 @@
return array(
'plugins' => array(
'Plugins' => 'Plugins',
- 'Name' => 'Name',
- 'Actions' => 'Actions',
- 'Description' => 'Description',
+ 'Plugins manager plugin' => 'Plugins manager plugin',
'Installed' => 'Installed',
'Install New' => 'Install New',
+ 'Actions' => 'Actions',
+ 'Name' => 'Name',
+ 'Description' => 'Description',
'Delete' => 'Delete',
'Delete plugin :plugin' => 'Delete plugin :plugin',
'This plugin does not exist' => 'This plugin does not exist',
@@ -17,5 +18,12 @@
'Install' => 'Install',
'Uninstall' => 'Uninstall',
'README.md not found' => 'README.md not found',
+ 'Info' => 'Info',
+ 'Upload' => 'Upload',
+ 'Drop File Here' => 'Drop File Here',
+ 'Uninstall plugin :plugin' => 'Uninstall plugin :plugin',
+ 'Plugin was deleted' => 'Plugin was deleted',
+ 'Plugin was uninstalled' => 'Plugin was uninstalled',
+ 'Plugin was installed' => 'Plugin was installed',
)
);
diff --git a/plugins/box/plugins/languages/ru.lang.php b/plugins/box/plugins/languages/ru.lang.php
index af5bec82..c0e61cae 100644
--- a/plugins/box/plugins/languages/ru.lang.php
+++ b/plugins/box/plugins/languages/ru.lang.php
@@ -3,6 +3,7 @@
return array(
'plugins' => array(
'Plugins' => 'Плагины',
+ 'Plugins manager plugin' => 'Плагин Менеджер Плагинов',
'Installed' => 'Установленные',
'Install New' => 'Установить новые',
'Actions' => 'Действия',
@@ -20,5 +21,9 @@
'Info' => 'Инфо',
'Upload' => 'Загрузить',
'Drop File Here' => 'Перетащите файл сюда',
+ 'Uninstall plugin :plugin' => 'Удалить плагин :plugin',
+ 'Plugin was deleted' => 'Плагин удален',
+ 'Plugin was uninstalled' => 'Плагин удален',
+ 'Plugin was installed' => 'Плагин установлен',
)
);
diff --git a/plugins/box/plugins/languages/uk.lang.php b/plugins/box/plugins/languages/uk.lang.php
index 3f75ad04..45ded868 100644
--- a/plugins/box/plugins/languages/uk.lang.php
+++ b/plugins/box/plugins/languages/uk.lang.php
@@ -3,6 +3,7 @@
return array(
'plugins' => array(
'Plugins' => 'Плагіни',
+ 'Plugins manager plugin' => 'Плагін Менеджер плагінів',
'Installed' => 'Встановлені',
'Install New' => 'Встановити нові',
'Actions' => 'Дії',
@@ -15,10 +16,14 @@
'Author' => 'Автор',
'Get More Plugins' => 'Завантажити інші плагіни',
'Install' => 'Встановити',
- 'Uninstall' => 'Видалити',
+ 'Uninstall' => 'Вилучити',
'README.md not found' => 'README.md не знайдено',
'Info' => 'Інфо',
'Upload' => 'Завантажити',
'Drop File Here' => 'Перенесіть файл сюди',
+ 'Uninstall plugin :plugin' => 'Вилучити плагін :plugin',
+ 'Plugin was deleted' => 'Плагін видалено',
+ 'Plugin was uninstalled' => 'Плагін вилучено',
+ 'Plugin was installed' => 'Плагін встановлено',
)
);
diff --git a/plugins/box/plugins/plugins.admin.php b/plugins/box/plugins/plugins.admin.php
index 74164669..9bda94fc 100755
--- a/plugins/box/plugins/plugins.admin.php
+++ b/plugins/box/plugins/plugins.admin.php
@@ -61,6 +61,9 @@ public static function main()
// Delete plugin form plugins table
$plugins->deleteWhere('[name="'.Request::get('delete_plugin').'"]');
+ // Notification
+ Notification::set('success', __('Plugin was uninstalled', 'plugins'));
+
// Redirect
Request::redirect('index.php?id=plugins');
}
@@ -95,6 +98,9 @@ public static function main()
include PLUGINS . DS . basename(Text::lowercase(Request::get('install')), '.manifest.xml') . DS . 'install' . DS . $plugin_name . '.install.php';
}
+ // Notification
+ Notification::set('success', __('Plugin was installed', 'plugins'));
+
Request::redirect('index.php?id=plugins');
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
@@ -113,6 +119,7 @@ public static function main()
Javascript::javascriptVersionIncrement();
Dir::delete(PLUGINS . DS . basename(Request::get('delete_plugin_from_server'), '.manifest.xml'));
+ Notification::set('success', __('Plugin was deleted', 'plugins'));
Request::redirect('index.php?id=plugins');
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
diff --git a/plugins/box/plugins/views/backend/index.view.php b/plugins/box/plugins/views/backend/index.view.php
index 2c7bddc3..bda8511b 100755
--- a/plugins/box/plugins/views/backend/index.view.php
+++ b/plugins/box/plugins/views/backend/index.view.php
@@ -49,7 +49,7 @@
'btn btn-danger', 'onclick' => "return confirmDelete('".__('Delete plugin :plugin', 'plugins', array(':plugin' => $plugin['title']))."')"));
+ array('class' => 'btn btn-danger', 'onclick' => "return confirmDelete('".__('Uninstall plugin :plugin', 'plugins', array(':plugin' => $plugin['title']))."')"));
?>
diff --git a/plugins/box/system/languages/en.lang.php b/plugins/box/system/languages/en.lang.php
index 04d1e8bc..1beaaad0 100644
--- a/plugins/box/system/languages/en.lang.php
+++ b/plugins/box/system/languages/en.lang.php
@@ -79,5 +79,7 @@
'Official Support Forum' => 'Official Support Forum',
'Documentation' => 'Documentation',
'Your changes have been saved.' => 'Your changes have been saved.',
+ 'Monstra proceeds to the maintenance mode.' => 'Monstra proceeds to the maintenance mode.',
+ 'Monstra out of maintenance mode.' => 'Monstra out of maintenance mode.',
)
);
diff --git a/plugins/box/system/languages/ru.lang.php b/plugins/box/system/languages/ru.lang.php
index a936b9a5..c83917da 100644
--- a/plugins/box/system/languages/ru.lang.php
+++ b/plugins/box/system/languages/ru.lang.php
@@ -78,5 +78,7 @@
'Official Support Forum' => 'Официальный Форум Поддержки',
'Documentation' => 'Документация',
'Your changes have been saved.' => 'Ваши изменения сохранены.',
+ 'Monstra proceeds to the maintenance mode.' => 'Monstra переходит в режим технического обслуживания.',
+ 'Monstra out of maintenance mode.' => 'Monstra выходит из режима технического обслуживания.',
)
);
diff --git a/plugins/box/system/languages/uk.lang.php b/plugins/box/system/languages/uk.lang.php
index 022c2363..948204e7 100644
--- a/plugins/box/system/languages/uk.lang.php
+++ b/plugins/box/system/languages/uk.lang.php
@@ -79,5 +79,7 @@
'Official Support Forum' => 'Офіційний Форум Підтримки',
'Documentation' => 'Документація',
'Your changes have been saved.' => 'Ваші зміни були збережені.',
+ 'Monstra proceeds to the maintenance mode.' => 'Monstra переходить в режим технічного обслуговування.',
+ 'Monstra out of maintenance mode.' => 'Monstra виходить з режиму технічного обслуговування.',
)
);
diff --git a/plugins/box/system/system.admin.php b/plugins/box/system/system.admin.php
index b1372aa9..281dbf1a 100755
--- a/plugins/box/system/system.admin.php
+++ b/plugins/box/system/system.admin.php
@@ -101,13 +101,23 @@ public static function main()
if (Security::check(Request::get('token'))) {
if ('on' == Request::get('maintenance')) {
+
Option::update('maintenance_status', 'on');
- Request::redirect('index.php?id=system');
+
+ Notification::set('success', __('Monstra proceeds to the maintenance mode.', 'system'));
+
+ Request::redirect('index.php?id=system');
+
}
if ('off' == Request::get('maintenance')) {
+
Option::update('maintenance_status', 'off');
- Request::redirect('index.php?id=system');
+
+ Notification::set('success', __('Monstra out of maintenance mode.', 'system'));
+
+ Request::redirect('index.php?id=system');
+
}
} else { die('Request was denied because it contained an invalid security token. Please refresh the page and try again.'); }
diff --git a/storage/database/options.table.xml b/storage/database/options.table.xml
index 67b37a88..0aeae9ad 100644
--- a/storage/database/options.table.xml
+++ b/storage/database/options.table.xml
@@ -1,2 +1,2 @@
-211527510b419sitenameSitename25fe7b20ebbkeywordsSite keywords32996da0de2descriptionSite description44056d724b8sloganSite slogan5620d3e963edefaultpagehome66c9cd389f6siteurlhttp://example.org/72db8769b1etimezoneKwajalein8a0b440adcelanguageen9d7bd60ad05maintenance_statusoff10c415980d92maintenance_message<h1>Monstra :: Maintenance mode</h1>114c4e8f0aa8theme_site_namedefault124c4e8f0aa8theme_admin_namedefault124c4e8f0aa8users_frontend_registrationtrue18f469fc791ccaptcha_installedtrue19f119fc791csystem_emailadmin@admin.com20f119fc121cstyles_version121f119fc133cjavascript_version1
\ No newline at end of file
+211527510b419sitenameSitename25fe7b20ebbkeywordsSite keywords32996da0de2descriptionSite description44056d724b8sloganSite slogan5620d3e963edefaultpagehome66c9cd389f6siteurlhttp://example.org/72db8769b1etimezoneKwajalein8a0b440adcelanguageen9d7bd60ad05maintenance_statusoff10c415980d92maintenance_message<h1>Monstra :: Maintenance mode</h1><br/><h3>Briefly unavailable for scheduled maintenance. Check back in a minute.</h3>114c4e8f0aa8theme_site_namedefault124c4e8f0aa8theme_admin_namedefault124c4e8f0aa8users_frontend_registrationtrue18f469fc791ccaptcha_installedtrue19f119fc791csystem_emailadmin@admin.com20f119fc121cstyles_version121f119fc133cjavascript_version1
\ No newline at end of file