Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Adriaenssens <ruleant@users.sourceforge.net>2011-09-23 02:46:58 +0400
committerDieter Adriaenssens <ruleant@users.sourceforge.net>2011-09-23 02:46:58 +0400
commitac088aaee0194f28f435b63b978db96426cda642 (patch)
tree24dbd598cce8c2d16a381f5c2cae1d8354057b3c /user_password.php
parentff56cbf5d901a34bc3884254f5f56ce2d2ee0ab2 (diff)
use include() instead of require() when including file conditionally
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/user_password.php b/user_password.php
index 3ca344247e..d5859b811d 100644
--- a/user_password.php
+++ b/user_password.php
@@ -30,9 +30,9 @@ if (!$cfg['ShowChgPassword']) {
$cfg['ShowChgPassword'] = PMA_DBI_select_db('mysql');
}
if ($cfg['Server']['auth_type'] == 'config' || !$cfg['ShowChgPassword']) {
- require_once './libraries/header.inc.php';
+ include_once './libraries/header.inc.php';
PMA_Message::error(__('You don\'t have sufficient privileges to be here right now!'))->display();
- require './libraries/footer.inc.php';
+ include './libraries/footer.inc.php';
} // end if
@@ -101,14 +101,14 @@ if (isset($_REQUEST['nopass'])) {
}
// Displays the page
- require_once './libraries/header.inc.php';
+ include_once './libraries/header.inc.php';
echo '<h1>' . __('Change password') . '</h1>' . "\n\n";
PMA_showMessage($message, $sql_query, 'success');
?>
<a href="index.php<?php echo PMA_generate_common_url($_url_params); ?>" target="_parent">
<strong><?php echo __('Back'); ?></strong></a>
<?php
- require './libraries/footer.inc.php';
+ include './libraries/footer.inc.php';
} // end if
} // end if