Merge branch 'master' of ssh://phpmyadmin.git.sourceforge.net/gitroot/phpmyadmin/phpmyadmin

This commit is contained in:
Crack
2010-07-19 16:16:12 +02:00
69 changed files with 17972 additions and 17731 deletions

View File

@@ -85,6 +85,8 @@ $Id$
- patch #2999595, rfe #2998130 [interface] Cleanup navigation frame.
- patch #3025161 [core] Prevent sending of unnecessary cookies,
thanks to Piotr Przybylski - crackpl
- bug [password] Generate password only available if JS is enabled
(fixed for Privileges and Change password)
3.3.6.0 (not yet released)

View File

@@ -62,6 +62,10 @@ $js_messages['strSelectForeignKey'] = __('Select Foreign Key');
$js_messages['strPleaseSelectPrimaryOrUniqueKey'] = __('Please select the primary key or a unique key');
$js_messages['strChangeDisplay'] = __('Choose column to display');
/* password generation */
$js_messages['strGeneratePassword'] = __('Generate password');
$js_messages['strGenerate'] = __('Generate');
echo "var PMA_messages = new Array();\n";
foreach ($js_messages as $name => $js_message) {
PMA_printJsValue("PMA_messages['" . $name . "']", $js_message);

10
js/password_generation.js Normal file
View File

@@ -0,0 +1,10 @@
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* for libraries/display_change_password.lib.php
*
*/
$(document).ready(function() {
$('#tr_element_before_generate_password').parent().append('<tr><td>' + PMA_messages['strGeneratePassword'] + '</td><td><input type="button" id="button_generate_password" value="' + PMA_messages['strGenerate'] + '" onclick="suggestPassword(this.form)" /><input type="text" name="generated_pw" id="generated_pw" /></td></tr>');
$('#div_element_before_generate_password').parent().append('<div class="item"><label for="button_generate_password">' + PMA_messages['strGeneratePassword'] + ':</label><span class="options"><input type="button" id="button_generate_password" value="' + PMA_messages['strGenerate'] + '" onclick="suggestPassword(this.form)" /></span><input type="text" name="generated_pw" id="generated_pw" /></div>');
});

View File

@@ -58,7 +58,7 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
</label>
</td>
</tr>
<tr>
<tr id="tr_element_before_generate_password">
<td>&nbsp;</td>
<td>
<input type="radio" name="pw_hash" id="radio_pw_hash_old" value="old" />
@@ -67,15 +67,6 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
</label>
</td>
</tr>
<tr>
<td>
<?php echo __('Generate Password'); ?>
</td>
<td>
<input type="button" id="button_generate_password" value="<?php echo __('Generate'); ?>" onclick="suggestPassword(this.form)" />
<input type="text" name="generated_pw" id="generated_pw" />
</td>
</tr>
</table>
</fieldset>
<fieldset id="fieldset_change_password_footer" class="tblFooters">

560
po/af.po

File diff suppressed because it is too large Load Diff

562
po/ar.po

File diff suppressed because it is too large Load Diff

560
po/az.po

File diff suppressed because it is too large Load Diff

566
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

562
po/bg.po

File diff suppressed because it is too large Load Diff

574
po/bn.po

File diff suppressed because it is too large Load Diff

560
po/bs.po

File diff suppressed because it is too large Load Diff

570
po/ca.po

File diff suppressed because it is too large Load Diff

571
po/cs.po

File diff suppressed because it is too large Load Diff

562
po/cy.po

File diff suppressed because it is too large Load Diff

566
po/da.po

File diff suppressed because it is too large Load Diff

570
po/de.po

File diff suppressed because it is too large Load Diff

587
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

570
po/es.po

File diff suppressed because it is too large Load Diff

558
po/et.po

File diff suppressed because it is too large Load Diff

560
po/eu.po

File diff suppressed because it is too large Load Diff

580
po/fa.po

File diff suppressed because it is too large Load Diff

566
po/fi.po

File diff suppressed because it is too large Load Diff

572
po/fr.po

File diff suppressed because it is too large Load Diff

570
po/gl.po

File diff suppressed because it is too large Load Diff

558
po/he.po

File diff suppressed because it is too large Load Diff

562
po/hi.po

File diff suppressed because it is too large Load Diff

566
po/hr.po

File diff suppressed because it is too large Load Diff

578
po/hu.po

File diff suppressed because it is too large Load Diff

566
po/id.po

File diff suppressed because it is too large Load Diff

562
po/it.po

File diff suppressed because it is too large Load Diff

562
po/ja.po

File diff suppressed because it is too large Load Diff

578
po/ka.po

File diff suppressed because it is too large Load Diff

562
po/ko.po

File diff suppressed because it is too large Load Diff

566
po/lt.po

File diff suppressed because it is too large Load Diff

564
po/lv.po

File diff suppressed because it is too large Load Diff

558
po/mk.po

File diff suppressed because it is too large Load Diff

566
po/mn.po

File diff suppressed because it is too large Load Diff

560
po/ms.po

File diff suppressed because it is too large Load Diff

566
po/nb.po

File diff suppressed because it is too large Load Diff

562
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

578
po/pl.po

File diff suppressed because it is too large Load Diff

560
po/pt.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

566
po/ro.po

File diff suppressed because it is too large Load Diff

579
po/ru.po

File diff suppressed because it is too large Load Diff

570
po/si.po

File diff suppressed because it is too large Load Diff

566
po/sk.po

File diff suppressed because it is too large Load Diff

562
po/sl.po

File diff suppressed because it is too large Load Diff

560
po/sq.po

File diff suppressed because it is too large Load Diff

566
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

566
po/sv.po

File diff suppressed because it is too large Load Diff

556
po/ta.po

File diff suppressed because it is too large Load Diff

556
po/te.po

File diff suppressed because it is too large Load Diff

560
po/th.po

File diff suppressed because it is too large Load Diff

562
po/tr.po

File diff suppressed because it is too large Load Diff

562
po/tt.po

File diff suppressed because it is too large Load Diff

556
po/ug.po

File diff suppressed because it is too large Load Diff

562
po/uk.po

File diff suppressed because it is too large Load Diff

564
po/ur.po

File diff suppressed because it is too large Load Diff

578
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -16,6 +16,7 @@ require_once './libraries/common.inc.php';
*/
$GLOBALS['js_include'][] = 'server_privileges.js';
$GLOBALS['js_include'][] = 'functions.js';
$GLOBALS['js_include'][] = 'password_generation.js';
require './libraries/server_common.inc.php';
/**
@@ -810,22 +811,14 @@ function PMA_displayLoginInformationFields($mode = 'new')
. '</span>' . "\n"
. '<input type="password" id="text_pma_pw" name="pma_pw" title="' . __('Password') . '" onchange="pred_password.value = \'userdefined\';" />' . "\n"
. '</div>' . "\n"
. '<div class="item">' . "\n"
. '<div class="item" id="div_element_before_generate_password">' . "\n"
. '<label for="text_pma_pw2">' . "\n"
. ' ' . __('Re-type') . ':' . "\n"
. '</label>' . "\n"
. '<span class="options">&nbsp;</span>' . "\n"
. '<input type="password" name="pma_pw2" id="text_pma_pw2" title="' . __('Re-type') . '" onchange="pred_password.value = \'userdefined\';" />' . "\n"
. '</div>' . "\n"
. '<div class="item">' . "\n"
. '<label for="button_generate_password">' . "\n"
. ' ' . __('Generate Password') . ':' . "\n"
. '</label>' . "\n"
. '<span class="options">' . "\n"
. ' <input type="button" id="button_generate_password" value="' . __('Generate') . '" onclick="suggestPassword(this.form)" />' . "\n"
. '</span>' . "\n"
. '<input type="text" name="generated_pw" id="generated_pw" />' . "\n"
. '</div>' . "\n"
// Generate password added here via jQuery
. '</fieldset>' . "\n";
} // end of the 'PMA_displayUserAndHostFields()' function

View File

@@ -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