Init Repo
This commit is contained in:
23
resources/content/settings/plugins_delete.php
Normal file
23
resources/content/settings/plugins_delete.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if (!defined('PICONTROL')) exit();
|
||||
|
||||
$plugin = $gPlugin;
|
||||
|
||||
if (isset($_POST['submit']) && $_POST['submit'] != '')
|
||||
{
|
||||
if (deletePlugin($plugin['id']) == true)
|
||||
{
|
||||
$tpl->msg('success', _t('Plugin gelöscht'), _t('Das Plugin "%s" wurde erfolgreich gelöscht.', _t($plugin['name'])));
|
||||
$showList = true;
|
||||
}
|
||||
else
|
||||
$tpl->msg('error', _t('Fehler'), _t('Das Plugin "%s" konnte nicht gelöscht werden.', _t($plugin['name'])));
|
||||
}
|
||||
|
||||
if ($showList == false)
|
||||
{
|
||||
$tpl->assign('plugin', $plugin);
|
||||
|
||||
$tpl->draw('settings/plugin_delete');
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user