EXPIRED /*******************************************\ * * * Generic ArticleLive Panel Parsing Class * * * \*******************************************/ $panelClass = "AL_SUBMITCOMMENT_PANEL"; if(!class_exists($panelClass)){ CLASS AL_SUBMITCOMMENT_PANEL { var $_htmlFile; function AL_SUBMITCOMMENT_PANEL($HTMLFile) { $this->_htmlFile = $HTMLFile; } function ParsePanel() { $htmlPanelData = ""; $parsedPanelData = ""; if(file_exists($this->_htmlFile)) { if($fp = @fopen($this->_htmlFile, "rb")) { while(!feof($fp)) $htmlPanelData .= fgets($fp, 4096); @fclose($fp); } } // Has a comment just been posted? if(isset($GLOBALS["HideForm"])) { $GLOBALS["ContentId"] = $_GET["ContentId"]; $GLOBALS["ContentType"] = $_GET["ContentType"]; $title = AL_HELPER::GetContentTitle($GLOBALS["ContentId"], $GLOBALS["ContentType"]); if($GLOBALS["AL_CFG"]["AutoApproveComments"] == 0) { if($GLOBALS["ContentType"] == 1) { $link = sprintf("%s/articles/%d/1/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["ContentId"], AL_HELPER::_MakeURLSafe($title)); $GLOBALS["CommentDoneText"] = sprintf("%s. %s", sprintf($GLOBALS["AL_LANG"]["comSubmittedPending"], $title), $link, $GLOBALS["AL_LANG"]["hpContinue"]); } else { $link = sprintf("%s/blogs/%d/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["ContentId"], AL_HELPER::_MakeURLSafe($title)); $GLOBALS["CommentDoneText"] = sprintf("%s. %s", sprintf($GLOBALS["AL_LANG"]["comSubmittedPending1"], $title), $link, $GLOBALS["AL_LANG"]["hpContinue"]); } } else { if($GLOBALS["ContentType"] == 1) { $link = sprintf("%s/articles/%d/1/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["ContentId"], AL_HELPER::_MakeURLSafe($title)); $GLOBALS["CommentDoneText"] = sprintf("%s. %s", sprintf($GLOBALS["AL_LANG"]["comSubmittedApproved"], $title), $link, $GLOBALS["AL_LANG"]["hpContinue"]); } else { $link = sprintf("%s/blogs/%d/%s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["ContentId"], AL_HELPER::_MakeURLSafe($title)); $GLOBALS["CommentDoneText"] = sprintf("%s. %s", sprintf($GLOBALS["AL_LANG"]["comSubmittedApproved1"], $title), $link, $GLOBALS["AL_LANG"]["hpContinue"]); } } } else { $GLOBALS["HideMessage"] = "none"; } // Parse the panel of tokens, etc $GLOBALS["Trail"] = $this->GetTrail($GLOBALS["ContentId"], $GLOBALS["ContentType"]); $GLOBALS["RatingRadios"] = $this->GetArticleRatingRadios(); $GLOBALS["SiteURL"] = $GLOBALS["AL_CFG"]["siteURL"]; $GLOBALS["Script"] = $GLOBALS["AL_CLASS_TEMPLATE"]->GetAndParseFile("javascript/formUtil.js"); if($GLOBALS["ContentType"] == 1 && $GLOBALS["AL_CFG"]["EnableArticleRating"]) { $GLOBALS["CheckFunction"] = "CheckArticleCommentForm1"; $GLOBALS["Dest"] = "articles"; } else { $GLOBALS["CheckFunction"] = "CheckArticleCommentForm2"; $GLOBALS["Dest"] = "blogs"; } $parsedPanelData = $GLOBALS["AL_CLASS_TEMPLATE"]->ParseGL($htmlPanelData); return $parsedPanelData; } function GetArticleRatingRadios() { $output = ""; if($GLOBALS["ContentType"] == 1 && $GLOBALS["AL_CFG"]["EnableArticleRating"]) { $output = sprintf(" * %s:
1 2 3 4 5
%s %s
", $GLOBALS["AL_LANG"]["hpRating"], $GLOBALS["AL_LANG"]["artPoor"], $GLOBALS["AL_LANG"]["artExcellent"]); } return $output; } function GetTrail($ContentId, $ContentType) { // Build the category trail for the new comment form $output = ""; if($ContentType == 1) $query = sprintf("select * from %sarticles where ArticleID='%d'", $GLOBALS["AL_CFG"]["tablePrefix"], $ContentId); else $query = sprintf("select * from %sblogs where EntryID='%d'", $GLOBALS["AL_CFG"]["tablePrefix"], $ContentId); $result = mysql_query($query); if($row = mysql_fetch_array($result)) { $output .= sprintf("  »  %s ", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["AL_LANG"]["hpHome"]); if($ContentType == 1) { $output .= sprintf("  »  %s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["AL_LANG"]["artArticles"]); $output .= sprintf("  »  %s", $GLOBALS["AL_CFG"]["siteURL"], $row["ArticleID"], AL_HELPER::_MakeURLSafe($row["Title"]), $row["Title"]); } else { $output .= sprintf("  »  %s", $GLOBALS["AL_CFG"]["siteURL"], $GLOBALS["AL_LANG"]["blgBlogs"]); $output .= sprintf("  »  %s", $GLOBALS["AL_CFG"]["siteURL"], $row["EntryID"], AL_HELPER::_MakeURLSafe($row["Title"]), $row["Title"]); } $output .= sprintf("  »  %s", $GLOBALS["AL_LANG"]["artSubmitComment"]); } return $output; } } } ?>
Parse error: syntax error, unexpected '(', expecting T_STRING or T_VARIABLE or '$' in /home/pmrssco/public_html/log/includes/classes/class.template.php(283) : eval()'d code on line 1

Fatal error: Call to a member function on a non-object in /home/pmrssco/public_html/log/includes/classes/class.template.php on line 284