added ability to change a user's password (sorry for flooding the language files again...)
This commit is contained in:
@@ -24,6 +24,10 @@ $Source$
|
||||
* lang/*.inc.php3: Fixed a typo.
|
||||
* lang/lithuanian-*.inc.php3: Updates, thanks to Vilius Zigmantas (viliusz).
|
||||
* lang/english-*.inc.php3, lang/romanian-*.inc.php3: Reordered strings.
|
||||
* server_privileges.php3, lang/*.inc.php3:
|
||||
- Bugfixes;
|
||||
- Small design modification;
|
||||
- Added ability to change passwords via SET PASSWORD FOR user.
|
||||
|
||||
2002-12-18 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* main.php3, header.inc.php3, server_privileges.php3, server_links.php3,
|
||||
|
@@ -519,4 +519,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -520,4 +520,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -521,4 +521,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -522,4 +522,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -534,4 +534,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -534,4 +534,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -534,4 +534,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -509,4 +509,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -510,4 +510,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -519,4 +519,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -518,4 +518,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -517,4 +517,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -532,4 +532,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -532,4 +532,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -514,4 +514,5 @@ $strZeroRemovesTheLimit = 'Pozn
|
||||
$strZip = '"zazipov<6F>no"';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,5 @@ $strZeroRemovesTheLimit = 'Poznámka: Nastavení těchto parametrů na 0 (nulu)
|
||||
$strZip = '"zazipováno"';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -514,4 +514,5 @@ $strZeroRemovesTheLimit = 'Pozn
|
||||
$strZip = '"zazipov<6F>no"';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -527,4 +527,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -528,4 +528,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -521,4 +521,6 @@ $strShowDatadictAs = 'Data Dictionary Format'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -522,4 +522,6 @@ $strShowDatadictAs = 'Data Dictionary Format'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -287,6 +287,7 @@ $strPHPVersion = 'PHP Version';
|
||||
$strPageNumber = 'Page number:';
|
||||
$strPartialText = 'Partial Texts';
|
||||
$strPassword = 'Password';
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.';
|
||||
$strPasswordEmpty = 'The password is empty!';
|
||||
$strPasswordNotSame = 'The passwords aren\'t the same!';
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s';
|
||||
|
@@ -288,6 +288,7 @@ $strPHPVersion = 'PHP Version';
|
||||
$strPageNumber = 'Page number:';
|
||||
$strPartialText = 'Partial Texts';
|
||||
$strPassword = 'Password';
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
$strPasswordEmpty = 'The password is empty!';
|
||||
$strPasswordNotSame = 'The passwords aren\'t the same!';
|
||||
$strPdfDbSchema = 'Schema of the the "%s" database - Page %s';
|
||||
|
@@ -508,4 +508,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
@@ -509,4 +509,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
@@ -518,4 +518,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -519,4 +519,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -508,4 +508,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -509,4 +509,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -508,4 +508,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -509,4 +509,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -532,4 +532,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -293,6 +293,7 @@ $strOverhead = '
|
||||
$strPageNumber = 'Seite:';
|
||||
$strPartialText = 'gek<65>rzte Textfelder';
|
||||
$strPassword = 'Kennwort';
|
||||
$strPasswordChanged = 'Das Kennwort f<>r %s wurde ge<67>ndert.';
|
||||
$strPasswordEmpty = 'Es wurde kein Kennwort angegeben!';
|
||||
$strPasswordNotSame = 'Die eingegebenen Kennw<6E>rter sind nicht identisch!';
|
||||
$strPdfDbSchema = 'Schema der Datenbank "%s" - Seite %s';
|
||||
|
@@ -294,6 +294,7 @@ $strOverhead = 'Überhang';
|
||||
$strPageNumber = 'Seite:';
|
||||
$strPartialText = 'gekürzte Textfelder';
|
||||
$strPassword = 'Kennwort';
|
||||
$strPasswordChanged = 'Das Kennwort für %s wurde geändert.';
|
||||
$strPasswordEmpty = 'Es wurde kein Kennwort angegeben!';
|
||||
$strPasswordNotSame = 'Die eingegebenen Kennwörter sind nicht identisch!';
|
||||
$strPdfDbSchema = 'Schema der Datenbank "%s" - Seite %s';
|
||||
|
@@ -531,4 +531,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -532,4 +532,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -529,4 +529,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -543,4 +543,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -517,4 +517,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -518,4 +518,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,5 @@ $strZeroRemovesTheLimit = 'N.B.: 0 (zero) significa nessun limite.';
|
||||
$strZip = '"compresso con zip"';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -517,4 +517,5 @@ $strZeroRemovesTheLimit = 'N.B.: 0 (zero) significa nessun limite.';
|
||||
$strZip = '"compresso con zip"';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -522,4 +522,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -522,4 +522,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -522,4 +522,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -531,4 +531,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -533,4 +533,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -532,4 +532,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -509,4 +509,5 @@ $strZeroRemovesTheLimit = 'Pastaba: Nėra jokių apribojimų jeigu reikšmė nur
|
||||
$strZip = '"zip"';
|
||||
|
||||
// To translate
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -508,4 +508,5 @@ $strZeroRemovesTheLimit = 'Pastaba: N
|
||||
$strZip = '"zip"';
|
||||
|
||||
// To translate
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -528,4 +528,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
@@ -529,4 +529,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
@@ -511,4 +511,6 @@ $strYes = 'Ja';
|
||||
$strZeroRemovesTheLimit = 'Merk: Ved <20> sette disse til 0 (null) fjerner begrensningen.';
|
||||
$strZip = 'Komprimert (zip)';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -512,4 +512,6 @@ $strYes = 'Ja';
|
||||
$strZeroRemovesTheLimit = 'Merk: Ved å sette disse til 0 (null) fjerner begrensningen.';
|
||||
$strZip = 'Komprimert (zip)';
|
||||
// To translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -510,4 +510,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -511,4 +511,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -528,4 +528,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -529,4 +529,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,6 @@ $strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,6 @@ $strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -513,4 +513,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -514,4 +514,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -513,4 +513,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -535,4 +535,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -534,4 +534,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -515,4 +515,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -511,4 +511,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -512,4 +512,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -511,4 +511,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -511,4 +511,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -512,4 +512,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -512,4 +512,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -513,4 +513,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -516,4 +516,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -517,4 +517,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -520,4 +520,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -521,4 +521,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -514,4 +514,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -513,4 +513,6 @@ $strPrivilegesReloaded = 'The privileges were reloaded successfully.'; //to tran
|
||||
$strResourceLimits = 'Resource limits'; //to translate
|
||||
$strUserOverview = 'User overview'; //to translate
|
||||
$strZeroRemovesTheLimit = 'Note: Setting these options to 0 (zero) removes the limit.'; //to translate
|
||||
|
||||
$strPasswordChanged = 'The Password for %s was changed successfully.'; // to translate
|
||||
?>
|
||||
|
@@ -80,6 +80,9 @@ function PMA_extractPrivInfo($row = '', $enableHTML = FALSE)
|
||||
* Updates privileges
|
||||
*/
|
||||
if (!empty($update_privs)) {
|
||||
if (empty($hostname)) {
|
||||
$hostname = '%';
|
||||
}
|
||||
$sql_query0 = 'REVOKE ALL PRIVILEGES ON *.* FROM "' . $username . '"@"' . $hostname . '";';
|
||||
$sql_query1 = 'REVOKE GRANT OPTION ON *.* FROM "' . $username . '"@"' . $hostname . '";';
|
||||
$sql_query2 = 'GRANT ' . join(', ', PMA_extractPrivInfo()) . ' ON *.* TO "' . $username . '"@"' . $hostname . '"';
|
||||
@@ -112,6 +115,33 @@ if (!empty($update_privs)) {
|
||||
$message = sprintf($strUpdatePrivMessage, '\'' . $username . '\'@\'' . $hostname . '\'');
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the password
|
||||
*/
|
||||
if (!empty($change_pw)) {
|
||||
if (empty($hostname)) {
|
||||
$hostname = '%';
|
||||
}
|
||||
if ($nopass == 1) {
|
||||
$sql_query = 'SET PASSWORD FOR "' . $username . '"@"' . $hostname . '" = ""';
|
||||
PMA_mysql_query($sql_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink));
|
||||
$message = sprintf($strPasswordChanged, '\'' . $username . '\'@\'' . $hostname . '\'');
|
||||
} else if (empty($pma_pw) || empty($pma_pw2)) {
|
||||
$message = $strPasswordEmpty;
|
||||
} else if ($pma_pw != $pma_pw2) {
|
||||
$message = $strPasswordNotSame;
|
||||
} else {
|
||||
$hidden_pw = '';
|
||||
for ($i = 0; $i < strlen($pma_pw); $i++) {
|
||||
$hidden_pw .= '*';
|
||||
}
|
||||
$local_query = 'SET PASSWORD FOR "' . $username . '"@"' . $hostname . '" = PASSWORD("' . $pma_pw . '")';
|
||||
$sql_query = 'SET PASSWORD FOR "' . $username . '"@"' . $hostname . '" = PASSWORD("' . $hidden_pw . '")';
|
||||
PMA_mysql_query($local_query, $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink));
|
||||
$message = sprintf($strPasswordChanged, '\'' . $username . '\'@\'' . $hostname . '\'');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Reloads the privilege tables into memory
|
||||
*/
|
||||
@@ -127,6 +157,7 @@ if (!empty($flush_privileges)) {
|
||||
/**
|
||||
* Does the common work
|
||||
*/
|
||||
$js_to_run = 'user_details.js';
|
||||
require('./server_common.inc.php3');
|
||||
|
||||
/**
|
||||
@@ -139,7 +170,7 @@ require('./server_links.inc.php3');
|
||||
*/
|
||||
if (!$is_superuser) {
|
||||
echo '<h2>' . "\n"
|
||||
. ' ' . $strUsers . "\n"
|
||||
. ' ' . $strPrivileges . "\n"
|
||||
. '</h2>' . "\n"
|
||||
. $strNoPrivileges . "\n";
|
||||
include('./footer.inc.php3');
|
||||
@@ -161,7 +192,7 @@ if (!isset($username) && !isset($hostname)) {
|
||||
$oldPrivTables = TRUE;
|
||||
}
|
||||
}
|
||||
if (!isset($res) || empty($res) || (PMA_MYSQL_INT_VERSION >= 32211 && PMA_MYSQL_INT_VERSION < 40002)) {
|
||||
if (empty($res) || (PMA_MYSQL_INT_VERSION >= 32211 && PMA_MYSQL_INT_VERSION < 40002)) {
|
||||
$res = PMA_mysql_query('SELECT `User`, `Host`, IF(`Password` = "", "N", "Y") AS "Password", `Select_priv`, `Insert_priv`, `Update_priv`, `Delete_priv`, `Index_priv`, `Alter_priv`, `Create_priv`, `Drop_priv`, `Grant_priv`, `References_priv`, `Reload_priv`, `Shutdown_priv`, `Process_priv`, `File_priv` FROM `user`;', $userlink);
|
||||
if (!$res) {
|
||||
// the query failed! This may have two reasons:
|
||||
@@ -170,7 +201,7 @@ if (!isset($username) && !isset($hostname)) {
|
||||
$oldPrivTables = TRUE;
|
||||
}
|
||||
}
|
||||
if (!$res || PMA_MYSQL_INT_VERSION < 32211) {
|
||||
if (empty($res) || PMA_MYSQL_INT_VERSION < 32211) {
|
||||
$res = PMA_mysql_query('SELECT * FROM `user`;', $userlink);
|
||||
}
|
||||
if (!$res) {
|
||||
@@ -229,11 +260,10 @@ if (!isset($username) && !isset($hostname)) {
|
||||
$hostname = '%';
|
||||
}
|
||||
echo '<h2>' . "\n"
|
||||
. ' ' . $strEditPrivileges . '<br />' . "\n"
|
||||
. '</h2>' . "\n"
|
||||
. '<h3>' . "\n"
|
||||
. ' ' . $strUser . ' <i>\'' . htmlspecialchars($username) . '\'@\'' . htmlspecialchars($hostname) . '\'</i>' . "\n"
|
||||
. '</h3>' . "\n";
|
||||
. '</h2>' . "\n"
|
||||
. '<ul>' . "\n"
|
||||
. ' <li>' . "\n";
|
||||
$res = PMA_mysql_query('SELECT * FROM `user` WHERE `User` = "' . $username . '" AND `Host` = "' . $hostname . '"', $userlink);
|
||||
$row = PMA_mysql_fetch_array($res, MYSQL_ASSOC);
|
||||
@mysql_free_result($res);
|
||||
@@ -282,73 +312,107 @@ if (!isset($username) && !isset($hostname)) {
|
||||
if (isset($row['Repl_slave_priv'])) {
|
||||
$privTable[2][] = array('Repl_slave', 'REPLICATION SLAVE', $strPrivDescReplSlave);
|
||||
}
|
||||
echo '<form action="server_privileges.php3" method="post">' . "\n"
|
||||
. ' <input type="hidden" name="lang" value="' . $lang . '" />' . "\n"
|
||||
. ' <input type="hidden" name="convcharset" value="' . $convcharset . '" />' . "\n"
|
||||
. ' <input type="hidden" name="server" value="' . $server . '" />' . "\n"
|
||||
. ' <input type="hidden" name="username" value="' . urlencode($username) . '" />' . "\n";
|
||||
echo ' <form action="server_privileges.php3" method="post">' . "\n"
|
||||
. ' <input type="hidden" name="lang" value="' . $lang . '" />' . "\n"
|
||||
. ' <input type="hidden" name="convcharset" value="' . $convcharset . '" />' . "\n"
|
||||
. ' <input type="hidden" name="server" value="' . $server . '" />' . "\n"
|
||||
. ' <input type="hidden" name="username" value="' . urlencode($username) . '" />' . "\n";
|
||||
if ($hostname != '%') {
|
||||
echo ' <input type="hidden" name="hostname" value="' . urlencode($hostname) . '" />' . "\n";
|
||||
echo ' <input type="hidden" name="hostname" value="' . urlencode($hostname) . '" />' . "\n";
|
||||
}
|
||||
echo ' <input type="hidden" name="grant_count" value="' . (count($privTable[0]) + count($privTable[1]) + count($privTable[2])) . '" />' . "\n"
|
||||
. ' <table border="0">' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <th colspan="6"> ' . $strGlobalPrivileges . ' </th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '" colspan="6"><small><i>' . $strEnglishPrivileges . '</i></small></th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>'
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strData . '</i></b> </td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strStructure . '</i></b> </td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strAdministration . '</i></b> </td>' . "\n"
|
||||
. ' </tr>' . "\n";
|
||||
echo ' <input type="hidden" name="grant_count" value="' . (count($privTable[0]) + count($privTable[1]) + count($privTable[2])) . '" />' . "\n"
|
||||
. ' <b>' . $strEditPrivileges . '</b><br />' . "\n"
|
||||
. ' <table border="0">' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <th colspan="6"> ' . $strGlobalPrivileges . ' </th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '" colspan="6"><small><i>' . $strEnglishPrivileges . '</i></small></th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>'
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strData . '</i></b> </td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strStructure . '</i></b> </td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"> <b><i>' . $strAdministration . '</i></b> </td>' . "\n"
|
||||
. ' </tr>' . "\n";
|
||||
$limitTable = FALSE;
|
||||
for ($i = 0; isset($privTable[0][$i]) || isset($privTable[1][$i]) || isset($privTable[2][$i]); $i++) {
|
||||
echo ' <tr>' . "\n";
|
||||
echo ' <tr>' . "\n";
|
||||
for ($j = 0; $j < 3; $j++) {
|
||||
if (isset($privTable[$j][$i])) {
|
||||
echo ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="checkbox" name="' . $privTable[$j][$i][0] . '_priv" id="checkbox_' . $privTable[$j][$i][0] . '_priv" value="Y" ' . ($row[$privTable[$j][$i][0] . '_priv'] == 'Y' ? 'checked="checked" ' : '') . 'title="' . $privTable[$j][$i][2] . '"/></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="checkbox_' . $privTable[$j][$i][0] . '_priv"><tt><dfn title="' . $privTable[$j][$i][2] . '">' . $privTable[$j][$i][1] . '</dfn></tt></label></td>' . "\n";
|
||||
echo ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="checkbox" name="' . $privTable[$j][$i][0] . '_priv" id="checkbox_' . $privTable[$j][$i][0] . '_priv" value="Y" ' . ($row[$privTable[$j][$i][0] . '_priv'] == 'Y' ? 'checked="checked" ' : '') . 'title="' . $privTable[$j][$i][2] . '"/></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="checkbox_' . $privTable[$j][$i][0] . '_priv"><tt><dfn title="' . $privTable[$j][$i][2] . '">' . $privTable[$j][$i][1] . '</dfn></tt></label></td>' . "\n";
|
||||
} else if (!isset($privTable[0][$i]) && !isset($privTable[1][$i])
|
||||
&& isset($row['max_questions']) && isset($row['max_updates']) && isset($row['max_connections'])
|
||||
&& !$limitTable) {
|
||||
echo ' <td colspan="4" rowspan="' . (count($privTable[2]) - $i) . '">' . "\n"
|
||||
. ' <table border="0">' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <th colspan="2"> ' . $strResourceLimits . ' </th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '" colspan="2"><small><i>' . $strZeroRemovesTheLimit . '</i></small></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_questions"><tt><dfn title="' . $strPrivDescMaxQuestions . '">MAX QUERIES PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_questions" id="text_max_questions" value="' . $row['max_questions'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxQuestions . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_updates"><tt><dfn title="' . $strPrivDescMaxUpdates . '">MAX UPDATES PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_updates" id="text_max_updates" value="' . $row['max_updates'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxUpdates . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_connections"><tt><dfn title="' . $strPrivDescMaxConnections . '">MAX CONNECTIONS PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_connections" id="text_max_connections" value="' . $row['max_connections'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxConnections . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' </table>' . "\n"
|
||||
. ' </td>' . "\n";
|
||||
echo ' <td colspan="4" rowspan="' . (count($privTable[2]) - $i) . '">' . "\n"
|
||||
. ' <table border="0">' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <th colspan="2"> ' . $strResourceLimits . ' </th>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '" colspan="2"><small><i>' . $strZeroRemovesTheLimit . '</i></small></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_questions"><tt><dfn title="' . $strPrivDescMaxQuestions . '">MAX QUERIES PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_questions" id="text_max_questions" value="' . $row['max_questions'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxQuestions . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_updates"><tt><dfn title="' . $strPrivDescMaxUpdates . '">MAX UPDATES PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_updates" id="text_max_updates" value="' . $row['max_updates'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxUpdates . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="text_max_connections"><tt><dfn title="' . $strPrivDescMaxConnections . '">MAX CONNECTIONS PER HOUR</dfn></tt></label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="text" name="max_connections" id="text_max_connections" value="' . $row['max_connections'] . '" size="11" maxlength="11" title="' . $strPrivDescMaxConnections . '" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' </table>' . "\n"
|
||||
. ' </td>' . "\n";
|
||||
$limitTable = TRUE;
|
||||
} else if (!$limitTable) {
|
||||
echo ' <td colspan="2"></td>' . "\n";
|
||||
echo ' <td colspan="2"></td>' . "\n";
|
||||
}
|
||||
}
|
||||
echo ' </tr>' . "\n";
|
||||
echo ' </tr>' . "\n";
|
||||
}
|
||||
echo ' <tr>' . "\n"
|
||||
. ' <td colspan="6" align="center">' . "\n"
|
||||
. ' <input type="submit" name="update_privs" value="' . $strGo . '" />' . "\n"
|
||||
. ' </td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' </table>' . "\n"
|
||||
. '</form>' . "\n";
|
||||
echo ' <tr>' . "\n"
|
||||
. ' <td colspan="6" align="center">' . "\n"
|
||||
. ' <input type="submit" name="update_privs" value="' . $strGo . '" />' . "\n"
|
||||
. ' </td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' </table>' . "\n"
|
||||
. ' </form>' . "\n"
|
||||
. ' </li>' . "\n"
|
||||
. ' <li>' . "\n"
|
||||
. ' <form name="chgPassword" action="server_privileges.php3" method="post" onsubmit="return checkPassword(this);">' . "\n"
|
||||
. ' <input type="hidden" name="lang" value="' . $lang . '" />' . "\n"
|
||||
. ' <input type="hidden" name="convcharset" value="' . $convcharset . '" />' . "\n"
|
||||
. ' <input type="hidden" name="server" value="' . $server . '" />' . "\n"
|
||||
. ' <input type="hidden" name="username" value="' . urlencode($username) . '" />' . "\n";
|
||||
if ($hostname != '%') {
|
||||
echo ' <input type="hidden" name="hostname" value="' . urlencode($hostname) . '" />' . "\n";
|
||||
}
|
||||
echo ' <b>' . $strChangePassword . '</b><br />' . "\n"
|
||||
. ' <table border="0">' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '"><input type="radio" name="nopass" value="1" id="radio_nopass_1" onclick="pma_pw.value=\'\'; pma_pw2.value=\'\';" /></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorOne'] . '" colspan="2"><label for="radio_nopass_1">' . $strNoPassword . '</label></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="radio" name="nopass" value="0" id="radio_nopass_0" onclick="document.getElementById(\'pw_pma_pw\').focus();" /></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="radio_nopass_0">' . $strPassword . ':</label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="password" name="pma_pw" id="pw_pma_pw" class="textfield" onchange="nopass[1].checked = true;" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <tr>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"> </td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><label for="pw_pma_pw2">' . $strReType . ':</label></td>' . "\n"
|
||||
. ' <td bgcolor="' . $cfg['BgcolorTwo'] . '"><input type="password" name="pma_pw2" id="pw_pma_pw2" class="textfield" onchange="nopass[1].checked = true;" /></td>' . "\n"
|
||||
. ' </tr>' . "\n"
|
||||
. ' <td colspan="3" align="center">' . "\n"
|
||||
. ' <input type="submit" name="change_pw" value="' . $strGo . '" />' . "\n"
|
||||
. ' </td>' . "\n"
|
||||
. ' </table>' . "\n"
|
||||
. ' </form>' . "\n"
|
||||
. ' </li>' . "\n"
|
||||
. '</ul>' . "\n";
|
||||
} else if (isset($hostname)) {
|
||||
// TODO: Host privilege editor
|
||||
}
|
||||
|
Reference in New Issue
Block a user