Translated using Weblate (Indonesian)
[phpmyadmin.git] / chk_rel.php
blob183ee4f33864ba4ee31a9ded70f8bf18fb1a3ffb
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 // If request for creating the pmadb
14 if (isset($_REQUEST['create_pmadb'])) {
15 if (Relation::createPmaDatabase()) {
16 Relation::fixPmaTables('phpmyadmin');
20 // If request for creating all PMA tables.
21 if (isset($_REQUEST['fixall_pmadb'])) {
22 Relation::fixPmaTables($GLOBALS['db']);
25 $cfgRelation = Relation::getRelationsParam();
26 // If request for creating missing PMA tables.
27 if (isset($_REQUEST['fix_pmadb'])) {
28 Relation::fixPmaTables($cfgRelation['db']);
31 $response = Response::getInstance();
32 $response->addHTML(
33 Relation::getRelationsParamDiagnostic($cfgRelation)