PDA

View Full Version : New Server Questions


Mr.Hankey87
29th July 2004, 05:08
well i just gt my server up and its worken great for me right now http://65.243.187.21:8000 and i was wondering how to make a img not sure of the file ext but where it shows what song is on the server and how many ppl are on it and if u can tell me how and what program i would like that very much :D

Mr.Hankey87
29th July 2004, 05:11
and also on the web site there is a admin log in and i have a password set but i cant find the user name to log on as.... so does anyone know it or do i set it some where?

djmastermind
29th July 2004, 05:14
Check out the Sticky post titled...
SHOUTcast: Important Info & Answers to FAQs. READ ME!

Scroll down a bit and look for the section titled...
General SHOUTcast Information -> SHOUTcast ToolBox (All sorts of nifty add-ons for SHOUTcast)

1. The PHP based XML parser is a complete solution and comes ready for you to customize.

2. The Javascript parser (actually ASP) is another complete solution and comes ready for you to customize.
Note: Apparently this link isn't working anymore.
Try this thread (http://forums.winamp.com/showthread.php?s=&threadid=140767) for other ASP options.

Also, for an html implementation, check out:
KXRM's RadioToolbox (http://www.radiotoolbox.com/docs/?p_id=1)
Oddsock's Do Something DSP plugin (http://www.oddsock.org/tools/dosomething/)

*************

Check out the results from a SHOUTcast forum search (http://forums.winamp.com/search.php) on 'status script'.


Note: Other search criteria may yield more results.

-----

username = 'admin' (without the quotes) and is not configurable

password = defined in the DNASs sc_serv.ini configuration file (default section shown below):; Password. While SHOUTcast never asks a listener for a password, a
; password is required to broadcast through the server, and to perform
; administration via the web interface to this server. This server should
; consist of only letters and numbers, and is the same server your broadcaster
; will need to enter in the SHOUTcast Source Plug-in for Winamp. THIS VALUE
; CANNOT BE BLANK.
Password=changeme

If you enabled the AdminPassword, use that instead.; AdminPassword. This password (if specified) changes the
; behavior of Password to be a broadcast-only password, and
; limits HTTP administration tasks to the password specified
; here. The broadcaster, with the password above, can still
; log in and view connected users, but only the AdminPassword
; will grant the right to kick, ban, and specify reserve hosts.
; The default is undefined (Password allows control for both
; source and admin)
; AdminPassword=adminpass

Mr.Hankey87
29th July 2004, 22:38
well would somthing like this work a friend told me this and he wans't sure how to qwite make it in to the img for the php


<?php
// Ruff Dawg's 'Now Playing Sig w/ Background v. 1.5 May 7, 2004
// Special thanks to the originator, DJ Rampage

// This image you can call immediately from an html file in the image tag
// (i.e. <img src="black.php">) easy huh?

Header("Content-type: image/png");

/////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////*Configurables*//////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////

/////////////////////*Background Picture File*////////////////////////

/* Replace "sicpic.png" with your own
picture file (must be a .png) */

$im = imagecreatefrompng("sig.png");

/////////////////////////////*Host Information*/////////////////////////////

$host = "66.90.80.66"; // No 'http://' in the host
$port = "8390";
$host2 = "66.90.80.66"; // No 'http://' in the host
$port2 = "8415";

//////////////////////////////////*Text Colors*////////////////////////////////

// text colors are in RGB

$text_color1 = ImageColorAllocate($im,255,255,255);
$text_color2 = ImageColorAllocate($im,255,255,255);

////////////////////////////////////*Text Size*/////////////////////////////////

$text_size = "3";

//////////////////////////////*Text Alignment these coords fit in 250x50 png*/////////////////////////////

//X alignment

$x1 = "40";
$x2 = "44";
$x3 = "72";
$x4 = "72";

//Y alignment

$y1 = "24";
$y2 = "7";
$y3 = "42";
$y4 = "42";

///////////////////////////*Offline Message*///////////////////////////////

$offline1 = "Is Down For Maintenance";
$offline2 = "Unsigned Online";
$offline3 = "Offline";
$offline4 = "Offline";

//////////////////////////////////////////////////////////////////////////////////////////////////
/////*DON'T TOUCH THE CODE BELOW UNLESS//////////
///YOU KNOW EXACTALLY WHAT YOU ARE DOING*//
///////////////////////////////////////////////////////////////////////////////////////////////

$fp = fsockopen("$host", $port, &$errno, &$errstr, 30);
if(!$fp) {
$success=2;
}
if($success!=2){ //if connection
fputs($fp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($fp)) {
$page .= fgets($fp, 1000);
}
fclose($fp);
$page = ereg_replace(".*<body>", "", $page); //extract data
$page = ereg_replace("</body>.*", ",", $page); //extract data
$numbers = explode(",",$page);
$currentlisteners=$numbers[0];
$connected=$numbers[1];
if($connected==1)
$wordconnected="yes";
else
$wordconnected="no";
$peaklisteners=$numbers[2];
$maxlisteners=$numbers[3];
$reportedlisteners=$numbers[4];
}

if($success!=2 && $connected==1){

$song=explode(" - ",$numbers[6]);

$string1= $song[1];
$string2= $song[0];
$string3 = ($currentlisteners+$currentlisteners2) . "/" . ($maxlisteners+$maxlisteners2);
}

else {
$string1= $offline1;
$string2= $offline2;
$string3= $offline3;
}
/////////////////////////////////////////////////////////////////////////////////////////
/////*code for second server needs to be cleaned up don't really need artist & song info but need to handle if server 1 or server 2 offline do what?*/////////////////////////////////
////////////////////////////////////////////////////////////////
$fp2 = fsockopen("$host2", $port2, &$errno2, &$errstr2, 30);
if(!$fp2) {
$success2=2;
}
if($success2!=2){ //if connection
fputs($fp2,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n");
while(!feof($fp2)) {
$page2 .= fgets($fp2, 1000);
}
fclose($fp2);
$page2 = ereg_replace(".*<body>", "", $page2); //extract data
$page2 = ereg_replace("</body>.*", ",", $page2); //extract data
$numbers2 = explode(",",$page2);
$currentlisteners2=$numbers2[0];
$connected2=$numbers2[1];
if($connected2==1)
$wordconnected2="yes";
else
$wordconnected2="no";
$peaklisteners2=$numbers2[2];
$maxlisteners2=$numbers2[3];
$reportedlisteners2=$numbers2[4];
}

if($success2!=2 && $connected2==1){

$song2=explode(" - ",$numbers2[6]);

$string12= $song2[1];
$string22= $song2[0];
$string3 = ($currentlisteners+$currentlisteners2) . "/" . ($maxlisteners+$maxlisteners2);
}

else {
$string12= $offline1;
$string22= $offline2;
$string32= $offline3;
$string4= $offline4;
}




$px = (imagesx($im)-5*strlen($string1))/2;
ImageString($im,$text_size,$x1,$y1,$string1,$text_color1);
$px = (imagesx($im)-5*strlen($string2))/2;
ImageString($im,$text_size,$x2,$y2,$string2,$text_color1);
$px = (imagesx($im)-5*strlen($string3))/2;
ImageString($im,$text_size,$x3,$y3,$string3,$text_color2);
$px = (imagesx($im)-5*strlen($string4))/2;
ImageString($im,$text_size,$x4,$y4,$string4,$text_color2);

ImagePng($im);
imagedestroy($im);
?>

monsterscootz
30th July 2004, 02:30
how to use it?
do it save that coding
in a .htm file or a .php file?

Mr.Hankey87
30th July 2004, 06:54
not sure a friend gave me the code and im not sure what to do with it to be honist

Mr.Hankey87
30th July 2004, 07:28
so is it possible to run one of them from ur xml and would it be easyer

protegechris
30th July 2004, 20:14
http://www.freepgs.com/protegechris

^^ Newly created how-to. If you don't understand that, you don't need the sig, hell, you don't need a station.

Mr.Hankey87
30th July 2004, 22:48
thx alot guys and that web site for dumbies it just what i needed :p