2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * handles creation of the GIS visualizations.
9 use PhpMyAdmin\Controllers\Table\TableGisVisualizationController
;
10 use PhpMyAdmin\Di\Container
;
11 use PhpMyAdmin\Response
;
15 require_once 'libraries/common.inc.php';
17 $container = Container
::getDefaultContainer();
19 'PhpMyAdmin\Controllers\Table\TableGisVisualizationController'
22 'TableGisVisualizationController',
23 'PhpMyAdmin\Controllers\Table\TableGisVisualizationController'
25 $container->set('PhpMyAdmin\Response', Response
::getInstance());
26 $container->alias('response', 'PhpMyAdmin\Response');
30 if (isset($_GET['sql_query']) && isset($_GET['sql_signature'])) {
31 if (Core
::checkSqlQuerySignature($_GET['sql_query'], $_GET['sql_signature'])) {
32 $sqlQuery = $_GET['sql_query'];
34 } elseif (isset($_POST['sql_query'])) {
35 $sqlQuery = &$GLOBALS['sql_query'];
38 /* Define dependencies for the concerned controller */
39 $dependency_definitions = array(
40 "sql_query" => $sqlQuery,
41 "url_params" => &$GLOBALS['url_params'],
42 "goto" => Util
::getScriptNameForOption(
43 $GLOBALS['cfg']['DefaultTabDatabase'], 'database'
46 "visualizationSettings" => array()
49 /** @var TableGisVisualizationController $controller */
50 $controller = $container->get(
51 'TableGisVisualizationController', $dependency_definitions
53 $controller->indexAction();