Go to the documentation of this file.
    8 require_once( 
'inc/header.inc.php' );
 
    9 require_once( CH_DIRECTORY_PATH_INC . 
'design.inc.php' );
 
   10 require_once( CH_DIRECTORY_PATH_INC . 
'utils.inc.php' );
 
   53         'form_attrs' => array(
 
   54             'id' => 
'post_us_form',
 
   55             'action' => CH_WSB_URL_ROOT . 
'contact.php',
 
   60                 'submit_name' => 
'do_submit',
 
   67                 'caption' => 
_t(
'_Your name'),
 
   71                     'params' => array(1, 150),
 
   72                     'error' => 
_t( 
'_Name is required' )
 
   78                 'caption' => 
_t(
'_Your email'),
 
   82                     'error' => 
_t( 
'_Incorrect Email' )
 
   85             'message_subject' => array(
 
   88                 'caption' => 
_t(
'_message_subject'),
 
   92                     'params' => array(5, 300),
 
   93                     'error' => 
_t( 
'_ps_ferr_incorrect_length' )
 
   96             'message_text' => array(
 
   99                 'caption' => 
_t(
'_Message text'),
 
  103                     'params' => array(10, 5000),
 
  104                     'error' => 
_t( 
'_ps_ferr_incorrect_length' )
 
  109                 'caption' => 
_t(
'_Enter what you see'),
 
  110                 'name' => 
'securityImageValue',
 
  114                     'error' => 
_t( 
'_Incorrect Captcha' ),
 
  119                 'name' => 
'do_submit',
 
  120                 'value' => 
_t(
'_Submit'),
 
  128     if ( 
$oForm->isSubmittedAndValid() ) {
 
  134         $sLetterBody = $sLetterBody . 
"\r\n" . 
'============' . 
"\r\n" . 
_t(
'_from') . 
' ' . $sSenderName . 
"\r\n" . 
'with email ' .  $sSenderEmail;
 
  136         if (
sendMail(
$site[
'email'], $sLetterSubject, $sLetterBody)) {
 
  137             $sActionKey = 
'_ADM_PROFILE_SEND_MSG';
 
  139             $sActionKey = 
'_Email sent failed';
 
  141         $sActionText = 
MsgBox(
_t($sActionKey));
 
  
if(!defined("TRUE_VAL")) define("TRUE_VAL" true
 
MsgBox($sText, $iTimer=0)
 
$_page_cont[$_ni]['page_main_code']
 
sendMail( $sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID=0, $aPlus=array(), $sEmailFlag='html', $isDisableAlert=false, $bForceSend=false)
 
getParam($sParamName, $bUseCache=true)
 
_t($key, $arg0="", $arg1="", $arg2="")
 
PageCode($oTemplate=null)
 
process_pass_data($text, $strip_tags=0)
 
DesignBoxContent($title, $content, $db_num=0, $caption_item='', $bottom_item='')
 
if(!defined("FALSE_VAL")) define("FALSE_VAL" false