Provide way for vendors to easily change paths to config files.

This commit is contained in:
Michal Čihař
2010-03-31 12:29:21 +02:00
parent a6371c10d5
commit 7b754395e9
8 changed files with 40 additions and 16 deletions

View File

@@ -199,8 +199,8 @@ if (top != self) {
<body class="loginform">
<?php
if (file_exists('./config.header.inc.php')) {
require './config.header.inc.php';
if (file_exists(CUSTOM_HEADER_FILE)) {
require CUSTOM_HEADER_FILE;
}
?>
@@ -343,8 +343,8 @@ window.setTimeout('PMA_focusInput()', 500);
// ]]>
</script>
<?php
if (file_exists('./config.footer.inc.php')) {
require './config.footer.inc.php';
if (file_exists(CUSTOM_FOOTER_FILE)) {
require CUSTOM_FOOTER_FILE;
}
?>
</body>
@@ -682,7 +682,7 @@ function PMA_auth_fails()
}
}
} elseif (PMA_DBI_getError()) {
$conn_error = '#' . $GLOBALS['errno'] . ' ' . $GLOBALS['strCannotLogin'];
$conn_error = '#' . $GLOBALS['errno'] . ' ' . $GLOBALS['strCannotLogin'];
} else {
$conn_error = $GLOBALS['strCannotLogin'];
}