~ubuntu-branches/debian/sid/ampache/sid

« back to all changes in this revision

Viewing changes to templates/show_plugins.inc.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-08-27 13:19:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130827131948-1czew0zxn6u70dtv
Tags: 3.6-rzb2752+dfsg-1
* New upsteam snapshot.  Contains important bug fixes to the installer.
* Correct typo in ampache-common.postrm.
* Remove courtousy copy of php-getid3, during repack.  Closes: #701526
* Update package to use dh_linktree to make the needed sym links to the
  needed system libs that were removed during repack.
* Update debian/rules to reflect upstreams removing/moving of modules.
* Update debian/ampache-common.install to reflect upstreams removal of files.
* Updated to use new apache2.4 API. Closes: #669756
* Updated /debian/po/de.po thx David Prévot for the patch.  Closes:  #691963
* M3U import is now ordered, fixed upstream.  Closes: #684984
* Text input area has been resized so IPv6 addresses will now fit, fixed
  upstream.  Closes:  #716230
* Added ampache-common.preinst to make sure that the courtousy copies of code
  dirs are empty so dh_linktree can do it's magic on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
 
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
 
2
/* vim:set softtabstop=4 shiftwidth=4 expandtab: */
3
3
/**
4
 
 * Show Plugins
5
 
 *
6
4
 *
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
9
7
 *
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.
22
20
 *
23
 
 * @package     Ampache
24
 
 * @copyright   2001 - 2011 Ampache.org
25
 
 * @license     http://opensource.org/licenses/gpl-2.0 GPLv2
26
 
 * @link        http://www.ampache.org/
27
21
 */
28
22
 
29
23
$web_path = Config::get('web_path');
37
31
  <col id="col_action" />
38
32
</colgroup>
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>
45
39
</tr>
46
40
<?php
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&amp;plugin=" . scrub_out($plugin_name) . "\">" .
52
46
                        T_('Activate') . "</a>";
54
48
        else {
55
49
                $action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_uninstall_plugin&amp;plugin=" . scrub_out($plugin_name) . "\">" .
56
50
                        T_('Deactivate') . "</a>";
57
 
                if ($installed_version < $plugin->_plugin->version) {
58
 
                        $action .= '&nbsp;&nbsp;<a href="' . $web_path . 
59
 
                        '/admin/modules.php?action=upgrade_plugin&amp;plugin=' .
60
 
                        scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>';
61
 
                }
 
51
        if ($installed_version < $plugin->_plugin->version) {
 
52
            $action .= '&nbsp;&nbsp;<a href="' . $web_path . 
 
53
            '/admin/modules.php?action=upgrade_plugin&amp;plugin=' .
 
54
            scrub_out($plugin_name) . '">' . T_('Upgrade') . '</a>';
 
55
        }
62
56
        }
63
57
?>
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>
70
64
</tr>
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>
74
68
</tr>
75
69
<?php } ?>
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>
81
75
</tr>
82
76
</table>
83
77
<br />