diff options
author | pb1dft <pb1dft@ampache> | 2007-03-07 22:22:08 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2007-03-07 22:22:08 +0000 |
commit | 6fa5b901d5ee2e37cdedecdb042f8a7861945402 (patch) | |
tree | 878824b43afd0104479c954a1f46857cdd691ad9 /templates | |
parent | 486be50eb56ade00989c31704a0f637d453a8b0c (diff) | |
download | ampache-6fa5b901d5ee2e37cdedecdb042f8a7861945402.tar.gz ampache-6fa5b901d5ee2e37cdedecdb042f8a7861945402.tar.bz2 ampache-6fa5b901d5ee2e37cdedecdb042f8a7861945402.zip |
Embedded the flash player & fix for admin>users
Diffstat (limited to 'templates')
-rw-r--r-- | templates/show_embed_xspf.inc.php | 38 | ||||
-rw-r--r-- | templates/show_index.inc.php | 8 | ||||
-rw-r--r-- | templates/show_users.inc.php | 2 |
3 files changed, 47 insertions, 1 deletions
diff --git a/templates/show_embed_xspf.inc.php b/templates/show_embed_xspf.inc.php new file mode 100644 index 00000000..2530d863 --- /dev/null +++ b/templates/show_embed_xspf.inc.php @@ -0,0 +1,38 @@ +<?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 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. + +*/ +?> +<span class="xspf_player"> +<?php +show_box_top(_('XSPF Player')); +?> +<div id="mp3player"> +<script type="text/javascript" src="<?php echo conf('web_path'); ?>/modules/flash/swfobject.js"></script> +<script type="text/javascript"> +<!-- +var flashObj = new SWFObject ("<?php echo conf('web_path'); ?>/modules/flash/XSPF_RadioV.swf?action=play&playlist=<?php echo conf('web_path'); ?>/modules/flash/xspf_player.php?tmp_id=<?php echo $play_info; ?>&folder=<?php echo conf('web_path'); ?>/modules/flash/&textcolor=033066&color=E6E6E6&loop=playlist&lma=yes&viewinfo=true&vol=30&display=1@. - @2@ - @", "FMP3", "270", "190", 7, "#FFFFFF", true); +flashObj.write ("mp3player"); +// --> +</script> +</div> +<?php +show_box_bottom(); +?> +</span>
\ No newline at end of file diff --git a/templates/show_index.inc.php b/templates/show_index.inc.php index 17021597..f9536acf 100644 --- a/templates/show_index.inc.php +++ b/templates/show_index.inc.php @@ -19,6 +19,14 @@ */ ?> +<?php +if (isset($_REQUEST['xspf']) && isset ($_REQUEST['play_info'])){ + +require_once(conf('prefix') . '/templates/show_embed_xspf.inc.php'); +} + +?> + <div id="np_data"> <?php show_now_playing(); ?> </div> <!-- Close Now Playing Div --> diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php index f0c5e2b1..3bb1abd4 100644 --- a/templates/show_users.inc.php +++ b/templates/show_users.inc.php @@ -141,7 +141,7 @@ foreach ($users as $working_user) { </td> <?php //FIXME: Fix this for the extra permission levels - if ($user->disabled == '1') { + if ($working_user->disabled == '1') { echo "<td><a href=\"".$web_path."/admin/users.php?action=enable&user_id=$working_user->id\">" . get_user_icon('enable') . "</a></td>"; } else { |