Move footer.inc.php, header.inc.php and header_printview.inc.php to libraries folder as it does not require direct access.
This commit is contained in:
@@ -16,10 +16,10 @@ if (!$cfg['ShowChgPassword']) {
|
||||
$cfg['ShowChgPassword'] = PMA_DBI_select_db('mysql');
|
||||
}
|
||||
if ($cfg['Server']['auth_type'] == 'config' || !$cfg['ShowChgPassword']) {
|
||||
require_once('./header.inc.php');
|
||||
require_once('./libraries/header.inc.php');
|
||||
echo '<p><b>' . $strError . '</b></p>' . "\n"
|
||||
. '<p> ' . $strNoRights . '</p>' . "\n";
|
||||
require_once('./footer.inc.php');
|
||||
require_once('./libraries/footer.inc.php');
|
||||
} // end if
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ if (isset($nopass)) {
|
||||
: '';
|
||||
|
||||
// Displays the page
|
||||
require_once('./header.inc.php');
|
||||
require_once('./libraries/header.inc.php');
|
||||
echo '<h1>' . $strChangePassword . '</h1>' . "\n\n";
|
||||
$show_query = 'y';
|
||||
PMA_showMessage($strUpdateProfileMessage);
|
||||
@@ -91,7 +91,7 @@ if (isset($nopass)) {
|
||||
*/
|
||||
// Loads the headers
|
||||
$js_to_run = 'user_password.js';
|
||||
require_once('./header.inc.php');
|
||||
require_once('./libraries/header.inc.php');
|
||||
echo '<h1>' . $strChangePassword . '</h1>' . "\n\n";
|
||||
|
||||
// Displays an error message if required
|
||||
@@ -171,5 +171,5 @@ if (PMA_MYSQL_INT_VERSION >= 40102) {
|
||||
/**
|
||||
* Displays the footer
|
||||
*/
|
||||
require_once('./footer.inc.php');
|
||||
require_once('./libraries/footer.inc.php');
|
||||
?>
|
||||
|
Reference in New Issue
Block a user