Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Piatok, 13. november 2026

Rozdiely pre Metafox/functions.inc.php medzi verziami 1.18 a 1.19

verzia 1.18, 2006/05/22 10:12:07 verzia 1.19, 2006/06/12 16:32:48
Riadok 633  function ezin_message_process($full, $me
Riadok 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  = '';
Riadok 674  function ezin_feedback_send_notify_email
Riadok 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);
 } /* }}} */  } /* }}} */
   
 /*  /*
Riadok 716  function ezin_load_template($template_ke
Riadok 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:
Odstranené z verzie1.18  
zmenené riadky
  Pridané vo verzii1.19

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok