The '' is now required

This commit is contained in:
Loïc Chapeaux
2002-03-16 10:08:36 +00:00
parent 65b3f3ccb2
commit 99bfd938fa
41 changed files with 74 additions and 27 deletions

View File

@@ -143,12 +143,6 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
$cfgLeftFrameLight = TRUE;
}
// Adds a trailing slash et the end of the phpMyAdmin uri if it does not
// exist
if ($cfgPmaAbsoluteUri != '' && substr($cfgPmaAbsoluteUri, -1) != '/') {
$cfgPmaAbsoluteUri .= '/';
}
// Gets some constants
include('./libraries/defines.lib.php3');
@@ -370,6 +364,26 @@ if (!defined('PMA_COMMON_LIB_INCLUDED')){
} // end of the 'PMA_setFontSizes()' function
/**
* $cfgPmaAbsoluteUri is a required directive else cookies won't be set
* properly and, depending on browsers, inserting or updating a record
* record might fail
*/
if (empty($cfgPmaAbsoluteUri)) {
if (empty($GLOBALS['is_header_sent'])) {
include('./header.inc.php3');
}
echo '<p class="warning">'. $strPmaUriError . '</p>' . "\n";
include('./footer.inc.php3');
exit();
}
// Adds a trailing slash et the end of the phpMyAdmin uri if it does not
// exist
else if (substr($cfgPmaAbsoluteUri, -1) != '/') {
$cfgPmaAbsoluteUri .= '/';
}
/**
* Use mysql_connect() or mysql_pconnect()?
*/