Example #1
0
     if (!($to_one != -1 && $to != '')) {
         $to = $replyto = preg_replace(array('/;|#|\\|/'), array(','), stripslashes($cformsSettings['form' . $no]['cforms' . $no . '_email']));
     }
 }
 ### T-A-F overwrite
 if ($taf_youremail && $taf_friendsemail && $isTAF == '1') {
     $replyto = "\"{$taf_yourname}\" <{$taf_youremail}>";
 }
 ###
 ###  Files attached?? create $_SESSION['cforms']['upload'] via cf_move_files()
 ###
 if (is_array($file)) {
     if ($subID != -1 && $ongoingSession != '0') {
         cf_move_files(&$track, $no, $subID);
     } else {
         cf_move_files(&$track, $no, 'xx');
     }
 }
 ### end of session:
 if ($ongoingSession == '0' && is_array($_SESSION['cforms']['upload'])) {
     foreach (array_keys($_SESSION['cforms']['upload']) as $n) {
         foreach (array_keys($_SESSION['cforms']['upload'][$n]['files']) as $m) {
             if (file_exists($_SESSION['cforms']['upload'][$n]['files'][$m])) {
                 rename($_SESSION['cforms']['upload'][$n]['files'][$m], str_replace('xx', $subID, $_SESSION['cforms']['upload'][$n]['files'][$m]));
             }
         }
     }
 }
 ###
 ###  ready to send email
 ###
Example #2
0
     if (!($to_one != -1 && $to != '')) {
         $to = $replyto = preg_replace(array('/;|#|\\|/'), array(','), stripslashes($cformsSettings['form' . $no]['cforms' . $no . '_email']));
     }
 }
 ### T-A-F overwrite
 if ($taf_youremail && $taf_friendsemail && $isTAF == '1') {
     $replyto = "\"{$taf_yourname}\" <{$taf_youremail}>";
 }
 ###
 ###  Files attached??
 ###
 if (is_array($file)) {
     if ($subID != -1 && $inSession != '0') {
         cf_move_files($no, $subID);
     } else {
         cf_move_files($no, 'xx');
     }
 }
 if ($inSession == '0' && is_array($_SESSION['cforms']['upload'])) {
     foreach (array_keys($_SESSION['cforms']['upload']) as $n) {
         foreach (array_keys($_SESSION['cforms']['upload'][$n]) as $m) {
             if (file_exists($_SESSION['cforms']['upload'][$n][$m])) {
                 rename($_SESSION['cforms']['upload'][$n][$m], str_replace('xx', $subID, $_SESSION['cforms']['upload'][$n][$m]));
             }
         }
     }
 }
 ###
 ###  ready to send email
 ###
 ###