';
echo '';
echo file_get_contents('./d/nowplayingartist.txt');
echo '';
echo '';
echo ' - ';
echo '';
echo ''.file_get_contents('./d/nowplayingtitle.txt').'';
echo '';
echo ' - [';
//.htmlspecialchars($hasplayedminutes).':'.htmlspecialchars($hasplayedseconds).'/'.
echo htmlspecialchars($nowplayingdurationminutes).':'.htmlspecialchars($nowplayingdurationseconds).']';
echo ' (';
echo '';
echo file_get_contents('./d/nowplayingalbum.txt');
echo '';
echo ') ';
if (boolval(trim(file_get_contents('./d/nowplayingisfeatured.txt')))){
$target=file_get_contents('./d/nowplayingurl.txt');
$targetflac=str_replace('.mp3', '.flac', $target);
$targetogg=str_replace('.mp3', '.ogg', $target);
echo 'Download flacoggmp3';
echo ' '.file_get_contents('./d/license.txt');
}
else {
echo 'Exclusive premiere track. Out for download soon';
}
if (!in_array(trim(html_entity_decode(file_get_contents('./d/nowplayingalbum.txt'))),$material_blacklist)
&&
in_array(trim(html_entity_decode(file_get_contents('./d/nowplayingartist.txt'))),$material_artists)
&& boolval(trim(file_get_contents('./d/nowplayingisfeatured.txt')))
) {
echo ' Available as material release at our online shop';
}
if (!file_exists('./d/maxlisteners.txt')){
file_put_contents('./d/maxlisteners.txt', '0');
}
$listeners=count(array_diff(scandir('./d/listeners'), Array ('.', '..')));
if ($listeners>intval(file_get_contents('./d/maxlisteners.txt'))){
file_put_contents('./d/maxlisteners.txt', $listeners);
}
if ((floatval(filectime('./d/maxlisteners24hours.txt'))+24*60*60)<=microtime(true)){
unlink('./d/maxlisteners24hours.txt');
}
if ($listeners>intval(file_get_contents('./d/maxlisteners24hours.txt'))){
file_put_contents('./d/maxlisteners24hours.txt', $listeners);
}
$peaktime=microtime(true)-filectime('./d/maxlisteners24hours.txt');
$peakhours=ceil($peaktime/(60*60));
echo ' Listeners Current : '.$listeners.' / Peak : '.htmlspecialchars(file_get_contents('./d/maxlisteners.txt')).' (all-time) '.htmlspecialchars(file_get_contents('./d/maxlisteners24hours.txt')).' ('.htmlspecialchars($peakhours).'-hours)';
}
else if ($_GET['ajax']==='cover'){
$covers=trim(file_get_contents('../d/covers.txt'));
$coverlines=explode("\n", $covers);
$artworks=Array();
for ($i=0;$iLogin or Create account';
*/ else if (!isset ($_POST['validateemail'])){
echo '';
}
else if (isset($_GET['createaccount'])) {
echo 'Please enter a valid email adress. You will receive a link to set your password and activate your account. ';
echo '';
}
else if (isset ($_POST['validateemail'])&&file_exists('../d/mailing-list-owner.txt')) {
$_POST['validateemail']=explode("\n",$_POST['validateemail'])[0];
$_POST['validateemail']=trim($_POST['validateemail']);
$message ='Hello ';
$message.="\r\n".'Someone requested mailing list ';
$message.="\r\n".'subscription using the email address '.htmlentities($_POST['validateemail']);
$message.="\r\n".'';
$message=chunk_split($message);
if (
mail(trim(file_get_contents('../d/mailing-list-owner.txt')), 'Mailing list subscription request', $message, 'Content-Type: text/html;charset=UTF-8')
){
echo 'A subscription request has been sent for the address '.htmlspecialchars($_POST['validateemail']).'. We will get in touch shortly to confirm. Close';
}
else {
echo 'The system has not been able to subscribe '.htmlspecialchars($_POST['validateemail']).'. Please try again later';
}
}
}
?>
';
include ('../donate.php');
echo ' ';
}
?>