From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- srcs/phpmyadmin/db_import.php | 56 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 srcs/phpmyadmin/db_import.php (limited to 'srcs/phpmyadmin/db_import.php') diff --git a/srcs/phpmyadmin/db_import.php b/srcs/phpmyadmin/db_import.php new file mode 100644 index 0000000..8919b65 --- /dev/null +++ b/srcs/phpmyadmin/db_import.php @@ -0,0 +1,56 @@ +getHeader(); +$scripts = $header->getScripts(); +$scripts->addFile('import.js'); + +$import = new Import(); + +/** + * Gets tables information and displays top links + */ +require ROOT_PATH . 'libraries/db_common.inc.php'; + +list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos +) = PhpMyAdmin\Util::getDbInfo($db, isset($sub_part) ? $sub_part : ''); + +$response = Response::getInstance(); +$response->addHTML( + $import->get( + 'database', + $db, + $table, + $max_upload_size + ) +); -- cgit