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.15 and 1.16

version 1.15, 2014/04/23 18:00:56 version 1.16, 2018/03/25 00:08:49
Line 17 
Line 17 
  * http://platon.sk/projects/Metafox/   * http://platon.sk/projects/Metafox/
  */   */
   
 /* $Platon: Metafox/error.inc.php,v 1.14 2012-09-28 18:49:48 nepto Exp $ */  /* $Platon: Metafox/error.inc.php,v 1.15 2014-04-23 18:00:56 igor Exp $ */
   
 require_once 'cfgldr.inc.php';  require_once 'cfgldr.inc.php';
 require_once 'functions.inc.php';  require_once 'functions.inc.php';
Line 79  function ezin_php_error_handler($errno,
Line 79  function ezin_php_error_handler($errno,
                 $content .= '<tr><td colspan="2">&nbsp;</td></tr>'."\n";                  $content .= '<tr><td colspan="2">&nbsp;</td></tr>'."\n";
                 foreach ($err_ar as $key => $val) {                  foreach ($err_ar as $key => $val) {
                         $content .= '<tr><td>';                          $content .= '<tr><td>';
                         $content .= '<b>' . htmlspecialchars($key) . '</b>';                          $content .= '<b>' . Platon::htmlspecialchars($key) . '</b>';
                         $content .= '</td><td>';                          $content .= '</td><td>';
                         $content .= htmlspecialchars($val);                          $content .= Platon::htmlspecialchars($val);
                         $content .= '</td></tr>'."\n";                          $content .= '</td></tr>'."\n";
                 }                  }
                 $content .= '<tr><td colspan="2">&nbsp;</td></tr>';                  $content .= '<tr><td colspan="2">&nbsp;</td></tr>';
Line 103  function ezin_php_error_handler($errno,
Line 103  function ezin_php_error_handler($errno,
                 }                  }
                 $tmpl->set($err_ar);                  $tmpl->set($err_ar);
                 ezin_substitute_basic_properties($tmpl);                  ezin_substitute_basic_properties($tmpl);
                 //echo(htmlspecialchars($tmpl->getCode()));                  //echo(Platon::htmlspecialchars($tmpl->getCode()));
                 @$tmpl->Output();                  @$tmpl->Output();
         } else {          } else {
                 echo $content;                  echo $content;
Line 133  function ezin_get_main_template_source($
Line 133  function ezin_get_main_template_source($
                         $val = trim(str_replace(';', ";\n      ", $val));                          $val = trim(str_replace(';', ";\n      ", $val));
                         $val = trim(str_replace('.\'', "\n      .'", $val));                          $val = trim(str_replace('.\'', "\n      .'", $val));
                 }                  }
                 $val = sprintf('%04d: %s', $index, htmlspecialchars($val));                  $val = sprintf('%04d: %s', $index, Platon::htmlspecialchars($val));
                 if ($index == $line_around) {                  if ($index == $line_around) {
                         $val = "<b>$val</b>";                          $val = "<b>$val</b>";
                 }                  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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