Use PMA_AddJSVar

This commit is contained in:
Michal Čihař 2011-08-19 10:39:45 +02:00
parent 1b45290d55
commit 38e8365e5d

View File

@ -16,9 +16,9 @@ require_once './libraries/common.inc.php';
$GLOBALS['js_include'][] = 'server_variables.js';
PMA_AddJSCode('pma_token = \'' . $_SESSION[' PMA_token '] . "';\n" .
'is_superuser = ' . (PMA_isSuperuser() ? 'true' : 'false') . ";\n" .
'url_query = \'' . str_replace('&', '&', PMA_generate_common_url($db)) . "';\n");
PMA_AddJSVar('pma_token', $_SESSION[' PMA_token ']);
PMA_AddJSVar('url_query', str_replace('&', '&', PMA_generate_common_url($db)));
PMA_AddJSVar('is_superuser', PMA_isSuperuser() ? true : false);
/**
@ -179,4 +179,4 @@ function formatVariable($name,$value)
*/
require './libraries/footer.inc.php';
?>
?>