Use the router for schema_export.php

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2019-08-20 00:26:34 -03:00
parent 1de76c66dd
commit ce5cc3c658
3 changed files with 6 additions and 5 deletions

View File

@ -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';

View File

@ -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

View File

@ -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>