Вход Регистрация
Файл: inc/like.php
Строк: 116
<?php
if(!isset($ip) or empty($ip)){
if(isset(
$_SERVER['HTTP_X_REAL_IP'])){
$ip=$_SERVER['HTTP_X_REAL_IP'];
}elseif(
$_SERVER['SERVER_ADDR']==$_SERVER['REMOTE_ADDR']){
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
}else{
$ip=$_SERVER['REMOTE_ADDR'];
}
}
$col3 count($p['response'][1]['items']);
if(
$col3==0){
if(isset(
$p['response'][4]['items'])){
$col2 count($p['response'][4]['items']);
}else{
$col2=0;
}

if(
$col2==0){

}else{
?>
<div class="xblock"><h2 class="title"><span class="prefix">Другие песни:</span> <?php echo $artist;?> </h2>
        <ul class="playlist" id="playlist">
                
<?php
$count
=0;
for (
$i=0;$i<$col2;$i++){


    
$title $p['response'][4]['items'][$i]['title'];
    
$artist $p['response'][4]['items'][$i]['artist'];
    
$dur $p['response'][4]['items'][$i]['duration'];
    
$url22 $p['response'][4]['items'][$i]['url'];
        
$aid $p['response'][4]['items'][$i]['id'];
    
$oid $p['response'][4]['items'][$i]['owner_id'];
        
$play2 $p['response'][4]['items'][$i]['play'];
    
$dw2$p['response'][4]['items'][$i]['download'];

if(isset(
$p['response'][4]['items'][$i]['lyrics_id'])){
    
$lyrics_id2=$p['response'][4]['items'][$i]['lyrics_id'];
}else{
$lyrics_id2='';
}
if(isset(
$p['response'][4]['items'][$i]['lyrics_id'])){
    
$genre =$p['response'][4]['items'][$i]['lyrics_id'];
    }

$dur1=$dur*1000;
$min=floor($dur/60);
$sec=$dur-($min*60);
if(
$sec<10){$sec='0'.$sec;}
if(
$min<10){$min='0'.$min;}
$duration=$min.':'.$sec;


$mp3 str_replace(' ','_',filtr($title)." - ".filtr($artist));
$mp3=filtr($mp3);
$url24='http://data2.api.xn--41a.ws/files2/'.str_replace('0','-',base64_encode(base64_encode($url22))).'/'.base64_encode(base64_encode($_SERVER["REMOTE_ADDR"])).'/'.$mp3.'_(mp3.vc).mp3';

if(isset(
$lyrics_id2) && !empty($lyrics_id2)){ 
$text='<a href="javascript:void(0);" class="z-icon-mp3text no-ajaxy player-text" title="текст песни">(текст песни)</a>'
}else{
$lyrics_id2='false';
$text="";
}


$fartist=filtr2(filtr($artist));
$ftitle=filtr2(filtr($title));

if(!empty(
$ftitle) && !empty($fartist)){
$echo2='<a href="/скачать-мп3/'.$oid.'-'.low_filtr($fartist).'/'.$aid.'-'.low_filtr_song($ftitle).'/"><span>'.str_replace('"','',$title).'</span></a>';
$href_dw='/скачать-мп3/'.$oid.'-'.low_filtr($fartist).'/'.$aid.'-'.low_filtr_song($ftitle).'/';
}else{
$href_dw=$dw2.'?i='.base64_encode(base64_encode($ip));
$echo2=str_replace('"','',$title);
}
$echo=str_replace('"','',$artist);

?>






<li class="track" data-index="<?php echo $i;?>" data-id="<?php echo $aid;?>" data-mp3="<?php echo $play2;?>?i=<?php echo base64_encode(base64_encode($ip));?>" data-duration="<?php echo $dur*1000;?>" data-lyrics-id="<?php echo $lyrics_id2;?>"><ul class="playlist-btns"><li>
<a href="javascript:void(0);" class="no-ajaxy player-playback playlist-play" title="воспроизвести">(воспроизвести)</a></li><li>

<a href="<?php echo $href_dw;?>" class="playlist-down" title="скачать">(скачать)</a>

</li></ul>
<div class="playlist-title">
<b><span><?php echo $echo;?></b></span> - 
<?php echo $echo2;?>

</div><em><a href="javascript:void(0);" class="z-icon-fav_false no-ajaxy" title="добавить в избранное">(добавить в избранное)</a>
<?php echo $text;?>
 <?php echo $duration?></em><span class="playlist-move"></span></li>






    <?php
$count
=$count+1;
}

}

}else{
?>
<div class="xblock"><h2 class="title"><span class="prefix">Рекомендации:</span> </h2>
        <ul class="playlist" id="playlist">

<?php
$count
=0;
for (
$i=0;$i<$col3;$i++){


    
$title $p['response'][1]['items'][$i]['title'];
    
$artist $p['response'][1]['items'][$i]['artist'];
    
$dur $p['response'][1]['items'][$i]['duration'];
    
$url22 $p['response'][1]['items'][$i]['url'];
        
$aid $p['response'][1]['items'][$i]['id'];
    
$oid $p['response'][1]['items'][$i]['owner_id'];
        
$play2 $p['response'][1]['items'][$i]['play'];
    
$dw2$p['response'][1]['items'][$i]['download'];

if(isset(
$p['response'][1]['items'][$i]['lyrics_id'])){
    
$lyrics_id2=$p['response'][1]['items'][$i]['lyrics_id'];
}else{
$lyrics_id2='';
}
if(isset(
$p['response'][1]['items'][$i]['lyrics_id'])){
    
$genre =$p['response'][1]['items'][$i]['lyrics_id'];
    }

$dur1=$dur*1000;
$min=floor($dur/60);
$sec=$dur-($min*60);
if(
$sec<10){$sec='0'.$sec;}
if(
$min<10){$min='0'.$min;}
$duration=$min.':'.$sec;


$mp3 str_replace(' ','_',filtr($title)." - ".filtr($artist));
$mp3=filtr($mp3);
$url24='http://data2.api.xn--41a.ws/files2/'.str_replace('0','-',base64_encode(base64_encode($url22))).'/'.base64_encode(base64_encode($_SERVER["REMOTE_ADDR"])).'/'.$mp3.'_(mp3.vc).mp3';


if(isset(
$lyrics_id2) && !empty($lyrics_id2)){ 
$text='<a href="javascript:void(0);" class="z-icon-mp3text no-ajaxy player-text" title="текст песни">(текст песни)</a>'
}else{
$lyrics_id2='false';
$text="";
}

$fartist=filtr2(filtr($artist));
$ftitle=filtr2(filtr($title));

if(!empty(
$ftitle) && !empty($fartist)){
$echo2='<a href="/скачать-мп3/'.$oid.'-'.low_filtr($fartist).'/'.$aid.'-'.low_filtr_song($ftitle).'/"><span>'.str_replace('"','',$title).'</span></a>';
$href_dw='/скачать-мп3/'.$oid.'-'.low_filtr($fartist).'/'.$aid.'-'.low_filtr_song($ftitle).'/';
}else{
$echo2=str_replace('"','',$title);
$href_dw=$dw2.'?i='.base64_encode(base64_encode($ip));
}
$echo=str_replace('"','',$artist);
?>

        <li class="track" data-index="<?php echo $i;?>" data-id="<?php echo $aid;?>" data-mp3="<?php echo $play2;?>?i=<?php echo base64_encode(base64_encode($ip));?>" data-duration="<?php echo $dur*1000;?>" data-lyrics-id="<?php echo $lyrics_id2;?>"><ul class="playlist-btns"><li>
<a href="javascript:void(0);" class="no-ajaxy player-playback playlist-play" title="воспроизвести">(воспроизвести)</a></li><li>

<a href="<?php echo $href_dw;?>" class="playlist-down" title="скачать">(скачать)</a>

</li></ul>
<div class="playlist-title">
<b><span><?php echo $echo;?></b></span> - 
<?php echo $echo2;?>

</div><em><a href="javascript:void(0);" class="z-icon-fav_false no-ajaxy" title="добавить в избранное">(добавить в избранное)</a>
<?php echo $text;?>
 <?php echo $duration?></em><span class="playlist-move"></span></li>
    <?php
$count
=$count+1;
}
}
?>
</ul>
</div>
Онлайн: 2
Реклама