//Email all users about this reply if allowed if ($emailusers == 1) { if ($row = db_sendMails(0, $Tu, $Ts)) { do { if ($row[0] != '') { sendMail($row[0], $sub, $msg, $admin_email, $admin_email); } } while ($row = db_sendMails(1, $Tu, $Ts)); } } //Email admin if allowed if (isset($emailadmposts) and $emailadmposts == 1 and $user_id != 1) { sendMail($admin_email, $sub, $msg, $admin_email, $admin_email); } //Insert user into email notifies if allowed if (isset($_POST['CheckSendMail']) and emailCheckBox() != '' and substr(emailCheckBox(), 0, 8) != '<!--U-->') { $ae = db_simpleSelect(0, $Ts, 'count(*)', 'user_id', '=', $user_id, '', '', 'topic_id', '=', $topic); $ae = $ae[0]; if ($ae == 0) { $topic_id = $topic; insertArray(array('user_id', 'topic_id'), $Ts); } } } //inserted post successfully } else { $errorMSG = $l_antiSpam; $correctErr = $backErrorLink; $title .= $l_antiSpam; echo load_header(); echo ParseTpl(makeUp('main_warning'));
if ($requestUrl != $origUrl and !defined('NO_RELOC')) { header("HTTP/1.1 301 Moved Permanently"); if (isset($metaLocation)) { $meta_relocate = "{$origUrl}"; echo ParseTpl(makeUp($metaLocation)); exit; } else { header("Location: {$origUrl}"); exit; } } /* --Redirect... */ /* form reply */ $l_messageABC = $l_sub_answer; if ($topicStatus != 1) { $emailCheckBox = emailCheckBox(); $allowForm = ($user_id == 1 or $isMod == 1); $c1 = (in_array($forum, $clForums) and isset($clForumsUsers[$forum]) and !in_array($user_id, $clForumsUsers[$forum]) and !$allowForm); $c4 = (isset($roForums) and in_array($forum, $roForums) and !($user_id == 1 or $isMod == 1)); if ($c1 or $c4) { $mainPostForm = ''; $mainPostArea = ''; $nTop = 0; $displayQuote = 'false'; } else { $backToPostLink = "<a href=\"JavaScript:getToPost();\"><img src=\"{$main_url}/img/up.gif\" style=\"width:8px;height:8px\" alt=\"{$l_backToPostLink}\" title=\"{$l_backToPostLink}\" /></a>"; //dynamic BB buttons $mpf = ParseTpl(makeUp('main_post_form')); $mpfs = convertBBJS($mpf); if ($mpfs != '') { $mainPostForm = $mpfs;