<?php
/************************************************************************/
/*                                WEBSHARE                              */
/************************************************************************/
//
// Copyright (c) 2008 by Virginie Vivancos
// http://www.webshare.fr
//
// 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.
//
// =======================================================================
// Fonction : Affiche le lecteur MP3
// Nom      : mp3player.php
// Version  : 0.6.2
// Date     : 21/02/08
// =======================================================================
session_start();
$chemin=preg_replace("/(nothl=1&)/","",$_REQUEST["chemin"]);
$nom_rep = basename(dirname($_SERVER["SCRIPT_FILENAME"]));
?>
<html><head>
<script type="text/javascript">
 top.document.getElementById('playermp3').style.display="block";
 top.document.getElementById('playermp3').innerHTML=''
+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" style="width:100%;max-width:180px" height="74" id="player" align="middle">'
+'<param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'
+"plugins/<?php echo $nom_rep; ?>/player.swf?chemin=<?php echo urlencode($_SESSION["ws"]["cheminImg"])?>&morceau=<?php echo $chemin;?>"
+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="'
+"plugins/<?php echo $nom_rep; ?>/player.swf?chemin=<?php echo urlencode($_SESSION["ws"]["cheminImg"])?>&morceau=<?php echo $chemin;?>"
+'" quality="high" bgcolor="#000000" style="width:100%;max-width:180px"  height="74" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
top.document.getElementById('playermp3new').style.display="none";
top.cacher();
</script>
</head><body style="border:0;padding:0;margin:0">
</body></html>