diff --git a/htdocs/sql/libraries/footer.inc.php b/htdocs/sql/libraries/footer.inc.php new file mode 100755 --- /dev/null +++ b/htdocs/sql/libraries/footer.inc.php @@ -0,0 +1,199 @@ + + +' . "\n"; + $url_params['target'] = basename(PMA_getenv('SCRIPT_NAME')); + echo ''; + /* + echo ''; + */ + if ($GLOBALS['cfg']['NavigationBarIconic']) { + echo '' . $GLOBALS['strOpenNewWindow'] . ''; + } + if ($GLOBALS['cfg']['NavigationBarIconic'] !== true) { + echo $GLOBALS['strOpenNewWindow']; + } + echo '' . "\n"; + echo '' . "\n"; +} + +/** + * Close database connections + */ +if (! empty($GLOBALS['controllink'])) { + @PMA_DBI_close($GLOBALS['controllink']); +} +if (! empty($GLOBALS['userlink'])) { + @PMA_DBI_close($GLOBALS['userlink']); +} + +// Include possible custom footers +if (file_exists('./config.footer.inc.php')) { + require './config.footer.inc.php'; +} + + +/** + * Generates profiling data if requested + */ + +// profiling deactivated due to licensing issues +if (! empty($GLOBALS['cfg']['DBG']['enable']) + && ! empty($GLOBALS['cfg']['DBG']['profile']['enable'])) { + //run the basic setup code first + require_once './libraries/dbg/setup.php'; + //if the setup ran fine, then do the profiling + /* + if (! empty($GLOBALS['DBG'])) { + require_once './libraries/dbg/profiling.php'; + dbg_dump_profiling_results(); + } + */ +} + +?> + + +