2
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
7
5
* LICENSE: GNU General Public License, version 2 (GPLv2)
8
* Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
6
* Copyright 2001 - 2013 Ampache.org
10
8
* This program is free software; you can redistribute it and/or
11
9
* modify it under the terms of the GNU General Public License v2
20
18
* along with this program; if not, write to the Free Software
21
19
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
* @copyright 2001 - 2011 Ampache.org
25
* @license http://opensource.org/licenses/gpl-2.0 GPLv2
26
* @link http://www.ampache.org/
29
23
$web_path = Config::get('web_path');
37
31
<col id="col_action" />
39
33
<tr class="th-top">
40
<th class="cel_name"><?php echo T_('Name'); ?></th>
41
<th class="cel_description"><?php echo T_('Description'); ?></th>
42
<th class="cel_version"><?php echo T_('Version'); ?></th>
43
<th class="cel_iversion"><?php echo T_('Installed Version'); ?></th>
44
<th class="cel_action"><?php echo T_('Action'); ?></th>
34
<th class="cel_name"><?php echo T_('Name'); ?></th>
35
<th class="cel_description"><?php echo T_('Description'); ?></th>
36
<th class="cel_version"><?php echo T_('Version'); ?></th>
37
<th class="cel_iversion"><?php echo T_('Installed Version'); ?></th>
38
<th class="cel_action"><?php echo T_('Action'); ?></th>
47
41
foreach ($plugins as $plugin_name) {
48
$plugin = new Plugin($plugin_name);
49
$installed_version = Plugin::get_plugin_version($plugin->_plugin->name);
42
$plugin = new Plugin($plugin_name);
43
$installed_version = Plugin::get_plugin_version($plugin->_plugin->name);
50
44
if (! $installed_version) {
51
45
$action = "<a href=\"" . $web_path . "/admin/modules.php?action=install_plugin&plugin=" . scrub_out($plugin_name) . "\">" .
52
46
T_('Activate') . "</a>";
55
49
$action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_uninstall_plugin&plugin=" . scrub_out($plugin_name) . "\">" .
56
50
T_('Deactivate') . "</a>";
57
if ($installed_version < $plugin->_plugin->version) {
58
$action .= ' <a href="' . $web_path .
59
'/admin/modules.php?action=upgrade_plugin&plugin=' .
60
scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>';
51
if ($installed_version < $plugin->_plugin->version) {
52
$action .= ' <a href="' . $web_path .
53
'/admin/modules.php?action=upgrade_plugin&plugin=' .
54
scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>';
64
<tr class="<?php echo flip_class(); ?>">
65
<td class="cel_name"><?php echo scrub_out($plugin->_plugin->name); ?></td>
66
<td class="cel_description"><?php echo scrub_out($plugin->_plugin->description); ?></td>
67
<td class="cel_version"><?php echo scrub_out($plugin->_plugin->version); ?></td>
68
<td class="cel_iversion"><?php echo scrub_out($installed_version); ?></td>
69
<td class="cel_action"><?php echo $action; ?></td>
58
<tr class="<?php echo UI::flip_class(); ?>">
59
<td class="cel_name"><?php echo scrub_out($plugin->_plugin->name); ?></td>
60
<td class="cel_description"><?php echo scrub_out($plugin->_plugin->description); ?></td>
61
<td class="cel_version"><?php echo scrub_out($plugin->_plugin->version); ?></td>
62
<td class="cel_iversion"><?php echo scrub_out($installed_version); ?></td>
63
<td class="cel_action"><?php echo $action; ?></td>
71
65
<?php } if (!count($plugins)) { ?>
72
<tr class="<?php echo flip_class(); ?>">
73
<td colspan="4"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
66
<tr class="<?php echo UI::flip_class(); ?>">
67
<td colspan="4"><span class="error"><?php echo T_('No Records Found'); ?></span></td>
76
70
<tr class="th-bottom">
77
<th class="cel_name"><?php echo T_('Name'); ?></th>
78
<th class="cel_description"><?php echo T_('Description'); ?></th>
79
<th class="cel_version"><?php echo T_('Version'); ?></th>
80
<th class="cel_action"><?php echo T_('Action'); ?></th>
71
<th class="cel_name"><?php echo T_('Name'); ?></th>
72
<th class="cel_description"><?php echo T_('Description'); ?></th>
73
<th class="cel_version"><?php echo T_('Version'); ?></th>
74
<th class="cel_action"><?php echo T_('Action'); ?></th>