~ubuntu-branches/debian/sid/ampache/sid

« back to all changes in this revision

Viewing changes to templates/show_xspf_player.inc.php

  • Committer: Package Import Robot
  • Author(s): Charlie Smotherman
  • Date: 2013-08-27 13:19:48 UTC
  • mfrom: (1.2.9)
  • Revision ID: package-import@ubuntu.com-20130827131948-1czew0zxn6u70dtv
Tags: 3.6-rzb2752+dfsg-1
* New upsteam snapshot.  Contains important bug fixes to the installer.
* Correct typo in ampache-common.postrm.
* Remove courtousy copy of php-getid3, during repack.  Closes: #701526
* Update package to use dh_linktree to make the needed sym links to the
  needed system libs that were removed during repack.
* Update debian/rules to reflect upstreams removing/moving of modules.
* Update debian/ampache-common.install to reflect upstreams removal of files.
* Updated to use new apache2.4 API. Closes: #669756
* Updated /debian/po/de.po thx David Prévot for the patch.  Closes:  #691963
* M3U import is now ordered, fixed upstream.  Closes: #684984
* Text input area has been resized so IPv6 addresses will now fit, fixed
  upstream.  Closes:  #716230
* Added ampache-common.preinst to make sure that the courtousy copies of code
  dirs are empty so dh_linktree can do it's magic on upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/* vim:set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab: */
3
 
/**
4
 
 * Show XSPF Player
5
 
 *
6
 
 *
7
 
 * LICENSE: GNU General Public License, version 2 (GPLv2)
8
 
 * Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
9
 
 *
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.
13
 
 *
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.
18
 
 *
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.
22
 
 *
23
 
 * @package     Ampache
24
 
 * @copyright   2001 - 2011 Ampache.org
25
 
 * @license     http://opensource.org/licenses/gpl-2.0 GPLv2
26
 
 * @link        http://www.ampache.org/
27
 
 */
28
 
 
29
 
?>
30
 
<html>
31
 
<head><title>Ampache XSPF Player</title></head>
32
 
<body style="margin:0px; padding:0px; border:0px; background-color: #000000">
33
 
<script language=JavaScript>
34
 
<!--
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){
39
 
//return false;
40
 
//}
41
 
//}
42
 
 
43
 
//function clickNS4(e){
44
 
//if (document.layers||document.getElementById&&!document.all){
45
 
//if (e.which==2||e.which==3){
46
 
//return false;
47
 
//}
48
 
//}
49
 
//}
50
 
 
51
 
//if (document.layers){
52
 
//document.captureEvents(Event.MOUSEDOWN);
53
 
//document.onmousedown=clickNS4;
54
 
//}
55
 
//else if (document.all&&!document.getElementById){
56
 
//document.onmousedown=clickIE4;
57
 
//}
58
 
//document.oncontextmenu=new Function("return false")
59
 
 
60
 
// -->
61
 
</script>
62
 
<div id="mp3player">
63
 
<?php
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);
66
 
?>
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" />
79
 
</object>
80
 
<?php } else { ?>
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>
82
 
<?php } ?>
83
 
</div>
84
 
 
85
 
</body>
86
 
</html>