if ($subject == '') { $s_error = true; $count++; } if ($comments == '') { $c_error = true; $count++; } if ($SETTINGS->enableCaptcha) { if (!PhpCaptcha::Validate($code)) { $code_error = true; $count++; } } if ($count == 0) { $MW_MAIL->sendMail($SETTINGS->name, $SETTINGS->email, $name, $email, '[' . $SETTINGS->website . '] ' . $subject, $comments); // Clear vars.. $name = ''; $email = ''; $subject = ''; $comments = ''; $SENT = true; } } $pageTitle = cleanData($SETTINGS->blogname) . ' - ' . $msg_public_header4; include FOLDER_PATH . 'inc/header.php'; //$tpl_contact->assign('CODE_ERROR', (isset($code_error) ? '<br /><span class="error">'.$msg_contact12.'</span>' : '')); //$tpl_contact->assign('CODE', $msg_contact6); $tpl_contact = new Savant2(); $tpl_contact->assign('MESSAGE', isset($SENT) ? $msg_contact13 : $msg_contact); $tpl_contact->assign('C_URL', $SETTINGS->w_path . '/' . ($SETTINGS->modR ? 'contact.html' : 'index.php?cmd=contact'));