]*>)","",$writebody); $arrsort=getsort(); $returnreceipt = $arrsort['WRITERETURNREC']; if ($writesentcopy) $xwritesentcopy = $writesentcopy; getusersettings($id, $signature, $delete_move, $writesentcopy, $shownumber,$forwardtext, $other); //title $skindata['title'] = $otherconfig["TITLETEXT"] . nametitle() .' - '. $lang[MSG_WRITEMESSAGE] ; //pagetitle $skindata['pagetitle']= $lang[MSG_WRITEMESSAGE]; if($sendinv) //send invitations [from AddEvent] { $writeto=trim($writeto); $writeto=str_replace(" ","",$writeto); $writesubject= sprintf($invitationtxt['SUBJECT'],$inv_tit,$inv_time); $writebody = sprintf($invitationtxt['MESSAGE'],$inv_tit,$inv_time,$inv_cat,$inv_loc,$inv_note,str_replace(";","\r\n",$writeto)); } $createdata .= '
'.($lang[MSG_ATTACHPROGRESS]?sprintf($lang[MSG_ATTACHPROGRESS],''):'').'
  
'; if(!$otherconfig["DISABLEHTML"]) { // $createdata.=' '; } getusersession($id, $user, $config); if (!$xwritesentcopy) $xwritesentcopy = $writesentcopy; if (!$nosignature && trim($signature)) { $signature = "\r\n\r\n" . $signature . "\r\n"; if (!$other["SIGNATURETOP"]) $writebody .= $signature; else $writebody = $signature . $writebody; } if($showlite==2) $createdata .= ''; $createdata .= '
'.($redirect?'':'').' '. $lang[MSG_PRIORITY].' : 
'; if ($other["PERSONALITIES"]) { $createdata .= ' '; } $createdata.='
'. $lang[MSG_FROM].' : 
'. $lang[MSG_SUBJECT].' :
'; if(!$otherconfig["DISABLEHTML"] && !$redirect) { $createdata.=' '; } $createdata.='
'.$lang['MSG_SENDASHTML'].'   '.$lang['MSG_CHARSET'].' :  '.$lang[MSG_ENCRYPT].'   '.$lang[MSG_SIGN].'
'.($redirect?'':'').'
'; if (!$redirect) { $createdata .='
'; if ($usessid) { require_once('inc/function.view.php'); $oAttach = new upAttachment($usessid); $usessid = $oAttach->sUSessId; $aAtt_array = $oAttach->getAttachments(); if (is_array($aAtt_array)) { if ($attbox && !is_array($attbox)) $attbox = explode(";",$attbox); foreach($aAtt_array as $aAtt) { $check = true; if (($action=='forward' && $aAtt['type']!=='message/rfc822') || ($action=='reply' || $action=='reply_delete' || $action=='reply_all')) $check = false; elseif (is_array($attbox) && !in_array($aAtt['id'],$attbox)) $check = false; $cdata .= '\r\n"; if ($aAtt['type']=='message/rfc822') $cdata .= '
'; } $createdata .= $cdata; } } $createdata .='
'; } $createdata .='
'; if (!$redirect) { $createdata .='
'; } $createdata .= '
'; //folder select $folders = getfolders($id); getoptionfolder($id,$folders,$copyfolder?$copyfolder:sentfolder,0,$folderlist); $createselect =''; $createdata .= ' '; if($Old_Message) $createdata .=''; $createdata .='
'. sprintf($lang[MSG_COPYTOSENTFOLDER],$createselect).' '. $lang[MSG_RETURNRECEIPT].''. $lang[MSG_DELETEMESSAGE].'
'; if(!$showlite) $createdata.='
'. copyright().'
'; $skindata['data'] = $createdata; //vypsani stranky if($showlite) echo template( $skin_dir . 'blank.tpl', $skindata); else echo template( $skin_dir . 'skin.tpl', $skindata); ?>