unnecessary disc access

This commit is contained in:
Marc Delisle
2006-06-09 20:55:08 +00:00
parent 110277793a
commit e32dceaa78
5 changed files with 17 additions and 15 deletions

View File

@@ -10,7 +10,11 @@ $Source$
* libraries/import.lib.php: support display of HANDLER statement results * libraries/import.lib.php: support display of HANDLER statement results
* libraries/header.inc.php, libraries/auth/http.auth.lib.php, * libraries/header.inc.php, libraries/auth/http.auth.lib.php,
/cookie.auth.lib.php, removed header_custom.inc.php: /cookie.auth.lib.php, removed header_custom.inc.php:
patch #1502453, unnecessary disk access, thanks to Juergen Wind patch #1502453, unnecessary disk access,
thanks to Juergen Wind (windkiel)
* libraries/footer.inc.php, libraries/auth/http.auth.lib.php,
/cookie.auth.lib.php, removed footer_custom.inc.php:
applied the same optimization
2006-06-08 Marc Delisle <lem9@users.sourceforge.net> 2006-06-08 Marc Delisle <lem9@users.sourceforge.net>
* libraries/header.inc.php: bug #1501891, undefined PMA_isSuperuser() when * libraries/header.inc.php: bug #1501891, undefined PMA_isSuperuser() when

View File

@@ -146,7 +146,10 @@ echo sprintf( $GLOBALS['strWelcome'],
</div> </div>
<?php <?php
echo '</div>' . "\n"; echo '</div>' . "\n";
require './libraries/footer_custom.inc.php'; if (file_exists('./config.footer.inc.php')) {
require('./config.footer.inc.php');
}
echo ' </body>' . "\n" echo ' </body>' . "\n"
. '</html>'; . '</html>';
exit(); exit();

View File

@@ -45,7 +45,10 @@ function PMA_auth() {
<br /> <br />
<div class="warning"><?php echo $GLOBALS['strWrongUser']; ?></div> <div class="warning"><?php echo $GLOBALS['strWrongUser']; ?></div>
<?php require './libraries/footer_custom.inc.php'; ?> <?php if (file_exists('./config.footer.inc.php')) {
require('./config.footer.inc.php');
}
?>
</body> </body>
</html> </html>

View File

@@ -123,7 +123,10 @@ if (isset($GLOBALS['userlink']) && $GLOBALS['userlink']) {
} }
// Include possible custom footers // Include possible custom footers
require_once './libraries/footer_custom.inc.php'; if (file_exists('./config.footer.inc.php')) {
require('./config.footer.inc.php');
}
/** /**
* Generates profiling data if requested * Generates profiling data if requested

View File

@@ -1,11 +0,0 @@
<?php
/* $Id$ */
// vim: expandtab sw=4 ts=4 sts=4:
// This file includes all custom footers if they exist.
// Include site footer
if (file_exists('./config.footer.inc.php')) {
require('./config.footer.inc.php');
}
?>