gintulys
Vagis !
Generolas
Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
Sveiki kreipiuosi i tuos kas moka su sia panele kaip padaryt kad neroditu jokiu ten kiek klauso o tik roditu foto man niekaip neiseina nutrint stai kodas:
openside("Eteris");
error_reporting(0);
$scdef = "Serversi neveikia"; // Default station name to display when server or stream is down
$scip = "ip"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "port"; // port of shoutcast server
$scpass = "pass"; // password to shoutcast server
$maxusers = "100"; //Kiek vienu sykiu klausosi zmoniu
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' ';
}
if ($scsuccs != 1) {
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
######################################################################################################################
/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM");
$y=0;
while (isset($loop[$y])) {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if (($loop[$y] == "SERVERGENRE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "SONGTITLE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "aim"))
$$scphp = urldecode($$scphp);
// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
######################################################################################################################
######################################################################################################################
/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while (isset($songatime[$r])) {
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$daina = str_replace('_',' ',substr ($song[0],0,90));
//end song info
fclose($scfp);
}
//display stats
if($streamstatus == "1"){
switch ($aim) {
case 'WiNALL': $aimlogo = "Serveris"; break;
case 'Serveris': $aimlogo = "Serveris"; break;
case 'DJ_Deivis': $aimlogo = "deivis"; break;
case 'DjGintulis': $aimlogo = "DjGintulis"; break;
case 'Saulius': $aimlogo = "Saulius"; break;
default: $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo'<div align="center">
<table cellpadding="0" cellspacing="0" width="1">
<!-- MSTa*keiksmai*ype="nolayout" -->
<tr>
<td height="36" bgcolor="">
<p align="center">
<a href="/viewpage.php?page_id=1"><img border="0" src="/komanda/'.$aim.'.jpg" width="140" heigth="100"></a></td>
</tr>
<tr>
<td height="17" valign="bottom">
<div align="center">
<table cellpadding="0" cellspacing="0" width="130">
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje:</b></font>
<font face="Tahoma" style="font-size: 9px" color="#666666">'.$aim.'</font></td>
</tr>
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje groja:</b></font>
<marquee behavior="right"> <font face="Arial" style="font-size: 8pt" color="#8a8a8a">'.$daina.'</font></td></marquee></p>
</tr>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#000">Ðiuo metu radija yra iðjungta.</font>';
}
/*
* Procentai isreiksti grafiskai
* Pavyzdys: Internetines radijos dabartiniai klausytojai
* Yra maksimalus leistinas klausytoju skaicius ir dabar besiklausanciu procentali israiska grafiskai
*/
$pavadinimas = ""; //pavadinimas
$ko = "<b>Klausytojų: </b>"; //1vienetas (pvz: Lt.)
//paveiksleliu nustatymai
$bg_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //fono paveiksliukas (neaktyvi zona)
$nulis_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //rodomoas paveiksliukas jei rezultatas lygus 0% (pvz jei nera klausytoju)
$mazas_pic = "http://img340.imageshack.us/img340/456/loadbargreenyk1.gif"; //uzsidengiantis paveiksliukas (zalia)
$vidutinis_pic = "http://img230.imageshack.us/img230/3815/loadbaryellowue2.gif"; //Kai vidutine procentu israiska (geltona)
$didelis_pic = "http://img403.imageshack.us/img403/8008/loadbarreduh0.gif"; //Kai arti arba lygu 100 procentu (raudona)
//pagrindiniai veiksmai
$procentai = (int)round((100 * $currentlisteners) / $maxusers);
$width = $procentai; //paveiksliuko plotis procentaliai
if ($procentai <= 1) {$pic = $nulis_pic; $width = "100";}
//atvaziduojam lentele su rezultatais
echo "<center><b><br>$ko ".$currentlisteners."/100
<br><br>
<b>Klausyti:</b>
<br>
<br>
<center><a href='mms://shoutcast.vpservers.lt:8090/'><img src='http://s1.imageapple.net/img/lrfogsvao/media_player.jpg' border='0'></a><a href='http://shoutcast.vpservers.lt:8090/listen.pls'><img src='http://s1.imageapple.net/img/c2h3r9bsu/Winamp.jpg' border='0'></a><br>Media player////Winamp</center>
";
?>
<html><center>
<br>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=53');");
}
// End -->
</script>
</html>
<?
closeside();
Edited by Edis2: Kodą dėk tarp code tagų
|
deivis16
Narys
Fruktas
Pranešimai: 31
Įstojęs: 2008 Kov. 23 09:03:20
|
Didelis prašymas, jei gali, nukopijuoks viską tapatį, tik be šypsenėliu.
|
namo
VIP narys
Kapitonas
Pranešimai: 564
Įstojęs: 2008 Bir. 10 13:06:43
|
dek i [code] tagus
Remember kids, the more posts you have the bigger your penis is!
Redagavo namo 2009 Vas. 2 12:02:24 |
gintulys
Vagis !
Generolas
Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
nu va isjungiou sipseneles
|
gintulys
Vagis !
Generolas
Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
Tai niekas nezino?
|
Apocal
Narys
Terminatorius
Pranešimai: 1481
Įstojęs: 2007 Gru. 2 01:12:19
|
openside("Eteris");
error_reporting(0);
$scdef = "Serversi neveikia"; // Default station name to display when server or stream is down
$scip = "ip"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "port"; // port of shoutcast server
$scpass = "pass"; // password to shoutcast server
$maxusers = "100"; //Kiek vienu sykiu klausosi zmoniu
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' ';
}
if ($scsuccs != 1) {
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
######################################################################################################################
/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM");
$y=0;
while (isset($loop[$y])) {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if (($loop[$y] == "SERVERGENRE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "SONGTITLE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "aim"))
$$scphp = urldecode($$scphp);
// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
######################################################################################################################
######################################################################################################################
/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while (isset($songatime[$r])) {
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$daina = str_replace('_',' ',substr ($song[0],0,90));
//end song info
fclose($scfp);
}
//display stats
if($streamstatus == "1"){
switch ($aim) {
case 'WiNALL': $aimlogo = "Serveris"; break;
case 'Serveris': $aimlogo = "Serveris"; break;
case 'DJ_Deivis': $aimlogo = "deivis"; break;
case 'DjGintulis': $aimlogo = "DjGintulis"; break;
case 'Saulius': $aimlogo = "Saulius"; break;
default: $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo'<div align="center">
<table cellpadding="0" cellspacing="0" width="1">
<!-- MSTa*keiksmai*ype="nolayout" -->
<tr>
<td height="36" bgcolor="">
<p align="center">
<a href="/viewpage.php?page_id=1"><img border="0" src="/komanda/'.$aim.'.jpg" width="140" heigth="100"></a></td>
</tr>
<tr>
<td height="17" valign="bottom">
<div align="center">
<table cellpadding="0" cellspacing="0" width="130">
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje:</b></font>
<font face="Tahoma" style="font-size: 9px" color="#666666">'.$aim.'</font></td>
</tr>
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje groja:</b></font>
</tr>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#000">Ðiuo metu radija yra iðjungta.</font>';
}
/*
* Procentai isreiksti grafiskai
* Pavyzdys: Internetines radijos dabartiniai klausytojai
* Yra maksimalus leistinas klausytoju skaicius ir dabar besiklausanciu procentali israiska grafiskai
*/
$pavadinimas = ""; //pavadinimas
$ko = "<b>Klausytojų: </b>"; //1vienetas (pvz: Lt.)
//paveiksleliu nustatymai
$bg_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //fono paveiksliukas (neaktyvi zona)
$nulis_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //rodomoas paveiksliukas jei rezultatas lygus 0% (pvz jei nera klausytoju)
$mazas_pic = "http://img340.imageshack.us/img340/456/loadbargreenyk1.gif"; //uzsidengiantis paveiksliukas (zalia)
$vidutinis_pic = "http://img230.imageshack.us/img230/3815/loadbaryellowue2.gif"; //Kai vidutine procentu israiska (geltona)
$didelis_pic = "http://img403.imageshack.us/img403/8008/loadbarreduh0.gif"; //Kai arti arba lygu 100 procentu (raudona)
?>
<html><center>
<br>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=53');");
}
// End -->
</script>
</html>
<?
closeside();
Nu nezinau ar veiks 100%, bet jei neveiks po eilutes
$didelis_pic = "http://img403.imageshack.us/img403/8008/loadbarreduh0.gif"; //Kai arti arba lygu 100 procentu padek(raudona)
padek ";
www.Skanumas.lt - Receptai, Kulinarija, konditerija
www.syntax.lt |
edis2
VIP narys
Antras po Dievo
Pranešimai: 3644
Įstojęs: 2008 Rugs. 25 17:09:15
|
openside("Eteris");
error_reporting(0);
$scdef = "Serversi neveikia"; // Default station name to display when server or stream is down
$scip = "ip"; // ip or url of shoutcast server (DO NOT ADD HTTP:// don't include the port)
$scport = "port"; // port of shoutcast server
$scpass = "pass"; // password to shoutcast server
$maxusers = "100"; //Kiek vienu sykiu klausosi zmoniu
//End configuration
error_reporting(0);
$scsuccs = NULL;
$page = NULL;
include('config_radio.php'); //you may edit this path to fit your server environment otherwise leave it alone
$scfp = fsockopen("$scip", $scport, &$errno, &$errstr, 30);
if(!$scfp) {
$scsuccs=1;
echo''.$scdef.' ';
}
if ($scsuccs != 1) {
fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
while(!feof($scfp)) {
$page .= fgets($scfp, 1000);
}
######################################################################################################################
/////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//define xml elements
$loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "AIM");
$y=0;
while (isset($loop[$y])) {
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$scphp = strtolower($loop[$y]);
$$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed);
if (($loop[$y] == "SERVERGENRE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "SONGTITLE") || ($loop[$y] == "SERVERTITLE") || ($loop[$y] == "aim"))
$$scphp = urldecode($$scphp);
// uncomment the next line to see all variables
// echo'$'.$scphp.' = '.$$scphp.'<br>';
$y++;
}
//end intro xml elements
######################################################################################################################
######################################################################################################################
/////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//get song info and history
$pageed = ereg_replace(".*<SONGHISTORY>", "", $page);
$pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed);
$songatime = explode("<SONG>", $pageed);
$r=1;
while (isset($songatime[$r])) {
$t=$r-1;
$playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]);
$playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]);
$song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]);
$song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]);
$song[$t] = urldecode($song[$t]);
$dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page);
$dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed);
$r++;
}
$daina = str_replace('_',' ',substr ($song[0],0,90));
//end song info
fclose($scfp);
}
//display stats
if($streamstatus == "1"){
switch ($aim) {
case 'WiNALL': $aimlogo = "Serveris"; break;
case 'Serveris': $aimlogo = "Serveris"; break;
case 'DJ_Deivis': $aimlogo = "deivis"; break;
case 'DjGintulis': $aimlogo = "DjGintulis"; break;
case 'Saulius': $aimlogo = "Saulius"; break;
default: $aimlogo = "dj";
}
$_SESSION['djus'] = $aim;
echo'<div align="center">
<table cellpadding="0" cellspacing="0" width="1">
<!-- MSTa*keiksmai*ype="nolayout" -->
<tr>
<td height="36" bgcolor="">
<p align="center">
<a href="/viewpage.php?page_id=1"><img border="0" src="/komanda/'.$aim.'.jpg" width="140" heigth="100"></a></td>
</tr>
<tr>
<td height="17" valign="bottom">
<div align="center">
<table cellpadding="0" cellspacing="0" width="130">
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje:</b></font>
<font face="Tahoma" style="font-size: 9px" color="#666666">'.$aim.'</font></td>
</tr>
<tr>
<td height="17">
<p align="center">
<font face="Tahoma" style="font-size: 9px" color="#666666"><b><br>Eteryje groja:</b></font>
<marquee behavior="right"> <font face="Arial" style="font-size: 8pt" color="#8a8a8a">'.$daina.'</font></td></marquee></p>
</tr>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</div>';
}
if($streamstatus == "0")
{
echo'<font size="2" face="tahoma" color="#000">Ðiuo metu radija yra iðjungta.</font>';
}
/*
* Procentai isreiksti grafiskai
* Pavyzdys: Internetines radijos dabartiniai klausytojai
* Yra maksimalus leistinas klausytoju skaicius ir dabar besiklausanciu procentali israiska grafiskai
*/
//paveiksleliu nustatymai
$bg_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //fono paveiksliukas (neaktyvi zona)
$nulis_pic = "http://img340.imageshack.us/img340/2239/loadbarbgnc2.gif"; //rodomoas paveiksliukas jei rezultatas lygus 0% (pvz jei nera klausytoju)
$mazas_pic = "http://img340.imageshack.us/img340/456/loadbargreenyk1.gif"; //uzsidengiantis paveiksliukas (zalia)
$vidutinis_pic = "http://img230.imageshack.us/img230/3815/loadbaryellowue2.gif"; //Kai vidutine procentu israiska (geltona)
$didelis_pic = "http://img403.imageshack.us/img403/8008/loadbarreduh0.gif"; //Kai arti arba lygu 100 procentu (raudona)
//pagrindiniai veiksmai
$procentai = (int)round((100 * $currentlisteners) / $maxusers);
$width = $procentai; //paveiksliuko plotis procentaliai
if ($procentai <= 1) {$pic = $nulis_pic; $width = "100";}
//atvaziduojam lentele su rezultatais
echo "<center><b><br>$ko ".$currentlisteners."/100
<br><br>
<b>Klausyti:</b>
<br>
<br>
<center><a href='mms://shoutcast.vpservers.lt:8090/'><img src='http://s1.imageapple.net/img/lrfogsvao/media_player.jpg' border='0'></a><a href='http://shoutcast.vpservers.lt:8090/listen.pls'><img src='http://s1.imageapple.net/img/c2h3r9bsu/Winamp.jpg' border='0'></a><br>Media player////Winamp</center>
";
?>
<html><center>
<br>
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=325,height=53');");
}
// End -->
</script>
</html>
<?
closeside();
Gerai taip??
|
gintulys
Vagis !
Generolas
Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
Apocal dekui dar pasiredagavau
|
FanatiC
Narys
Ekspertas
Pranešimai: 3296
Įstojęs: 2008 Gru. 11 20:12:05
|
gintulis xD kazkada dirbo pas mane radijoj zjbs prikolinom bet kad pas tovus dj tas gintulis dar akcentos toks kai jis waidino boba per eteri o as klausinejau zjbs laikai buwo...
Www.Degradacija.Lt - Naujas požiūris į demotyvaciją |
iGolf
Administratorius
Ekspertas
Pranešimai: 2415
Įstojęs: 2007 Gru. 22 15:12:09
|
FaNaTiC parašė:
gintulis xD kazkada dirbo pas mane radijoj zjbs prikolinom bet kad pas tovus dj tas gintulis dar akcentos toks kai jis waidino boba per eteri o as klausinejau zjbs laikai buwo...
kas per radija buwo
Visa laiką ieškau žmonių keletui projektų sudominau? Rašykit |
gintulys
Vagis !
Generolas
Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
Party Fm kaip ir Nebeatsimenu
|