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:
authorMarc Delisle <marc@infomarc.info>2010-07-19 18:03:17 +0400
committerMarc Delisle <marc@infomarc.info>2010-07-19 18:03:17 +0400
commit4e5061d32356428960c8da7f988c83ebd30c94c6 (patch)
treeb9e87c2c2dc94713c1b46233da5c2e40adb1edc4 /user_password.php
parente0d1e92336a43b0b2997ff11f15957156cbb35f4 (diff)
Generate password only available if JS is enabled
Diffstat (limited to 'user_password.php')
-rw-r--r--user_password.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/user_password.php b/user_password.php
index 9bfa280d00..91cfde006e 100644
--- a/user_password.php
+++ b/user_password.php
@@ -42,6 +42,9 @@ if (! defined('PMA_NO_VARIABLES_IMPORT')) {
*/
require_once './libraries/common.inc.php';
+$GLOBALS['js_include'][] = 'server_privileges.js';
+$GLOBALS['js_include'][] = 'password_generation.js';
+
/**
* Displays an error message and exits if the user isn't allowed to use this
* script
@@ -124,8 +127,8 @@ if (isset($_REQUEST['nopass'])) {
* aren't valid -> displays the form
*/
// Loads the headers
-$GLOBALS['js_include'][] = 'server_privileges.js';
require_once './libraries/header.inc.php';
+
echo '<h1>' . __('Change password') . '</h1>' . "\n\n";
// Displays an error message if required