php program
"Martin Sarsini" <[email protected]> Wed, 23 Nov 2005 14:00:36 +0100
| Newsgroups | gmane.network.irc.blitzed.web |
|---|---|
| Message-ID | <000501c5f02d$e60b9340$0200a8c0@server> |
Dear staff,
the php program that shows on my website the number and the usernames that
are on my irc channel is not working.
If I use it with the chan #Todi it's all right, but if I use it with the
chan #UmbriaVillage it's not working, it shows me something like this:
In the chat-room there is 1 users: No auth,
It tell's me "No auth" instead of username
I am sure that the password of the chan is right
The code used is the following:
<?php
if ( $listfile =
fopen("http://scripts.blitzed.org/chanuserlist?channel=%23UmbriaVillage&pass=password",
"r") ) {
$users = "";
$fullfile = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$fullfile .= $nickname;
$count++;
}
} else {
$myuserlist = $lang['IRC_memberlist_offline'];
$nickname = "";
$listfile = "";
$count = 0;
$users = "";
$thingydingy = 0;
}
if ( $thingydingy == 1 ) {
// Remove , from end
$users = ereg_replace(', $', "", $users);
$myuserlist = $lang['IRC_memberlist']." <b>$count</b><br />\n$users";
$myuserlist;
}
echo "Nella chat-room ci sono <b>" . $count . "</b> utenti<br />";
echo $users;
?>
Please let me know
Kind Regards
Martin Sarsini