getHeader(); $scripts = $header->getScripts(); $scripts->addFile('tbl_chart.js'); $scripts->addFile('highcharts/highcharts.js'); /* Files required for chart exporting */ $scripts->addFile('highcharts/exporting.js'); /* < IE 9 doesn't support canvas natively */ if (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER < 9) { $scripts->addFile('canvg/flashcanvas.js'); } $scripts->addFile('canvg/canvg.js'); /** * Runs common work */ if (strlen($GLOBALS['table'])) { $url_params['goto'] = $cfg['DefaultTabTable']; $url_params['back'] = 'tbl_sql.php'; include 'libraries/tbl_common.inc.php'; include 'libraries/tbl_info.inc.php'; } elseif (strlen($GLOBALS['db'])) { $url_params['goto'] = $cfg['DefaultTabDatabase']; $url_params['back'] = 'sql.php'; include 'libraries/db_common.inc.php'; include 'libraries/db_info.inc.php'; } else { $url_params['goto'] = $cfg['DefaultTabServer']; $url_params['back'] = 'sql.php'; include 'libraries/server_common.inc.php'; } /* * Execute the query and return the result */ $data = array(); $result = PMA_DBI_try_query($sql_query); $fields_meta = PMA_DBI_get_fields_meta($result); while ($row = PMA_DBI_fetch_assoc($result)) { $data[] = $row; } // get settings if any posted $chartSettings = array(); if (PMA_isValid($_REQUEST['chartSettings'], 'array')) { $chartSettings = $_REQUEST['chartSettings']; } $url_params['db'] = $GLOBALS['db']; $url_params['reload'] = 1; /** * Displays the page */ // pma_token/url_query needed for chart export ?>