From e51499d33c3fa190a3366a01aeb11cb951dbb56e Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 1 Aug 2012 16:43:56 +0530 Subject: [PATCH] Remove 'export privileges for all users' link as it is now redundant --- libraries/server_privileges.lib.php | 48 +++++------------------------ server_privileges.php | 4 +-- 2 files changed, 9 insertions(+), 43 deletions(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 6a041d111c..1649a8d149 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1678,7 +1678,7 @@ function PMA_getHtmlTableBodyForSpecificDbPrivs($found, $row, $odd_row, /** * Define some standard links - * $link_edit, $link_revoke, $link_export, $link_export_all + * $link_edit, $link_revoke, $link_export * * @param string $conditional_class if ajaxable 'Ajax' otherwise '' * @@ -1719,17 +1719,7 @@ function PMA_getStandardLinks($conditional_class) . $common_functions->getIcon('b_tblexport.png', __('Export')) . ''; - $link_export_all = '' - . $common_functions->getIcon('b_tblexport.png', __('Export all')) - . ''; - - return array($link_edit, $link_revoke, $link_export, $link_export_all); + return array($link_edit, $link_revoke, $link_export); } /** @@ -2267,12 +2257,11 @@ function PMA_displayTablesInEditPrivs($dbname, $found_rows) * @param string $text_dir text directory * @param string $conditional_class if ajaxable 'Ajax' otherwise '' * @param string $link_export standard link to export privileges - * @param string $link_export_all standard link to export all privilegfes * * @return string HTML snippet */ function PMA_getUsersOverview($result, $db_rights, $link_edit, $pmaThemeImage, - $text_dir, $conditional_class, $link_export, $link_export_all + $text_dir, $conditional_class, $link_export ) { $common_functions = PMA_CommonFunctions::getInstance(); @@ -2308,8 +2297,7 @@ function PMA_getUsersOverview($result, $db_rights, $link_edit, $pmaThemeImage, $html_output .= '' . '' . "\n"; - $html_output .='
' - .'
' + $html_output .= '
' .''; $html_output .= '
' - . '
' - . '
' - . sprintf($link_export_all, - urlencode('%'), urlencode('%'), - (isset($_GET['initial']) ? $_GET['initial'] : '') - ); - $html_output .= '
' - . '
' . '
'; // add/delete user fieldset @@ -2353,8 +2333,6 @@ function PMA_getUsersOverview($result, $db_rights, $link_edit, $pmaThemeImage, */ function PMA_getTableBodyForUserRightsTable($db_rights, $link_edit, $link_export) { - $_SESSION['user_host_pairs'] = array(); - $pair_count = 0; $odd_row = true; $index_checkbox = -1; $html_output = ''; @@ -2414,10 +2392,6 @@ function PMA_getTableBodyForUserRightsTable($db_rights, $link_edit, $link_export $html_output .= ''; $html_output .= ''; $odd_row = ! $odd_row; - - $_SESSION['user_host_pairs'][$pair_count]['user'] = $host['User']; - $_SESSION['user_host_pairs'][$pair_count]['host'] = $host['Host']; - $pair_count ++; } } return $html_output; @@ -2690,14 +2664,7 @@ function PMA_getHtmlForExportUserDefinition($username, $hostname) $export = '