ShoutCast Query
Posted by HellRaz0r
Monday, November 06, 2006
Description: uses 7.html to display server info.


on *:text:@scast:#channel:{ scast ip:port all $chan }
on *:text:@listeners:#channel:{ scast ip:port Listeners $chan }

;/scast <ip:port> <Field> [MsgTarget]
;Fields: all, listeners, status, peak, maxlisteners, uniquelisteners, bitrate, song.
alias scast {
  if ($0 < 2) || (#* iswm $2) echo -a Invalid syntax, use the command like this: /scast <ip:port> <Field> [MsgTarget]
  else {
    var %sockname = scast- $+ $ticks
    sockopen %sockname $replace($1,:,$chr(32))
    sockmark %sockname $1

    hadd -m %sockname field $$2
    hadd -m %sockname target $$3
  }
}
on *:sockopen:scast-*: {
  if ($sockerr) {
    echo -a Failled to connect to server.
    .hfree -sw $sockname
    halt
  }
  sockwrite -n $sockname GET /7.html HTTP/1.0
  sockwrite -n $sockname User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; DigExt)
  sockwrite -n $sockname Host: $sock($sockname).mark
  sockwrite -n $sockname Connection: Close
  sockwrite -n $sockname $crlf
}
on *:sockread:scast-*: {
  sockread -fn &bin
  if ($regex($bvar(&bin,1,400).text,<body>(.*)<\/body>)) {
    tokenize 44 $regml(1)
    hadd -m $sockname listeners $1
    hadd -m $sockname status $iif($2 == 1,Online,Offline)
    hadd -m $sockname peak $3
    hadd -m $sockname maxlisteners $4
    hadd -m $sockname uniquelisteners $5
    hadd -m $sockname bitrate $+($6,KB/s)
    hadd -m $sockname song $7-
  }
}
on *:sockclose:scast-*:{
  if ($hget($sockname,target)) {
    var %targ = $v1, %field1 = $hget($sockname,field)
    if (%field1 == ALL) msg %targ [^B]Status:[^B] $hget($sockname,status) [^B]Song:[^B] $hget($sockname,song) [^B]Listeners:[^B] $hget($sockname,listeners) [^B]Peak Listeners:[^B] $hget($sockname,peak)
    elseif ($hget($sockname,%field1)) {
      var %field2 = $v1
      msg %targ $+([^B],%field1,[^B]) $+ : $hget($sockname,%field1)
    }
  }
  else {
    if ($hget($sockname,field)) {
      var %field = $v1
      if (%field == all) echo -a [^B]Status:[^B] $hget($sockname,status) [^B]Song:[^B] $hget($sockname,song) [^B]Listeners:[^B] $hget($sockname,listeners) [^B]Peak Listeners:[^B] $hget($sockname,peak)
      elseif ($hget($sockname,%field)) echo -a %field $+ : $v1
    }
    else {
      echo -a [^B]Status:[^B] $hget($sockname,status)
      echo -a [^B]Song:[^B] $iif($hget($sockname,song),$v1,None)
      echo -a [^B]Peak:[^B] $hget($sockname,peak)
      echo -a [^B]Listeners:[^B] $hget($sockname,listeners)
      echo -a [^B]Max Listeners:[^B] $hget($sockname,maxlisteners)
      echo -a [^B]Bitrate:[^B] $hget($sockname,bitrate)
    }
  }
  .hfree -sw $sockname
}

Subject line
Posted by hussleberry
Wednesday, March 14, 2007 08:31am PDT
all i get from this is failed to connect to server any help would be appreciated
How to Buy Cheap Airline Ticke
Posted by InebraSubre
Monday, April 05, 2010 12:17pm PDT

Ticket office in your office

We invite you to cooperate with travel agencies and large companies throughout Russia.

By using this site pososhok.ru, you can arrange the sale of tickets around the world every airline.

Contract with us, you get authorized access to our site and to receive a commission for the purchased tickets. You do not need to worry about the discharge and delivery of tickets - it is we ourselves.



<a href=http://buy-air-ticket.info/cheap-flights/>> cheap flights </a>

<a href=http://online-cheap-flights.info/index.php?do=cat&category=international-flight-cali-columbia-tickets-buy>> international flight cali columbia tickets buy </a>


According to this objective can be said that filling out the form on our website under the heading "to 25000, you get far more results as:
- That would get online cash loan up to 25000 hryvnia you need only fill out a short form questionnaire and send it to our e-mail;
- Copies of documents (passport, identification code, statement of earnings) are not required;
- The decision is taken within 1-3 days, after which you can drive with the originals of these documents, to sign the loan agreement and on the same day to receive credit money. Ie, the bank once you arrive - for the money;
- Interest rate, initial payment and the form of loan is described on our website and is quite acceptable in the market of consumer cash lending.

Such an option of obtaining a loan of course, too difficult to characterize as a full online credit because the bank will still have to come and the money you bring home, no one, but in spite of that savings in time for the face and call it the fastest you can safely.
<a href=http://loan-online-payday.info/index.php?do=cat&category=payday-loans-or-cash-advance-pays-and-free-first-t>payday loans or cash advance pays and free first </a>


<a href=http://payday-loan-canada.info/cash-advances-payday-loan/>> cash advances payday loan </a>
Submit a comment
Oops! You need to login or register before you can post a comment!

ebaum's world