Huge set of optimizations, please test!
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
/**
|
||||
* Gets some core libraries
|
||||
*/
|
||||
require('./libraries/grab_globals.lib.php');
|
||||
require('./libraries/common.lib.php');
|
||||
require_once('./libraries/grab_globals.lib.php');
|
||||
require_once('./libraries/common.lib.php');
|
||||
|
||||
/**
|
||||
* Displays an error message and exits if the user isn't allowed to use this
|
||||
@@ -17,11 +17,10 @@ if (!$cfg['ShowChgPassword']) {
|
||||
$cfg['ShowChgPassword'] = @PMA_mysql_query('USE mysql', $userlink);
|
||||
}
|
||||
if ($cfg['Server']['auth_type'] == 'config' || !$cfg['ShowChgPassword']) {
|
||||
include('./header.inc.php');
|
||||
echo '<p><b>' . $strError . '</b></p>' . "\n";
|
||||
echo '<p> ' . $strNoRights . '</p>' . "\n";
|
||||
include('./footer.inc.php');
|
||||
exit();
|
||||
require_once('./header.inc.php');
|
||||
echo '<p><b>' . $strError . '</b></p>' . "\n"
|
||||
. '<p> ' . $strNoRights . '</p>' . "\n";
|
||||
require_once('./footer.inc.php');
|
||||
} // end if
|
||||
|
||||
|
||||
@@ -64,7 +63,7 @@ if (isset($nopass)) {
|
||||
: '';
|
||||
|
||||
// Displays the page
|
||||
include('./header.inc.php');
|
||||
require_once('./header.inc.php');
|
||||
echo '<h1>' . $strChangePassword . '</h1>' . "\n\n";
|
||||
$show_query = 'y';
|
||||
PMA_showMessage($strUpdateProfileMessage);
|
||||
@@ -83,7 +82,7 @@ if (isset($nopass)) {
|
||||
*/
|
||||
// Loads the headers
|
||||
$js_to_run = 'user_password.js';
|
||||
require('./header.inc.php');
|
||||
require_once('./header.inc.php');
|
||||
echo '<h1>' . $strChangePassword . '</h1>' . "\n\n";
|
||||
|
||||
// Displays an error message if required
|
||||
@@ -135,6 +134,5 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
|
||||
/**
|
||||
* Displays the footer
|
||||
*/
|
||||
echo "\n";
|
||||
require('./footer.inc.php');
|
||||
?>
|
||||
require_once('./footer.inc.php');
|
||||
?>
|
||||
|
Reference in New Issue
Block a user