Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, November 12, 2026

Diff for Metafox/functions.inc.php between version 1.18 and 1.19

version 1.18, 2006/05/22 10:12:07 version 1.19, 2006/06/12 16:32:48
Line 633  function ezin_message_process($full, $me
Line 633  function ezin_message_process($full, $me
 function ezin_feedback_send_notify_email($data) /* {{{ */  function ezin_feedback_send_notify_email($data) /* {{{ */
 {  {
         global $ezin_sys, $ezin_cfg;          global $ezin_sys, $ezin_cfg;
         if (! isset($ezin_cfg['feedback_email']) || strlen($ezin_cfg['feedback_email']) <= 0) {  
                 return true;  
         }  
         $from     = '';          $from     = '';
           $to       = '';
         $subject  = '';          $subject  = '';
         $encoding = '';          $encoding = '';
         $message  = '';          $message  = '';
Line 674  function ezin_feedback_send_notify_email
Line 672  function ezin_feedback_send_notify_email
                 @$tmpl->Output();                  @$tmpl->Output();
                 $message = ob_get_contents();                  $message = ob_get_contents();
                 ob_end_clean();                  ob_end_clean();
                 $message = ezin_email_template_parse($message, $from, $subject, $encoding);                  $message = ezin_email_template_parse($message, $from, $to, $subject, $encoding);
         }          }
         empty($subject) && $subject = sprintf('%s: feedback', $ezin_cfg['name']);          empty($subject) && $subject = sprintf('%s: feedback', $ezin_cfg['name']);
         return ezin_email_send($ezin_cfg['feedback_email'], $from, $subject, $encoding, $message);          if (strlen($to) <= 0) {
                   $to = $ezin_cfg['feedback_email'];
           }
           return ezin_email_send($to, $from, $subject, $encoding, $message);
 } /* }}} */  } /* }}} */
   
 /*  /*
Line 716  function ezin_load_template($template_ke
Line 717  function ezin_load_template($template_ke
         return false;          return false;
 } /* }}} */  } /* }}} */
   
 function ezin_email_template_parse($message, &$from, &$subject, &$encoding) /* {{{ */  function ezin_email_template_parse($message, &$from, &$to, &$subject, &$encoding) /* {{{ */
 {  {
         $match = array();          $match = array();
         preg_match("/^(From:(.*?)[\r\n]+?)?(Subject:(.*?)[\r\n]+?)?(Charset:(.*?)[\r\n]+?)?(.*?)$/is", $message, $match);          preg_match("/^(From:(.*?)[\r\n]+?)?(To:(.*?)[\r\n]+?)?(Subject:(.*?)[\r\n]+?)?(Charset:(.*?)[\r\n]+?)?(.*?)$/is", $message, $match);
         $message  = ( isset($match[7]) ) ? trim($match[7]) : '';          $message  = ( isset($match[9]) ) ? trim($match[9]) : '';
         $from     = ( trim($match[2]) != '' ) ? trim($match[2]) : '';          $from     = ( trim($match[2]) != '' ) ? trim($match[2]) : '';
         $subject  = ( trim($match[4]) != '' ) ? trim($match[4]) : '';          $to       = ( trim($match[4]) != '' ) ? trim($match[4]) : '';
         $encoding = ( trim($match[6]) != '' ) ? trim($match[6]) : '';          $subject  = ( trim($match[6]) != '' ) ? trim($match[6]) : '';
           $encoding = ( trim($match[8]) != '' ) ? trim($match[8]) : '';
         return $message;          return $message;
 } /* }}} */  } /* }}} */
   

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top