summaryrefslogtreecommitdiffstats
path: root/templates/show_localplay_controllers.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 22:17:13 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-09 22:17:13 +0000
commitf89098d3ac6ea2045f34c586d1433ca40e6df9c7 (patch)
treef382e112dae91b392a38671f81c9a798766f1505 /templates/show_localplay_controllers.inc.php
parentb1b7998a0f9a6438725fb574e63e27859a6bd2e6 (diff)
downloadampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.tar.gz
ampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.tar.bz2
ampache-f89098d3ac6ea2045f34c586d1433ca40e6df9c7.zip
few more tweaks to localplay, added in the mpd table creation mojo, just need to finish install and then build the interface
Diffstat (limited to 'templates/show_localplay_controllers.inc.php')
-rw-r--r--templates/show_localplay_controllers.inc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/templates/show_localplay_controllers.inc.php b/templates/show_localplay_controllers.inc.php
index 3a45b481..cfbe7e30 100644
--- a/templates/show_localplay_controllers.inc.php
+++ b/templates/show_localplay_controllers.inc.php
@@ -31,13 +31,22 @@ $web_path = Config::get('web_path');
<?php
foreach ($controllers as $controller) {
$localplay = new Localplay($controller);
+ if (!$localplay->player_loaded()) { continue; }
$localplay->format();
+ if ($localplay->is_enabled()) {
+ $action = 'confirm_uninstall_localplay';
+ $action_txt = _('Disable');
+ }
+ else {
+ $action = 'install_localplay';
+ $action_txt = _('Activate');
+ }
?>
<tr class="<?php echo flip_class(); ?>">
<td><?php echo scrub_out($localplay->f_name); ?></td>
<td><?php echo scrub_out($localplay->f_description); ?></td>
<td><?php echo scrub_out($localplay->f_version); ?></td>
- <td><?php echo $action; ?></td>
+ <td><a href="<?php echo $web_path; ?>/admin/modules.php?action=<?php echo $action; ?>&amp;type="<?php urlencode($localplay->type); ?>"><?php echo $action_txt; ?></a></td>
</tr>
<?php } if (!count($controllers)) { ?>
<tr class="<?php echo flip_class(); ?>">