Nummer momenteel

Gestart doorCaner7 reacties62 weergaven

8 berichten · pagina 1 van 1

Caner

Lid · Topicstarter

Berichten
10.857
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien

Den Haag

Ik heb dus een radio met dank aan Radionomy, alles werkt naar behoren; maar ik wil op me site ook zien welke nummer er momenteel gedraaid word. Er is hier een API voor op Radionomy zelf, maar die werkt alleen goed als AutoDJ ingeschakeld is, maar ik wil ook dat die werkt als er een Live DJ aan het draaien is. Weet iemand hier de script voor? Beloning bespreken we wel. wink
0
Berichten
450
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
status.php
------------

<div style="Visibility: Hidden; Position: Absolute;"> 
[COLOR= #0000BB]<? 
$open[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fsockopen"]fsockopen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"ip van radio hier"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"port hier"[/COLOR][COLOR= #007700]);[/COLOR] 
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700]) {[/COLOR] 
[URL="http://www.php.net/fputs"]fputs[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"GET /7.html HTTP/1.1nUser-Agent:Mozillann"[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$read[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fread"]fread[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1000[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"content-type:text/html"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$read[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]); 
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #0000BB]$er[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Connection Refused!"[/COLOR][COLOR= #007700]; }[/COLOR] 
?> 
</div> 
[COLOR= #0000BB]<?[/COLOR] 
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]]==[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #0000BB]$state[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Online"[/COLOR][COLOR= #007700]; }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #0000BB]$state[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"Offline"[/COLOR][COLOR= #007700]; }[/COLOR] 
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$er[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$er[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700]; }[/COLOR] 
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<font face=verdana size=1> 
Nummer momenteel: $text[6] 
</font>"[/COLOR][COLOR= #007700];[/COLOR]?>


// als je luisteraars bij wilt toevoegen moet je onder nummer dit zetten
Luisteraars: $text[0] of $text[3] ($text[4] Unique)

Script wat simpeler gemaakt;

<div style="Visibility: Hidden; Position: Absolute;"> 
[COLOR= #0000BB]<? 
$open[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fsockopen"]fsockopen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"jouw radio ip"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"hie je port"[/COLOR][COLOR= #007700]);[/COLOR] 
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700]) {[/COLOR] 
[URL="http://www.php.net/fputs"]fputs[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]"GET /7.html HTTP/1.1nUser-Agent:Mozillann"[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$read[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fread"]fread[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$open[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]1000[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/explode"]explode[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700],[/COLOR][COLOR= #0000BB]$read[/COLOR][COLOR= #007700]);[/COLOR] 
[COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700][[/COLOR][COLOR= #0000BB]6[/COLOR][COLOR= #007700]]; 
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]"Connection Refused!"[/COLOR][COLOR= #007700]; }[/COLOR] 
?> 
</div> 
<?echo $text;?>


Let op: Je host moet fsockopen ondersteunen
0
Caner

Lid · Topicstarter

Berichten
10.857
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien

Den Haag

Is het ook mogelijk om met cURL te werken? smile
0
Berichten
5.957
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat kan, maar waarom zou je dat willen?
0
Caner

Lid · Topicstarter

Berichten
10.857
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien

Den Haag

Alemaalte schreef:
Dat kan, maar waarom zou je dat willen?
Omdat mijn hoster (helaas) geen fsockopen ondersteund en dat ook niet enabled.
0
Caner

Lid · Topicstarter

Berichten
10.857
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien

Den Haag

Bumperdebump.
0
Berichten
5.498
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Waar host je dan?
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren