<?

if (is_file(H."files/user_files/screens/$file_id[id].png"))
{
echo "<img src='/files/user_files/screens/$file_id[id].png' alt='Скрин...' /><br />\n";
}
if (stristr($_SERVER['HTTP_USER_AGENT'],'windows') || stristr($_SERVER['HTTP_USER_AGENT'],'linux') || 
    stristr($_SERVER['HTTP_USER_AGENT'],'macintosh') || stristr($_SERVER['HTTP_USER_AGENT'],'unix') || 
    stristr($_SERVER['HTTP_USER_AGENT'],'macos') || stristr($_SERVER['HTTP_USER_AGENT'],'bsd')){
$pred_file=H.'files/user_files/'.$file_id['id'].'.dat';
if (is_file(H."files/prev/audio/$file_id[id].mp3")){
echo'<script type="text/javascript" src="/sys/audio-player.js"></script> 
<script type="text/javascript">
 AudioPlayer.setup ( "http://vdrugbe.ru/sys/player.swf", { width:"320", animation:"yes", encode:"no", initialvolume:"70", remaining:"yes", noinfo:"no", buffer:"5", checkpolicy:"no", rtl:"no", bg:"064a91", text:"000000", leftbg:"064a91", lefticon:"fee300", volslider:"fee300", voltrack:"ffffff", rightbg:"064a91", rightbghover:"064a91", righticon:"fee300", righticonhover:"fee300", track:"FFFFFF", loader:"fee300", border:"D2F0FF", tracker:"fee300", skip:"ff284b", pagebg:"064a91", transparentpagebg:"yes" } );  
 </script>
 <p id="audioplayer_1">Alternative content</p>  
 <script type="text/javascript"> 
 AudioPlayer.embed ( "audioplayer_1", {  soundFile: "http://vdrugbe.ru/files/prev/audio/'.$file_id['id'].'.mp3",  titles: "",  artists: "'.$file_id['name'].'",  autostart: "no" } ); 
</script><br/>';
}elseif (!@copy($pred_file, H."files/prev/audio/$file_id[id].mp3"))
{}else{
echo'<script type="text/javascript" src="/sys/audio-player.js"></script> 
<script type="text/javascript">
 AudioPlayer.setup ( "http://vdrugbe.ru/sys/player.swf", { width:"320", animation:"yes", encode:"no", initialvolume:"70", remaining:"yes", noinfo:"no", buffer:"5", checkpolicy:"no", rtl:"no", bg:"064a91", text:"000000", leftbg:"064a91", lefticon:"fee300", volslider:"fee300", voltrack:"ffffff", rightbg:"064a91", rightbghover:"064a91", righticon:"fee300", righticonhover:"fee300", track:"FFFFFF", loader:"fee300", border:"D2F0FF", tracker:"fee300", skip:"ff284b", pagebg:"064a91", transparentpagebg:"yes" } );  
 </script>
 <p id="audioplayer_1">Alternative content</p>  
 <script type="text/javascript"> 
 AudioPlayer.embed ( "audioplayer_1", {  soundFile: "http://vdrugbe.ru/files/prev/audio/'.$file_id['id'].'.mp3",  titles: "",  artists: "'.$file_id['name'].'",  autostart: "no" } ); 
</script><br/>';
}}

?>