web broadcasting

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

That someone probably connected to your server.
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet »

<!-- ### SC MOD ### <br />
<b>Warning</b>: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home/rtrev64/public_html/footballroom/includes/shoutcast_class.php</b> on line <b>48</b><br />
<br />
<b>Warning</b>: fsockopen(): unable to connect to http://http://71.96.38.47:8001//:8001 in <b>/home/rtrev64/public_html/footballroom/includes/shoutcast_class.php</b> on line <b>48</b><br />
### SC MOD ### -->


new error.. go back to the original code
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

Hey, it's trying http://http://71.96.38.47:8001//:8001. It should be trying http://71.96.38.47:8001.

Enter 71.96.38.47 for the server and NO PORT in that variable. Just 71.96.38.47.
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

ok so which file should I be editing?

<?php


$dbms = 'mysql' ;
$dbhost = 'localhost' ;
$dbname = 'rtrev64_phpb2' ;
$dbuser = 'rtrev64_phpb2' ;
$dbpasswd = 'k6kByqEFub4C' ;
$table_prefix = 'phpbb_' ;


define ( 'PHPBB_INSTALLED' , true ) ;//*********************************************
//** ShoutCast MOD - Begin Code Modification

// + Add 'n Config
$sc_host = 'http://71.96.38.47:8001/';// ShoutCast Host
$sc_port = 8001;// ShoutCast Port
$sc_adminmpasswd = 'xxxxxxxx';// ShoutCast Admin Password
$songhistory_display = 3;// Number of rows to be displayed in song history, 3 = not show

//** ShoutCast MOD - End Code Modification
//*********************************************

?>

This is the config.php file.. I added that bit extra because we already tried the 71.96.38.47 by itself but nothing..

im on now so as soon as anyone answers ill check back asap.. i want to get this thing going..
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

Try this again:

Code: Select all

<?php


$dbms = 'mysql' ;
$dbhost = 'localhost' ;
$dbname = 'rtrev64_phpb2' ;
$dbuser = 'rtrev64_phpb2' ;
$dbpasswd = 'k6kByqEFub4C' ;
$table_prefix = 'phpbb_' ;


define ( 'PHPBB_INSTALLED' , true ) ;//*********************************************
//** ShoutCast MOD - Begin Code Modification

// + Add 'n Config
$sc_host = '71.96.38.47';// ShoutCast Host
$sc_port = 8001;// ShoutCast Port
$sc_adminmpasswd = 'ADMIN_PASS_GOES_HERE';// ShoutCast Admin Password
$songhistory_display = 5;// Number of rows to be displayed in song history, 3 = not show

//** ShoutCast MOD - End Code Modification
//*********************************************

?>
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

ok did but I still see "station off line"..ill be happy to give you my info so maybe you can go in and see if I am missing anything..
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

MSN me.
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

sent you a reply through pm..
deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet »

i still see
<!-- ### SC MOD ### <br />
<b>Warning</b>: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/home/rtrev64/public_html/footballroom/includes/shoutcast_class.php</b> on line <b>48</b><br />
<br />
<b>Warning</b>: fsockopen(): unable to connect to http://http://71.96.38.47//:8001 in <b>/home/rtrev64/public_html/footballroom/includes/shoutcast_class.php</b> on line <b>48</b><br />
### SC MOD ### -->
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

you got me..shoutclass.php, I dont see where the error is atg or the info for that matter..

<?php

/*
+---------------------------------------------------
| > Radio Display functions module
| > Module written by Andrew Roberts
| > Date started: 26th September 2004
|
| > Made for : http://www.scousemp3s.co.uk
| > Module Version Number: 1.2.0
+---------------------------------------------------
| Modified to work with phpBB by DtTvB |
+------------------------------------------+
*/

if ( !defined('IN_PHPBB') )
{
die("Hacking attempt!");
}

class shoutcast {
// Public
var $host;
var $port;
var $passwd;
var $sc_stat = array();

//Private
var $_xml;
var $_error;

function set_host($host) {

$this->host="http://$host/";
}

function set_port($port) {

$this->port=$port;
}

function set_passwd($password) {

$this->passwd=$password;
}

function get_status() {
$fp = fsockopen($this->host, $this->port, $errno, $errstr, 3);
if (!$fp) {
$this->_error = "$errstr ($errno)";
return(0);
} else {
fputs($fp, "GET /admin.cgi?pass=".$this->passwd."&mode=viewxml HTTP/1.0\r\n");
fputs($fp, "User-Agent: Mozilla\r\n\r\n");
while (!feof($fp)) {
$this->_xml .= fgets($fp, 512);
}
fclose($fp);

if (stristr($this->_xml, "HTTP/1.0 200 OK") == true) {
// <-H> Thanks to Blaster for this fix.. trim();
$this->_xml = trim(substr($this->_xml, 42));
} else {
$this->_error = "Bad login";
return(0);
}

$xmlparser = xml_parser_create();
if (!xml_parse_into_struct($xmlparser, $this->_xml, $this->_values, $this->_indexes)) {
$this->_error = "Unparsable XML";
return(0);
}

xml_parser_free($xmlparser);

$this->sc_stat['current_listeners_count'] = $this->GetCurrentListenersCount();
$this->sc_stat['peak_listeners_count'] = $this->GetPeakListenersCount();
$this->sc_stat['max_listeners'] = $this->GetMaxListenersCount();
$this->sc_stat['reported_listeners_count'] = $this->GetReportedListenersCount();
$this->sc_stat['average_listen_time'] = $this->GetAverageListenTime();

$this->sc_stat['genre'] = $this->GetServerGenre();
$this->sc_stat['server_url'] = $this->GetServerURL();
$this->sc_stat['server_title'] = $this->GetServerTitle();
$this->sc_stat['playing_song'] = $this->GetCurrentSongTitle();

$this->sc_stat['server_irc'] = $this->GetIRC();
$this->sc_stat['server_aim'] = $this->GetAIM();
$this->sc_stat['server_icq'] = $this->GetICQ();

$this->sc_stat['web_hits'] = $this->GetWebHitsCount();
$this->sc_stat['stream_hits'] = $this->GetStreamHitsCount();
$this->sc_stat['stream_status'] = $this->GetStreamStatus();
$this->sc_stat['broadcasting'] = $this->GetStreamStatus();

$this->sc_stat['stream_bitrate'] = $this->GetBitRate();

$this->sc_stat['song_history_array'] = $this->GetSongHistory();
$this->sc_stat['listeners_array'] = $this->GetListeners();

$this->sc_star['error'] = $this->geterror();

return(1);
}
}

function GetCurrentListenersCount() {
return($this->_values[$this->_indexes["CURRENTLISTENERS"][0]]["value"]);
}

function GetPeakListenersCount() {
return($this->_values[$this->_indexes["PEAKLISTENERS"][0]]["value"]);
}

function GetMaxListenersCount() {
return($this->_values[$this->_indexes["MAXLISTENERS"][0]]["value"]);
}

function GetReportedListenersCount() {
return($this->_values[$this->_indexes["REPORTEDLISTENERS"][0]]["value"]);
}

function GetAverageListenTime() {
return($this->_values[$this->_indexes["AVERAGETIME"][0]]["value"]);
}

function GetServerGenre() {
return($this->_values[$this->_indexes["SERVERGENRE"][0]]["value"]);
}

function GetServerURL() {
return($this->_values[$this->_indexes["SERVERURL"][0]]["value"]);
}

function GetServerTitle() {
return($this->_values[$this->_indexes["SERVERTITLE"][0]]["value"]);
}

function GetCurrentSongTitle() {
return($this->_values[$this->_indexes["SONGTITLE"][0]]["value"]);
}

function GetIRC() {
return($this->_values[$this->_indexes["IRC"][0]]["value"]);
}

function GetAIM() {
return($this->_values[$this->_indexes["AIM"][0]]["value"]);
}

function GetICQ() {
return($this->_values[$this->_indexes["ICQ"][0]]["value"]);
}

function GetWebHitsCount() {
return($this->_values[$this->_indexes["WEBHITS"][0]]["value"]);
}

function GetStreamHitsCount() {
return($this->_values[$this->_indexes["STREAMHITS"][0]]["value"]);
}

function GetStreamStatus() {
return($this->_values[$this->_indexes["STREAMSTATUS"][0]]["value"]);
}

function GetBitRate() {
return($this->_values[$this->_indexes["BITRATE"][0]]["value"]);
}

function GetSongHistory() {
for($i=1;$i<sizeof($this->_indexes['TITLE']);$i++) {
$arrhistory[$i-1] = array(
'date' => $this->_values[$this->_indexes['PLAYEDAT'][$i]]['value'],
'title' => $this->_values[$this->_indexes['TITLE'][$i]]['value']
);
}

return($arrhistory);
}

function GetListeners() {
for($i=0;$i<sizeof($this->_indexes['USERAGENT']);$i++) {
$arrlisteners[$i] = array(
'hostname' => $this->_values[$this->_indexes['HOSTNAME'][$i]]['value'],
'useragent' => $this->_values[$this->_indexes['USERAGENT'][$i]]['value'],
'underruns' => $this->_values[$this->_indexes['UNDERRUNS'][$i]]['value'],
'connecttime' => $this->_values[$this->_indexes['CONNECTTIME'][$i]]['value'],
'pointer' => $this->_values[$this->_indexes['POINTER'][$i]]['value'],
'uid' => $this->_values[$this->_indexes['UID'][$i]]['value'],
);
}

return($arrlisteners);
}

function geterror() { return($this->_error); }
}


?>
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

Try this:

Code: Select all

$this->host="http://$host/";
into

Code: Select all

$this->host=$host;
I'm signing into MSN.
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

tried it and im giving up on this mod..
User avatar
danopia
Registered User
Posts: 436
Joined: Thu Aug 31, 2006 6:12 pm
Location: Landisville, NJ
Name: Daniel Lamando
Contact:

Post by danopia »

The SHOUTcast server that you are running wants extra data, which is a user/pass combinataion. Please PM them to me.
Hackers are not criminals. Hackers are the only people out there to keep crackers and virus coders on the run. Hackers are misconstrued by the media, but in reality, they do not cause damage or steal. Hackers tell system administrators of the faults of their software, and keep the Internet safe from those who don't.

phpBB3 MODs: Simple Topic Calendar
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

in your pm..
User avatar
rtrev64
Registered User
Posts: 286
Joined: Wed Nov 24, 2004 5:35 am
Contact:

Post by rtrev64 »

I think this is a seperate problem and why the problem mod cant be solved..

the fsock error normally means your webhost doesnt allow the script to run and doesnt have the ports open on the web server.
Post Reply

Return to “[2.0.x] MOD Requests”