This hack would actually be quite difficult, as a server as alot of ports blocked with the firewall, so you wouldnt be able to open a socket to the mIRC. The only solution i see is a timer that checks the contents of a file.
Code:
on *:SOCKOPEN:forumlist: {
sockwrite -n $sockname GET /lastest.php?forumid=1 HTTP/1.0
sockwrite -n $sockname Accept: */*
sockwrite -n $sockname User-Agent: mIRC
sockwrite -n $sockname Host: forums.domain.com
sockwrite -n $sockname $crlf
}
on *:SOCKREAD:forumlist: {
:read
sockread %tmp
tokenize 32 %tmp
if ($sockbr) {
if (%tmp != $null) { /write forums.txt %tmp }
goto read
}
docheck
}
alias docheck {
var %ltime = $read(forums.txt , 1)
if (%ltime < ($ctime - 60)) {
msg #channel A new post has been posted by $read(forums.txt, 2) called $read(forums.txt, 3)
}
}
docheck {
/timer69 60 0 /sockopen forumlist forums.domain.com 80
}
this would do for the miRC side of stuff, I will try and do the php stuff a bit later.