Init Repo
This commit is contained in:
31
resources/content/discover_plugins_info.php
Normal file
31
resources/content/discover_plugins_info.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!defined('PICONTROL')) exit();
|
||||
|
||||
$pluginId = $_GET['id'];
|
||||
|
||||
$tpl->setHeaderTitle($onlinePlugins[$pluginId]['name'].' - '._t('Plugins entdecken'));
|
||||
|
||||
if (isset($_GET['status']) && $_GET['status'] == '')
|
||||
{
|
||||
$gPlugin = $plugins[$pluginId];
|
||||
include_once 'settings/plugins_status.php';
|
||||
$plugins = pluginList();
|
||||
}
|
||||
|
||||
if (isset($_GET['install']) && $_GET['install'] == '')
|
||||
$tpl->redirect('?i=download_plugin&id='.$pluginId);
|
||||
|
||||
if (isset($_GET['installed']) && $_GET['installed'] == '')
|
||||
$tpl->msg('success', _t('Plugin installiert'), _t('Das Plugin wurde erfolgreich installiert.'));
|
||||
|
||||
if (isset($_GET['update']) && $_GET['update'] == '')
|
||||
$tpl->redirect('?i=update_plugin&id='.$pluginId);
|
||||
|
||||
if (isset($_GET['updated']) && $_GET['updated'] == '')
|
||||
$tpl->msg('success', _t('Plugin aktualisiert'), _t('Das Plugin wurde erfolgreich aktualisiert.'));
|
||||
|
||||
$tpl->assign('plugin', isset($plugins[$pluginId]) ? $plugins[$pluginId] : array());
|
||||
$tpl->assign('onlinePlugin', $onlinePlugins[$pluginId]);
|
||||
|
||||
$tpl->draw('discover_plugins_info');
|
||||
?>
|
||||
Reference in New Issue
Block a user