diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-06 00:39:54 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-06 00:39:54 +0000 |
commit | bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd (patch) | |
tree | 29618126b20adc850be5f94d3014d9be78bb7f37 /templates/show_plugins.inc.php | |
parent | 00bcfdca5f523093770321c22f8c429f3d318af8 (diff) | |
download | ampache-bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd.tar.gz ampache-bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd.tar.bz2 ampache-bf6e9f88d8fbd520cf7373fa58ad3c45c76904dd.zip |
- Added modules section to sidebar, conforming to new layout from r1127
- Re-enabled plugins, added openstrands plugin
Diffstat (limited to 'templates/show_plugins.inc.php')
-rw-r--r-- | templates/show_plugins.inc.php | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/templates/show_plugins.inc.php b/templates/show_plugins.inc.php new file mode 100644 index 00000000..91428813 --- /dev/null +++ b/templates/show_plugins.inc.php @@ -0,0 +1,56 @@ +<?php +/* + + Copyright (c) 2001 - 2007 Ampache.org + All rights reserved. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License v2 + as published by the Free Software Foundation. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +?> +<!-- Plugin we've found --> +<table class="tabledata" border="0" cellspacing="0"> +<tr class="table-header"> + <th><?php echo _('Name'); ?></th> + <th><?php echo _('Description'); ?></th> + <th><?php echo _('Version'); ?></th> + <th><?php echo _('Action'); ?></th> +</tr> +<?php +foreach ($plugins as $plugin_name) { + $plugin = new Plugin($plugin_name); + if (!$plugin->is_installed()) { + $action = "<a href=\"" . $web_path . "/admin/modules.php?action=install_plugin&plugin=" . scrub_out($plugin_name) . "\">" . + _('Activate') . "</a>"; + } + else { + $action = "<a href=\"" . $web_path . "/admin/modules.php?action=confirm_uninstall_plugin&plugin=" . scrub_out($plugin_name) . "\">" . + _('Deactivate') . "</a>"; + } +?> +<tr class="<?php echo flip_class(); ?>"> + <td><?php echo scrub_out($plugin->_plugin->name); ?></td> + <td><?php echo scrub_out($plugin->_plugin->description); ?></td> + <td><?php echo scrub_out($plugin->_plugin->version); ?></td> + <td><?php echo $action; ?></td> +</tr> +<?php } if (!count($plugins)) { ?> +<tr class="<?php echo flip_class(); ?>"> + <td colspan="4"><span class="error"><?php echo _('No Records Found'); ?></span></td> +</tr> +<?php } ?> +</table> +<br /> + |