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/error.inc.php between version 1.3 and 1.4

version 1.3, 2005/11/15 17:16:36 version 1.4, 2006/06/12 16:32:48
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/error.inc.php,v 1.2 2005/08/13 23:06:13 nepto Exp $ */  /* $Platon: Metafox/error.inc.php,v 1.3 2005/11/15 17:16:36 nepto Exp $ */
   
 require_once 'config/loader.inc.php';  require_once 'config/loader.inc.php';
 Platon::redirect_test(basename(__FILE__), $ezin_cfg['url']);  Platon::redirect_test(basename(__FILE__), $ezin_cfg['url']);
Line 143  function ezin_get_main_template_source($
Line 143  function ezin_get_main_template_source($
 function ezin_error_send_notify_email($err_ar) /* {{{ */  function ezin_error_send_notify_email($err_ar) /* {{{ */
 {  {
         global $ezin_sys, $ezin_cfg;          global $ezin_sys, $ezin_cfg;
         if (! isset($ezin_cfg['admin_email']) || strlen($ezin_cfg['admin_email']) <= 0) {  
                 return true;  
         }  
         $from     = '';          $from     = '';
           $to       = '';
         $subject  = '';          $subject  = '';
         $encoding = '';          $encoding = '';
         $message  = '';          $message  = '';
Line 180  function ezin_error_send_notify_email($e
Line 178  function ezin_error_send_notify_email($e
                 @$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: error report', $ezin_cfg['name']);          empty($subject) && $subject = sprintf('%s: error report', $ezin_cfg['name']);
         return ezin_email_send($ezin_cfg['admin_email'], $from, $subject, $encoding, $message);          if (strlen($to) <= 0) {
                   $to = $ezin_cfg['admin_email'];
           }
           return ezin_email_send($to, $from, $subject, $encoding, $message);
 } /* }}} */  } /* }}} */
   
 error_reporting(E_ALL);  error_reporting(E_ALL);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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