From dae0dab2eb0e0ffa21e682816c0f1a3def116bd2 Mon Sep 17 00:00:00 2001 From: santic-zombie Date: Wed, 1 Apr 2020 00:57:24 +0300 Subject: [PATCH] delete files... --- index.php | 83 --------------------------------------------------- js/radio.js | 30 +++++++++---------- online.dat | 0 online.php | 80 ------------------------------------------------- trackname.php | 1 - 5 files changed, 15 insertions(+), 179 deletions(-) delete mode 100755 index.php delete mode 100644 online.dat delete mode 100644 online.php delete mode 100755 trackname.php diff --git a/index.php b/index.php deleted file mode 100755 index 37105fc..0000000 --- a/index.php +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - My Test Radio - - - - - - - - - - - -
-
- -

Just Radio

- -
-
- -
title
- -
- -
- - -
- -
- -
- vol: -
- -
- - -
-
-
title
- -
- -

Top artist

-
- -
-
- - - - - - - - diff --git a/js/radio.js b/js/radio.js index 3844c12..bbcdd89 100644 --- a/js/radio.js +++ b/js/radio.js @@ -34,21 +34,21 @@ function show() MPDfile = array[2].replace(/^vk_kun\//,'').replace(/\.mp3/,''); console.log(MPDfile); - if (MPDartist !== null) { - lastfm.artist.getInfo({artist: MPDartist}, {success: function(data){ - var artistLink = data.artist.url; - // формируем ссылку на артиста в LastFM - document.querySelector('a[name="lastFMlink"]').setAttribute('href', artistLink); - // выводим название артиста и трека ссылкой - $('#title').html(MPDartist+' - '+MPDsong); - }, error: function(code, message){ - console.log('Error #'+code+': '+message); - MPDartist = null; - }});} - else { - //document.querySelector('a[name="lastFMlink"]').setAttribute('href', null); - //$('#title').html(MPDfile); - alert('WTF!?');} + if (MPDartist == null && MPDsong == null) { + //document.querySelector('a[name="lastFMlink"]').setAttribute('href', null); + $('#title').html(MPDfile); + } else { + lastfm.artist.getInfo({artist: MPDartist}, {success: function(data){ + var artistLink = data.artist.url; + // формируем ссылку на артиста в LastFM + document.querySelector('a[name="lastFMlink"]').setAttribute('href', artistLink); + // выводим название артиста и трека ссылкой + $('#title').html(MPDartist+' - '+MPDsong); + }, error: function(code, message){ + console.log('Error #'+code+': '+message);} + }); + console.log('WHAT??!') + } }); } diff --git a/online.dat b/online.dat deleted file mode 100644 index e69de29..0000000 diff --git a/online.php b/online.php deleted file mode 100644 index 0840ce8..0000000 --- a/online.php +++ /dev/null @@ -1,80 +0,0 @@ -$str) - { - if($str=="$user::$time\r\n") - { - $ok=$i; - break; - } - } - foreach($online_array as $j=>$str) - { - if($ok==$j) { $online_array[$ok]="$user::$time\r\n"; break;} - } - endif; - - $writedata=fopen($data,"w") or die("Не могу открыть файл $data"); - flock($writedata,2); - if($online_array=="") $online_array[]="$user::$time\r\n"; - foreach($online_array as $str) - fputs($writedata,"$str"); - flock($writedata,3); - fclose($writedata); - - $readdata=fopen($data,"r") or die("Не могу открыть файл $data"); - $data_array=file($data); - fclose($readdata); - $online=count($data_array); - - echo "Listeners : $online"; -?> diff --git a/trackname.php b/trackname.php deleted file mode 100755 index c1732b9..0000000 --- a/trackname.php +++ /dev/null @@ -1 +0,0 @@ -