summaryrefslogtreecommitdiffstats
path: root/templates/show_modules.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-08 05:58:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-04-08 05:58:05 +0000
commit2b55e30467f5ccdf9324b0377c419c5681f4c215 (patch)
tree16c2f63178ff762a673face6abb7fe584b680b36 /templates/show_modules.inc.php
parent941afedab85ffd77a83188ca09a888e0603fae72 (diff)
downloadampache-2b55e30467f5ccdf9324b0377c419c5681f4c215.tar.gz
ampache-2b55e30467f5ccdf9324b0377c419c5681f4c215.tar.bz2
ampache-2b55e30467f5ccdf9324b0377c419c5681f4c215.zip
This update includes a full rewrite of the Localplay code, only update
to this version if you don't care about losing a lot of functionality while I am still finishing it up. Also the only working localplay method is currently MPD. UPDATE AT YOUR OWN RISK!
Diffstat (limited to 'templates/show_modules.inc.php')
-rw-r--r--templates/show_modules.inc.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/show_modules.inc.php b/templates/show_modules.inc.php
new file mode 100644
index 00000000..23c1d593
--- /dev/null
+++ b/templates/show_modules.inc.php
@@ -0,0 +1,55 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 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
+ as published by the Free Software Foundation; either version 2
+ of the License, or (at your option) any later version.
+
+ 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.
+
+*/
+
+/**
+ * for now we only have the localplay modules so this is going to be centered on them
+ * however the idea would be as module support is added more and more are put on this
+ * same page
+ */
+
+/* Get Localplay Modules */
+$localplay_modules = get_localplay_controllers();
+$web_path = conf('web_path');
+?>
+<table class="text-box">
+<tr class="table-header">
+ <th><?php echo _('Module Name'); ?></th>
+ <th><?php echo _('Action'); ?></th>
+</tr>
+<?php
+foreach ($localplay_modules as $module) {
+ $action = _('Active');
+ if (!verify_localplay_preferences($module)) {
+ $action = "<a href=\"" . $web_path . "/admin/modules.php?action=insert_localplay_preferences&amp;type=" . $module . "\">" .
+ _('Activate') . "</a>";
+ }
+?>
+<tr>
+ <td><?php echo scrub_out($module); ?></td>
+ <td><?php echo $action; ?></td>
+</tr>
+<?php } if (!count($localplay_modules)) { ?>
+<tr>
+ <td colspan="2"><span class="error"><?php echo _('No Records Found'); ?></span></td>
+</tr>
+<?php } ?>
+</table>