2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Displays status of phpMyAdmin configuration storage
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();
35 $relation->getRelationsParamDiagnostic($cfgRelation)