assignInclude( "header", "./$skindir/header.tpl" ); $tpl->assignInclude( "footer", "./$skindir/footer.tpl" ); include("includes/pagesetup.php"); $output .= "

"._CONTACTUS."

"; if(isset($_POST['submit'])) { if($captcha && !isMEMBER && !captcha_confirm()) $output .= write_error(_CAPTCHAFAIL); else { include("includes/emailer.php"); $result = sendemail($sitename, $siteemail, $_POST['email'], $_POST['email'], (!empty($_POST['reportpage']) ? _REPORT.": " : "").descript(strip_tags($_POST['subject'])), format_story(descript($_POST['comments'])).(!empty($_POST['reportpage']) ? "

$url/".$_POST['reportpage']."" : "").(isMEMBER ? sprintf(_SITESIG2, "".USERPENNAME."") : _SITESIG), "html"); if($result) $output .= write_message(_EMAILSENT); else $output .= write_error(_EMAILFAILED); } } else { $output .= "
"; if(!$action) $output .= ""; else if($action == "report") $output .= ""; $output .= ""; if(!USERUID && !empty($captcha)) $output .= ""; $output .= "
"._CAPTCHANOTE."CAPTCHA image

"; } $tpl->assign( "output", $output ); $tpl->printToScreen(); dbclose( ); ?>