ampache-dev | 2 Nov 22:40 2010
Picon

Ampache SVN - r2467 - trunk/templates

Author: cslamar
Date: 2010-11-02 14:40:59 -0700 (Tue, 02 Nov 2010)
New Revision: 2467

Modified:
   trunk/templates/show_xspf_player.inc.php
Log:
Debian Policy Alert

Modified: trunk/templates/show_xspf_player.inc.php
===================================================================
--- trunk/templates/show_xspf_player.inc.php	2010-11-02 21:17:59 UTC (rev 2466)
+++ trunk/templates/show_xspf_player.inc.php	2010-11-02 21:40:59 UTC (rev 2467)
 <at>  <at>  -54,7 +54,8  <at>  <at> 
 </script>
 <div id="mp3player">
 <?php
-$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);
+if (file_exists(Config::get('prefix')."/modules/flash/xspf_jukebox.swf")) {
+    $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);
 ?>
 <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">
 	<param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />
 <at>  <at>  -69,6 +70,9  <at>  <at> 
 	<param name="align"   value="middle" />
 	<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" />
 </object>
+<?php } else { ?>
+<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>
+<?php } ?>
 </div>

 </body>


Gmane