Translated using Weblate (Korean)
[phpmyadmin.git] / chk_rel.php
blobfe639537f9dc7b8cf1f11d541e96640276fe565a
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Displays status of phpMyAdmin configuration storage
6 * @package PhpMyAdmin
7 */
8 use PhpMyAdmin\Relation;
9 use PhpMyAdmin\Response;
11 require_once 'libraries/common.inc.php';
13 $relation = new Relation();
15 // If request for creating the pmadb
16 if (isset($_POST['create_pmadb'])) {
17 if ($relation->createPmaDatabase()) {
18 $relation->fixPmaTables('phpmyadmin');
22 // If request for creating all PMA tables.
23 if (isset($_POST['fixall_pmadb'])) {
24 $relation->fixPmaTables($GLOBALS['db']);
27 $cfgRelation = $relation->getRelationsParam();
28 // If request for creating missing PMA tables.
29 if (isset($_POST['fix_pmadb'])) {
30 $relation->fixPmaTables($cfgRelation['db']);
33 $response = Response::getInstance();
34 $response->addHTML(
35 $relation->getRelationsParamDiagnostic($cfgRelation)