new error handler - needs some more work, but works already:

- errors are gathered through all pages till displayed
 - errors are displayed in main footer
 - configurable error gathering
 - configurable error displaying
 - configurable error logging
This commit is contained in:
Sebastian Mendel
2007-10-08 14:58:18 +00:00
parent bed8a4cc50
commit e623dc42cf
5 changed files with 952 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ if (! PMA_isValid($_REQUEST['no_history']) && empty($GLOBALS['error_message'])
$GLOBALS['sql_query']);
}
if ($GLOBALS['error_handler']->hasDisplayErrors()) {
echo '<div>';
$GLOBALS['error_handler']->dispErrors();
echo '</div>';
}
if (count($GLOBALS['footnotes'])) {
echo '<div class="notice">';
foreach ($GLOBALS['footnotes'] as $footnote) {