PageCompThird_db_num); } function PageCompPageMainCodeWithForm() { global $oTemplConfig; global $site; $sActionText = ''; if( isset($_POST['do_submit']) ) { if (!isset($_POST['securityImageValue']) || !isset($_COOKIE['strSec']) || md5($_POST['securityImageValue']) != $_COOKIE['strSec']) { $sActionText = _t_err( '_SIMG_ERR' ); } else { $sSenderName = process_pass_data( $_POST['name'] ); $sSenderEmail = process_pass_data( $_POST['email'] ); $sLetterSubject = process_pass_data( $_POST['subject'] ); $sLetterBody = process_pass_data( $_POST['body'] ); $sLetterBody = $sLetterBody . "\r\n" . '============' . "\r\n" . _t('_from') . ' ' . $sSenderName . "\r\n" . 'with email ' . $sSenderEmail; if( sendMail( $site['email'], $sLetterSubject, $sLetterBody ) ) { $sActionText = _t_action('_ADM_PROFILE_SEND_MSG'); } else { $sActionText = _t_err( '_Email sent failed' ); } } } ob_start(); echo $sActionText; ?>
:
:
:
:
Security Image
PageCompThird_db_num); } ?>