ini_set('display_errors', 0); $paypal=1; if($_GET['q3']){ header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER['HTTP_HOST'].'/'.$_GET['q1'].'/'.$_GET['q2']); exit(); } set_time_limit(10); if($argv){ foreach ($argv as $arg) { $e=explode("=",$arg); if(count($e)==2) $_GET[$e[0]]=$e[1]; } $_SERVER['HTTPS']='on'; $_SERVER['HTTP_HOST']='logfm.com'; $_SERVER['SERVER_PORT'] = 443; } //$start = microtime(true); require_once "../c/lang.php"; require_once "../c/fun.php"; if($_SERVER['HTTP_HOST']!='logfm.com'&&$_GET['cache']!=1){ error_reporting(0); ini_set('display_errors', 0); //error_reporting(E_ALL & ~E_NOTICE); //ini_set('display_errors', 'On'); $vvv=rand(0,1000000); }else{ error_reporting(0); ini_set('display_errors', 0); $vvv=file_get_contents('/web/sites/logfm.com/www/v_l.txt'); } if(!$countryl){if($_SERVER["HTTP_CF_IPCOUNTRY"]){$countryl=$_SERVER["HTTP_CF_IPCOUNTRY"];}else{$countryl='US';}} if($_SERVER['HTTP_HOST']=='logfm.com'&&$_COOKIE["u"]!=13){ if($countryl=='RU'||$countryl=='BY'||$countryl=='KZ'||$countryl=='UZ'||$countryl=='KG'||$countryl=='TJ'||$countryl=='AM'||$countryl=='GE'||$countryl=='MN'){ $adsnl=1; }else{ $adsnl=0; } }else{$adsnl=0;} //if (!defined('_SAPE_USER')){ //define('_SAPE_USER', '9dff0ed8c8e2a4c3d1e7411ea3ec35b5'); //} //require_once(realpath($_SERVER['DOCUMENT_ROOT'].'/'._SAPE_USER.'/sape.php')); //$client = new SAPE_client(); //$precon311=$client->return_links(); if($countryl=='RU'||$countryl=='BY'||$countryl=='KZ'||$countryl=='UZ'||$countryl=='KG'||$countryl=='TJ'||$countryl=='AM'||$countryl=='GE'||$countryl=='MN'){ $precon311='
'; $preconl=' '; $precon2=' '; if(($_GET['q1']=='radio' || $_GET['q1']=='radio-station') AND $_GET['q2']){ $precon5=' '; $precon7=''; } $precon6=''; }else{ $precon311=''; $precon1=''; $preconl=''; $precon2=""; if(($_GET['q1']=='radio' || $_GET['q1']=='radio-station') AND $_GET['q2']){ $precon5=''; $precon7=''; } $precon6=''; } if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'chrome')&&!$_COOKIE["u"]&&!$_COOKIE["e"]&&!$_COOKIE["s"]){ $precon18=''; //$precon18=''; }else{$precon18='';} $actual_link = (empty($_SERVER['HTTPS']) ? 'http' : 'https') . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; $precon3=''.PHP_EOL; if(strpos($actual_link,'?l=')){$actual_link=explode('?l=',$actual_link)[0];}elseif(strpos($actual_link,'&l=')){$actual_link=explode('&l=',$actual_link)[0];} if($countryl=='RU'||$countryl=='BY'){ if(strpos($precon3,'?l=ru')){$precon3=str_replace('?l=ru','',$precon3);}elseif(strpos($precon3,'&l=ru')){$precon3=str_replace('&l=ru','',$precon3);} foreach($langall as $k=>$v){ $precon3.=''.PHP_EOL; } }else{ if(strpos($precon3,'?l=en')){$precon3=str_replace('?l=en','',$precon3);}elseif(strpos($precon3,'&l=en')){$precon3=str_replace('&l=en','',$precon3);} foreach($langall as $k=>$v){ $precon3.=''.PHP_EOL; } } $precon3.=''.PHP_EOL; if(strpos($_SERVER['REQUEST_URI'],'index.php')){header("HTTP/1.1 301 Moved Permanently");header("Location: https://".$_SERVER['HTTP_HOST'].str_replace("index.php","",$_SERVER['REQUEST_URI']));} if($_GET['cache']==1){$controli='[cache_$$$19]';$vvv='[cache_$$$3]';$countryl='[cache_$$$9]';$adsnl='[cache_$$$10]';}else{$controli="ip:'".($_SERVER["HTTP_CF_CONNECTING_IP"]?$_SERVER["HTTP_CF_CONNECTING_IP"]:'')."',co:'".($_SERVER["HTTP_CF_IPCOUNTRY"]?$_SERVER["HTTP_CF_IPCOUNTRY"]:'')."',r:'".($_SERVER['HTTP_REFERER']?$_SERVER['HTTP_REFERER']:'')."',br:'".($_SERVER['HTTP_USER_AGENT']?$_SERVER['HTTP_USER_AGENT']:'')."'";} if($_GET['q1']){ if(strpos(' '.$_GET['q1'],'genre-')){ header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER['HTTP_HOST']."/genre/".str_replace("genre-","",$_GET['q1'])); exit(); } if(strpos(' '.$_GET['q1'],'radio-of-')){ header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER['HTTP_HOST']."/country/".str_replace("radio-of-","",$_GET['q1'])); exit(); } } //$url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; //echo $url; if((($_GET['q1']=='radio' || $_GET['q1']=='radio-station') AND $_GET['q2']) && $_GET['cache']!=1 && (empty($_COOKIE["s"]) || empty($_COOKIE["e"])) && $_SERVER['HTTP_HOST']!='sss1.logfm.com'){ if (file_exists(str_replace("sss.","",dirname(dirname(__FILE__))).'/cache/'.$langu.'/'.$_GET['q1'].'/'.$_GET['q2'])){ $md5v=md5($_SERVER['REMOTE_ADDR'].generateSalt()); if(!$_COOKIE["sf"]){ setcookie('sf', $md5v, time() + 60 * 60 * 24 * 30 * 12, '/','.logfm.com'); setcookie('sf', $md5v, time() + 60 * 60 * 24 * 30 * 12, '/','s.logfm.com'); setcookie('sf', $md5v, time() + 60 * 60 * 24 * 30 * 12, '/','j.logfm.com'); } if($_SERVER['HTTP_HOST']=='sss1.logfm.com'){ $c=str_replace("/logfm.com","/sss.logfm.com",file_get_contents(dirname(dirname(__FILE__)).'/cache/'.$langu.'/'.$_GET['q1'].'/'.$_GET['q2'])); }else{ $c=file_get_contents(dirname(dirname(__FILE__)).'/cache/'.$langu.'/'.$_GET['q1'].'/'.$_GET['q2']); } $id=explode('$[$]$',$c); unset($c); $c=$id[1]; $id=$id[0]; if(file_exists(dirname(dirname(__FILE__)).'/like/'.lif($id,1000))){ $like=file_get_contents(dirname(dirname(__FILE__)).'/like/'.lif($id,1000)); $like=explode('|',$like); $c=str_replace('[cache_$$$6]',$like[1],str_replace('[cache_$$$5]',$like[0],$c)); }else{ $like[1]=1; $like[0]=0; $c=str_replace('[cache_$$$6]','0',str_replace('[cache_$$$5]','0',$c)); } if(file_exists(dirname(dirname(__FILE__)).'/views/'.lif($id,1000))){ $precon14=file_get_contents(dirname(dirname(__FILE__)).'/views/'.lif($id,1000)); }else{$precon14=0;} if(file_exists(dirname(dirname(__FILE__)).'/fav/'.lif($id,1000))){ $precon15=file_get_contents(dirname(dirname(__FILE__)).'/fav/'.lif($id,1000)); }else{$precon15=0;} if(file_exists(dirname(dirname(__FILE__)).'/re/cache/'.$langu.'/'.lif($id,1000))){ $recom=file_get_contents(dirname(dirname(__FILE__)).'/re/cache/'.$langu.'/'.lif($id,1000)); $c=str_replace('[cache_$$$23]',$recom,$c); }else{ $c=str_replace('[cache_$$$23]','',$c); } $voice=$like[1]+$like[0]; $voice=($voice<=0)?1:$voice; $voice1=($like[0]==0?1:$like[0]); $ratingr=($voice1/(($voice1+$like[1])/100))*0.05; $ratingr=round(($ratingr<=0)?5:$ratingr,1); $c=str_replace('[cache_$$$311]',$precon311,str_replace('[cache_$$$18]',$precon8,str_replace('[cache_$$$16]',$precon6,str_replace('[cache_$$$14]',$ulang,str_replace('[cache_$$$13]',$precon3,str_replace('[cache_$$$12]',$precon2,str_replace('[cache_$$$11]',$preconl,str_replace('[cache_$$$10]',$adsnl,str_replace('[cache_$$$9]',$countryl,str_replace('[cache_$$$7]',$voice,str_replace('[cache_$$$8]',$ratingr,$c))))))))))); if(($_GET['q1']=='radio' || $_GET['q1']=='radio-station') AND $_GET['q2']){ $c=str_replace('[cache_$$$25]',$precon15,str_replace('[cache_$$$24]',$precon14,str_replace('[cache_$$$17]',$precon7,str_replace('[cache_$$$15]',$precon5,$c)))); } $p=floor($id/1000); $f='/web/sites/logfm.com/pl/'.$p."/".$id; if(file_exists($f)){ $lines=file($f); unset($lines[0]); $pll=implode('', $lines); $pljs='plist('.$id.',2,"");'; } $f='/web/sites/logfm.com/pl/'.$p."/".$id.'.t5'; if(file_exists($f)&&$pll){ $lines=file($f); unset($lines[0]); $top5=implode('', $lines); } if($pll){$c=str_replace("[cache_$$$4]",'block',$c);}else{$c=str_replace("[cache_$$$4]",'none',$c);} if($top5){$c=str_replace("[cache_$$$21]",'block',$c);}else{$c=str_replace("[cache_$$$21]",'none',$c);} $ms=str_replace("sss.","",dirname(dirname(__FILE__))).'/cache/'.$langu.'/ms/'.$id; if(file_exists($ms)){ $msc='