path fix for public images
[openemr.git] / phpmyadmin / tbl_structure.php
bloba65748509ac95291a30871da92f36495ece7cf11
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays table structure infos like columns, indexes, size, rows
5 * and allows manipulation of indexes and columns
7 * @package PhpMyAdmin
8 */
10 namespace PMA;
12 use PMA_Response;
14 require_once 'libraries/common.inc.php';
15 require_once 'libraries/tbl_info.inc.php';
16 require_once 'libraries/mysql_charsets.inc.php';
17 require_once 'libraries/config/page_settings.class.php';
18 require_once 'libraries/bookmark.lib.php';
19 require_once 'libraries/di/Container.class.php';
20 require_once 'libraries/controllers/TableStructureController.class.php';
21 require_once 'libraries/Response.class.php';
23 $container = DI\Container::getDefaultContainer();
24 $container->factory('PMA\Controllers\TableStructureController');
25 $container->alias(
26 'TableStructureController', 'PMA\Controllers\TableStructureController'
28 $container->set('PMA_Response', PMA_Response::getInstance());
29 $container->alias('response', 'PMA_Response');
31 global $db, $table, $db_is_system_schema, $tbl_is_view, $tbl_storage_engine,
32 $table_info_num_rows, $tbl_collation, $showtable;
33 /* Define dependencies for the concerned controller */
34 $dependency_definitions = array(
35 'db' => $db,
36 'table' => $table,
37 'url_query' => &$GLOBALS['url_query'],
38 'db_is_system_schema' => $db_is_system_schema,
39 'tbl_is_view' => $tbl_is_view,
40 'tbl_storage_engine' => $tbl_storage_engine,
41 'table_info_num_rows' => $table_info_num_rows,
42 'tbl_collation' => $tbl_collation,
43 'showtable' => $showtable
46 /** @var Controllers\TableStructureController $controller */
47 $controller = $container->get('TableStructureController', $dependency_definitions);
48 $controller->indexAction();