Quote:
Originally posted by mADmAX`
Well, I didnt make the changes in newreply and new thread to the changes for this way, so I just did (dont know if they are the same).
I get a parse error and wondering something...
$ircdata = $DB_site->query_first("SELECT * FROM ircaddon");
if($ircdata[ircthread] == "1") {
$Action = "new";
$fid = trim($ircdata[ircforum]);
$ircforum=explode(" ", preg_replace("/[[:space:]]+/", " ", $fid) );
while (list($key,$val)=each($ircforum))
{
if ((strstr(" ".$forumid," ".trim($val))!="") || ($ircdata[ircforum] == 0))
{
require("irc.php");
}
"Seems theres two } 's missing but I do not know where they belong?"
|
this is the part of my newthread.php
PHP Code:
$goto="showthread.php?s=$session[sessionhash]&threadid=$threadid";
} else {
$goto="forumdisplay.php?s=$session[sessionhash]&forumid=$forumid";
}
// Create a notice on irc channel
$ircdata = $DB_site->query_first("SELECT * FROM ircaddon");
if($ircdata[ircthread] == "1") {
$Action = "new";
$fid = trim($ircdata[ircforum]);
$ircforum=explode(" ", preg_replace("/[[:space:]]+/", " ", $fid) );
while (list($key,$val)=each($ircforum))
{
if ((strstr(" ".$forumid," ".trim($val))!="") || ($ircdata[ircforum] == 0))
{
require("irc.php");
}
}
}
eval("standardredirect(\"".gettemplate("redirect_postthanks")."\",\"$goto\");");
}
}
}
// ############################### start new thread ###############################
if ($action=="newthread") {
// $foruminfo=getforuminfo($forumid);
$message = htmlspecialchars($message); // Without this, a </textarea> in the message breaks the form on preview
$subject = htmlspecialchars($subject);
this is something u can compare with
it runns exellent with my crap
but
i know there are some problems with newreply, but thats of later concern, it should notfiy whit the ++++ i gave u, unless u got connection refused..