Helpdesk da PluGzOne, baseado no osTicket
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.2 KiB

<h2><?php echo __('Install a new plugin'); ?></h2>
<p><?php echo __(
'To add a plugin into the system, download and place the plugin into the <code>include/plugins</code> folder. Once in the plugin is in the <code>plugins/</code> folder, it will be shown in the list below.'
); ?>
</p>
<form method="post" action="?">
<?php echo csrf_token(); ?>
<input type="hidden" name="do" value="install"/>
<table class="list" width="100%"><tbody>
<?php
$installed = $ost->plugins->allInstalled();
foreach ($ost->plugins->allInfos() as $info) {
// Ignore installed plugins
if (isset($installed[$info['install_path']]))
continue;
?>
<tr><td><button class="button action-button" type="submit" name="install_path"
value="<?php echo $info['install_path'];
?>"><?php echo __('Install'); ?></button></td>
<td>
<div><strong><?php echo $info['name']; ?></strong><br/>
<div><?php echo $info['description']; ?></div>
<div class="faded"><em><?php echo __('Version'); ?>: <?php echo $info['version']; ?></em></div>
<div class="faded"><em><?php echo __('Author'); ?>: <?php echo $info['author']; ?></em></div>
</div>
</td></tr>
<?php
}
?>
</tbody></table>
</form>