Translated using Weblate (Estonian)
[phpmyadmin.git] / chk_rel.php
blob759e442d17239d99cd98d92093dd570e423857f3
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 PMA\libraries\Response;
10 require_once 'libraries/common.inc.php';
12 // If request for creating the pmadb
13 if (isset($_REQUEST['create_pmadb'])) {
14 if (PMA_createPMADatabase()) {
15 PMA_fixPMATables('phpmyadmin');
19 // If request for creating all PMA tables.
20 if (isset($_REQUEST['fixall_pmadb'])) {
21 PMA_fixPMATables($GLOBALS['db']);
24 $cfgRelation = PMA_getRelationsParam();
25 // If request for creating missing PMA tables.
26 if (isset($_REQUEST['fix_pmadb'])) {
27 PMA_fixPMATables($cfgRelation['db']);
30 $response = Response::getInstance();
31 $response->addHTML(
32 PMA_getRelationsParamDiagnostic($cfgRelation)