From 3755869d83db1a86746eb7752ee37bf3c47bf8b1 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 1 Feb 2009 12:26:33 +0000 Subject: [PATCH] patch #2541261, improvement to patch #2506831 --- ChangeLog | 2 +- server_privileges.php | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index f212dbddb..1392a87b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,7 +22,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA + patch #2494192 [display] Possibility of disabling the sliders, thanks to Virsacer - virsacer + patch #2506831 [privileges] Create user for existing database, - thanks to Herman van Rink - helmo + thanks to Herman van Rink and Virsacer + patch #2505255 [privileges] Cleanup, thanks to Virsacer - virsacer 3.1.3.0 (not yet released) diff --git a/server_privileges.php b/server_privileges.php index 93f1d7fbd..2a5997c27 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -2137,15 +2137,6 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs } $odd_row = ! $odd_row; } - - // Offer to create a new user for the current database - echo ''; - echo '
' . "\n" - . ' ' . "\n" - . PMA_getIcon('b_usradd.png') - . ' ' . $GLOBALS['strAddUser'] . '' . "\n" - . '
' . "\n"; - echo ''; } else { echo ' ' . "\n" . ' ' . "\n" @@ -2155,6 +2146,14 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs } echo '' . "\n" . '' . "\n"; + + // Offer to create a new user for the current database + echo '
' . "\n" + . ' ' . "\n" + . PMA_getIcon('b_usradd.png') + . ' ' . $GLOBALS['strAddUser'] . '' . "\n" + . '
' . "\n"; + } // end if (empty($_REQUEST['adduser']) && empty($checkprivs)) ... elseif ... else ...