include 'libraries/db_info.inc.php'; $content = ob_get_contents(); ob_end_clean(); $response->addHTML($content . "\n"); } else { if (!empty($GLOBALS['message'])) { $response->addHTML(PMA_Util::getMessage($GLOBALS['message'])); unset($GLOBALS['message']); } } /** * Displays the page */ // export user definition if (isset($_REQUEST['export']) || isset($_REQUEST['submit_mult']) && $_REQUEST['submit_mult'] == 'export') { list($title, $export) = PMA_getHtmlForExportUserDefinition(isset($username) ? $username : null, isset($hostname) ? $hostname : null); unset($username, $hostname, $grants, $one_grant); $response = PMA_Response::getInstance(); if ($GLOBALS['is_ajax_request']) { $response->addJSON('message', $export); $response->addJSON('title', $title); exit; } else { $response->addHTML("<h2>{$title}</h2>{$export}"); } } if (empty($_REQUEST['adduser']) && (!isset($_REQUEST['checkprivs']) || !strlen($_REQUEST['checkprivs']))) { if (!isset($username)) { // No username is given --> display the overview $response->addHTML(PMA_getHtmlForDisplayUserOverviewPage($link_edit, $pmaThemeImage, $text_dir, $conditional_class, $link_export)); } else {
} else { if (! empty($GLOBALS['message'])) { echo $common_functions->getMessage($GLOBALS['message']); unset($GLOBALS['message']); } } /** * Displays the page */ // export user definition if (isset($_REQUEST['export']) || (isset($_REQUEST['submit_mult']) && $_REQUEST['submit_mult'] == 'export') ) { list($title, $export) = PMA_getHtmlForExportUserDefinition($username, $hostname); unset($username, $hostname, $grants, $one_grant); $response = PMA_Response::getInstance(); if ($GLOBALS['is_ajax_request']) { $response->addJSON('message', $export); $response->addJSON('title', $title); exit; } else { $response->addHTML("<h2>$title</h2>$export"); } } if (empty($_REQUEST['adduser']) && (! isset($_REQUEST['checkprivs'])