1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-02 11:20:52 +02:00

Update plugins/box/plugins/plugins.admin.php

This commit is contained in:
Sergey Romaneko
2012-09-27 10:05:16 +03:00
parent 1355715b0b
commit 16f00bb140

View File

@@ -1,4 +1,4 @@
<?php if ( ! defined('MONSTRA_ACCESS')) exit('No direct script access allowed');
<?php
// Add plugin navigation link
Navigation::add(__('Plugins', 'plugins'), 'extends', 'plugins', 1);
@@ -44,6 +44,7 @@
// Delete plugin form plugins table
$plugins->deleteWhere('[name="'.Request::get('delete_plugin').'"]');
// Redirect
Request::redirect('index.php?id=plugins');
}
}
@@ -67,7 +68,7 @@
// Run plugin installer file
$plugin_name = str_replace(array("Plugin", ".manifest.xml"), "", Request::get('install'));
if (File::exists(PLUGINS . DS .basename(Text::lowercase(Request::get('install')), '.manifest.xml') . DS . 'install' . DS .$plugin_name . '.install.php')) {
if (File::exists(PLUGINS . DS .basename(Text::lowercase(Request::get('install')), '.manifest.xml') . DS . 'install' . DS . $plugin_name . '.install.php')) {
include PLUGINS . DS . basename(Text::lowercase(Request::get('install')), '.manifest.xml') . DS . 'install' . DS . $plugin_name . '.install.php';
}