2
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
7
* LICENSE: GNU General Public License, version 2 (GPLv2)
8
* Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
10
* This program is free software; you can redistribute it and/or
11
* modify it under the terms of the GNU General Public License v2
12
* as published by the Free Software Foundation.
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* You should have received a copy of the GNU General Public License
20
* along with this program; if not, write to the Free Software
21
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
* @copyright 2001 - 2011 Ampache.org
25
* @license http://opensource.org/licenses/gpl-2.0 GPLv2
26
* @link http://www.ampache.org/
31
<head><title>Ampache XSPF Player</title></head>
32
<body style="margin:0px; padding:0px; border:0px; background-color: #000000">
33
<script language=JavaScript>
35
//Disable right mouse click Script to hide the source url for the flash player it prevents ripping music a bit.
36
//When used together with locked songs this will help just a bit more.
37
//function clickIE4(){
38
//if (event.button==2){
43
//function clickNS4(e){
44
//if (document.layers||document.getElementById&&!document.all){
45
//if (e.which==2||e.which==3){
51
//if (document.layers){
52
//document.captureEvents(Event.MOUSEDOWN);
53
//document.onmousedown=clickNS4;
55
//else if (document.all&&!document.getElementById){
56
//document.onmousedown=clickIE4;
58
//document.oncontextmenu=new Function("return false")
64
if (file_exists(Config::get('prefix')."/modules/flash/xspf_jukebox.swf")) {
65
$player_url = sprintf("%s/modules/flash/xspf_jukebox.swf?autoplay=true&repeat_playlist=true&crossFade=false&shuffle=false&skin_url=%s/modules/flash/Original/&playlist_url=%s",Config::get('web_path'),Config::get('web_path'),$play_url);
67
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="170" id="xspf_player" align="middle">
68
<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
69
<param name="allowScriptAccess" value="sameDomain" />
70
<param name="movie" value="<?php echo $player_url; ?>" />
71
<param name="quality" value="high" />
72
<param name="bgcolor" value="#ffffff" />
73
<param name="type" value="application/x-shockwave-flash" />
74
<param name="width" value="400" />
75
<param name="height" value="170" />
76
<param name="name" value="xspf_player" />
77
<param name="align" value="middle" />
78
<embed src="<?php echo $player_url; ?>" quality="high" bgcolor="#ffffff" width="400" height="170" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
81
<p style="color:#ffffff;">Debian Policy requires the removal of the XSPF Flash Player, please see /usr/share/doc/ampache/README.Debian.gz for details and a work around.</p>