| version 1.15, 2014/04/23 18:00:56 |
version 1.16, 2018/03/25 00:08:49 |
|
|
| * 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"> </td></tr>'."\n"; |
$content .= '<tr><td colspan="2"> </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"> </td></tr>'; |
$content .= '<tr><td colspan="2"> </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>"; |
| } |
} |