2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays form for password change
9 if (! defined('PHPMYADMIN')) {
14 * autocomplete feature of IE kills the "onchange" event handler and it
15 * must be replaced by the "onpropertychange" one in this case
17 $chg_evt_handler = (PMA_USR_BROWSER_AGENT
== 'IE' && PMA_USR_BROWSER_VER
>= 5)
23 <form method
="post" action
="<?php echo $GLOBALS['PMA_PHP_SELF']; ?>" name
="chgPassword" onsubmit
="return checkPassword(this)">
24 <?php
echo PMA_generate_common_hidden_inputs();
25 if (strpos($GLOBALS['PMA_PHP_SELF'], 'server_privileges') !== false) {
26 echo '<input type="hidden" name="username" value="' . htmlspecialchars($username) . '" />' . "\n"
27 . '<input type="hidden" name="hostname" value="' . htmlspecialchars($hostname) . '" />' . "\n";
29 <fieldset id
="fieldset_change_password">
30 <legend
><?php
echo $GLOBALS['strChangePassword']; ?
></legend
>
32 <tr
class="odd noclick">
34 <input type
="radio" name
="nopass" value
="1" id
="nopass_1" onclick
="pma_pw.value = ''; pma_pw2.value = ''; this.checked = true" />
35 <label
for="nopass_1"><?php
echo $GLOBALS['strNoPassword'] . "\n"; ?
></label
>
38 <tr
class="even noclick">
40 <input type
="radio" name
="nopass" value
="0" id
="nopass_0" onclick
="document.getElementById('text_pma_pw').focus();" checked
="checked " />
41 <label
for="nopass_0"><?php
echo $GLOBALS['strPassword']; ?
>: 
;</label
>
44 <input type
="password" name
="pma_pw" id
="text_pma_pw" size
="10" class="textfield" <?php
echo $chg_evt_handler; ?
>="nopass[1].checked = true" />
46 <?php
echo $GLOBALS['strReType']; ?
>: 
;
47 <input type
="password" name
="pma_pw2" id
="text_pma_pw2" size
="10" class="textfield" <?php
echo $chg_evt_handler; ?
>="nopass[1].checked = true" />
52 <?php
echo __('Password Hashing'); ?
>:
55 <input type
="radio" name
="pw_hash" id
="radio_pw_hash_new" value
="new" checked
="checked" />
56 <label
for="radio_pw_hash_new">
64 <input type
="radio" name
="pw_hash" id
="radio_pw_hash_old" value
="old" />
65 <label
for="radio_pw_hash_old">
66 <?php
echo __('MySQL 4.0 compatible'); ?
>
72 <?php
echo __('Generate Password'); ?
>
75 <input type
="button" id
="button_generate_password" value
="<?php echo __('Generate'); ?>" onclick
="suggestPassword(this.form)" />
76 <input type
="text" name
="generated_pw" id
="generated_pw" />
81 <fieldset id
="fieldset_change_password_footer" class="tblFooters">
82 <input type
="submit" name
="change_pw" value
="<?php echo(__('Go')); ?>" />