Use the router for schema_export.php
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
parent
1de76c66dd
commit
ce5cc3c658
@ -133,6 +133,9 @@ if (isset($_GET['route']) || isset($_POST['route'])) {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/preferences/twofactor.php';
|
||||
});
|
||||
});
|
||||
$routes->addRoute(['GET', 'POST'], '/schema_export', function () {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/schema_export.php';
|
||||
});
|
||||
$routes->addGroup('/server', function (RouteCollector $routes) {
|
||||
$routes->addRoute(['GET', 'POST'], '/binlog', function () {
|
||||
require_once ROOT_PATH . 'libraries/entry_points/server/binlog.php';
|
||||
|
||||
@ -11,14 +11,12 @@ use PhpMyAdmin\Export;
|
||||
use PhpMyAdmin\Relation;
|
||||
use PhpMyAdmin\Util;
|
||||
|
||||
if (! defined('ROOT_PATH')) {
|
||||
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
|
||||
if (! defined('PHPMYADMIN')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
global $containerBuilder;
|
||||
|
||||
require_once ROOT_PATH . 'libraries/common.inc.php';
|
||||
|
||||
/**
|
||||
* get all variables needed for exporting relational schema
|
||||
* in $cfgRelation
|
||||
@ -1,4 +1,4 @@
|
||||
<form method="post" action="schema_export.php" class="disableAjax" id="id_export_pages">
|
||||
<form method="post" action="{{ url('/schema_export') }}" class="disableAjax" id="id_export_pages">
|
||||
<fieldset>
|
||||
{{ get_hidden_inputs(db) }}
|
||||
<label>{% trans 'Select Export Relational Type' %}</label>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user