Works fine for me just one thing though it updates to the IRC Chan all most instantly but then it sits there for a minute or so b4 it post the actual message in the forum?
Great work btw :-)
Code:
<?
global $goto, $DB_site, $Action, $ircdata;
$fp = fsockopen ($ircdata[ircserver], $ircdata[ircport], $errno, $errstr, 30);
if (!$fp)
{
echo "$errstr ($errno)<br>\n";
}
else
{
if($Action == 'new')
{
global $postusername, $subject, $forumid;
$forumname = $DB_site->query_first("SELECT title FROM forum WHERE forumid=".$forumid);
fputs($fp,"8,5 New thread in: \002" .$forumname[title]. ".\002 Poster: \002".$postusername.".\002 Subject: \002 ".$subject.".\002 LINK: \002 http://www.simplymaya.co.uk/forums/".$goto.". \002 \n\n");
for($i=0;$i<30000;$i++)
{
$g=$i;
}
}
else
{
global $postusername, $subject, $forumid, $threadinfo;
$forumname = $DB_site->query_first("SELECT title FROM forum WHERE forumid=".$forumid);
fputs($fp," 5,15New reply in: \002".$forumname[title]." \002 Subject: \002".$threadinfo[title].".\002 Thread starter: \002".$threadinfo[postusername]."\002, Replies:\002".($threadinfo[replycount] + 1).". \002 \n\n\n");
for($i=0;$i<30000;$i++)
{
$g=$i;
}
}
fputs($fp, "QUIT :Message delivered\n");
fclose ($fp);
}
?>
I modified the irc.php file works like a dream now thanks very much