DVL-014 Fix #54 - CP "Tools - Adminer" not working

This commit is contained in:
cytopia 2017-04-28 08:08:52 +02:00
parent dfa99dc174
commit beebb9ee3b
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2
2 changed files with 5 additions and 2 deletions

View File

@ -47,11 +47,11 @@ $POSTGRES_HOST_ADDR = gethostbyname($POSTGRES_HOST_NAME);
//
function loadClass($class) {
global $LIB_DIR;
global $MYSQL_HOST_ADDR;
global $POSTGRES_HOST_ADDR;
static $_LOADED_LIBS;
$LIB_DIR = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'lib';
if (isset($_LOADED_LIBS[$class])) {

View File

@ -40,7 +40,10 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
document.body.className = document.body.className.replace(/ nojs/, ' js');
var offlineMessage = '<?php echo js_escape(lang('You are offline.')); ?>';
</script>
<?php require '../../../../config.php'; ?>
<?php error_reporting(6135); ?>
<?php require '../../../../include/navbar.php'; ?>
<?php error_reporting(6135); ?>
<div id="help" class="jush-<?php echo $jush; ?> jsonly hidden" onmouseover="helpOpen = 1;" onmouseout="helpMouseout(this, event);"></div>
<div id="content">
@ -136,4 +139,4 @@ function page_footer($missing = "") {
<script type="text/javascript">setupSubmitHighlight(document);</script>
<?php
}?>
<?php require '../../../../include/footer.php'; ?>
<?php require '../../../../include/footer.php'; ?>