remove phpmyadmin tar.gz package from codebase (I added this by mistake in the past)
[openemr.git] / phpmyadmin / db_structure.php
blob14ab8b8e5871d86cd0e36d52eeb9f00351544ee0
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Database structure manipulation
6 * @package PhpMyAdmin
7 */
9 namespace PMA;
11 use PMA_Response;
13 require_once 'libraries/common.inc.php';
14 require_once 'libraries/db_common.inc.php';
16 list(
17 $tables,
18 $num_tables,
19 $total_num_tables,
20 $sub_part,
21 $is_show_stats,
22 $db_is_system_schema,
23 $tooltip_truename,
24 $tooltip_aliasname,
25 $pos
26 ) = \PMA_Util::getDbInfo($GLOBALS['db'], isset($sub_part) ? $sub_part : '');
28 require_once 'libraries/di/Container.class.php';
29 require_once 'libraries/controllers/DatabaseStructureController.class.php';
30 require_once 'libraries/Response.class.php';
32 $container = DI\Container::getDefaultContainer();
33 $container->factory('PMA\Controllers\DatabaseStructureController');
34 $container->alias(
35 'DatabaseStructureController', 'PMA\Controllers\DatabaseStructureController'
37 $container->set('PMA_Response', PMA_Response::getInstance());
38 $container->alias('response', 'PMA_Response');
40 global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables;
41 /* Define dependencies for the concerned controller */
42 $dependency_definitions = array(
43 'db' => $db,
44 'url_query' => &$GLOBALS['url_query'],
45 'pos' => $pos,
46 'db_is_system_schema' => $db_is_system_schema,
47 'num_tables' => $num_tables,
48 'total_num_tables' => $total_num_tables,
49 'tables' => $tables,
52 /** @var Controllers\DatabaseStructureController $controller */
53 $controller = $container->get('DatabaseStructureController', $dependency_definitions);
54 $controller->indexAction();