123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use PhpMyAdmin\Relation;
- use PhpMyAdmin\Response;
- require_once 'libraries/common.inc.php';
- $relation = new Relation();
- if (isset($_POST['create_pmadb'])) {
- if ($relation->createPmaDatabase()) {
- $relation->fixPmaTables('phpmyadmin');
- }
- }
- if (isset($_POST['fixall_pmadb'])) {
- $relation->fixPmaTables($GLOBALS['db']);
- }
- $cfgRelation = $relation->getRelationsParam();
- if (isset($_POST['fix_pmadb'])) {
- $relation->fixPmaTables($cfgRelation['db']);
- }
- $response = Response::getInstance();
- $response->addHTML(
- $relation->getRelationsParamDiagnostic($cfgRelation)
- );
|